Activity #625
User #45 reacted love post #331
8/16/2024, 4:05:35 PM
Overview
reactions / #625
User #45 reacted love post #331
8/16/2024, 4:05:35 PM
User #45 reacted love post #331
8/16/2024, 4:05:35 PM
View recordUser #45 reacted love post #331 · 8/16/2024, 4:05:35 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/625" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/625" ); 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/625"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/625"
)
reaction = res.json() Response
{
"id": 625,
"userId": 45,
"targetType": "post",
"targetId": 331,
"type": "love",
"createdAt": "2024-08-16T16:05:35.087Z"
}