Activity #598
User #33 reacted angry post #183
7/30/2024, 2:02:04 AM
Overview
reactions / #598
User #33 reacted angry post #183
7/30/2024, 2:02:04 AM
User #33 reacted angry post #183
7/30/2024, 2:02:04 AM
View recordUser #33 reacted angry post #183 · 7/30/2024, 2:02:04 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/598" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/598" ); 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/598"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/598"
)
reaction = res.json() Response
{
"id": 598,
"userId": 33,
"targetType": "post",
"targetId": 183,
"type": "angry",
"createdAt": "2024-07-30T02:02:04.129Z"
}