Activity #436
User #138 reacted like post #105
7/27/2024, 1:49:35 PM
Overview
reactions / #436
User #138 reacted like post #105
7/27/2024, 1:49:35 PM
User #138 reacted like post #105
7/27/2024, 1:49:35 PM
View recordUser #138 reacted like post #105 · 7/27/2024, 1:49:35 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/436" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/436" ); 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/436"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/436"
)
reaction = res.json() Response
{
"id": 436,
"userId": 138,
"targetType": "post",
"targetId": 105,
"type": "like",
"createdAt": "2024-07-27T13:49:35.617Z"
}