Activity #267
User #72 reacted wow post #141
10/22/2024, 12:40:31 AM
Overview
reactions / #267
User #72 reacted wow post #141
10/22/2024, 12:40:31 AM
User #72 reacted wow post #141
10/22/2024, 12:40:31 AM
View recordUser #72 reacted wow post #141 · 10/22/2024, 12:40:31 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/267" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/267" ); 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/267"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/267"
)
reaction = res.json() Response
{
"id": 267,
"userId": 72,
"targetType": "post",
"targetId": 141,
"type": "wow",
"createdAt": "2024-10-22T00:40:31.604Z"
}