26 lines
982 B
JavaScript
26 lines
982 B
JavaScript
"use strict";
|
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Embed = void 0;
|
|
const resource_1 = require("../../resource.js");
|
|
class Embed extends resource_1.APIResource {
|
|
/**
|
|
* Fetches an HTML code snippet to embed a video in a web page delivered through
|
|
* Cloudflare. On success, returns an HTML fragment for use on web pages to display
|
|
* a video. On failure, returns a JSON response body.
|
|
*
|
|
* @example
|
|
* ```ts
|
|
* const embed = await client.stream.embed.get(
|
|
* 'ea95132c15732412d22c1476fa83f27a',
|
|
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
|
|
* );
|
|
* ```
|
|
*/
|
|
get(identifier, params, options) {
|
|
const { account_id } = params;
|
|
return this._client.get(`/accounts/${account_id}/stream/${identifier}/embed`, options);
|
|
}
|
|
}
|
|
exports.Embed = Embed;
|
|
//# sourceMappingURL=embed.js.map
|