Comment #1177
· 9/30/2024
Aperte voluptate cogito voluptate ipsam beatae decimus fugiat vergo. Utpote sed auctor. Catena consequatur teres auctus denique approbo corpus coma acer venio.
Overview
comments / #1177
Aperte voluptate cogito voluptate ipsam beatae decimus fugiat vergo. Utpote sed auctor. Catena consequatur teres auctus denique approbo corpus coma acer venio.
Comment #1177
9/30/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/1177" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/1177" ); 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/1177"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/1177"
)
comment = res.json() Response
{
"id": 1177,
"userId": 247,
"targetType": "post",
"targetId": 103,
"body": "Aperte voluptate cogito voluptate ipsam beatae decimus fugiat vergo. Utpote sed auctor. Catena consequatur teres auctus denique approbo corpus coma acer venio.",
"isEdited": false,
"createdAt": "2024-09-30T08:28:47.600Z",
"updatedAt": "2024-09-30T08:28:47.600Z"
}