Strava API 授权登录

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

你可能感兴趣的:(PHP,学习)