workspace-integrations

Workspaces integrations lets you easily create apps for Cisco collaboration devices in a secure and modern fashion.

This is the generated API reference document for the Node.js SDK. For an introduction to the SDK, see the project's GitHub page.

For a general introduction to Workspace Integrations, see the overview guide on developer.webex.com.

Getting started

To connect your workspace integration to Webex, you need to use the connect function, and provide it your IntegrationConfig. This will give you an Integration object that you can use to access the devices and the Webex APIs.

const { connect } = require('workspace-integrations');

const config = {
clientId: "C12ba...",
clientSecret: "fdbcd00...",
activationCode: "eyJraWQiOiJQSnM..."
notifications: 'longpolling',
};

connect(config).then(async (integration) => {
const devices = await integration.devices.getDevices({ tag: 'wi-demo' });
const device = devices[0];
const msg = {
Text: 'Hello World',
Duration: 3,
};
integration.xapi.command(device.deviceId, 'UserInterface Message Alert Display', msg);
});

Generated using TypeDoc