Thanks a lot!
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Latest posts made by jbarriga
-
Stravalib access through Pythonista
Hi everyone!
First post here. I am trying to access the Strava API on Pythonista. I downloaded Stash and installed the stravalib library. However, when I try to run the authentication code (or any of the code in the examples in the stravalib folder) I get the following error: "No module named 'arrow'". I am a bit confused as none of the these commands have an 'arrow' module. Thank you in advance for any help!from stravalib import Client
client = Client()
url = client.authorization_url(client_id=MY_STRAVA_CLIENT_ID,
redirect_uri='http://127.0.0.1:5000/authorization')from stravalib import Client
code = request.args.get('code') # e.g.
client = Client()
access_token = client.exchange_code_for_token(client_id=MY_STRAVA_CLIENT_ID,
client_secret=MY_STRAVA_CLIENT_SECRET,
code=code)Best,
Jorge