Comment #945
· 8/30/2024
Strues quo valens aiunt voluptates commodi solitudo aegrotatio spes ciminatio. Autem apostolus laboriosam asper suscipit.
Overview
comments / #945
Strues quo valens aiunt voluptates commodi solitudo aegrotatio spes ciminatio. Autem apostolus laboriosam asper suscipit.
Comment #945
8/30/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/945" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/945" ); 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/945"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/945"
)
comment = res.json() Response
{
"id": 945,
"userId": 107,
"targetType": "post",
"targetId": 186,
"body": "Strues quo valens aiunt voluptates commodi solitudo aegrotatio spes ciminatio. Autem apostolus laboriosam asper suscipit.",
"isEdited": true,
"createdAt": "2024-08-30T09:57:22.498Z",
"updatedAt": "2024-10-28T02:43:36.640Z"
}