fix: 移除失效nav接口, 添加未登录状态nav请求响应实例 (#817)

This commit is contained in:
loph3xertoi 2023-09-16 06:51:24 +08:00 committed by GitHub
parent 5a4761ee69
commit 4768775f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
## 导航栏用户信息
> https://api.bilibili.com/nav带有转义
> ~~https://api.bilibili.com/nav带有转义~~ (已失效)
>
> https://api.bilibili.com/x/web-interface/nav原始数据
@ -115,8 +115,10 @@
**示例:**
**登录状态:**
```shell
curl 'https://api.bilibili.com/nav' \
curl 'https://api.bilibili.com/x/web-interface/nav' \
-b 'SESSDATA=xxx'
```
@ -235,6 +237,32 @@ curl 'https://api.bilibili.com/nav' \
</details>
**未登录状态:**
```shell
curl 'https://api.bilibili.com/x/web-interface/nav'
```
<details>
<summary>查看响应示例:</summary>
```json
{
"code": -101,
"message": "账号未登录",
"ttl": 1,
"data": {
"isLogin": false,
"wbi_img": {
"img_url": "https://i0.hdslb.com/bfs/wbi/653657f524a547ac981ded72ea172057.png",
"sub_url": "https://i0.hdslb.com/bfs/wbi/6e4909c702f846728e64f6007736a338.png"
},
}
}
```
</details>
## ~~登录用户信息仅部分(已弃用)~~
<details>