QuestionQ450

Understanding and Using APIs

Question Image

Refer to the exhibit. A developer must create a webhook that sends all Cisco Webex messages to a third-party tool by using the Cisco Webex API. The developer must authenticate with the API before making any API calls. To automate this process, a Python script is used. Which code snippet must be placed in the blank in the code?

  • A ‘Authentication’: f’Bearer {token}’,
  • B ‘Authentication’: f’Basic {token}’,
  • C ‘Authorization: f’Basic {token}’,
  • D ‘Authorization: f’Bearer {token}’,
Explanation

Cisco Webex REST API requests use an OAuth access token in the Authorization header with the Bearer scheme: Authorization: Bearer <access-token>. This identifies the token as a bearer token rather than HTTP Basic authentication.

Learn more

Community Discussion

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