Comment #323
· 8/18/2024
Cicuta pecco caritas cultellus administratio ut undique. Tandem officiis cariosus sui. Colo tego harum vitium texo.
Overview
comments / #323
Cicuta pecco caritas cultellus administratio ut undique. Tandem officiis cariosus sui. Colo tego harum vitium texo.
Comment #323
8/18/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/323" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/323" ); 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/323"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/323"
)
comment = res.json() Response
{
"id": 323,
"userId": 131,
"targetType": "post",
"targetId": 366,
"body": "Cicuta pecco caritas cultellus administratio ut undique. Tandem officiis cariosus sui. Colo tego harum vitium texo.",
"isEdited": false,
"createdAt": "2024-08-18T09:29:46.863Z",
"updatedAt": "2024-08-18T09:29:46.863Z"
}