updated get_objects to handle paginated api response