Comment #1012
· 9/5/2024
Dolore tumultus comburo debeo terror antea deduco cresco.
Overview
comments / #1012
Dolore tumultus comburo debeo terror antea deduco cresco.
Comment #1012
9/5/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/1012" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/1012" ); 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/1012"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/1012"
)
comment = res.json() Response
{
"id": 1012,
"userId": 18,
"targetType": "post",
"targetId": 2,
"body": "Dolore tumultus comburo debeo terror antea deduco cresco.",
"isEdited": false,
"createdAt": "2024-09-05T10:51:12.117Z",
"updatedAt": "2024-09-05T10:51:12.117Z"
}