QuestionQ62

VerifiedUnderstanding and Using APIs

Refer to the exhibit.

Question Image

What is the purpose of the Python function?

Explanation

The Cisco DNA Center authentication endpoint accepts a POST request using HTTP Basic Authentication and returns a JSON response containing a Token value. Extracting resp.json()['Token'] returns the authorization token used for subsequent API requests.

Learn more

Community Discussion

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