3 - Using Strava API with Python - Strava API for Beginners

preview_player
Показать описание
In this video we access the Strava API using Python using the requests library.
Рекомендации по теме
Комментарии
Автор

Thank you for the excellent video! I had a couple of authorization issues, which had to do with the scope of "read" vs "read_all". I just wanted to point out to others that it's worth viewing your video of doing this in Postman before doing this. The refresh token that Strava gives you in your application page is "read" only. I followed your video on doing this in Postman and used that generated refresh code in my Python script which made it function.

taylorkravits
Автор

Thanks for this tutorial/explainer, it was very helpful

russ-johnston
Автор

For those who met the error: {'message': 'Authorization Error', 'errors': [{'resource': 'Athlete', 'field': 'access_token', 'code': 'invalid'}]}. Try to go back to the authorization part, and change "scope=read" to "scope=activity:read_all". Hope this help!

huidu
Автор

Great tutorial!! I have been trying to subscribe to the webhooks with no luck. if you have any experience with this I would love to hear it. I hope you are having a good one.

erinclaudio
Автор

hey thanks very much for this! The documentation was quite cryptic as there were too many options for other paths such as using the swagger client and stravalib.
Its interesting that Strava is the only provider allowing access to our own data... Garmin and Trainingpeaks only allow this functionality to businesses.

Underliquid
Автор

Thanks for the tutorial! Can you tell me how to use "All models" like CadenceStream?

marcelf.
Автор

Greetings.

Thank you for this step by step video. I appreciate it!

Would you be willing to create a similar video to "create a manual activity" from Postman/Python? For example, I do 30 minutes of stretching after each run but I don't necessarily record it using Garmin. Currently, I log into Strava and create this activity manually. Maybe the Python script can accept activity name and type, start time and duration as parameters, and create the activity? That'd be immensely helpful.

Thank you!

YooperInWonderland
Автор

These videos are great really helped me out,

cambostrongbo
Автор

Hi, towards the very end, this was the json I received:
{'message': 'Authorization Error', 'errors': [{'resource': 'AccessToken', 'field': 'activity:read_permission', 'code': 'missing'}]}

How do I fix this?

gcs
Автор

Thanks for the super comprehensive tutorial and explanation. You make me know how the authentication process works by using Strava API.
If yes, how do you think the efficiency between these modules? Thanks!

huaminghuang
Автор

I followed all the steps.I tried to extract the access token but when i use this access token to see my activities this error message "{'message': 'Authorization Error', 'errors': [{'resource': 'AccessToken', 'field': 'activity:read_permission', 'code': 'missing'}]}" appears

christos
Автор

very helpful video - thanks! How would you loop through all pages of activity in python?

surflad
Автор

How do you get all the client id, refresh token etc? You copy them now from Postman but you didnt show how you obtained that info.

tomngo
Автор

Hi

Thanks you for the videos which are very useful. I've succeded to complete the first one using postman. But i couldn't complete this one. This is very frustrating since there is only one step to get it done.
I got the access token from the post request but i couldn't get the data with the get request.

After getting the access token through python or postman, i get this error :
{'message': 'Authorization Error', 'errors': [{'resource': 'Athlete', 'field': 'access_token', 'code': 'invalid'}]}

Any ideas ?

Regards

STChaosman
Автор

My 'access_token' received by Python code is ALWAYS DIFFERENT of the 'access_token' from Swagger Playground. So, on Swagger Playground all is running/working, but in my Python code I received the message: {'message': 'Authorization Error', 'errors': [{'resource': 'AccessToken', 'field': 'activity:read_permission', 'code': 'missing'}]}. Someone can help me?

acturcato
Автор

Hey Fran, sorry for bothering, i have sent you a message on facebook because i'm stuck in the end.
I keep getting this error : {'message': 'Authorization Error', 'errors': [{'resource': 'AccessToken', 'field': 'activity:read_permission', 'code': 'missing'}]}

BLOEDLINK
Автор

Thanks for the tutorial! Do you know how to fix this error: KeyError: 'access_token' on line 18 of the code?

ryunosukeyanashita
Автор

I used the code from your github but I keep on getting a json back that says {'message': 'Authorization Error', 'errors': [{'resource': 'AccessToken', 'field': 'activity:read_permission', 'code': 'missing'}]} . Am I missing something when setting up the app through strava?

shivshahh
visit shbcf.ru