Merge remote-tracking branch 'upstream/master' into patch-1

This commit is contained in:
wuziqian211
2024-07-28 01:40:45 +08:00
25 changed files with 4905 additions and 199 deletions

View File

@@ -3,6 +3,7 @@
## 未读消息数
> https://api.bilibili.com/x/msgfeed/unread
> https://api.vc.bilibili.com/x/im/web/msgfeed/unread (新接口)
*请求方式GET*
@@ -10,6 +11,13 @@
本接口不会返回未读的私信数,要获取未读的私信数请参阅[未读私信数](private_msg.md#未读私信数)相关说明
**URL参数:**
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| -------- | ---- | ---- | ------ | -------------------------- |
| build | num | 0 | 不必要 | 从新接口发现, 作用尚不明确 |
| mobi_app | str | web | 不必要 | 从新接口发现, 作用尚不明确 |
**json回复**
根对象:
@@ -23,21 +31,27 @@
`data` 对象:
| 字段 | 类型 | 内容 | 备注 |
| ------- | ---- | -------------- | ------------ |
| at | num | 未读at数 | |
| chat | num | 0 | 作用尚不明确 |
| like | num | 未读点赞数 | |
| reply | num | 未读回复数 | |
| sys_msg | num | 未读系统通知数 | |
| up | num | UP主助手信息数 | |
| 字段 | 类型 | 内容 | 备注 |
| ------------- | ---- | -------------- | ---------------------- |
| at | num | 未读at数 | |
| chat | num | 0 | 作用尚不明确 |
| coin | num | 未读投币数 | |
| danmu | num | 未读弹幕数 | |
| favorite | num | 未读收藏数? | |
| like | num | 未读点赞数 | |
| recv_like | num | 未读点赞数 | |
| recv_reply | num | 未读回复数 | |
| reply | num | 未读回复数 | |
| sys_msg | num | 未读系统通知数 | |
| sys_msg_style | num | 1 | 仅新接口, 作用尚不明确 |
| up | num | UP主助手信息数 | |
**示例:**
以下信息代表了未读点赞数为10未读回复数为4未读at消息数为3未读系统通知数为2UP主助手信息数为1
```shell
curl 'https://api.bilibili.com/x/msgfeed/unread' \
curl 'https://api.vc.bilibili.com/x/im/web/msgfeed/unread' \
-b 'SESSDATA=xxx'
```
@@ -52,9 +66,15 @@ curl 'https://api.bilibili.com/x/msgfeed/unread' \
"data": {
"at": 3,
"chat": 0,
"coin": 0,
"danmu": 0,
"favorite": 0,
"like": 10,
"recv_like": 10,
"recv_reply": 4,
"reply": 4,
"sys_msg": 2,
"sys_msg_style": 1,
"up": 1
}
}

View File

@@ -101,6 +101,14 @@
认证方式CookieSESSDATA
**URL参数:**
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| ----------- | ---- | ---- | ------ | ---- |
| build | num | 0 | 不必要 | ? |
| mobi_app | str | web | 不必要 | ? |
| unread_type | num | 0 | 不必要 | ? |
**json回复**
根对象: