退出登录
接口说明
退出当前用户的登录状态,使当前token失效
该接口需要在APP后台启用登录
请求路径
| Method |
URI Path |
鉴权方式 |
| GET |
/v1/user/logout |
Token认证 |
请求参数
公共参数
| 参数名 |
类型 |
取值范围 |
是否必须 |
说明 |
| Authorization |
string |
Bearer + token |
是 |
登录令牌,Header传值,格式:Bearer eyJxx... |
业务参数
| 参数名 |
类型 |
取值范围 |
是否必须 |
说明 |
| - |
- |
- |
- |
- |
请求示例代码
curl --location --request GET 'https://api.zaihangyun.com/v1/user/logout' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Authorization: Bearer ZaihangyunToken' \
--header 'Accept: */*' \
--header 'Host: api.zaihangyun.com' \
--header 'Connection: keep-alive'
返回响应
{
"code": 200,
"msg": "success"
}
{
"code": 401,
"msg": "Unauthorized"
}
错误码说明
查看全局错误码