Activity #1054
User #229 reacted wow post #69
6/8/2024, 7:54:08 AM
Overview
reactions / #1054
User #229 reacted wow post #69
6/8/2024, 7:54:08 AM
User #229 reacted wow post #69
6/8/2024, 7:54:08 AM
View recordUser #229 reacted wow post #69 · 6/8/2024, 7:54:08 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1054" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1054" ); 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/1054"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1054"
)
reaction = res.json() Response
{
"id": 1054,
"userId": 229,
"targetType": "post",
"targetId": 69,
"type": "wow",
"createdAt": "2024-06-08T07:54:08.763Z"
}