def _get(self, call, url=None, **kwargs):
        """
        Sends an HTTP GET request to the specified URL, and returns the JSON
        object received (if any), or whatever answer it got otherwise.
        """
        if not url:
            url = self.get_api_url()

        response = self.session.get(url + call, **kwargs)

        try:
            return response.json()
        except __HOLE__:
            return response.text
dataset/ETHPy150Open Doist/todoist-python/todoist/api.py/TodoistAPI._get