UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

23 lines 937 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../resource.mjs"; import * as LanguageAPI from "./language/language.mjs"; import { Language, } from "./language/language.mjs"; import { SinglePage } from "../../../pagination.mjs"; 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.getAPIList(`/accounts/${account_id}/stream/${identifier}/captions`, CaptionsSinglePage, options); } } export class CaptionsSinglePage extends SinglePage { } Captions.CaptionsSinglePage = CaptionsSinglePage; Captions.Language = Language; //# sourceMappingURL=captions.mjs.map