Activity #2977
User #6 reacted laugh post #211
10/19/2024, 10:30:12 PM
Overview
reactions / #2977
User #6 reacted laugh post #211
10/19/2024, 10:30:12 PM
User #6 reacted laugh post #211
10/19/2024, 10:30:12 PM
View recordUser #6 reacted laugh post #211 · 10/19/2024, 10:30:12 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2977" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2977" ); 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/2977"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2977"
)
reaction = res.json() Response
{
"id": 2977,
"userId": 6,
"targetType": "post",
"targetId": 211,
"type": "laugh",
"createdAt": "2024-10-19T22:30:12.989Z"
}