Activity #332
User #174 reacted angry post #393
8/1/2024, 10:14:35 AM
Overview
reactions / #332
User #174 reacted angry post #393
8/1/2024, 10:14:35 AM
User #174 reacted angry post #393
8/1/2024, 10:14:35 AM
View recordUser #174 reacted angry post #393 · 8/1/2024, 10:14:35 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/332" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/332" ); 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/332"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/332"
)
reaction = res.json() Response
{
"id": 332,
"userId": 174,
"targetType": "post",
"targetId": 393,
"type": "angry",
"createdAt": "2024-08-01T10:14:35.728Z"
}