While HxConvertSourceFile allows you to download multiple records from one user at a time, we provide here an alternative for you to download multiple recordings from multiple users at the same time.
Let’s say that you want to download all the records since January 1st, 2017. You would use this code:
from datetime import datetime
import hexoskin.client
api = hexoskin.client.HexoApi(api_key=’your key’, api_secret=’your secret’, auth=’user:password’)
recs = api.record.list({'start__gte':datetime(2017, 1, 1)})
for r in recs:
with open('record_{}'.format(r.id), 'wb') as f:
f.write(api.data.list({'record':r}, format=’application/octet-stream’)