Strava API
平臺賬號密碼:
[email protected]
*****
個人賬號密碼:
[email protected]
*****
接口文檔地址 :https://developers.strava.com/
應用程序基本配置信息:
客戶端 ID:123456
客戶端密鑰:3d9e7cadb777dee722268f21f3de85c57749
你的訪問令牌:f31077a259f071788222f3cfe5684281e5703
你的刷新令牌:6442edfa558f1ba789917fea21b83239d1824
1 獲取code:
https://www.strava.com/oauth/authorize
?client_id=49017
&redirect_uri=https://xxx.com/test/getAuthInfo
&response_type=code
&approval_prompt=auto
&scope=activity:write,read
2 用 code 獲取 refresh_token,access_token:
https://www.strava.com/api/v3/oauth/token
?client_id=49017
&client_secret=3d9e7cadbx2c6b722268f21f3de85c57749
&code=cd3807cx2fb0c298148cff88441e29d90bf
&grant_type=authorization_code
3 用 refresh_token 獲取 access_token :
https://www.strava.com/oauth/token
?grant_type=refresh_token
&client_id=49017
&client_secret=3d9e7cxee2c6b722268f21f3de85c57749
&grant_type=refresh_token
&refresh_token=55d78cax01b669e1d1995c490a2dc409