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