Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve data prior to authorization date #14

Open
lars-petter-hauge opened this issue Feb 4, 2020 · 6 comments
Open

Retrieve data prior to authorization date #14

lars-petter-hauge opened this issue Feb 4, 2020 · 6 comments

Comments

@lars-petter-hauge
Copy link

From what I understand, currently it is only possible to retrieve data that has been synced after the authorization date. Would it not be beneficial to make it possible to also access data prior to that date? Or at least let it be up to the user authorizing the application whether it should allow it to retrieve data from the past?

By the way, I'm really happy that the API exists at all!

@asib
Copy link

asib commented May 18, 2020

It's also ridiculously difficult to scrape flow.polar.com in order to programatically export historical sessions. I have a good year and a half of historical data that I wanted to sync to a Strava account I've just created, but Polar expect me to individually export each of my hundreds of historical sessions in order to do so.

@RoelVanderPaal
Copy link

@asib you can export a zip with all data with this procedure: https://support.polar.com/en/how-to-download-all-your-data-from-polar-flow

@mado89
Copy link

mado89 commented Jun 2, 2022

@asib Which endpoints did you use to query all the sessions in order to export them?

@fortysix2ahead
Copy link

@mado89 The endpoints of flow.polar.com are not documented anywhere. Unfortunately you have fire up the developer tools of your browser to find out which endpoints are called.

@mado89
Copy link

mado89 commented Jun 3, 2022

Thx. But this also means working out how to authenticate against a different API because this API needs a polar_session cookie and not a token, right?

@asib
Copy link

asib commented Jun 3, 2022

@asib Which endpoints did you use to query all the sessions in order to export them?

I didn't try to use the API, I just used selenium - see this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants