Activity #1656
User #140 reacted laugh post #223
9/4/2024, 1:16:27 PM
Overview
reactions / #1656
User #140 reacted laugh post #223
9/4/2024, 1:16:27 PM
User #140 reacted laugh post #223
9/4/2024, 1:16:27 PM
View recordUser #140 reacted laugh post #223 · 9/4/2024, 1:16:27 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1656" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1656" ); 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/1656"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1656"
)
reaction = res.json() Response
{
"id": 1656,
"userId": 140,
"targetType": "post",
"targetId": 223,
"type": "laugh",
"createdAt": "2024-09-04T13:16:27.094Z"
}