cloudflare
Version:
The official TypeScript library for the Cloudflare API
20 lines • 832 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflare/resource';
import * as LanguageAPI from 'cloudflare/resources/stream/captions/language/language';
export class Captions extends APIResource {
constructor() {
super(...arguments);
this.language = new LanguageAPI.Language(this._client);
}
/**
* Lists the available captions or subtitles for a specific video.
*/
get(identifier, params, options) {
const { account_id } = params;
return this._client.get(`/accounts/${account_id}/stream/${identifier}/captions`, options)._thenUnwrap((obj) => obj.result);
}
}
(function (Captions) {
Captions.Language = LanguageAPI.Language;
})(Captions || (Captions = {}));
//# sourceMappingURL=captions.mjs.map