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