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