Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 150
A bot has been created to respond to alarm messages. A developer is now creating a Webhook to allow the bot to respond to messages.
Which format allows the Webhook to respond to messages for the bot within Webex?
Answer options
- A. GET /messages?personId=me&roomId=NETWORK_STATUS Authorization: Bearer THE_BOTS_ACCESS_TOKEN
- B. GET /messages?mentionedPeople=me&roomId=NETWORK_STATUS Authorization: Bearer THE_BOTS_ACCESS_TOKEN
- C. GET /messages?mentionedBot=me&roomId=NETWORK_STATUS Authorization: Bearer THE_BOTS_ACCESS_TOKEN
- D. GET /messages?botId=me&roomId=NETWORK_STATUS Authorization: Bearer THE_BOTS_ACCESS_TOKEN
Correct answer: B
Explanation
The correct answer is B because the 'mentionedPeople' parameter allows the Webhook to listen for messages that mention the bot. The other options do not correctly identify the bot's presence in messages, which is essential for responding to alarm messages effectively.