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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
|
<?php return [
'version' => '1.0',
'info' => [
'style' => 'RPC',
'product' => 'safconsole',
'version' => '2021-01-12',
],
'directories' => [
[
'id' => 236784,
'title' => null,
'type' => 'directory',
'children' => [
'RevokeFeedback',
'SendFeedback',
'UploadSampleApi',
],
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'RevokeFeedback' => [
'summary' => 'Used for external deletion of community samples in risk identification services.',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '79133',
'abilityTreeNodes' => [
'FEATUREsafT73ZWM',
],
],
'parameters' => [
[
'name' => 'SampleType',
'in' => 'formData',
'schema' => [
'description' => 'Sample type. For phone number type samples, input PHONE; for email type samples, input EMAIL; for account type samples, input ACCOUNT.',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'PHONE'."\n",
],
],
[
'name' => 'Value',
'in' => 'formData',
'schema' => [
'description' => 'Sample value.',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => '10000000000',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => [
'description' => 'Interface status or POP error code. Value explanations are as follows: 2xx: Success. 3xx: Redirect. 4xx: Request error. 5xx: Server error.',
'type' => 'string',
'example' => '200',
],
'Message' => [
'description' => 'Return message.',
'type' => 'string',
'example' => 'success',
],
'RequestId' => [
'description' => 'Public parameter, each request ID is unique and can be used for troubleshooting and problem localization.',
'type' => 'string',
'example' => '4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2',
],
],
],
],
],
'errorCodes' => [
200 => [
[
'errorCode' => 'NotAuthorized',
'errorMessage' => 'You are not authorized to call the service. The service has expired, the quota for the subscription is reached, or you have not purchased the service.',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2\\"\\n}","type":"json"}]',
'title' => 'External Sample Deletion Interface',
'translator' => 'machine',
],
'SendFeedback' => [
'summary' => 'Used for the external creation of community samples in risk identification services.',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '79134',
'abilityTreeNodes' => [
'FEATUREsafT73ZWM',
],
],
'parameters' => [
[
'name' => 'SampleType',
'in' => 'query',
'schema' => [
'description' => 'Sample type. For phone number type samples, input PHONE; for email type samples, input EMAIL; for account type samples, input ACCOUNT.',
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'PHONE',
],
],
[
'name' => 'RiskLabel',
'in' => 'query',
'schema' => [
'description' => 'Sample labels. User-defined, separated by commas.',
'type' => 'string',
'required' => false,
'docRequired' => true,
'example' => 'OTHERS',
],
],
[
'name' => 'Value',
'in' => 'query',
'schema' => [
'description' => 'Sample value.',
'type' => 'string',
'required' => true,
'docRequired' => false,
'example' => '10000000000',
],
],
[
'name' => 'Reason',
'in' => 'query',
'schema' => [
'description' => 'The reason why you add the sample.',
'type' => 'string',
'required' => false,
'docRequired' => false,
'example' => 'Abnormal transaction behavior.',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => [
'description' => 'Interface status or POP error code. The values are as follows: 2xx: Success. 3xx: Redirect. 4xx: Request error. 5xx: Server error.',
'type' => 'integer',
'format' => 'int32',
'example' => '200',
],
'Message' => [
'description' => 'Return message.',
'type' => 'string',
'example' => 'success',
],
'RequestId' => [
'description' => 'Public parameter, each request ID is unique and can be used for troubleshooting and problem localization.',
'type' => 'string',
'example' => '4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2',
],
],
],
],
],
'errorCodes' => [
200 => [
[
'errorCode' => 'NotAuthorized',
'errorMessage' => 'You are not authorized to call the service. The service has expired, the quota for the subscription is reached, or you have not purchased the service.',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2\\"\\n}","type":"json"}]',
'title' => 'Create External Sample Interface',
'translator' => 'machine',
],
'UploadSampleApi' => [
'summary' => 'Single User API for Sample Creation',
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '207197',
'abilityTreeNodes' => [
'FEATUREsafT73ZWM',
],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'SampleType',
'in' => 'query',
'schema' => [
'description' => 'The type of the sample'."\n"
."\n"
.'- Blacklist: block'."\n"
."\n"
.'- Whitelist: pass',
'type' => 'string',
'required' => true,
'example' => 'block',
],
],
[
'name' => 'DataType',
'in' => 'query',
'schema' => [
'description' => 'The data type of the sample'."\n"
."\n"
.'- Phone number: mobile'."\n"
.'- MD5 of phone number: mobileMd5'."\n"
.'- IP: ip'."\n"
.'- Unique device ID: umid'."\n"
.'- Account ID: accountId'."\n"
.'- IMEI: imei'."\n"
.'- MD5 of IMEI: imeiMd5'."\n"
.'- OAID: oaid'."\n"
.'- MD5 of OAID: oaidMd5'."\n"
.'- Android ID: androidId'."\n"
.'- MD5 of Android ID: androidIdMd5',
'type' => 'string',
'required' => true,
'example' => 'ip',
],
],
[
'name' => 'Service',
'in' => 'query',
'schema' => [
'description' => 'List of effective services, separate multiple services with commas'."\n"
."\n"
.'- Basic/Enhanced Registration Risk Identification: account_abuse'."\n"
.'- Basic/Enhanced Marketing Risk Identification: coupon_abuse'."\n"
.'- Basic/Enhanced Login Risk Identification: account_takeover',
'type' => 'string',
'required' => true,
'example' => 'account_abuse,coupon_abuse,account_takeover',
],
],
[
'name' => 'DataValue',
'in' => 'query',
'schema' => [
'description' => 'Specific value of the sample, to be passed in JSON format. Do not exceed 1000 entries at a time.',
'type' => 'string',
'required' => true,
'example' => '["123.124.125.126","123.124.125.127"]',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Response Schema',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => 'ID of the request',
'type' => 'string',
'example' => '4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2',
],
'Message' => [
'description' => 'Error message returned',
'type' => 'string',
'example' => 'null',
],
'Code' => [
'description' => 'Request code returned',
'type' => 'string',
'example' => '200',
],
'Success' => [
'description' => 'Indicator of whether the access was successful',
'type' => 'string',
'example' => 'true',
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2\\",\\n \\"Message\\": \\"null\\",\\n \\"Code\\": \\"200\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
'title' => 'Sample Upload Interface',
'translator' => 'machine',
],
],
'endpoints' => [
[
'regionId' => 'cn-shanghai',
'endpoint' => 'safconsole.cn-shanghai.aliyuncs.com',
],
[
'regionId' => 'cn-hangzhou',
'endpoint' => 'safconsole.cn-hangzhou.aliyuncs.com',
],
],
];
|