File size: 1,829 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
{
    "info": {
        "vote_info": {
            "url": "https://api.vc.bilibili.com/vote_svr/v1/vote_svr/vote_info",
            "method": "GET",
            "verify": false,
            "params": {
            "vote_id": "int: 投票 ID"
            },
            "comment": "获取投票信息"
        }
    },
    "operate": {
        "create": {
            "url": "https://api.vc.bilibili.com/vote_svr/v1/vote_svr/create_vote",
            "method": "POST",
            "verify": true,
            "data": {
                "info[title]": "string: 投票标题",
                "info[desc]": "string: 投票描述",
                "info[type]": "int: 投票类型 0:文字投票 1:图片投票",
                "info[choice_cnt]": "int: 最多选几项",
                "info[duration]": "int: 投票持续时间",
                "info[options][n][desc]": "string: 选项n描述",
                "info[options][n][img_url]": "string: 选项n图片"
            },
            "comment": "创建投票"
        },
        "update": {
            "url": "https://api.vc.bilibili.com/vote_svr/v1/vote_svr/update_vote",
            "method": "POST",
            "verify": true,
            "data": {
                "info[title]": "string: 投票标题",
                "info[desc]": "string: 投票描述",
                "info[type]": "int: 投票类型 0:文字投票 1:图片投票",
                "info[choice_cnt]": "int: 最多选几项",
                "info[duration]": "int: 投票持续时间",
                "info[options][n][desc]": "string: 选项n描述",
                "info[options][n][img_url]": "string: 选项n图片",
                "info[vote_id]": "int: vote_id"
            },
            "comment": "更新投票内容"
        }
    }
}