Activity #701
User #119 reacted laugh post #360
12/29/2024, 10:10:04 AM
Overview
reactions / #701
User #119 reacted laugh post #360
12/29/2024, 10:10:04 AM
User #119 reacted laugh post #360
12/29/2024, 10:10:04 AM
View recordUser #119 reacted laugh post #360 · 12/29/2024, 10:10:04 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/701" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/701" ); 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/701"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/701"
)
reaction = res.json() Response
{
"id": 701,
"userId": 119,
"targetType": "post",
"targetId": 360,
"type": "laugh",
"createdAt": "2024-12-29T10:10:04.125Z"
}