Activity #1092
User #91 reacted like post #112
9/28/2024, 2:05:22 AM
Overview
reactions / #1092
User #91 reacted like post #112
9/28/2024, 2:05:22 AM
User #91 reacted like post #112
9/28/2024, 2:05:22 AM
View recordUser #91 reacted like post #112 · 9/28/2024, 2:05:22 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1092" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1092" ); 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/1092"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1092"
)
reaction = res.json() Response
{
"id": 1092,
"userId": 91,
"targetType": "post",
"targetId": 112,
"type": "like",
"createdAt": "2024-09-28T02:05:22.546Z"
}