Activity #1076
User #51 reacted like post #93
10/24/2024, 8:18:02 PM
Overview
reactions / #1076
User #51 reacted like post #93
10/24/2024, 8:18:02 PM
User #51 reacted like post #93
10/24/2024, 8:18:02 PM
View recordUser #51 reacted like post #93 · 10/24/2024, 8:18:02 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/1076" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/1076" ); 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/1076"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/1076"
)
reaction = res.json() Response
{
"id": 1076,
"userId": 51,
"targetType": "post",
"targetId": 93,
"type": "like",
"createdAt": "2024-10-24T20:18:02.237Z"
}