Strava API 授权登录

本文详细介绍了Strava API的使用方法,包括账号信息、接口文档地址、客户端配置、访问令牌及刷新令牌的获取流程。通过三个步骤,开发者可以轻松获取到所需的code、refresh_token和access_token,为应用开发提供便利。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Strava API 
平台账号密码:
xxx@gmail.com
*****

个人账号密码:
xxx@163.com
*****

接口文档地址 :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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值