Activity #2268
User #52 reacted love post #75
9/23/2024, 2:05:06 AM
Overview
reactions / #2268
User #52 reacted love post #75
9/23/2024, 2:05:06 AM
User #52 reacted love post #75
9/23/2024, 2:05:06 AM
View recordUser #52 reacted love post #75 · 9/23/2024, 2:05:06 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2268" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2268" ); 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/2268"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2268"
)
reaction = res.json() Response
{
"id": 2268,
"userId": 52,
"targetType": "post",
"targetId": 75,
"type": "love",
"createdAt": "2024-09-23T02:05:06.868Z"
}