Activity #2260
User #17 reacted laugh post #464
12/7/2024, 6:52:46 AM
Overview
reactions / #2260
User #17 reacted laugh post #464
12/7/2024, 6:52:46 AM
User #17 reacted laugh post #464
12/7/2024, 6:52:46 AM
View recordUser #17 reacted laugh post #464 · 12/7/2024, 6:52:46 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2260" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2260" ); 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/2260"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2260"
)
reaction = res.json() Response
{
"id": 2260,
"userId": 17,
"targetType": "post",
"targetId": 464,
"type": "laugh",
"createdAt": "2024-12-07T06:52:46.774Z"
}