Activity #2347
User #192 reacted like post #179
9/1/2024, 5:36:02 AM
Overview
reactions / #2347
User #192 reacted like post #179
9/1/2024, 5:36:02 AM
User #192 reacted like post #179
9/1/2024, 5:36:02 AM
View recordUser #192 reacted like post #179 · 9/1/2024, 5:36:02 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2347" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2347" ); 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/2347"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2347"
)
reaction = res.json() Response
{
"id": 2347,
"userId": 192,
"targetType": "post",
"targetId": 179,
"type": "like",
"createdAt": "2024-09-01T05:36:02.285Z"
}