campbellr / flow-client

A python client library to interact with Polar Flow
Apache License 2.0
10 stars 3 forks source link

Wrong tcx_url #3

Open ronek22 opened 7 years ago

ronek22 commented 7 years ago

Hi, Link to download activity in .tcx format has been changed. Now it looks like this: https://flow.polar.com/api/export/training/tcx/1718507404?compress=true I suggest new way to create tcx_url variable:

idActivity = filter(str.isdigit,str(self.data['url']))
tcx_url = FLOW_URL + '/api/export/training/tcx/' + idActivity + '?compress=true'
campbellr commented 7 years ago

Thanks @ronek22

I don't really use my M400 anymore, so I've been neglecting this library. I'll try to make some time to update it.