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