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