File size: 3,456 Bytes
0aee47a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
    "session": {
      "fetch": {
        "url": "https://api.vc.bilibili.com/svr_sync/v1/svr_sync/fetch_session_msgs",
        "method": "GET",
        "verify": true,
        "params": {
          "talker_id": "int: 私聊时为用户UID 应援团时为团号",
          "session_type": "int: 会话类型,1 私聊 2 应援团",
          "begin_seqno": "int: 起始 Seqno 可由具体消息获得"
        },
        "comment": "获取指定用户的近三十条消息"
      },
      "new": {
        "url": "https://api.vc.bilibili.com/session_svr/v1/session_svr/new_sessions",
        "method": "GET",
        "verify": true,
        "params": {
          "begin_ts": "int: 起始时间戳"
        },
        "comment": "获取新消息"
      },
      "get": {
        "url": "https://api.vc.bilibili.com/session_svr/v1/session_svr/get_sessions",
        "method": "GET",
        "verify": true,
        "params": {
          "session_type": "int: 1: 私聊, 2: 通知, 3: 应援团, 4: 全部",
          "group_fold": "int: 默认为 1",
          "unfollow_fold": "int: 默认为 0",
          "sort_rule": "int: 默认为 2",
          "build": "int: 默认为 0",
          "mobi_app": "web"
        },
        "comment": "获取已有消息"
      },
      "get_session_detail": {
        "url": "https://api.vc.bilibili.com/session_svr/v1/session_svr/session_detail",
        "method": "GET",
        "verify": true,
        "params": {
          "talker_id": "int: 私聊时为用户UID 应援团时为团号",
          "session_type": "int: 会话类型"
        },
        "comment": "获取会话详情"
      },
      "likes": {
        "url": "https://api.bilibili.com/x/msgfeed/like",
        "method": "GET",
        "verify": true,
        "comment": "获取点赞"
      },
      "unread": {
        "url": "https://api.bilibili.com/x/msgfeed/unread",
        "method": "GET",
        "verify": true,
        "comment": "获取未读的信息"
      },
      "replies": {
        "url": "https://api.bilibili.com/x/msgfeed/reply",
        "method": "GET",
        "verify": true,
        "comment": "获取收到的回复"
      },
      "at": {
        "url": "https://api.bilibili.com/x/msgfeed/at",
        "method": "GET",
        "verify": true,
        "comment": "获取未读 AT"
      },
      "system_msg": {
        "url": "https://message.bilibili.com/x/sys-msg/query_user_notify",
        "method": "GET",
        "verify": true,
        "params": {
          "page_size": "int: 要获取的信息数量"
        },
        "comment": "获取系统信息"
      },
      "session_settings": {
        "url": "https://api.vc.bilibili.com/link_setting/v1/link_setting/get",
        "method": "GET",
        "verify": true,
        "comment": "获取消息设置"
      }
    },
    "operate": {
      "send_msg": {
        "url": "https://api.vc.bilibili.com/web_im/v1/web_im/send_msg",
        "method": "POST",
        "verify": true,
        "data": {
          "msg[sender_uid]": "int: 自己的 UID",
          "msg[receiver_id]": "int: 对方 UID",
          "msg[receiver_type]": "const int: 1",
          "msg[msg_type]": "int: 消息类型",
          "msg[msg_status]": "const int: 0",
          "msg[content]": "str: 消息内容"
        },
        "comment": "给用户发信息"
      }
    }
  }