feat: 更新部分接口 (#1056)
This commit is contained in:
@@ -3,11 +3,19 @@
|
||||
## 未读消息数
|
||||
|
||||
> https://api.bilibili.com/x/msgfeed/unread
|
||||
> https://api.vc.bilibili.com/x/im/web/msgfeed/unread (新接口)
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
认证方式:Cookie(SESSDATA)
|
||||
|
||||
**URL参数:**
|
||||
|
||||
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
||||
| -------- | ---- | ---- | ------ | -------------------------- |
|
||||
| build | num | 0 | 不必要 | 从新接口发现, 作用尚不明确 |
|
||||
| mobi_app | str | web | 不必要 | 从新接口发现, 作用尚不明确 |
|
||||
|
||||
**json回复:**
|
||||
|
||||
根对象:
|
||||
@@ -19,23 +27,29 @@
|
||||
| ttl | num | 1 | |
|
||||
| data | obj | 信息本体 | |
|
||||
|
||||
data 对象:
|
||||
`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,未读系统通知数为2,UP主助手信息数为1
|
||||
|
||||
```shell
|
||||
curl 'https://api.bilibili.com/x/msgfeed/unread' \
|
||||
curl 'https://api.vc.bilibili.com/x/im/web/msgfeed/unread' \
|
||||
-b 'SESSDATA=xxx'
|
||||
```
|
||||
|
||||
@@ -50,9 +64,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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,24 +8,37 @@
|
||||
|
||||
认证方式:Cookie(SESSDATA)
|
||||
|
||||
**URL参数:**
|
||||
|
||||
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
||||
| ----------- | ---- | ---- | ------ | ---- |
|
||||
| build | num | 0 | 不必要 | ? |
|
||||
| mobi_app | str | web | 不必要 | ? |
|
||||
| unread_type | num | 0 | 不必要 | ? |
|
||||
|
||||
**json回复:**
|
||||
|
||||
根对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ---- | -------- | --------------------------- |
|
||||
| code | num | 返回值 | 0:成功<br />-6:账号未登录 |
|
||||
| code | num | 返回值 | 0:成功<br />-101:账号未登录 |
|
||||
| message | str | 错误信息 | 默认为ok |
|
||||
| ttl | num | 1 | |
|
||||
| data | obj | 信息本体 | |
|
||||
|
||||
`data` 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --------------- | ---- | -------------------- | ---- |
|
||||
| unfollow_unread | num | 未关注用户未读私信数 | |
|
||||
| follow_unread | num | 已关注用户未读私信数 | |
|
||||
| _gt_ | num | 0 | |
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ----------------------- | ---- | ----------------------- | ---- |
|
||||
| unfollow_unread | num | 未关注用户未读私信数 | |
|
||||
| follow_unread | num | 已关注用户未读私信数 | |
|
||||
| unfollow_push_msg | num | 未关注用户推送消息数? | |
|
||||
| dustbin_push_msg | num | 已拦截的推送消息数? | |
|
||||
| dustbin_unread | num | 已拦截的未读消息数? | |
|
||||
| biz_msg_unfollow_unread | num | 未订阅的未读系统通知数? | |
|
||||
| biz_msg_follow_unread | num | 已订阅的未读系统通知数? | |
|
||||
| custom_unread | num | 自定义未读消息数? | |
|
||||
|
||||
**示例:**
|
||||
|
||||
@@ -41,14 +54,19 @@ curl 'https://api.vc.bilibili.com/session_svr/v1/session_svr/single_unread' \
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"msg": "ok",
|
||||
"message": "ok",
|
||||
"data": {
|
||||
"unfollow_unread": 1,
|
||||
"follow_unread": 6,
|
||||
"_gt_": 0
|
||||
}
|
||||
"code": 0,
|
||||
"msg": "ok",
|
||||
"message": "ok",
|
||||
"data": {
|
||||
"unfollow_unread": 1,
|
||||
"follow_unread": 6,
|
||||
"unfollow_push_msg": 0,
|
||||
"dustbin_push_msg": 0,
|
||||
"dustbin_unread": 0,
|
||||
"biz_msg_unfollow_unread": 0,
|
||||
"biz_msg_follow_unread": 1,
|
||||
"custom_unread": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user