Comment #1005
· 12/2/2024
Stipes somniculosus stillicidium vobis.
Overview
comments / #1005
Stipes somniculosus stillicidium vobis.
Comment #1005
12/2/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/1005" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/1005" ); 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/1005"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/1005"
)
comment = res.json() Response
{
"id": 1005,
"userId": 60,
"targetType": "post",
"targetId": 113,
"body": "Stipes somniculosus stillicidium vobis.",
"isEdited": false,
"createdAt": "2024-12-02T03:03:50.881Z",
"updatedAt": "2024-12-02T03:03:50.881Z"
}