def query(self, api_token, queries, **kwargs):
        """Search all of a user's tasks using date, priority and label queries.

        :param api_token: The user's login api_token.
        :type api_token: str
        :param queries: A JSON list of queries to search. See examples
            `here <https://todoist.com/Help/timeQuery>`_.
        :type queries: list (str)
        :param as_count: If ``1`` then return the count of matching tasks.
        :type as_count: int
        :return: The HTTP response to the request.
        :rtype: :class:`requests.Response`
        """
        params = {
            'token': api_token,
            'queries': queries
        }
        return self._get('query', params, **kwargs)
Search all of a user's tasks using date, priority and label queries.

        :param api_token: The user's login api_token.
        :type api_token: str
        :param queries: A JSON list of queries to search. See examples
            `here <https://todoist.com/Help/timeQuery>`_.
        :type queries: list (str)
        :param as_count: If ``1`` then return the count of matching tasks.
        :type as_count: int
        :return: The HTTP response to the request.
        :rtype: :class:`requests.Response`