How to use the webex.init function in webex

To help you get started, we’ve selected a few webex examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github howdyai / botkit / packages / botbuilder-adapter-webex / src / webex_adapter.ts View on Github external
public constructor(config: WebexAdapterOptions) {
        super();

        this.options = {
            ...config
        };

        if (!this.options.access_token) {
            let err = 'Missing required parameter `access_token`';
            if (!this.options.enable_incomplete) {
                throw new Error(err);
            } else {
                console.error(err);
            }
        } else {
            this._api = Webex.init({
                credentials: {
                    authorization: {
                        access_token: this.options.access_token
                    }
                }
            });

            if (!this._api) {
                let err = 'Could not create the Webex Teams API client';
                if (!this.options.enable_incomplete) {
                    throw new Error(err);
                } else {
                    console.error(err);
                }
            }
        }

webex

SDK for Cisco Webex

Cisco EULA (https://www.cisco…
Latest version published 14 days ago

Package Health Score

81 / 100
Full package analysis

Popular webex functions