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