https://github.com/ciscodevnet/webex-device-api-examples
REST API Examples for Webex Devices APIs through Webex Platform
https://github.com/ciscodevnet/webex-device-api-examples
deskpro device-management roomkit roomos webex xapi
Last synced: 7 months ago
JSON representation
REST API Examples for Webex Devices APIs through Webex Platform
- Host: GitHub
- URL: https://github.com/ciscodevnet/webex-device-api-examples
- Owner: CiscoDevNet
- Created: 2020-06-04T21:58:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-17T00:48:34.000Z (over 1 year ago)
- Last Synced: 2025-04-14T22:03:15.561Z (7 months ago)
- Topics: deskpro, device-management, roomkit, roomos, webex, xapi
- Language: JavaScript
- Homepage:
- Size: 35.2 KB
- Stars: 9
- Watchers: 16
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Webex Devices APIs example scripts
Here you'll find scripts that illustrate how to use the [Devices](https://developer.webex.com/docs/api/v1/devices) and [Device Configurations](https://developer.webex.com/docs/api/v1/device-configurations) APIs.
## How to run the scripts
1. Make sure you have node installed, either [directly](https://nodejs.org/en/download/) or through a [package manager](https://nodejs.org/en/download/package-manager/).
2. Install depencies: `npm install`
3. Edit the script you want to run. Most will for example have a `const ACCESS_TOKEN = "enter your access token here";` line that you'll need to update with your [token](https://developer.webex.com/docs/api/getting-started#accounts-and-authentication). Read through the comments in the script to see if there is more you need to fill in.
4. Run the script: `node `
## The scripts
**bulk-signage-config-example.js**: Enables signage and sets it to `nrk.no` for all devices with the tag `signage`.
**bulk-patch.js**: Sets all specified configs on all of the devices that match the specified search criteria. Useful to bulk apply configurations to a large set of devices.
**cloudxAPI-multiline-example.js** - Example of how to use Cloud xAPI to do a Multiline Command directly to the device using Webex Platform as a proxy
**cloudxAPI-multiline-booking.js** - Example of how to use Cloud xAPI to do a Booking Put Request which is new for Cisco Webex RoomOS Devices from August 2020