16 lines
618 B
JavaScript
16 lines
618 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
import { APIResource } from "../../resource.mjs";
|
|
export class Scrape extends APIResource {
|
|
/**
|
|
* Get meta attributes like height, width, text and others of selected elements.
|
|
*/
|
|
create(params, options) {
|
|
const { account_id, cacheTTL, ...body } = params;
|
|
return this._client.post(`/accounts/${account_id}/browser-rendering/scrape`, {
|
|
query: { cacheTTL },
|
|
body,
|
|
...options,
|
|
})._thenUnwrap((obj) => obj.result);
|
|
}
|
|
}
|
|
//# sourceMappingURL=scrape.mjs.map
|