#NEWLINE# def _parse_and_set_auth_info( self , data ) : #NEWLINE# #INDENT# result = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . account_id = data [ 'accountId' ] #NEWLINE# self . api_url = data [ 'apiUrl' ] #NEWLINE# self . download_url = data [ 'downloadUrl' ] #NEWLINE# self . auth_token = data [ 'authorizationToken' ] #NEWLINE# parsed_api_url = urlparse . urlparse ( self . api_url ) #NEWLINE# self . api_host = parsed_api_url . netloc #NEWLINE# parsed_download_url = urlparse . urlparse ( self . download_url ) #NEWLINE# self . download_host = parsed_download_url . netloc #NEWLINE# return result