2020-04-07 10:58:59 +08:00
|
|
|
|
# 私信
|
|
|
|
|
|
|
|
|
|
**本页所有操作均需登录(SESSDATA)**
|
|
|
|
|
|
|
|
|
|
## 未读私信数
|
|
|
|
|
|
|
|
|
|
> http://api.vc.bilibili.com/session_svr/v1/session_svr/single_unread
|
|
|
|
|
|
2020-07-14 18:44:44 +08:00
|
|
|
|
*请求方式:GET*
|
2020-04-07 10:58:59 +08:00
|
|
|
|
|
|
|
|
|
**json回复:**
|
|
|
|
|
|
2020-04-16 18:47:19 +08:00
|
|
|
|
根对象:
|
|
|
|
|
|
2020-04-07 10:58:59 +08:00
|
|
|
|
| 字段 | 类型 | 内容 | 备注 |
|
|
|
|
|
| ------- | ---- | -------- | --------------------------- |
|
|
|
|
|
| code | num | 返回值 | 0:成功<br />-6:账号未登录 |
|
|
|
|
|
| message | str | 错误信息 | 默认为ok |
|
|
|
|
|
| ttl | num | 1 | 作用尚不明确 |
|
|
|
|
|
| data | obj | 信息本体 | |
|
|
|
|
|
|
|
|
|
|
data 对象:
|
|
|
|
|
|
|
|
|
|
| 字段 | 类型 | 内容 | 备注 |
|
|
|
|
|
| --------------- | ---- | -------------------- | ------------ |
|
|
|
|
|
| unfollow_unread | num | 未关注用户未读私信数 | |
|
|
|
|
|
| follow_unread | num | 已关注用户未读私信数 | |
|
|
|
|
|
| _gt_ | num | 0 | 作用尚不明确 |
|
|
|
|
|
|
2020-04-16 18:47:19 +08:00
|
|
|
|
**示例:**
|
2020-04-07 10:58:59 +08:00
|
|
|
|
|
|
|
|
|
以下信息代表了为未关注用户未读私信数为`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
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|