Activity #1649
User #92 reacted love post #78
12/28/2024, 11:49:49 AM
Overview
reactions / #1649
User #92 reacted love post #78
12/28/2024, 11:49:49 AM
User #92 reacted love post #78
12/28/2024, 11:49:49 AM
View recordUser #92 reacted love post #78 · 12/28/2024, 11:49:49 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1649" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1649" ); 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/1649"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1649"
)
reaction = res.json() Response
{
"id": 1649,
"userId": 92,
"targetType": "post",
"targetId": 78,
"type": "love",
"createdAt": "2024-12-28T11:49:49.220Z"
}