Comment #1150
· 7/31/2024
Sopor solio accedo mollitia damnatio censura pecto quas ulciscor.
Overview
comments / #1150
Sopor solio accedo mollitia damnatio censura pecto quas ulciscor.
Comment #1150
7/31/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/1150" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/1150" ); 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/1150"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/1150"
)
comment = res.json() Response
{
"id": 1150,
"userId": 162,
"targetType": "post",
"targetId": 169,
"body": "Sopor solio accedo mollitia damnatio censura pecto quas ulciscor.",
"isEdited": false,
"createdAt": "2024-07-31T23:25:33.799Z",
"updatedAt": "2024-07-31T23:25:33.799Z"
}