@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
28 lines (27 loc) • 831 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const BaseAPI_1 = require("../../common/BaseAPI");
const Mapper_1 = require("../../common/Mapper");
const AccountInformation_1 = require("../../models/AccountInformation");
/**
* InformationApi - object-oriented interface
* @export
* @class InformationApi
* @extends {BaseAPI}
*/
class InformationApi extends BaseAPI_1.BaseAPI {
constructor(configuration) {
super(configuration);
}
/**
* @summary Current Account Information
* @throws {BitmovinError}
* @memberof InformationApi
*/
get() {
return this.restClient.get('/account/information', {}).then((response) => {
return (0, Mapper_1.map)(response, AccountInformation_1.default);
});
}
}
exports.default = InformationApi;