如何通过Python在Strava API上列出我的游乐设施

时间:2014-07-02 14:15:18

标签: python api

我正在试图分析我的Strava游乐设施。我可以访问我的帐户详细信息,例如电子邮件地址,我可以从活动编号访问活动(乘车)中的一些信息。但是我不知道如何获得我的活动编号列表。这是我到目前为止的代码:

from stravalib.client import Client

client = Client()
authorize_url = client.authorization_url(client_id=1234, redirect_uri='http://localhost:8282/authorized')
# Have the user click the authorization URL, a 'code' param will be added to the redirect_uri
# .....

client = Client(access_token='I enter my access token here')


# Currently-authenticated (based on provided token) athlete
# Will have maximum detail exposed (resource_state=3)
curr_athlete = client.get_athlete() #This is now me
activity1 = client.get_activity(96089609) # This isn't me, I need to know how I get my list of activities

0 个答案:

没有答案