Activity #1433
User #201 reacted like post #449
12/14/2024, 4:51:32 AM
Overview
reactions / #1433
User #201 reacted like post #449
12/14/2024, 4:51:32 AM
User #201 reacted like post #449
12/14/2024, 4:51:32 AM
View recordUser #201 reacted like post #449 · 12/14/2024, 4:51:32 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1433" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1433" ); 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/1433"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1433"
)
reaction = res.json() Response
{
"id": 1433,
"userId": 201,
"targetType": "post",
"targetId": 449,
"type": "like",
"createdAt": "2024-12-14T04:51:32.901Z"
}