Activity #1640
User #106 reacted laugh post #309
8/11/2024, 4:15:35 PM
Overview
reactions / #1640
User #106 reacted laugh post #309
8/11/2024, 4:15:35 PM
User #106 reacted laugh post #309
8/11/2024, 4:15:35 PM
View recordUser #106 reacted laugh post #309 · 8/11/2024, 4:15:35 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1640" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1640" ); 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/1640"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1640"
)
reaction = res.json() Response
{
"id": 1640,
"userId": 106,
"targetType": "post",
"targetId": 309,
"type": "laugh",
"createdAt": "2024-08-11T16:15:35.899Z"
}