Activity #1999
User #87 reacted love post #100
10/3/2024, 8:14:32 PM
Overview
reactions / #1999
User #87 reacted love post #100
10/3/2024, 8:14:32 PM
User #87 reacted love post #100
10/3/2024, 8:14:32 PM
View recordUser #87 reacted love post #100 · 10/3/2024, 8:14:32 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1999" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1999" ); 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/1999"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1999"
)
reaction = res.json() Response
{
"id": 1999,
"userId": 87,
"targetType": "post",
"targetId": 100,
"type": "love",
"createdAt": "2024-10-03T20:14:32.272Z"
}