Activity #1563
User #93 reacted laugh post #71
8/5/2024, 12:05:51 AM
Overview
reactions / #1563
User #93 reacted laugh post #71
8/5/2024, 12:05:51 AM
User #93 reacted laugh post #71
8/5/2024, 12:05:51 AM
View recordUser #93 reacted laugh post #71 · 8/5/2024, 12:05:51 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1563" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1563" ); const reaction = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/reactions.d.ts https://example-data.com/types/reactions.d.ts
import type { Reaction } from "./types/reactions";
const res = await fetch(
"https://example-data.com/api/v1/reactions/1563"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1563"
)
reaction = res.json() Response
{
"id": 1563,
"userId": 93,
"targetType": "post",
"targetId": 71,
"type": "laugh",
"createdAt": "2024-08-05T00:05:51.202Z"
}