Activity #156
User #15 reacted angry post #209
5/31/2024, 10:30:53 AM
Overview
reactions / #156
User #15 reacted angry post #209
5/31/2024, 10:30:53 AM
User #15 reacted angry post #209
5/31/2024, 10:30:53 AM
View recordUser #15 reacted angry post #209 · 5/31/2024, 10:30:53 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/156" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/156" ); 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/156"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/156"
)
reaction = res.json() Response
{
"id": 156,
"userId": 15,
"targetType": "post",
"targetId": 209,
"type": "angry",
"createdAt": "2024-05-31T10:30:53.014Z"
}