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
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'nls-cloud-meta', 'version' => '2019-02-28'],
'directories' => [
[
'children' => ['CreateToken'],
'type' => 'directory',
'title' => 'Obtain a token',
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'CreateToken' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREnlsQCJJW7', 'FEATUREnls1MXGI2', 'FEATUREnlsJNB1FR', 'FEATUREnls3WJ7BI', 'FEATUREnlsLCZB9H', 'FEATUREnlsJSWKDV'],
],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A51587CB-5193-4DB8-9AED-CD4365C2****', 'title' => ''],
'ErrMsg' => ['description' => 'The error message for a failed response.', 'type' => 'string', 'example' => 'Specified access key is not found.', 'title' => ''],
'Token' => [
'description' => 'The Token object.',
'type' => 'object',
'properties' => [
'ExpireTime' => ['description' => 'The expiration timestamp of the token. Unit: seconds. For example, 1553825814 converts to 2019/3/29 10:16:54 (UTC+8), which means the token is valid before that time.', 'type' => 'integer', 'format' => 'int32', 'example' => '1553825814', 'title' => ''],
'UserId' => ['description' => 'The Alibaba Cloud account ID.', 'type' => 'string', 'example' => '107992689699****', 'title' => ''],
'Id' => ['description' => 'The token value assigned by the request.', 'type' => 'string', 'example' => 'fb1c4648a61b426589dab0fe90d1****', 'title' => ''],
],
'title' => '',
'example' => '',
],
'NlsRequestId' => ['description' => 'The internal request ID for speech services.', 'type' => 'string', 'example' => 'dd05a301b40441c99a2671905325****', 'title' => ''],
'ErrCode' => ['description' => 'The error code for a failed response.', 'type' => 'integer', 'format' => 'int32', 'example' => '50000000', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [],
'title' => 'Obtain a token',
'summary' => 'Obtains a token for intelligent interactive voice response.',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'nls:CreateToken',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'NLS', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
],
],
'endpoints' => [
['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'nls-meta.cn-shanghai.aliyuncs.com ', 'endpoint' => 'nls-meta.cn-shanghai.aliyuncs.com ', 'vpc' => ''],
['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'nls-slp.cn-shanghai.aliyuncs.com', 'endpoint' => 'nls-slp.cn-shanghai.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'nls-meta.cn-shanghai.aliyuncs.com', 'endpoint' => 'nls-meta.cn-shanghai.aliyuncs.com', 'vpc' => 'nls-cloud-meta-vpc.cn-shanghai.aliyuncs.com'],
],
'errorCodes' => [],
'changeSet' => [],
'ram' => [
'productCode' => 'NLS',
'productName' => 'Intelligent Speech Interaction',
'ramCodes' => ['nls'],
'ramLevel' => 'OPERATION',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'CreateToken',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'nls:CreateToken',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'NLS', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [],
],
];
|