Activity #2056
User #242 reacted wow post #50
8/11/2024, 11:23:49 PM
Overview
reactions / #2056
User #242 reacted wow post #50
8/11/2024, 11:23:49 PM
User #242 reacted wow post #50
8/11/2024, 11:23:49 PM
View recordUser #242 reacted wow post #50 · 8/11/2024, 11:23:49 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2056" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2056" ); 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/2056"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2056"
)
reaction = res.json() Response
{
"id": 2056,
"userId": 242,
"targetType": "post",
"targetId": 50,
"type": "wow",
"createdAt": "2024-08-11T23:23:49.189Z"
}