Activity #703
User #54 reacted angry post #111
12/1/2024, 12:47:26 AM
Overview
reactions / #703
User #54 reacted angry post #111
12/1/2024, 12:47:26 AM
User #54 reacted angry post #111
12/1/2024, 12:47:26 AM
View recordUser #54 reacted angry post #111 · 12/1/2024, 12:47:26 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/703" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/703" ); 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/703"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/703"
)
reaction = res.json() Response
{
"id": 703,
"userId": 54,
"targetType": "post",
"targetId": 111,
"type": "angry",
"createdAt": "2024-12-01T00:47:26.065Z"
}