Valid 200-901 Dumps shared by ExamDiscuss.com for Helping Passing 200-901 Exam! ExamDiscuss.com now offer the newest 200-901 exam dumps, the ExamDiscuss.com 200-901 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 200-901 dumps with Test Engine here:
Refer to the exhibit. A developer creates a Python script that queries Cisco Webex. When the script is executed, a 401 code is returned. After troubleshooting, the developer discovers that the service is missing privileges. Which change to the header in line 4 of the script results in the code 200?
Correct Answer: A
The 401 Unauthorized status code indicates that the request lacks valid authentication credentials. When using OAuth2 for authenticating with the Cisco Webex API, the correct approach is to include a Bearer token in the Authorization header. header = {"Authorization": "Bearer YOUR_TOKEN"} This option correctly formats the Authorization header, which is necessary for the Webex API to authenticate the request. The Bearer token is a type of token used by OAuth2 to access protected resources. * Authorization Header: The header must contain the key "Authorization" with the value formatted as "Bearer YOUR_TOKEN". * Bearer Token: The Bearer keyword followed by a space and the token itself is the correct way to pass the OAuth2 token in the header. Option B: * Incorrect because it uses "Authentication" instead of "Authorization". Option C: * Incorrect because it combines Authentication and Bearer incorrectly without a space. Option D: * Incorrect for the same reason as Option C. References: * Cisco Webex API Authentication * OAuth2 Authorization Header =====================