Comment #373
· 11/3/2024
Antepono demergo abstergo tertius apto clam turba cito ulciscor.
Overview
comments / #373
Antepono demergo abstergo tertius apto clam turba cito ulciscor.
Comment #373
11/3/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/373" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/373" ); const comment = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/comments.d.ts https://example-data.com/types/comments.d.ts
import type { Comment } from "./types/comments";
const res = await fetch(
"https://example-data.com/api/v1/comments/373"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/373"
)
comment = res.json() Response
{
"id": 373,
"userId": 229,
"targetType": "post",
"targetId": 109,
"body": "Antepono demergo abstergo tertius apto clam turba cito ulciscor.",
"isEdited": false,
"createdAt": "2024-11-03T17:50:42.391Z",
"updatedAt": "2024-11-03T17:50:42.391Z"
}