content.mjs 742 B

123456789101112131415161718
  1. // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
  2. import { APIResource } from "../../../core/resource.mjs";
  3. import { buildHeaders } from "../../../internal/headers.mjs";
  4. import { path } from "../../../internal/utils/path.mjs";
  5. export class Content extends APIResource {
  6. /**
  7. * Retrieve Container File Content
  8. */
  9. retrieve(fileID, params, options) {
  10. const { container_id } = params;
  11. return this._client.get(path `/containers/${container_id}/files/${fileID}/content`, {
  12. ...options,
  13. headers: buildHeaders([{ Accept: 'application/binary' }, options?.headers]),
  14. __binaryResponse: true,
  15. });
  16. }
  17. }
  18. //# sourceMappingURL=content.mjs.map