Activity #658
User #143 reacted angry post #37
5/27/2024, 5:11:23 AM
Overview
reactions / #658
User #143 reacted angry post #37
5/27/2024, 5:11:23 AM
User #143 reacted angry post #37
5/27/2024, 5:11:23 AM
View recordUser #143 reacted angry post #37 · 5/27/2024, 5:11:23 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/658" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/658" ); 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/658"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/658"
)
reaction = res.json() Response
{
"id": 658,
"userId": 143,
"targetType": "post",
"targetId": 37,
"type": "angry",
"createdAt": "2024-05-27T05:11:23.972Z"
}