Activity #2370
User #142 reacted love post #300
7/4/2024, 7:13:25 PM
Overview
reactions / #2370
User #142 reacted love post #300
7/4/2024, 7:13:25 PM
User #142 reacted love post #300
7/4/2024, 7:13:25 PM
View recordUser #142 reacted love post #300 · 7/4/2024, 7:13:25 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2370" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2370" ); 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/2370"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2370"
)
reaction = res.json() Response
{
"id": 2370,
"userId": 142,
"targetType": "post",
"targetId": 300,
"type": "love",
"createdAt": "2024-07-04T19:13:25.990Z"
}