markwk / qs_ledger

Quantified Self Personal Data Aggregator and Data Analysis
MIT License
990 stars 199 forks source link

strava - authorization flow change #1

Open michalszczecinski opened 5 years ago

michalszczecinski commented 5 years ago

hi Mark, thanks for sharing strava data downloader code. All works smoothly until when I try to pull activities. I believe they have changed the API settings and now that newly generated general token is not able to access activities (is just of scope read, whereas read_all scope is required). You can read more about this here:

https://developers.strava.com/docs/oauth-updates/

and here is stack overflow post with details of potential solution: https://stackoverflow.com/questions/52880434/problem-with-access-token-in-strava-api-v3-get-all-athlete-activities

Also stravalib seems to include some code that should help with this: https://github.com/hozn/stravalib#authentication

Thanks!

markwk commented 5 years ago

Thanks @michalszczecinski. The code example looks helpful, though it seems like we should try and come up with a standard and generic Oauth flow for any of the data points that require this.

michalszczecinski commented 4 years ago

also came across this: https://github.com/sladkovm/stravaio

kriszieba commented 4 years ago

Maybe this can be a solution? https://github.com/markwk/qs_ledger/pull/15

markwk commented 3 years ago

Hi @kriszieba your code is a nice addition but not entirely sure that your documentation makes it clear on the steps required to use it. I'd also like to see a tighter integration or closer step-by-step walkthrough on using it too. Thanks!