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