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