Activity #679
User #200 reacted like post #320
6/9/2024, 9:25:25 PM
Overview
reactions / #679
User #200 reacted like post #320
6/9/2024, 9:25:25 PM
User #200 reacted like post #320
6/9/2024, 9:25:25 PM
View recordUser #200 reacted like post #320 · 6/9/2024, 9:25:25 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/679" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/679" ); 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/679"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/679"
)
reaction = res.json() Response
{
"id": 679,
"userId": 200,
"targetType": "post",
"targetId": 320,
"type": "like",
"createdAt": "2024-06-09T21:25:25.707Z"
}