Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 425
An application is developed in order to communicate with Cisco Webex. For reporting, the application must retrieve all the messages sent to a Cisco Webex room on a monthly basis.
Which action calls /v1/messages directly?
Answer options
- A. Set up a webhook that has messages as the resource type and store the results locally.
- B. Utilize the pagination functionality by defining the max property.
- C. Recursively call the /v1/messages endpoint by using the beforeMessage property.
- D. Filter the response results by specifying the created property in the request.
Correct answer: C
Explanation
Option C is correct because it directly calls the /v1/messages endpoint multiple times to retrieve all messages by using the beforeMessage property for pagination. Option A involves setting up a webhook, which does not directly call the endpoint. Option B refers to pagination but does not specify how to retrieve all messages. Option D is about filtering results after retrieval, not about directly calling the endpoint.