17 lines
671 B
JavaScript
17 lines
671 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
import { APIResource } from "../../resource.mjs";
|
|
export class Markdown extends APIResource {
|
|
/**
|
|
* Gets markdown of a webpage from provided URL or HTML. Control page loading with
|
|
* `gotoOptions` and `waitFor*` options.
|
|
*/
|
|
create(params, options) {
|
|
const { account_id, cacheTTL, ...body } = params;
|
|
return this._client.post(`/accounts/${account_id}/browser-rendering/markdown`, {
|
|
query: { cacheTTL },
|
|
body,
|
|
...options,
|
|
})._thenUnwrap((obj) => obj.result);
|
|
}
|
|
}
|
|
//# sourceMappingURL=markdown.mjs.map
|