Comment #1082
· 7/26/2024
Facilis apto tantillus. Cupiditas laudantium aegre in virga. Utpote patior degero cribro sodalitas campana commodo.
Overview
comments / #1082
Facilis apto tantillus. Cupiditas laudantium aegre in virga. Utpote patior degero cribro sodalitas campana commodo.
Comment #1082
7/26/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/1082" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/1082" ); 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/1082"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/1082"
)
comment = res.json() Response
{
"id": 1082,
"userId": 170,
"targetType": "post",
"targetId": 306,
"body": "Facilis apto tantillus. Cupiditas laudantium aegre in virga. Utpote patior degero cribro sodalitas campana commodo.",
"isEdited": false,
"createdAt": "2024-07-26T08:09:39.608Z",
"updatedAt": "2024-07-26T08:09:39.608Z"
}