def METHOD_NAME(self, params: dict, path: str,
                  limit: Optional[int] = None,
                  offset: Optional[int] = None) -> list:
    """Helper function for getting objects from API with pagination
    parameters"""
    objs = []
    if any((offset, limit)):
        params.update({
            'offset': offset or None,
            'limit': limit or None,
        })
        resp = self._get(path, params=params)
        objs = resp.json()['items']
    else:
        offset = 0
        limit = 100
        params['limit'] = limit
        while True:
            params['offset'] = offset
            resp = self._get(path, params=params)
            items = resp.json()['items']
            objs.extend(items)
            if len(items) < limit:
                break
            offset += limit
    return objs