Activity #1224
User #172 reacted like post #67
8/11/2024, 7:17:18 PM
Overview
reactions / #1224
User #172 reacted like post #67
8/11/2024, 7:17:18 PM
User #172 reacted like post #67
8/11/2024, 7:17:18 PM
View recordUser #172 reacted like post #67 · 8/11/2024, 7:17:18 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1224" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1224" ); 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/1224"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1224"
)
reaction = res.json() Response
{
"id": 1224,
"userId": 172,
"targetType": "post",
"targetId": 67,
"type": "like",
"createdAt": "2024-08-11T19:17:18.684Z"
}