cloudflare
Version:
The official TypeScript library for the Cloudflare API
22 lines • 798 B
TypeScript
import { APIResource } from "../../core/resource.js";
import { APIPromise } from "../../core/api-promise.js";
import { RequestOptions } from "../../internal/request-options.js";
export declare class BaseContent extends APIResource {
static readonly _key: readonly ['snippets', 'content'];
/**
* Fetches the content of a snippet belonging to the zone.
*/
get(snippetName: string, params: ContentGetParams, options?: RequestOptions): APIPromise<Response>;
}
export declare class Content extends BaseContent {
}
export interface ContentGetParams {
/**
* Use this field to specify the unique ID of the zone.
*/
zone_id: string;
}
export declare namespace Content {
export { type ContentGetParams as ContentGetParams };
}
//# sourceMappingURL=content.d.ts.map