Which code must be added to complete the get_auth_token() function?

Refer to the exhibit.

A developer creates a script to obtain a list of devices by using the Cisco DNA Center API. The remote server authorizes the request only if an authentication token is supplied in the headers. A function named get_auth_token() must retrieve a valid token by using HTTP Basic Authentication. Which code must be added to complete the get_auth_token() function?
A. resp = requests.post(url, auth=HTTPBasicAuth(DNAC_USER, DNAC_PASSWORD)) token = resp.json()[‘Token’]return token
B. resp = requests.post(url, auth=(DNAC_USER, DNAC_PASSWORD)) token = resp.json ()[‘Token’] return token
C. resp = http.post(url, auth=HTTPBasicAuth(DNAC_USER, DNAC_PASSWORD)) token = resp.json()[‘Token’]return token
D. resp = http.post(url, auth=(DNAC_USER, DNAC_PASSWORD)) token = resp.json()[‘Token’] return token

How To Pass 200-901 Exam?

Cisco 200-901 PDF dumps.

High quality 200-901 PDF and software. VALID exam to help you pass.

cisco-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.