Comment #725
· 7/4/2024
Canis cohibeo coruscus accusamus curtus arto quaerat curriculum versus patruus.
Overview
comments / #725
Canis cohibeo coruscus accusamus curtus arto quaerat curriculum versus patruus.
Comment #725
7/4/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/725" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/725" ); 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/725"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/725"
)
comment = res.json() Response
{
"id": 725,
"userId": 148,
"targetType": "post",
"targetId": 334,
"body": "Canis cohibeo coruscus accusamus curtus arto quaerat curriculum versus patruus.",
"isEdited": false,
"createdAt": "2024-07-04T20:12:31.571Z",
"updatedAt": "2024-07-04T20:12:31.571Z"
}