Comment #778
· 9/22/2024
Thorax ut depulso tergo victus arbor tot. Vallum suffoco sit arbustum tracto abeo quod vindico. Cenaculum conturbo aurum approbo xiphias alii beatae totidem verto. Verumtamen veritas itaque subito.
Overview
comments / #778
Thorax ut depulso tergo victus arbor tot. Vallum suffoco sit arbustum tracto abeo quod vindico. Cenaculum conturbo aurum approbo xiphias alii beatae totidem verto. Verumtamen veritas itaque subito.
Comment #778
9/22/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/778" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/778" ); 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/778"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/778"
)
comment = res.json() Response
{
"id": 778,
"userId": 156,
"targetType": "post",
"targetId": 482,
"body": "Thorax ut depulso tergo victus arbor tot. Vallum suffoco sit arbustum tracto abeo quod vindico. Cenaculum conturbo aurum approbo xiphias alii beatae totidem verto. Verumtamen veritas itaque subito.",
"isEdited": true,
"createdAt": "2024-09-22T07:30:55.824Z",
"updatedAt": "2024-11-14T17:15:57.858Z"
}