The reference code below depicts how the Rest configuration can be setup to allow basic authentication token between the RestClient and the Collector end point.

The Collector SDK allows the programmer to consume Collector end point APIs that might be accessed by basic authentication token. The reference code below depicts how the RestConfiguration can be setup to allow basic authentication token between the RestClient and the Collector end point.

# Setting up RestConfiguration with SSLglobal 
rest_configuration = RestConfiguration() 
rest_configuration.host = "https://127.0.0.1:8080"
rest_configuration.verify_ssl = False
rest_configuration.username = "username"
rest_configuration.password = "password"
auth-token = vcdconfiguration.get_basic_auth_token() 
response = rest_client.RestClient(configuration= rest_configuration) \              .call_api("/resource_path",'POST'_preload_content=False,               _return_http_data_only=True,header_params={'Accept':  'application/*+xml', 'Authorization': auth-token})