Comment #592
· 8/18/2024
Demens arbitro vinculum voluptates. Thalassinus ciminatio tenax virga praesentium absum.
Overview
comments / #592
Demens arbitro vinculum voluptates. Thalassinus ciminatio tenax virga praesentium absum.
Comment #592
8/18/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/592" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/592" ); 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/592"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/592"
)
comment = res.json() Response
{
"id": 592,
"userId": 106,
"targetType": "post",
"targetId": 299,
"body": "Demens arbitro vinculum voluptates. Thalassinus ciminatio tenax virga praesentium absum.",
"isEdited": false,
"createdAt": "2024-08-18T05:38:30.216Z",
"updatedAt": "2024-08-18T05:38:30.216Z"
}