summaryrefslogtreecommitdiff
path: root/data/zh_cn/dypnsapi-intl/2017-07-25/api-docs.php
blob: d55a07ab7ac4118030b314b5b2a65df8e3d624b2 (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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<?php return [
    'version' => '1.0',
    'info' => ['style' => 'RPC', 'product' => 'Dypnsapi-intl', 'version' => '2017-07-25'],
    'directories' => ['StartVerification', 'SearchVerification', 'CheckVerification'],
    'components' => [
        'schemas' => [],
    ],
    'apis' => [
        'CheckVerification' => [
            'methods' => ['post', 'get'],
            'schemes' => ['http', 'https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => [
                'operationType' => 'create',
                'riskType' => 'none',
                'chargeType' => 'free',
                'abilityTreeCode' => '171586',
                'abilityTreeNodes' => ['FEATUREdypnsL4YHVT'],
                'autoTest' => true,
                'tenantRelevance' => 'publicInformation',
            ],
            'parameters' => [
                [
                    'name' => 'ServiceSid',
                    'in' => 'query',
                    'schema' => ['description' => '控制台配置的ServiceID。', 'type' => 'string', 'required' => false, 'example' => 'FA00000000000001'],
                ],
                [
                    'name' => 'To',
                    'in' => 'query',
                    'schema' => ['description' => '接收短信号码。号码格式为:国际区号+号码。', 'type' => 'string', 'required' => false, 'example' => '6212345****01'],
                ],
                [
                    'name' => 'Code',
                    'in' => 'query',
                    'schema' => ['description' => '验证码。', 'type' => 'string', 'required' => true, 'example' => '1234'],
                ],
                [
                    'name' => 'VerificationId',
                    'in' => 'query',
                    'schema' => ['description' => '发送验证码接口返回的唯一认证ID。', 'type' => 'string', 'required' => true, 'example' => 'rJXlaR2q5LpKfREtpRPMBfDVQvELZwmBbK5yVR7gr3nLbNAcolLGPYCJaVHt/i+I'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['description' => '请求ID,阿里云为该请求生成的唯一标识符。', 'type' => 'string', 'example' => 'HF14955E-EEB5-3CE4-AE50-00F7FC8C1D62'],
                            'Message' => ['description' => '描述信息。', 'type' => 'string', 'example' => 'OK'],
                            'Model' => ['description' => '请求结果数据,请求正确返回。', 'type' => 'object', 'example' => ' {'."\n"
                                .'    "phoneNumber": "",'."\n"
                                .'    "channel": "",'."\n"
                                .'    "verificationId": "",'."\n"
                                .'    "status": "approved"'."\n"
                                .'  }'],
                            'Code' => ['description' => '接口返回状态码。', 'type' => 'string', 'example' => 'OK'],
                            'Success' => ['description' => '是否调用成功。'."\n"
                                ."\n"
                                .'- **true**:调用成功。'."\n"
                                ."\n"
                                .'- **false**:调用失败。', 'type' => 'string', 'example' => 'true'],
                        ],
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorMessage' => 'The parameter is invalid.', 'errorCode' => 'Invalid.Parameters', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => '校验验证码',
            'summary' => '调用CheckVerification接口完成验证码校验。',
            'changeSet' => [
                ['createdAt' => '2025-08-01T08:40:16.000Z', 'description' => 'OpenAPI 下线'],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"HF14955E-EEB5-3CE4-AE50-00F7FC8C1D62\\",\\n  \\"Message\\": \\"OK\\",\\n  \\"Model\\": {\\n    \\"phoneNumber\\": \\"\\",\\n    \\"channel\\": \\"\\",\\n    \\"verificationId\\": \\"\\",\\n    \\"status\\": \\"approved\\"\\n  },\\n  \\"Code\\": \\"OK\\",\\n  \\"Success\\": \\"true\\"\\n}","type":"json"}]',
        ],
        'SearchVerification' => [
            'summary' => '查询验证结果详情。',
            'methods' => ['post', 'get'],
            'schemes' => ['http', 'https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => [
                'operationType' => 'get',
                'riskType' => 'none',
                'chargeType' => 'free',
                'abilityTreeCode' => '171585',
                'abilityTreeNodes' => ['FEATUREdypnsL4YHVT'],
                'autoTest' => true,
                'tenantRelevance' => 'publicInformation',
            ],
            'parameters' => [
                [
                    'name' => 'ServiceSid',
                    'in' => 'query',
                    'schema' => ['description' => '控制台配置的ServiceID。', 'type' => 'string', 'required' => false, 'example' => 'FA00000000000001'],
                ],
                [
                    'name' => 'To',
                    'in' => 'query',
                    'schema' => ['description' => '接收短信号码。号码格式为:国际区号+号码。', 'type' => 'string', 'required' => false, 'example' => '6212345****01'],
                ],
                [
                    'name' => 'Code',
                    'in' => 'query',
                    'schema' => ['description' => '验证码。', 'type' => 'string', 'required' => false, 'example' => '1234'],
                ],
                [
                    'name' => 'VerificationId',
                    'in' => 'query',
                    'schema' => ['description' => '发送验证码接口返回的唯一认证ID。', 'type' => 'string', 'required' => false, 'example' => 'rJXlaR2q5LpKfREtpRPMBfDVQvELZwmBbK5yVR7gr3nLbNAcolLGPYCJaVHt/i+I'],
                ],
                [
                    'name' => 'SendDate',
                    'in' => 'query',
                    'schema' => ['description' => '短信发送日期,格式为毫秒时间戳。支持查询最近30天的记录。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1677600000000,'],
                ],
                [
                    'name' => 'PageSize',
                    'in' => 'query',
                    'schema' => ['description' => '分页的大小。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'],
                ],
                [
                    'name' => 'CurrentPage',
                    'in' => 'query',
                    'schema' => ['description' => '当前页数。取值从1开始。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['description' => '请求ID,阿里云为该请求生成的唯一标识符。', 'type' => 'string', 'example' => 'HF14955E-EEB5-3CE4-AE50-00F7FC8C1D62'."\n"],
                            'Message' => ['description' => '描述信息。', 'type' => 'string', 'example' => 'OK'],
                            'Model' => ['description' => '请求结果数据。', 'type' => 'object', 'example' => '{'."\n"
                                .'    "records": ['."\n"
                                .'      {'."\n"
                                .'        "sendDate":,'."\n"
                                .'        "channel": "",'."\n"
                                .'        "serviceSid": "",'."\n"
                                .'        "to": "",'."\n"
                                .'        "updatedDate":,'."\n"
                                .'        "verificationId": "",'."\n"
                                .'        "status": ""'."\n"
                                .'      }'."\n"
                                .'    ],'."\n"
                                .'    "pageNo": ,'."\n"
                                .'    "totalPage": 1,'."\n"
                                .'    "pageSize": 20,'."\n"
                                .'    "totalCount": 1,'."\n"
                                .'  }'],
                            'Code' => ['description' => '返回code。', 'type' => 'string', 'example' => 'OK'],
                            'Success' => ['description' => '是否调用成功。'."\n"
                                ."\n"
                                .'- **true**:调用成功。'."\n"
                                ."\n"
                                .' - **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
                        ],
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => '查询验证结果',
            'changeSet' => [
                ['createdAt' => '2025-08-01T08:40:15.000Z', 'description' => 'OpenAPI 下线'],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"HF14955E-EEB5-3CE4-AE50-00F7FC8C1D62\\\\n\\",\\n  \\"Message\\": \\"OK\\",\\n  \\"Model\\": {\\n    \\"test\\": \\"test\\",\\n    \\"test2\\": 1\\n  },\\n  \\"Code\\": \\"OK\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
        ],
        'StartVerification' => [
            'summary' => '通过指定的通道向最终用户发送验证码,支持的通道有短信、语音、和whatsapp。',
            'methods' => ['post', 'get'],
            'schemes' => ['http', 'https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => [
                'operationType' => 'create',
                'riskType' => 'none',
                'chargeType' => 'free',
                'abilityTreeCode' => '171584',
                'abilityTreeNodes' => ['FEATUREdypnsL4YHVT'],
                'autoTest' => true,
                'tenantRelevance' => 'publicInformation',
            ],
            'parameters' => [
                [
                    'name' => 'Channel',
                    'in' => 'query',
                    'schema' => [
                        'description' => '认证通道,包括短信(SMS)、语音(VOCIE)、whatsApp(WHATSAPP)。',
                        'type' => 'string',
                        'required' => true,
                        'enumValueTitles' => [],
                        'example' => 'SMS',
                    ],
                ],
                [
                    'name' => 'To',
                    'in' => 'query',
                    'schema' => ['description' => '接收短信号码。号码格式为:国际区号+号码。', 'type' => 'string', 'required' => true, 'example' => '6212345****01'],
                ],
                [
                    'name' => 'ServiceSid',
                    'in' => 'query',
                    'schema' => ['description' => '控制台配置的ServiceID。', 'type' => 'string', 'required' => true, 'example' => 'FA00000000000001'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['description' => '请求ID,阿里云为该请求生成的唯一标识符。', 'type' => 'string', 'example' => 'HF14955E-EEB5-3CE4-AE50-00F7FC8C1D62'],
                            'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'OK'],
                            'Model' => ['description' => '请求结果数据,如果请求成功则返回。', 'type' => 'object', 'example' => '{'."\n"
                                .'    "verifyCode": "",'."\n"
                                .'    "verificationId": "",'."\n"
                                .'    "status": ""'."\n"
                                .'  }'],
                            'Code' => ['description' => '返回code。', 'type' => 'string', 'example' => 'OK'],
                            'Success' => ['description' => '是否调用成功。'."\n"
                                ."\n"
                                .'- **true**:调用成功。'."\n"
                                .' '."\n"
                                .'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
                        ],
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorMessage' => 'The parameter is invalid.', 'errorCode' => 'Invalid.Parameters', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => '发送验证码',
            'changeSet' => [
                ['createdAt' => '2025-08-01T08:40:15.000Z', 'description' => 'OpenAPI 下线'],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"HF14955E-EEB5-3CE4-AE50-00F7FC8C1D62\\",\\n  \\"Message\\": \\"OK\\",\\n  \\"Model\\": {\\n    \\"verifyCode\\": \\"\\",\\n    \\"verificationId\\": \\"\\",\\n    \\"status\\": \\"\\"\\n  },\\n  \\"Code\\": \\"OK\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
        ],
    ],
    'endpoints' => [
        ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dypnsapi-intl.ap-southeast-1.aliyuncs.com', 'endpoint' => 'dypnsapi-intl.ap-southeast-1.aliyuncs.com', 'vpc' => 'dypnsapi-intl-vpc.ap-southeast-1.aliyuncs.com'],
    ],
    'errorCodes' => [
        ['code' => 'Invalid.Parameters', 'message' => 'The parameter is invalid.', 'http_code' => 400, 'description' => '请检查参数配置,保证参数的准确性。'],
    ],
    'changeSet' => [
        [
            'apis' => [
                ['description' => 'OpenAPI 下线', 'api' => 'SearchVerification'],
                ['description' => 'OpenAPI 下线', 'api' => 'StartVerification'],
                ['description' => 'OpenAPI 下线', 'api' => 'CheckVerification'],
            ],
            'createdAt' => '2025-08-01T08:40:15.000Z',
            'description' => '',
        ],
    ],
];