Activity #2090
User #99 reacted wow post #44
5/24/2024, 6:17:09 PM
Overview
reactions / #2090
User #99 reacted wow post #44
5/24/2024, 6:17:09 PM
User #99 reacted wow post #44
5/24/2024, 6:17:09 PM
View recordUser #99 reacted wow post #44 · 5/24/2024, 6:17:09 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2090" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2090" ); 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/2090"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2090"
)
reaction = res.json() Response
{
"id": 2090,
"userId": 99,
"targetType": "post",
"targetId": 44,
"type": "wow",
"createdAt": "2024-05-24T18:17:09.245Z"
}