cloudflare
Version:
The official TypeScript library for the Cloudflare API
23 lines • 906 B
TypeScript
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as EmbedAPI from 'cloudflare/resources/stream/embed';
export declare class Embed extends 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.
*/
get(identifier: string, params: EmbedGetParams, options?: Core.RequestOptions): Core.APIPromise<string>;
}
export type EmbedGetResponse = string;
export interface EmbedGetParams {
/**
* The account identifier tag.
*/
account_id: string;
}
export declare namespace Embed {
export import EmbedGetResponse = EmbedAPI.EmbedGetResponse;
export import EmbedGetParams = EmbedAPI.EmbedGetParams;
}
//# sourceMappingURL=embed.d.ts.map