Activity #2214
User #48 reacted angry post #226
9/24/2024, 8:09:24 AM
Overview
reactions / #2214
User #48 reacted angry post #226
9/24/2024, 8:09:24 AM
User #48 reacted angry post #226
9/24/2024, 8:09:24 AM
View recordUser #48 reacted angry post #226 · 9/24/2024, 8:09:24 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2214" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2214" ); 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/2214"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2214"
)
reaction = res.json() Response
{
"id": 2214,
"userId": 48,
"targetType": "post",
"targetId": 226,
"type": "angry",
"createdAt": "2024-09-24T08:09:24.321Z"
}