Comment #265
· 5/31/2024
Voluptatum cupio sol talio titulus debitis aureus commodi verbum. Nemo textus acervus animi tot collum delibero. Crapula casus caute et adicio.
Overview
comments / #265
Voluptatum cupio sol talio titulus debitis aureus commodi verbum. Nemo textus acervus animi tot collum delibero. Crapula casus caute et adicio.
Comment #265
5/31/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/265" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/265" ); 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/265"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/265"
)
comment = res.json() Response
{
"id": 265,
"userId": 139,
"targetType": "post",
"targetId": 161,
"body": "Voluptatum cupio sol talio titulus debitis aureus commodi verbum. Nemo textus acervus animi tot collum delibero. Crapula casus caute et adicio.",
"isEdited": false,
"createdAt": "2024-05-31T23:15:41.895Z",
"updatedAt": "2024-05-31T23:15:41.895Z"
}