Comment #112
· 7/30/2024
Sumo terga abutor varius voluntarius taceo. Vel dens administratio alveus tabula vulgivagus.
Overview
comments / #112
Sumo terga abutor varius voluntarius taceo. Vel dens administratio alveus tabula vulgivagus.
Comment #112
7/30/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/112" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/112" ); 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/112"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/112"
)
comment = res.json() Response
{
"id": 112,
"userId": 34,
"targetType": "post",
"targetId": 212,
"body": "Sumo terga abutor varius voluntarius taceo. Vel dens administratio alveus tabula vulgivagus.",
"isEdited": false,
"createdAt": "2024-07-30T03:14:25.783Z",
"updatedAt": "2024-07-30T03:14:25.783Z"
}