Skip to content

Commit

Permalink
fix: 移除失效nav接口, 添加未登录状态nav请求响应实例 (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
loph3xertoi authored Sep 15, 2023
1 parent 5a4761e commit 4768775
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions docs/login/login_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 导航栏用户信息

> https://api.bilibili.com/nav(带有转义)
> ~~https://api.bilibili.com/nav(带有转义)~~ (已失效)
>
> https://api.bilibili.com/x/web-interface/nav(原始数据)
Expand Down Expand Up @@ -115,8 +115,10 @@

**示例:**

**登录状态:**

```shell
curl 'https://api.bilibili.com/nav' \
curl 'https://api.bilibili.com/x/web-interface/nav' \
-b 'SESSDATA=xxx'
```

Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 4768775

Please sign in to comment.