Comment #727
· 5/22/2024
Aestus cumque tendo cursim varius optio. Facere defendo atque culpa sono comprehendo conforto adfero vix.
Overview
comments / #727
Aestus cumque tendo cursim varius optio. Facere defendo atque culpa sono comprehendo conforto adfero vix.
Comment #727
5/22/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/727" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/727" ); 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/727"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/727"
)
comment = res.json() Response
{
"id": 727,
"userId": 150,
"targetType": "post",
"targetId": 392,
"body": "Aestus cumque tendo cursim varius optio. Facere defendo atque culpa sono comprehendo conforto adfero vix.",
"isEdited": false,
"createdAt": "2024-05-22T07:41:24.945Z",
"updatedAt": "2024-05-22T07:41:24.945Z"
}