Activity #1352
User #179 reacted sad post #289
9/1/2024, 12:52:27 PM
Overview
reactions / #1352
User #179 reacted sad post #289
9/1/2024, 12:52:27 PM
User #179 reacted sad post #289
9/1/2024, 12:52:27 PM
View recordUser #179 reacted sad post #289 · 9/1/2024, 12:52:27 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1352" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1352" ); 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/1352"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1352"
)
reaction = res.json() Response
{
"id": 1352,
"userId": 179,
"targetType": "post",
"targetId": 289,
"type": "sad",
"createdAt": "2024-09-01T12:52:27.224Z"
}