Activity #1833
User #116 reacted laugh post #351
9/4/2024, 2:39:50 AM
Overview
reactions / #1833
User #116 reacted laugh post #351
9/4/2024, 2:39:50 AM
User #116 reacted laugh post #351
9/4/2024, 2:39:50 AM
View recordUser #116 reacted laugh post #351 · 9/4/2024, 2:39:50 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1833" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1833" ); 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/1833"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1833"
)
reaction = res.json() Response
{
"id": 1833,
"userId": 116,
"targetType": "post",
"targetId": 351,
"type": "laugh",
"createdAt": "2024-09-04T02:39:50.633Z"
}