Activity #1172
User #83 reacted laugh post #386
5/29/2024, 4:30:13 PM
Overview
reactions / #1172
User #83 reacted laugh post #386
5/29/2024, 4:30:13 PM
User #83 reacted laugh post #386
5/29/2024, 4:30:13 PM
View recordUser #83 reacted laugh post #386 · 5/29/2024, 4:30:13 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1172" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1172" ); 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/1172"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1172"
)
reaction = res.json() Response
{
"id": 1172,
"userId": 83,
"targetType": "post",
"targetId": 386,
"type": "laugh",
"createdAt": "2024-05-29T16:30:13.792Z"
}