Activity #2220
User #157 reacted love post #128
8/11/2024, 11:34:57 AM
Overview
reactions / #2220
User #157 reacted love post #128
8/11/2024, 11:34:57 AM
User #157 reacted love post #128
8/11/2024, 11:34:57 AM
View recordUser #157 reacted love post #128 · 8/11/2024, 11:34:57 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/2220" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/2220" ); 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/2220"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/2220"
)
reaction = res.json() Response
{
"id": 2220,
"userId": 157,
"targetType": "post",
"targetId": 128,
"type": "love",
"createdAt": "2024-08-11T11:34:57.986Z"
}