Activity #2187
User #159 reacted laugh post #300
8/28/2024, 1:36:38 AM
Overview
reactions / #2187
User #159 reacted laugh post #300
8/28/2024, 1:36:38 AM
User #159 reacted laugh post #300
8/28/2024, 1:36:38 AM
View recordUser #159 reacted laugh post #300 · 8/28/2024, 1:36:38 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2187" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2187" ); 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/2187"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2187"
)
reaction = res.json() Response
{
"id": 2187,
"userId": 159,
"targetType": "post",
"targetId": 300,
"type": "laugh",
"createdAt": "2024-08-28T01:36:38.127Z"
}