UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

17 lines 830 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../../resource.mjs"; import { SinglePage } from "../../../../../pagination.mjs"; export class Bindings extends APIResource { /** * Fetch script bindings from a script uploaded to a Workers for Platforms * namespace. */ get(dispatchNamespace, scriptName, params, options) { const { account_id } = params; return this._client.getAPIList(`/accounts/${account_id}/workers/dispatch/namespaces/${dispatchNamespace}/scripts/${scriptName}/bindings`, BindingGetResponsesSinglePage, options); } } export class BindingGetResponsesSinglePage extends SinglePage { } Bindings.BindingGetResponsesSinglePage = BindingGetResponsesSinglePage; //# sourceMappingURL=bindings.mjs.map