文档
测试

获取Token

GET
/v1/oauth/token

Query参数

参数名
类型
描述
必填
grant_type
string
授权类型,目前支持: client_credentials, refresh_token
必填
client_id
string
客户端id,目前找客服分配
必填
client_secret
string
客户端密钥,目前找客服分配
必填
refresh_token
string
可选参数,当grant_type == refresh_token时,需要传入
可选
scope
string
授权范围,目前只支持:read
必填

响应参数

application/json
参数名
类型
描述
必填
code
int
必填
message
string
必填
data
object
必填
access_token
string
应用 access token
必填
expires_in
int
access_token 默认过期时间为2小时
必填
refresh_expires_in
int
efresh_token 默认过期时间是30天
必填
refresh_token
string
应用 refresh token
必填
scope
string
目前默认返回 read
必填

说明 / 示例

使用curl命令示例: curl "https://open-data.autowise.tech/v1/oauth/token?client_id=xxxx&client_secret=xxxxx&grant_type=client_credentials&scope=read"