Comment #973
· 12/28/2024
Odio quod demo tracto adflicto carbo ulciscor.
Overview
comments / #973
Odio quod demo tracto adflicto carbo ulciscor.
Comment #973
12/28/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/973" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/973" ); 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/973"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/973"
)
comment = res.json() Response
{
"id": 973,
"userId": 74,
"targetType": "post",
"targetId": 228,
"body": "Odio quod demo tracto adflicto carbo ulciscor.",
"isEdited": false,
"createdAt": "2024-12-28T09:42:17.137Z",
"updatedAt": "2024-12-28T09:42:17.137Z"
}