mirror of
https://github.com/SocialSisterYi/bilibili-API-collect.git
synced 2024-12-26 12:30:07 +08:00
fix: 移除失效nav接口, 添加未登录状态nav请求响应实例 (#817)
This commit is contained in:
parent
5a4761ee69
commit
4768775f30
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user