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