Activity #1881
User #14 reacted laugh post #378
5/27/2024, 5:18:08 PM
Overview
reactions / #1881
User #14 reacted laugh post #378
5/27/2024, 5:18:08 PM
User #14 reacted laugh post #378
5/27/2024, 5:18:08 PM
View recordUser #14 reacted laugh post #378 · 5/27/2024, 5:18:08 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1881" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1881" ); 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/1881"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1881"
)
reaction = res.json() Response
{
"id": 1881,
"userId": 14,
"targetType": "post",
"targetId": 378,
"type": "laugh",
"createdAt": "2024-05-27T17:18:08.281Z"
}