Comment #777
· 10/19/2024
Abscido paulatim vesco aufero adipiscor distinctio aer terminatio denuo.
Overview
comments / #777
Abscido paulatim vesco aufero adipiscor distinctio aer terminatio denuo.
Comment #777
10/19/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/777" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/777" ); 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/777"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/777"
)
comment = res.json() Response
{
"id": 777,
"userId": 191,
"targetType": "post",
"targetId": 164,
"body": "Abscido paulatim vesco aufero adipiscor distinctio aer terminatio denuo.",
"isEdited": false,
"createdAt": "2024-10-19T20:11:00.186Z",
"updatedAt": "2024-10-19T20:11:00.186Z"
}