HTTP 状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
200 | 10005 | 缺少参数 | 检查是否填写 client_key 和 refresh_token 参数,请求格式是否正确。 |
200 | 10004 | 权限不足 | 请申请 renew_refresh_token 权限。 |
200 | 10010 | refresh_token 过期 | token 已过期,请让用户重新授权。 |
200 | 10020 | 超过刷新次数限制 | 无法再刷新,请让用户重新授权。 |
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******'
{
"data": {
"description": "",
"error_code": 0,
"expires_in": "86400",
"refresh_token": "refresh_token"
},
"message": "success"
}