Comment #103
· 9/17/2024
Cohibeo una triduana.
Overview
comments / #103
Cohibeo una triduana.
Comment #103
9/17/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/103" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/103" ); 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/103"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/103"
)
comment = res.json() Response
{
"id": 103,
"userId": 115,
"targetType": "post",
"targetId": 372,
"body": "Cohibeo una triduana.",
"isEdited": true,
"createdAt": "2024-09-17T17:11:35.790Z",
"updatedAt": "2024-10-04T17:31:41.354Z"
}