项目作者: CiscoDevNet

项目描述 :
REST API Examples for Webex Devices APIs through Webex Platform
高级语言: JavaScript
项目地址: git://github.com/CiscoDevNet/webex-device-api-examples.git
创建时间: 2020-06-04T21:58:59Z
项目社区:https://github.com/CiscoDevNet/webex-device-api-examples

开源协议:

下载


Webex Devices APIs example scripts

Here you’ll find scripts that illustrate how to use the Devices and Device Configurations APIs.

How to run the scripts

  1. Make sure you have node installed, either directly or through a 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. Read through the comments in the script to see if there is more you need to fill in.

  4. Run the script: node <script name>

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