Comment #1303
· 8/26/2024
Summisse turbo certe verbum deputo. Tener apparatus depopulo contego vox vigor.
Overview
comments / #1303
Summisse turbo certe verbum deputo. Tener apparatus depopulo contego vox vigor.
Comment #1303
8/26/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/1303" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/1303" ); 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/1303"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/1303"
)
comment = res.json() Response
{
"id": 1303,
"userId": 22,
"targetType": "post",
"targetId": 239,
"body": "Summisse turbo certe verbum deputo. Tener apparatus depopulo contego vox vigor.",
"isEdited": false,
"createdAt": "2024-08-26T16:05:56.997Z",
"updatedAt": "2024-08-26T16:05:56.997Z"
}