UNPKG

@fusebit-int/zoom-provider

Version:
15 lines 677 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const framework_1 = require("@fusebit-int/framework"); class ZoomProvider extends framework_1.Internal.Provider.Activator { /* * This function will create an authorized wrapper of the Zoom SDK client. */ async instantiate(ctx, lookupKey) { const credentials = await this.requestConnectorToken({ ctx, lookupKey }); const client = new framework_1.Internal.Provider.ApiClient((url) => `https://api.zoom.us/v2${url}`, this.config.entityId, credentials.access_token); return client; } } exports.default = ZoomProvider; //# sourceMappingURL=ZoomProvider.js.map