Activity #767
User #149 reacted angry post #378
6/19/2024, 5:10:51 PM
Overview
reactions / #767
User #149 reacted angry post #378
6/19/2024, 5:10:51 PM
User #149 reacted angry post #378
6/19/2024, 5:10:51 PM
View recordUser #149 reacted angry post #378 · 6/19/2024, 5:10:51 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/reactions/767" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/reactions/767" ); 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/767"
);
const reaction = (await res.json()) as Reaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/reactions/767"
)
reaction = res.json() Response
{
"id": 767,
"userId": 149,
"targetType": "post",
"targetId": 378,
"type": "angry",
"createdAt": "2024-06-19T17:10:51.886Z"
}