parameters: (self)
return_statement: return response
docstring: Open an upload session on the server, and get a unique token back that we can use to authenticate for all future requests,
  		as long as the upload session is still open.
docstring_summary: Open an upload session on the server, and get a unique token back that we can use to authenticate for all future requests,
  		as long as the upload session is still open.
docstring_tokens: Open an upload session on the server and get a unique token back that we can use to authenticate for all future requests as long as the upload session is still open .
function: def get_upload_session_id(self):
  		"""
  		Open an upload session on the server, and get a unique token back that we can use to authenticate for all future requests,
  		as long as the upload session is still open.
  		"""
  		self._outputter.write("Getting upload session.")
  
  		# send password in the body so it can be encrypted over https
  		# username and password are taken from the netrc file
  		# at this point, the value in username_or_token is always a username, since
  		# this method's end result is obtaining a token.
  		body_data = base64.b64encode(json.dumps(
  				{
  					"destinationTag" : list(self.data_to_send["destinationTags"].keys())[0],
  					"username_or_token" : self.data_to_send["username"],
  					"password" : self.data_to_send["password"]
  				}
  			).encode('UTF-8'))
  
  		url_data = {"database" : self.data_to_send["destinationDatabase"]}
  
  		query = url_query(url=self._SERVICE_URL + "get_upload_session/", body=body_data, url_data=url_data)
  		response = query.send()
  		return response
function_tokens: def get_upload_session_id ( self ) : self . _outputter . write ( "Getting upload session." ) # send password in the body so it can be encrypted over https # username and password are taken from the netrc file # at this point, the value in username_or_token is always a username, since # this method's end result is obtaining a token. body_data = base64 . b64encode ( json . dumps ( { "destinationTag" : list ( self . data_to_send [ "destinationTags" ] . keys ( ) ) [ 0 ] , "username_or_token" : self . data_to_send [ "username" ] , "password" : self . data_to_send [ "password" ] } ) . encode ( 'UTF-8' ) ) url_data = { "database" : self . data_to_send [ "destinationDatabase" ] } query = url_query ( url = self . _SERVICE_URL + "get_upload_session/" , body = body_data , url_data = url_data ) response = query . send ( ) return response