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