cloudflare
Version:
The official TypeScript library for the Cloudflare API
17 lines • 590 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflare/resource';
export class ContentV2 extends APIResource {
/**
* Fetch script content only
*/
get(scriptName, params, options) {
const { account_id } = params;
return this._client.get(`/accounts/${account_id}/workers/scripts/${scriptName}/content/v2`, {
...options,
__binaryResponse: true,
});
}
}
(function (ContentV2) {
})(ContentV2 || (ContentV2 = {}));
//# sourceMappingURL=content-v2.mjs.map