Activity #2300
User #94 reacted laugh post #454
11/17/2024, 5:30:30 PM
Overview
reactions / #2300
User #94 reacted laugh post #454
11/17/2024, 5:30:30 PM
User #94 reacted laugh post #454
11/17/2024, 5:30:30 PM
View recordUser #94 reacted laugh post #454 · 11/17/2024, 5:30:30 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2300" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2300" ); 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/2300"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2300"
)
reaction = res.json() Response
{
"id": 2300,
"userId": 94,
"targetType": "post",
"targetId": 454,
"type": "laugh",
"createdAt": "2024-11-17T17:30:30.977Z"
}