Activity #1718
User #60 reacted angry post #377
12/5/2024, 4:59:46 AM
Overview
reactions / #1718
User #60 reacted angry post #377
12/5/2024, 4:59:46 AM
User #60 reacted angry post #377
12/5/2024, 4:59:46 AM
View recordUser #60 reacted angry post #377 · 12/5/2024, 4:59:46 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1718" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1718" ); 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/1718"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1718"
)
reaction = res.json() Response
{
"id": 1718,
"userId": 60,
"targetType": "post",
"targetId": 377,
"type": "angry",
"createdAt": "2024-12-05T04:59:46.456Z"
}