刷新授权调用凭证
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/oauth/renew_refresh_token/
接口说明
错误码
HTTP 状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
200 | 10005 | 缺少参数 | 检查是否填写 client_key 和 refresh_token 参数,请求格式是否正确。 |
200 | 10004 | 权限不足 | 请申请 renew_refresh_token 权限。 |
200 | 10010 | refresh_token 过期 | token 已过期,请让用户重新授权。 |
200 | 10020 | 超过刷新次数限制 | 无法再刷新,请让用户重新授权。 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/oauth/renew_refresh_token/' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_key=tt10abc******' \
--data-urlencode 'refresh_token=rft.a736b70544519999a6******'
响应示例响应示例
200 - 成功示例
{
"data": {
"description": "",
"error_code": 0,
"expires_in": "86400",
"refresh_token": "refresh_token"
},
"message": "success"
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/x-www-form-urlencoded
Body 参数application/x-www-form-urlencoded
client_key
string
应用唯一标识
示例值:
tt10abc******
refresh_token
string
必需
示例值:
rft.a736b70544519999a6******