QuestionQ590

Understanding and Using APIs

Question Image

Refer to the exhibit. A collaboration engineer developed a script to automate information gathering by supplying an individual's email address.

When the engineer tests the script, a 401 error is returned. Which command corrects the script?

  • A Add ג€Authorizationג€: ג€Bearer <WEBEX_TOKEN>ג€ to the headers.
  • B Add ג€Authenticationג€: ג€Basic <WEBEX_TOKEN>ג€ in the base_url after ג€https://ג€.
  • C Add ג€<Authorization>:<password>@ג€ in the base_url after ג€https://ג€.
  • D Add ג€Authenticationג€: ג€Bearer <WEBEX_TOKEN>ג€ to the headers.
Explanation

Webex REST API requests must provide an API access token in the Authorization header using the Bearer scheme, for example Authorization: Bearer <WEBEX_TOKEN>. A request to the People API also needs an access token with the required people-read scope; an Accept header alone does not authenticate the request. Getting and Using your Personal Access Token

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!