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

Fill in the blanks to complete the Python script to request a service ticket using the APIC-EM REST API for the user “devnetuser”.
import requests import json controller = ‘devnetapi.cisco.com/sandbox/apic_em’ url = “https://” + controller + “api/va/ticket” payload = {‘username’: ‘________A_________’, ‘password’: ‘370940885’} header = {‘Content-type’: ‘application.json’} response = ___________B____________.post(url, data=json.dumps(payload), headers= ___________C___________, verify=False) r_json = response.json() print (r_json) ticket = r_json[“response”][“serviceTicket”] print(ticket)

A. devnetuser
B. requests
C. header

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