Activity #2449
User #120 reacted wow post #245
9/16/2024, 11:34:02 AM
Overview
reactions / #2449
User #120 reacted wow post #245
9/16/2024, 11:34:02 AM
User #120 reacted wow post #245
9/16/2024, 11:34:02 AM
View recordUser #120 reacted wow post #245 · 9/16/2024, 11:34:02 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2449" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2449" ); 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/2449"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2449"
)
reaction = res.json() Response
{
"id": 2449,
"userId": 120,
"targetType": "post",
"targetId": 245,
"type": "wow",
"createdAt": "2024-09-16T11:34:02.649Z"
}