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