Comment #330
· 9/23/2024
Ut cui aureus denique defluo. Vinculum comitatus ager causa aliquid. Adnuo studio porro tametsi rem considero. Voro labore patior cupressus aeternus ascisco trepide apud amissio.
Overview
comments / #330
Ut cui aureus denique defluo. Vinculum comitatus ager causa aliquid. Adnuo studio porro tametsi rem considero. Voro labore patior cupressus aeternus ascisco trepide apud amissio.
Comment #330
9/23/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/330" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/330" ); 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/330"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/330"
)
comment = res.json() Response
{
"id": 330,
"userId": 45,
"targetType": "post",
"targetId": 339,
"body": "Ut cui aureus denique defluo. Vinculum comitatus ager causa aliquid. Adnuo studio porro tametsi rem considero. Voro labore patior cupressus aeternus ascisco trepide apud amissio.",
"isEdited": false,
"createdAt": "2024-09-23T13:27:28.644Z",
"updatedAt": "2024-09-23T13:27:28.644Z"
}