cloudflare
Version:
The official TypeScript library for the Cloudflare API
21 lines • 824 B
JavaScript
;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Blobs = void 0;
const resource_1 = require("../../../resource.js");
class Blobs extends resource_1.APIResource {
/**
* Fetch base image. For most images this will be the originally uploaded file. For
* larger images it can be a near-lossless version of the original.
*/
get(imageId, params, options) {
const { account_id } = params;
return this._client.get(`/accounts/${account_id}/images/v1/${imageId}/blob`, {
...options,
headers: { Accept: 'image/*', ...options?.headers },
__binaryResponse: true,
});
}
}
exports.Blobs = Blobs;
//# sourceMappingURL=blobs.js.map