Activity #2411
User #20 reacted sad post #228
9/23/2024, 1:54:17 AM
Overview
reactions / #2411
User #20 reacted sad post #228
9/23/2024, 1:54:17 AM
User #20 reacted sad post #228
9/23/2024, 1:54:17 AM
View recordUser #20 reacted sad post #228 · 9/23/2024, 1:54:17 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2411" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2411" ); 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/2411"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2411"
)
reaction = res.json() Response
{
"id": 2411,
"userId": 20,
"targetType": "post",
"targetId": 228,
"type": "sad",
"createdAt": "2024-09-23T01:54:17.982Z"
}