#NEWLINE# def __init__( self , zdesk_url , zdesk_email = None , zdesk_password = None , zdesk_token = False , headers = None , client_args = None , api_version = 2 ) : #NEWLINE# #INDENT# '\n        Instantiates an instance of Zendesk. Takes optional parameters for\n        HTTP Basic Authentication\n\n        Parameters:\n        zdesk_url - https://company.zendesk.com (use http if not SSL enabled)\n        zdesk_email - Specific to your Zendesk account (typically email)\n        zdesk_password - Specific to your Zendesk account or your account\'s\n            API token if zdesk_token is True\n        zdesk_token - use api token for authentication instead of user\'s\n            actual password\n        headers - Pass headers in dict form. This will override default.\n        client_args - Pass arguments to http client in dict form.\n            {\'cache\': False, \'timeout\': 2}\n            or a common one is to disable SSL certficate validation\n            {"disable_ssl_certificate_validation": True}\n        ' #NEWLINE# self . _zdesk_url = None #NEWLINE# self . _zdesk_email = None #NEWLINE# self . _zdesk_password = None #NEWLINE# self . _zdesk_token = False #NEWLINE# self . client = requests . Session ( ) #NEWLINE# self . zdesk_url = zdesk_url . rstrip ( '/' ) #NEWLINE# self . zdesk_email = zdesk_email #NEWLINE# self . zdesk_password = zdesk_password #NEWLINE# self . zdesk_token = zdesk_token #NEWLINE# self . client_args = ( copy . deepcopy ( client_args ) or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . headers = ( copy . deepcopy ( headers ) or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# if ( self != 2 ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Unsupported Zendesk API Version: %d' % api_version ) )