Activity #445
User #196 reacted love post #22
10/21/2024, 8:31:07 AM
Overview
reactions / #445
User #196 reacted love post #22
10/21/2024, 8:31:07 AM
User #196 reacted love post #22
10/21/2024, 8:31:07 AM
View recordUser #196 reacted love post #22 · 10/21/2024, 8:31:07 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/445" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/445" ); 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/445"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/445"
)
reaction = res.json() Response
{
"id": 445,
"userId": 196,
"targetType": "post",
"targetId": 22,
"type": "love",
"createdAt": "2024-10-21T08:31:07.304Z"
}