Comment #196
· 7/6/2024
Adnuo studio defluo itaque. Stipes taceo virtus sub abundans solutio. Terebro crux cohaero. Totam voluptatum color succedo.
Overview
comments / #196
Adnuo studio defluo itaque. Stipes taceo virtus sub abundans solutio. Terebro crux cohaero. Totam voluptatum color succedo.
Comment #196
7/6/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/196" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/196" ); 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/196"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/196"
)
comment = res.json() Response
{
"id": 196,
"userId": 183,
"targetType": "post",
"targetId": 191,
"body": "Adnuo studio defluo itaque. Stipes taceo virtus sub abundans solutio. Terebro crux cohaero. Totam voluptatum color succedo.",
"isEdited": false,
"createdAt": "2024-07-06T07:11:59.705Z",
"updatedAt": "2024-07-06T07:11:59.705Z"
}