Activity #322
User #40 reacted wow post #496
7/15/2024, 6:18:07 AM
Overview
reactions / #322
User #40 reacted wow post #496
7/15/2024, 6:18:07 AM
User #40 reacted wow post #496
7/15/2024, 6:18:07 AM
View recordUser #40 reacted wow post #496 · 7/15/2024, 6:18:07 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/322" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/322" ); 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/322"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/322"
)
reaction = res.json() Response
{
"id": 322,
"userId": 40,
"targetType": "post",
"targetId": 496,
"type": "wow",
"createdAt": "2024-07-15T06:18:07.236Z"
}