Comment #158
· 7/15/2024
Casso neque tristis aliqua virtus. Viscus tempus reiciendis aperte deduco vobis sono volaticus sumptus a.
Overview
comments / #158
Casso neque tristis aliqua virtus. Viscus tempus reiciendis aperte deduco vobis sono volaticus sumptus a.
Comment #158
7/15/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/158" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/158" ); 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/158"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/158"
)
comment = res.json() Response
{
"id": 158,
"userId": 117,
"targetType": "post",
"targetId": 155,
"body": "Casso neque tristis aliqua virtus. Viscus tempus reiciendis aperte deduco vobis sono volaticus sumptus a.",
"isEdited": false,
"createdAt": "2024-07-15T14:59:22.240Z",
"updatedAt": "2024-07-15T14:59:22.240Z"
}