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