Question 1
Which REST API request is used to list all the Webex Room Kit devices within a large organization so that a new custom In-Room Control can be deployed on all the devices?
var request = require("request");
var options = { method: 'GET',
url: 'https://api.ciscospark.com/v1/devices',
qs: { product: 'Roomkit' },
headers:
{ 'Content Type': 'application/json',
Authorization: 'Bearer Yz6FgoWx7Pgb57C9z' }};
request(options, function(error, reponse, body) {
if (error) throw new Error(error);
console.log(body);
});
var request = require("request");
var options = { method: 'GET',
url: 'https://api.ciscospark.com/v1/devices',
qs: { product: 'Roomkit', placeID: 'Yzb60gRx3kBq5iB2w' },
headers:
{ 'Content Type': 'application/json',
Authorization: 'Bearer Yz6FgoWx7Pgb57C9z' }};
request(options, function(error, reponse, body) {
if (error) throw new Error(error);
console.log(body);
});
var request = require("request");
var options = { method: 'GET',
url: 'https://api.ciscospark.com/v1/devices/Yzb60gRx3kBq5iB2w',
qs: { deviceName: 'Roomkit' },
headers:
{ 'Content Type': 'application/json',
Authorization: 'Bearer Yz6FgoWx7Pgb57C9z' }};
request(options, function(error, reponse, body) {
if (error) throw new Error(error);
console.log(body);
});
var request = require("request");
var options = { method: 'GET',
url: 'https://api.ciscospark.com/v1/devices',
qs: { upgradeChannel: 'Roomkit' },
headers:
{ 'Content Type': 'application/json',
Authorization: 'Bearer Yz6FgoWx7Pgb57C9z' }};
request(options, function(error, reponse, body) {
if (error) throw new Error(error);
console.log(body);
});
- AOption A:
Option A
- BOption B:
Option B
- COption C:
Option C
- DOption D:
Option D
Show answer and explanation
Correct answer: A