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