Activity #1743
User #189 reacted love post #491
9/2/2024, 5:23:48 PM
Overview
reactions / #1743
User #189 reacted love post #491
9/2/2024, 5:23:48 PM
User #189 reacted love post #491
9/2/2024, 5:23:48 PM
View recordUser #189 reacted love post #491 · 9/2/2024, 5:23:48 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1743" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1743" ); 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/1743"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1743"
)
reaction = res.json() Response
{
"id": 1743,
"userId": 189,
"targetType": "post",
"targetId": 491,
"type": "love",
"createdAt": "2024-09-02T17:23:48.293Z"
}