Activity #1798
User #119 reacted sad post #444
11/20/2024, 5:43:47 AM
Overview
reactions / #1798
User #119 reacted sad post #444
11/20/2024, 5:43:47 AM
User #119 reacted sad post #444
11/20/2024, 5:43:47 AM
View recordUser #119 reacted sad post #444 · 11/20/2024, 5:43:47 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1798" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1798" ); 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/1798"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1798"
)
reaction = res.json() Response
{
"id": 1798,
"userId": 119,
"targetType": "post",
"targetId": 444,
"type": "sad",
"createdAt": "2024-11-20T05:43:47.501Z"
}