summaryrefslogtreecommitdiff
path: root/data/zh_cn/nls-cloud-meta/2019-02-28/api-docs.php
blob: 273ca40d06f6600b0fdc0064ada7929f9ec9dd31 (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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php return [
    'version' => '1.0',
    'info' => [
        'style' => 'RPC',
        'product' => 'nls-cloud-meta',
        'version' => '2019-02-28',
    ],
    'directories' => [
        [
            'id' => 130955,
            'title' => '获取token',
            'type' => 'directory',
            'children' => [
                'CreateToken',
            ],
        ],
    ],
    'components' => [
        'schemas' => [],
    ],
    'apis' => [
        'CreateToken' => [
            'summary' => '获取智能语音交互的token。',
            'methods' => [
                'post',
                'get',
            ],
            'schemes' => [
                'http',
                'https',
            ],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => [
                'operationType' => 'none',
                'riskType' => 'none',
                'chargeType' => 'free',
                'abilityTreeNodes' => [
                    'FEATUREnlsQCJJW7',
                    'FEATUREnls1MXGI2',
                    'FEATUREnlsJNB1FR',
                    'FEATUREnlsLCZB9H',
                    'FEATUREnls3WJ7BI',
                    'FEATUREnlsJSWKDV',
                ],
            ],
            'parameters' => [],
            'responses' => [
                200 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => [
                                'description' => '请求ID。',
                                'type' => 'string',
                                'example' => 'A51587CB-5193-4DB8-9AED-CD4365C2****',
                            ],
                            'ErrMsg' => [
                                'description' => '失败响应的错误信息。',
                                'type' => 'string',
                                'example' => 'Specified access key is not found.',
                            ],
                            'Token' => [
                                'description' => 'Token对象。',
                                'type' => 'object',
                                'properties' => [
                                    'ExpireTime' => [
                                        'description' => 'Token的有效期时间戳。单位:秒。例如1553825814换算为北京时间为:2019/3/29 10:16:54,即Token在该时间之前有效。',
                                        'type' => 'integer',
                                        'format' => 'int32',
                                        'example' => '1553825814',
                                    ],
                                    'UserId' => [
                                        'description' => '阿里云账号ID。',
                                        'type' => 'string',
                                        'example' => '107992689699****',
                                    ],
                                    'Id' => [
                                        'description' => '请求分配的Token值。',
                                        'type' => 'string',
                                        'example' => 'fb1c4648a61b426589dab0fe90d1****',
                                    ],
                                ],
                            ],
                            'NlsRequestId' => [
                                'description' => '语音内部请求ID。',
                                'type' => 'string',
                                'example' => 'dd05a301b40441c99a2671905325****',
                            ],
                            'ErrCode' => [
                                'description' => '失败响应的错误码。',
                                'type' => 'integer',
                                'format' => 'int32',
                                'example' => '50000000',
                            ],
                        ],
                    ],
                ],
            ],
            'errorCodes' => [],
            'responseDemo' => '[{"type":"json","example":"{\\n  \\"RequestId\\": \\"A51587CB-5193-4DB8-9AED-CD4365C2****\\",\\n  \\"ErrMsg\\": \\"Specified access key is not found.\\",\\n  \\"Token\\": {\\n    \\"ExpireTime\\": 1553825814,\\n    \\"UserId\\": \\"107992689699****\\",\\n    \\"Id\\": \\"fb1c4648a61b426589dab0fe90d1****\\"\\n  },\\n  \\"NlsRequestId\\": \\"dd05a301b40441c99a2671905325****\\",\\n  \\"ErrCode\\": 50000000\\n}","errorExample":""},{"type":"xml","example":"<CreateTokenResponse>\\n    <RequestId>A51587CB-5193-4DB8-9AED-CD4365C2****</RequestId>\\n    <ErrMsg>Specified access key is not found.</ErrMsg>\\n    <Token>\\n        <ExpireTime>1553825814</ExpireTime>\\n        <UserId>107992689699****</UserId>\\n        <Id>fb1c4648a61b426589dab0fe90d1****</Id>\\n    </Token>\\n    <NlsRequestId>dd05a301b40441c99a2671905325****</NlsRequestId>\\n    <ErrCode>50000000</ErrCode>\\n</CreateTokenResponse>","errorExample":""}]',
            'title' => '获取token',
        ],
    ],
    'endpoints' => [
        [
            'regionId' => 'cn-hangzhou',
            'endpoint' => 'nls-slp.cn-shanghai.aliyuncs.com',
        ],
        [
            'regionId' => 'cn-shanghai',
            'endpoint' => 'nls-meta.cn-shanghai.aliyuncs.com',
        ],
        [
            'regionId' => 'ap-southeast-1',
            'endpoint' => 'nls-meta.cn-shanghai.aliyuncs.com	',
        ],
    ],
];