Comment #784
· 8/23/2024
Quis cibo totus curis defetiscor ocer aetas contabesco.
Overview
comments / #784
Quis cibo totus curis defetiscor ocer aetas contabesco.
Comment #784
8/23/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/784" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/784" ); 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/784"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/784"
)
comment = res.json() Response
{
"id": 784,
"userId": 122,
"targetType": "post",
"targetId": 450,
"body": "Quis cibo totus curis defetiscor ocer aetas contabesco.",
"isEdited": true,
"createdAt": "2024-08-23T23:25:41.641Z",
"updatedAt": "2025-01-23T16:03:44.492Z"
}