headers = {‘x-auth-token’: ‘eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzl1NiJ9.ey
FILL BLANK
Fill in the blanks to complete the Python script to retrieve a list of network devices using the Cisco DNA import requests
url = “https://myDNAserver/dna/intent/api/v1/network-device”
payload = {}
headers = {‘x-auth-token’: ‘eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzl1NiJ9.ey.JzdWloOil1ZDE0OWZkMjhlZTY2
MmQ3NGM5YzE5ZTliLmYzMCLslmV4CcCI6MTU3MjM3ODE%MCwidXNlcm5hbWUiOiJraX
N370940885.zhK5LPQd501ZUpZI0IH_qrgOXttlNbxSFFF7JOEtRls’
}
response = requests.request( _______________________ , url,
headers = _________________________, data = _______________________ )
print(response.text.encode(‘utf8’))
Answer: response = requests.request( method , url,
headers = headers, data = request.get_data )
print(response.text.encode(‘utf8’))
Explanation:
Reference: https://www.programcreek.com/python/example/64946/flask.request.get_data
Latest 200-901 Dumps Valid Version with 211 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
request.get_data()
Are the brackets necessary ?