Activity #495
User #188 reacted love post #367
9/2/2024, 6:26:21 PM
Overview
reactions / #495
User #188 reacted love post #367
9/2/2024, 6:26:21 PM
User #188 reacted love post #367
9/2/2024, 6:26:21 PM
View recordUser #188 reacted love post #367 · 9/2/2024, 6:26:21 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/495" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/495" ); 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/495"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/495"
)
reaction = res.json() Response
{
"id": 495,
"userId": 188,
"targetType": "post",
"targetId": 367,
"type": "love",
"createdAt": "2024-09-02T18:26:21.019Z"
}