Activity #984
User #134 reacted like post #274
11/23/2024, 6:52:02 PM
Overview
reactions / #984
User #134 reacted like post #274
11/23/2024, 6:52:02 PM
User #134 reacted like post #274
11/23/2024, 6:52:02 PM
View recordUser #134 reacted like post #274 · 11/23/2024, 6:52:02 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/984" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/984" ); 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/984"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/984"
)
reaction = res.json() Response
{
"id": 984,
"userId": 134,
"targetType": "post",
"targetId": 274,
"type": "like",
"createdAt": "2024-11-23T18:52:02.307Z"
}