Exam 200-901 Question id=6254 Understanding and Using APIs

Refer to the exhibit.

def get_result() url = "https://sandboxdnac.cisco.com/dna/system/api/v1/auth/token" resp = requests.post(url, auth=HTTPBasicAuth(DNAC_USER, DNAC_PASSWORD)) result = resp.json()['Token'] return result

What does the Python function do?

A. It returns HTTP Basic Authentication.
B. It returns DNAC user and password.
C. It reads a token from a local JSON file and posts the token to the DNAC URL.
D. It returns an authorization token.

https://developer.cisco.com/docs/dna-center/#!authentication-api



WARNING

the answers are mixed, do not specify in the comment number or the letter of the answer
please write answer#A instead A, answer#B instead B...
Subject:

only logged users can write comments