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