summaryrefslogtreecommitdiff
path: root/data/captcha/2023-03-05/api-docs.php
blob: fa99715b7849c003dd731bd7b0d45fc4e6954814 (plain)
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
<?php return [
    'version' => '1.0',
    'info' => ['style' => 'RPC', 'product' => 'captcha', 'version' => '2023-03-05'],
    'components' => [
        'schemas' => [],
    ],
    'apis' => [
        'VerifyCaptcha' => [
            'methods' => ['post', 'get'],
            'schemes' => ['http', 'https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'deprecated' => false,
            'parameters' => [
                [
                    'name' => 'CaptchaVerifyParam',
                    'in' => 'query',
                    'schema' => ['type' => 'string', 'required' => false],
                ],
            ],
        ],
        'VerifyIntelligentCaptcha' => [
            'methods' => ['post', 'get'],
            'schemes' => ['http', 'https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'deprecated' => false,
            'parameters' => [
                [
                    'name' => 'CaptchaVerifyParam',
                    'in' => 'formData',
                    'schema' => ['type' => 'string', 'required' => false],
                ],
                [
                    'name' => 'SceneId',
                    'in' => 'formData',
                    'schema' => ['type' => 'string', 'required' => false],
                ],
            ],
        ],
    ],
    'endpoints' => [
        ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'captcha.cn-shanghai.aliyuncs.com', 'endpoint' => 'captcha.cn-shanghai.aliyuncs.com', 'vpc' => 'captcha-vpc.cn-shanghai.aliyuncs.com'],
    ],
];