Cisco
300-920 · Question #60
300-920 Question #60: Real Exam Question with Answer & Explanation
Sign in or unlock 300-920 to reveal the answer and full explanation for question #60. The question stem and answer options stay visible for context.
Webex API Foundation
Question
Drag and Drop Question Drag and drop the code segments from the right of the screen into the targets on the left to create a script that retrieves a list of rooms using the Webex JavaScript API and outputs the title and ID to the console for one that matches the title "My Webex discussion". Not all code segments are used. Answer:
Exhibits
Answer Area
Drag items
webex.roomslist({
max:500
})var room = rooms.items.filter(function(room){
return room.title == "My Webex Discussion"
})resolve(function(rooms){getList({
max:500
})webex.rooms.getthen(function(rooms){var room = rooms.items.filter(function(room){
return room.title == "MyWebex Discussion"
})[0]var Webex = require('webex')var webex = Webex.init({
credentials: {
access_token: 'jhgdhdjuytut-hgjhgf'
}
})console.log(room.title, room.id)})catch(function(reason){
console.error(reason);
process.exit(1);
})
Unlock 300-920 to see the answer
You've previewed enough free 300-920 questions. Unlock 300-920 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Webex JavaScript SDK#Rooms API#Promise chaining#API authentication

