Comment #673
· 6/3/2024
Accusator thesis laboriosam minima. Curto strenuus tubineus decet tactus curvo conculco tristis labore omnis.
Overview
comments / #673
Accusator thesis laboriosam minima. Curto strenuus tubineus decet tactus curvo conculco tristis labore omnis.
Comment #673
6/3/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/673" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/673" ); 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/673"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/673"
)
comment = res.json() Response
{
"id": 673,
"userId": 244,
"targetType": "post",
"targetId": 135,
"body": "Accusator thesis laboriosam minima. Curto strenuus tubineus decet tactus curvo conculco tristis labore omnis.",
"isEdited": false,
"createdAt": "2024-06-03T18:45:25.589Z",
"updatedAt": "2024-06-03T18:45:25.589Z"
}