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