UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

18 lines (15 loc) 562 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from "../../core"; import { APIResource } from "../../resource"; import { type Response } from "../../_shims/index"; export class Content extends APIResource { /** * Snippet Content */ get(zoneIdentifier: string, snippetName: string, options?: Core.RequestOptions): Core.APIPromise<Response> { return this._client.get(`/zones/${zoneIdentifier}/snippets/${snippetName}/content`, { ...options, __binaryResponse: true, }); } }