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