Activity #2911
User #194 reacted sad post #478
9/11/2024, 3:38:49 AM
Overview
reactions / #2911
User #194 reacted sad post #478
9/11/2024, 3:38:49 AM
User #194 reacted sad post #478
9/11/2024, 3:38:49 AM
View recordUser #194 reacted sad post #478 · 9/11/2024, 3:38:49 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2911" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2911" ); 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/2911"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2911"
)
reaction = res.json() Response
{
"id": 2911,
"userId": 194,
"targetType": "post",
"targetId": 478,
"type": "sad",
"createdAt": "2024-09-11T03:38:49.424Z"
}