Activity #433
User #163 reacted like post #393
6/1/2024, 4:25:50 AM
Overview
reactions / #433
User #163 reacted like post #393
6/1/2024, 4:25:50 AM
User #163 reacted like post #393
6/1/2024, 4:25:50 AM
View recordUser #163 reacted like post #393 · 6/1/2024, 4:25:50 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/433" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/433" ); 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/433"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/433"
)
reaction = res.json() Response
{
"id": 433,
"userId": 163,
"targetType": "post",
"targetId": 393,
"type": "like",
"createdAt": "2024-06-01T04:25:50.294Z"
}