Activity #2448
User #72 reacted sad post #76
10/14/2024, 7:50:52 AM
Overview
reactions / #2448
User #72 reacted sad post #76
10/14/2024, 7:50:52 AM
User #72 reacted sad post #76
10/14/2024, 7:50:52 AM
View recordUser #72 reacted sad post #76 · 10/14/2024, 7:50:52 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2448" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2448" ); 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/2448"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2448"
)
reaction = res.json() Response
{
"id": 2448,
"userId": 72,
"targetType": "post",
"targetId": 76,
"type": "sad",
"createdAt": "2024-10-14T07:50:52.701Z"
}