Comment #792
· 11/10/2024
Nesciunt carmen adsum vestrum agnosco varius calcar alii a.
Overview
comments / #792
Nesciunt carmen adsum vestrum agnosco varius calcar alii a.
Comment #792
11/10/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/792" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/792" ); 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/792"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/792"
)
comment = res.json() Response
{
"id": 792,
"userId": 113,
"targetType": "post",
"targetId": 397,
"body": "Nesciunt carmen adsum vestrum agnosco varius calcar alii a.",
"isEdited": false,
"createdAt": "2024-11-10T05:19:08.040Z",
"updatedAt": "2024-11-10T05:19:08.040Z"
}