mirror of
https://github.com/SocialSisterYi/bilibili-API-collect.git
synced 2024-12-26 12:30:07 +08:00
添加未读消息数和未读私信数两个api
This commit is contained in:
parent
35470df4ab
commit
fa06265e77
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,7 +1,6 @@
|
||||
|
||||
login/password&SMS.md
|
||||
B站API.txt
|
||||
login/msg.md
|
||||
live/info_flow.md
|
||||
bangumi/info.md
|
||||
bangumi/ststus_number.md
|
||||
|
@ -21,13 +21,13 @@
|
||||
- qq&微博登录
|
||||
- [登录基本信息](login/login_info.md)√
|
||||
- 在线用户
|
||||
- 消息
|
||||
- 私信
|
||||
- [消息](login/msg.md)x
|
||||
- [私信](login/private_msg.md)x
|
||||
- [用户](user)
|
||||
- [基本信息](user/info.md)√
|
||||
- [状态数](user/status_number.md)√
|
||||
- [关系](user/relation.md)√
|
||||
- 个人空间
|
||||
- [个人空间](user/space.md)x
|
||||
- [视频](video)
|
||||
- [视频分区一览(分区代码)](video/video_zone.md)√
|
||||
- [基本信息](video/info.md)√
|
||||
|
52
login/msg.md
Normal file
52
login/msg.md
Normal file
@ -0,0 +1,52 @@
|
||||
# 消息
|
||||
|
||||
**本页所有操作均需登录(SESSDATA)**
|
||||
|
||||
## 未读消息数
|
||||
|
||||
> http://api.bilibili.com/x/msgfeed/unread
|
||||
|
||||
*方式:GET*
|
||||
|
||||
**json回复:**
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ---- | -------- | ------------------------- |
|
||||
| code | num | 返回值 | 0成功<br />-101账号未登录 |
|
||||
| message | str | 错误信息 | 默认为0 |
|
||||
| ttl | num | 1 | 作用尚不明确 |
|
||||
| data | obj | 信息本体 | |
|
||||
|
||||
data 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ---- | -------------- | ------------ |
|
||||
| at | num | 未读at数 | |
|
||||
| chat | num | 0 | 作用尚不明确 |
|
||||
| like | num | 未读点赞数 | |
|
||||
| reply | num | 未读回复数 | |
|
||||
| sys_msg | num | 未读系统通知数 | |
|
||||
| up | num | 0 | 作用尚不明确 |
|
||||
|
||||
示例:
|
||||
|
||||
以下信息代表了未读点赞数为`10`,未读回复数为`3`,未读at消息数为`1`,未读系统通知数为`1`
|
||||
|
||||
http://api.bilibili.com/x/msgfeed/unread
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "0",
|
||||
"ttl": 1,
|
||||
"data": {
|
||||
"at": 1,
|
||||
"chat": 0,
|
||||
"like": 10,
|
||||
"reply": 3,
|
||||
"sys_msg": 1,
|
||||
"up": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
46
login/private_msg.md
Normal file
46
login/private_msg.md
Normal file
@ -0,0 +1,46 @@
|
||||
# 私信
|
||||
|
||||
**本页所有操作均需登录(SESSDATA)**
|
||||
|
||||
## 未读私信数
|
||||
|
||||
> http://api.vc.bilibili.com/session_svr/v1/session_svr/single_unread
|
||||
|
||||
*方式:GET*
|
||||
|
||||
**json回复:**
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| ------- | ---- | -------- | --------------------------- |
|
||||
| code | num | 返回值 | 0:成功<br />-6:账号未登录 |
|
||||
| message | str | 错误信息 | 默认为ok |
|
||||
| ttl | num | 1 | 作用尚不明确 |
|
||||
| data | obj | 信息本体 | |
|
||||
|
||||
data 对象:
|
||||
|
||||
| 字段 | 类型 | 内容 | 备注 |
|
||||
| --------------- | ---- | -------------------- | ------------ |
|
||||
| unfollow_unread | num | 未关注用户未读私信数 | |
|
||||
| follow_unread | num | 已关注用户未读私信数 | |
|
||||
| _gt_ | num | 0 | 作用尚不明确 |
|
||||
|
||||
示例:
|
||||
|
||||
以下信息代表了为未关注用户未读私信数为`10`条,已关注用户未读私信数为`3`条
|
||||
|
||||
http://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
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -40,7 +40,7 @@
|
||||
|
||||
`data`中的`archives`数组中的对象:
|
||||
|
||||
基本同「[视频详细信息](\video\info.md#视频详细信息)」中的data对象
|
||||
基本同「[视频详细信息](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/video/info.md#视频详细信息)」中的data对象
|
||||
|
||||
`data`中的`page`对象:
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
`data`数组中的对象:
|
||||
|
||||
基本同「[视频详细信息](\video\info.md#视频详细信息)」中的data对象
|
||||
基本同「[视频详细信息](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/video/info.md#视频详细信息)」中的data对象
|
||||
|
||||
示例:
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
`data`对象:
|
||||
|
||||
基本同「[视频详细信息](\video\info.md#视频详细信息)」中的data对象
|
||||
基本同「[视频详细信息](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/video/info.md#视频详细信息)」中的data对象
|
||||
|
||||
示例:
|
||||
|
||||
@ -137,7 +137,7 @@ http://api.bilibili.com/x/space/top/arc?vmid=23215368
|
||||
|
||||
`data`数组中的对象:
|
||||
|
||||
基本同「[视频详细信息](\video\info.md#视频详细信息)」中的data对象
|
||||
基本同「[视频详细信息](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/video/info.md#视频详细信息)」中的data对象
|
||||
|
||||
示例:
|
||||
|
||||
@ -405,8 +405,8 @@ http://api.bilibili.com/x/space/masterpiece?vmid=23215368
|
||||
| mid | num | 视频UP主UID | 不一定为目标用户(合作视频) |
|
||||
| pic | str | 视频封面 | jpg gif |
|
||||
| play | num | 视频播放次数 | |
|
||||
| review | num | 0 | |
|
||||
| subtitle | str | 0 | |
|
||||
| review | num | 0 | 作用尚不明确 |
|
||||
| subtitle | str | 空 | 作用尚不明确 |
|
||||
| title | str | 视频标题 | |
|
||||
| typeid | num | 视频分区tID | |
|
||||
| video_review | num | 视频弹幕数 | |
|
||||
@ -423,7 +423,7 @@ http://api.bilibili.com/x/space/masterpiece?vmid=23215368
|
||||
|
||||
`pn`(页码)和`ps`(每页项数)只改变`vlist`中成员的多少与内容
|
||||
|
||||
已每页2项查询用户`UID=53456`的第1页投稿视频明细
|
||||
以每页2项查询用户`UID=53456`的第1页投稿视频明细
|
||||
|
||||
http://api.bilibili.com/x/space/arc/search?mid=53456&ps=2&pn=1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user