Activity #1628
User #66 reacted like post #32
6/6/2024, 3:52:04 AM
Overview
reactions / #1628
User #66 reacted like post #32
6/6/2024, 3:52:04 AM
User #66 reacted like post #32
6/6/2024, 3:52:04 AM
View recordUser #66 reacted like post #32 · 6/6/2024, 3:52:04 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1628" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1628" ); 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/1628"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1628"
)
reaction = res.json() Response
{
"id": 1628,
"userId": 66,
"targetType": "post",
"targetId": 32,
"type": "like",
"createdAt": "2024-06-06T03:52:04.923Z"
}