

def get(self, historics_id=None, maximum=None, page=None, with_estimate=None):
    ' Get the historics query with the given ID, if no ID is provided then get a list of historics queries.\n\n            Uses API documented at http://dev.datasift.com/docs/api/rest-api/endpoints/historicsget\n\n            :param historics_id: (optional) ID of the query to retrieve\n            :type historics_id: str\n            :param maximum: (optional) maximum number of queries to recieve (default 20)\n            :type maximum: int\n            :param page: (optional) page to retrieve for paginated queries\n            :type page: int\n            :param with_estimate: include estimate of completion time in output\n            :type with_estimate: bool\n            :param historics_id: playback id of the query\n            :type historics_id: str\n            :return: dict of REST API output with headers attached\n            :rtype: :class:`~datasift.request.DictResponse`\n            :raises: :class:`~datasift.exceptions.DataSiftApiException`, :class:`requests.exceptions.HTTPError`\n        '
    params = {
        'id': historics_id,
    }
    if maximum:
        params['max'] = maximum
    if page:
        params['page'] = page
    params['with_estimate'] = (1 if with_estimate else 0)
    return self.request.get('get', params=params)

dataset/ETHPy150Open datasift/datasift-python/datasift/historics.py Historics.get/original