展示を参照してください。開発者はトークンを使用して Cisco DNA Center API からデータを収集し、リクエストを送信する Python スクリプトを準備する必要があります。Cisco DNA Center API からトークンを取得するには、コードが欠落しているスニペットにどのコード行を配置する必要がありますか。
正解:C
To obtain a token from the Cisco DNA Center API using HTTP Basic Authentication, the requests library in Python is used. The missing line of code in the snippet should set up HTTP Basic Authentication as follows: auth=HTTPBasicAuth(user,password) * HTTPBasicAuth: This is a class from the requests.auth module that handles HTTP Basic Authentication. * user, password: These are the credentials required for authentication. The correct line of code that completes the script to obtain a token from Cisco DNA Center API is: python Copy code auth=HTTPBasicAuth(user,password) References: * Requests Library Documentation - HTTPBasicAuth * Cisco DevNet Associate Certification Guide