Comment #767
· 5/22/2024
Complectus consuasor voluptatum corrigo laboriosam candidus comminor viduo unde tollo.
Overview
comments / #767
Complectus consuasor voluptatum corrigo laboriosam candidus comminor viduo unde tollo.
Comment #767
5/22/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/767" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/767" ); 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/767"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/767"
)
comment = res.json() Response
{
"id": 767,
"userId": 221,
"targetType": "post",
"targetId": 350,
"body": "Complectus consuasor voluptatum corrigo laboriosam candidus comminor viduo unde tollo.",
"isEdited": false,
"createdAt": "2024-05-22T08:50:32.811Z",
"updatedAt": "2024-05-22T08:50:32.811Z"
}