def __init__(self, zdesk_url, zdesk_email=None, zdesk_password=None,
                 zdesk_token=False, headers=None, client_args=None,
                 api_version=2):
        # Set attributes necessary for API
        self._zdesk_url = None
        self._zdesk_email = None
        self._zdesk_password = None
        self._zdesk_token = False

        self.client = requests.Session()

        self.zdesk_url = zdesk_url.rstrip('/')
        self.zdesk_email = zdesk_email
        self.zdesk_password = zdesk_password
        self.zdesk_token = zdesk_token

        # Set headers
        self.client_args = copy.deepcopy(client_args) or {}
        self.headers = copy.deepcopy(headers) or {}

        if api_version != 2:
            raise ValueError("Unsupported Zendesk API Version: %d" %
                             api_version)
Instantiates an instance of Zendesk. Takes optional parameters for
dataset/ETHPy150Open fprimex/zdesk/zdesk/zdesk.py/Zendesk.__init__