UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

28 lines (27 loc) 1.02 kB
import { BaseAPI } from '../../../common/BaseAPI'; import Configuration from '../../../common/Configuration'; import PlayerLicenseAnalytics from '../../../models/PlayerLicenseAnalytics'; /** * AnalyticsApi - object-oriented interface * @export * @class AnalyticsApi * @extends {BaseAPI} */ export default class AnalyticsApi extends BaseAPI { constructor(configuration: Configuration); /** * @summary Activate Analytics * @param {string} licenseId Id of the Player License * @param {PlayerLicenseAnalytics} playerLicenseAnalytics The Analytics key to be added to the Player License * @throws {BitmovinError} * @memberof AnalyticsApi */ create(licenseId: string, playerLicenseAnalytics?: PlayerLicenseAnalytics): Promise<PlayerLicenseAnalytics>; /** * @summary Deactivate Analytics * @param {string} licenseId Id of license * @throws {BitmovinError} * @memberof AnalyticsApi */ delete(licenseId: string): Promise<PlayerLicenseAnalytics>; }