Activity #1570
User #238 reacted like post #388
12/18/2024, 2:15:47 PM
Overview
reactions / #1570
User #238 reacted like post #388
12/18/2024, 2:15:47 PM
User #238 reacted like post #388
12/18/2024, 2:15:47 PM
View recordUser #238 reacted like post #388 · 12/18/2024, 2:15:47 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1570" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1570" ); 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/1570"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1570"
)
reaction = res.json() Response
{
"id": 1570,
"userId": 238,
"targetType": "post",
"targetId": 388,
"type": "like",
"createdAt": "2024-12-18T14:15:47.939Z"
}