in subscribers/python/download-entitled-assets/download-entitled-assets.py [0:0]
def get_all_revisions(data_set_id):
revisions = []
res = dx.list_data_set_revisions(DataSetId=data_set_id)
next_token = res.get('NextToken')
revisions += res.get('Revisions')
while next_token:
res = dx.list_data_set_revisions(DataSetId=data_set_id,
NextToken=next_token)
revisions += res.get('Revisions')
next_token = res.get('NextToken')
return revisions