Strava Simple OAuth API Example: python & requests-oauthlib

preview_player
Показать описание
Strava Simple OAuth API Example: python & requests-oauthlib
In this simple oauth api example we register a app with Strava, set up a coding environment, code a simple api example to get an auth code, exchange it for a token, and finally make a call to Strava's api to return an athlets profile.

00:24 - Registering an app with Strava.
02:24 - Setting up coding environment.
04:39 - Coding the run file.
17:07 - Running code and examining response.

Links:

Music provided by YouTube Audio Library
"Who Do You Think I Think You Are?", Mini Vandals
Рекомендации по теме
Комментарии
Автор

This is just super useful! Thank you for making this and for making the code available in your repo.

oivindlangeland
Автор

Excellent video. Perfect balance for us newer folks. FWIW: I think I spent more time getting Github setup w VSCode for the project and https redirect (can't use local http server for OAuth2) than anything else. So I def learned a lot more than just OAuth! Great pointers on using venv and .gitignore to protect the innocent.

cras
Автор

One of the better examples on this I have seen without a doubt! I am working on my own fitness dashboard. It would be ideal to have the authorization to be automatic. So when I log inactivity it is uploaded either through a cron job refresh button, without the copy and paste. Is this even possible? If not I will probably follow your lead except have the click here and paste section built into the UI.

Chase_Andrew
visit shbcf.ru