tencentcloud-sdk-python-faceid 3.0.1334__py2.py3-none-any.whl → 3.1.3__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tencentcloud/__init__.py +1 -1
- tencentcloud/faceid/v20180301/errorcodes.py +1 -7
- tencentcloud/faceid/v20180301/faceid_client.py +37 -60
- tencentcloud/faceid/v20180301/faceid_client_async.py +674 -0
- tencentcloud/faceid/v20180301/models.py +919 -786
- {tencentcloud_sdk_python_faceid-3.0.1334.dist-info → tencentcloud_sdk_python_faceid-3.1.3.dist-info}/METADATA +2 -4
- tencentcloud_sdk_python_faceid-3.1.3.dist-info/RECORD +11 -0
- {tencentcloud_sdk_python_faceid-3.0.1334.dist-info → tencentcloud_sdk_python_faceid-3.1.3.dist-info}/WHEEL +1 -1
- tencentcloud_sdk_python_faceid-3.0.1334.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_faceid-3.0.1334.dist-info → tencentcloud_sdk_python_faceid-3.1.3.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.abstract_client_async import AbstractClient
|
|
19
|
+
from tencentcloud.faceid.v20180301 import models
|
|
20
|
+
from typing import Dict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class FaceidClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2018-03-01'
|
|
25
|
+
_endpoint = 'faceid.tencentcloudapi.com'
|
|
26
|
+
_service = 'faceid'
|
|
27
|
+
|
|
28
|
+
async def BankCard2EVerification(
|
|
29
|
+
self,
|
|
30
|
+
request: models.BankCard2EVerificationRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.BankCard2EVerificationResponse:
|
|
33
|
+
"""
|
|
34
|
+
本接口用于校验姓名和银行卡号的真实性和一致性。
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
kwargs = {}
|
|
38
|
+
kwargs["action"] = "BankCard2EVerification"
|
|
39
|
+
kwargs["params"] = request._serialize()
|
|
40
|
+
kwargs["resp_cls"] = models.BankCard2EVerificationResponse
|
|
41
|
+
kwargs["headers"] = request.headers
|
|
42
|
+
kwargs["opts"] = opts or {}
|
|
43
|
+
|
|
44
|
+
return await self.call_and_deserialize(**kwargs)
|
|
45
|
+
|
|
46
|
+
async def BankCard4EVerification(
|
|
47
|
+
self,
|
|
48
|
+
request: models.BankCard4EVerificationRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.BankCard4EVerificationResponse:
|
|
51
|
+
"""
|
|
52
|
+
本接口用于输入银行卡号、姓名、开户证件号、开户手机号,校验信息的真实性和一致性。
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "BankCard4EVerification"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.BankCard4EVerificationResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
64
|
+
async def BankCardVerification(
|
|
65
|
+
self,
|
|
66
|
+
request: models.BankCardVerificationRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.BankCardVerificationResponse:
|
|
69
|
+
"""
|
|
70
|
+
本接口用于银行卡号、姓名、开户证件号信息的真实性和一致性。
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = {}
|
|
74
|
+
kwargs["action"] = "BankCardVerification"
|
|
75
|
+
kwargs["params"] = request._serialize()
|
|
76
|
+
kwargs["resp_cls"] = models.BankCardVerificationResponse
|
|
77
|
+
kwargs["headers"] = request.headers
|
|
78
|
+
kwargs["opts"] = opts or {}
|
|
79
|
+
|
|
80
|
+
return await self.call_and_deserialize(**kwargs)
|
|
81
|
+
|
|
82
|
+
async def CheckBankCardInformation(
|
|
83
|
+
self,
|
|
84
|
+
request: models.CheckBankCardInformationRequest,
|
|
85
|
+
opts: Dict = None,
|
|
86
|
+
) -> models.CheckBankCardInformationResponse:
|
|
87
|
+
"""
|
|
88
|
+
银行卡基础信息查询
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
kwargs = {}
|
|
92
|
+
kwargs["action"] = "CheckBankCardInformation"
|
|
93
|
+
kwargs["params"] = request._serialize()
|
|
94
|
+
kwargs["resp_cls"] = models.CheckBankCardInformationResponse
|
|
95
|
+
kwargs["headers"] = request.headers
|
|
96
|
+
kwargs["opts"] = opts or {}
|
|
97
|
+
|
|
98
|
+
return await self.call_and_deserialize(**kwargs)
|
|
99
|
+
|
|
100
|
+
async def CheckEidTokenStatus(
|
|
101
|
+
self,
|
|
102
|
+
request: models.CheckEidTokenStatusRequest,
|
|
103
|
+
opts: Dict = None,
|
|
104
|
+
) -> models.CheckEidTokenStatusResponse:
|
|
105
|
+
"""
|
|
106
|
+
用于轮询E证通H5场景EidToken验证状态。
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
kwargs = {}
|
|
110
|
+
kwargs["action"] = "CheckEidTokenStatus"
|
|
111
|
+
kwargs["params"] = request._serialize()
|
|
112
|
+
kwargs["resp_cls"] = models.CheckEidTokenStatusResponse
|
|
113
|
+
kwargs["headers"] = request.headers
|
|
114
|
+
kwargs["opts"] = opts or {}
|
|
115
|
+
|
|
116
|
+
return await self.call_and_deserialize(**kwargs)
|
|
117
|
+
|
|
118
|
+
async def CheckIdCardInformation(
|
|
119
|
+
self,
|
|
120
|
+
request: models.CheckIdCardInformationRequest,
|
|
121
|
+
opts: Dict = None,
|
|
122
|
+
) -> models.CheckIdCardInformationResponse:
|
|
123
|
+
"""
|
|
124
|
+
传入身份证人像面照片,识别身份证照片上的信息,并将姓名、身份证号、身份证人像照片与权威库的证件照进行比对,是否属于同一个人,从而验证身份证信息的真实性。
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = {}
|
|
128
|
+
kwargs["action"] = "CheckIdCardInformation"
|
|
129
|
+
kwargs["params"] = request._serialize()
|
|
130
|
+
kwargs["resp_cls"] = models.CheckIdCardInformationResponse
|
|
131
|
+
kwargs["headers"] = request.headers
|
|
132
|
+
kwargs["opts"] = opts or {}
|
|
133
|
+
|
|
134
|
+
return await self.call_and_deserialize(**kwargs)
|
|
135
|
+
|
|
136
|
+
async def CheckIdNameDate(
|
|
137
|
+
self,
|
|
138
|
+
request: models.CheckIdNameDateRequest,
|
|
139
|
+
opts: Dict = None,
|
|
140
|
+
) -> models.CheckIdNameDateResponse:
|
|
141
|
+
"""
|
|
142
|
+
本接口用于校验姓名、身份证号、身份证有效期的真实性和一致性。
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
kwargs = {}
|
|
146
|
+
kwargs["action"] = "CheckIdNameDate"
|
|
147
|
+
kwargs["params"] = request._serialize()
|
|
148
|
+
kwargs["resp_cls"] = models.CheckIdNameDateResponse
|
|
149
|
+
kwargs["headers"] = request.headers
|
|
150
|
+
kwargs["opts"] = opts or {}
|
|
151
|
+
|
|
152
|
+
return await self.call_and_deserialize(**kwargs)
|
|
153
|
+
|
|
154
|
+
async def CheckPhoneAndName(
|
|
155
|
+
self,
|
|
156
|
+
request: models.CheckPhoneAndNameRequest,
|
|
157
|
+
opts: Dict = None,
|
|
158
|
+
) -> models.CheckPhoneAndNameResponse:
|
|
159
|
+
"""
|
|
160
|
+
手机号二要素核验接口用于校验手机号和姓名的真实性和一致性,支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
kwargs = {}
|
|
164
|
+
kwargs["action"] = "CheckPhoneAndName"
|
|
165
|
+
kwargs["params"] = request._serialize()
|
|
166
|
+
kwargs["resp_cls"] = models.CheckPhoneAndNameResponse
|
|
167
|
+
kwargs["headers"] = request.headers
|
|
168
|
+
kwargs["opts"] = opts or {}
|
|
169
|
+
|
|
170
|
+
return await self.call_and_deserialize(**kwargs)
|
|
171
|
+
|
|
172
|
+
async def DetectAIFakeFaces(
|
|
173
|
+
self,
|
|
174
|
+
request: models.DetectAIFakeFacesRequest,
|
|
175
|
+
opts: Dict = None,
|
|
176
|
+
) -> models.DetectAIFakeFacesResponse:
|
|
177
|
+
"""
|
|
178
|
+
基于多模态的AI大模型算法,提供对人脸图片、视频的防攻击检测能力,可针对性有效识别高仿真的AIGC换脸、高清翻拍、批量黑产攻击、水印等攻击痕迹,增强对图片和视频的防伪安全能力。
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
kwargs = {}
|
|
182
|
+
kwargs["action"] = "DetectAIFakeFaces"
|
|
183
|
+
kwargs["params"] = request._serialize()
|
|
184
|
+
kwargs["resp_cls"] = models.DetectAIFakeFacesResponse
|
|
185
|
+
kwargs["headers"] = request.headers
|
|
186
|
+
kwargs["opts"] = opts or {}
|
|
187
|
+
|
|
188
|
+
return await self.call_and_deserialize(**kwargs)
|
|
189
|
+
|
|
190
|
+
async def DetectAuth(
|
|
191
|
+
self,
|
|
192
|
+
request: models.DetectAuthRequest,
|
|
193
|
+
opts: Dict = None,
|
|
194
|
+
) -> models.DetectAuthResponse:
|
|
195
|
+
"""
|
|
196
|
+
每次调用人脸核身SaaS化服务前,需先调用本接口获取BizToken,用来串联核身流程,在验证完成后,用于获取验证结果信息。
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
kwargs = {}
|
|
200
|
+
kwargs["action"] = "DetectAuth"
|
|
201
|
+
kwargs["params"] = request._serialize()
|
|
202
|
+
kwargs["resp_cls"] = models.DetectAuthResponse
|
|
203
|
+
kwargs["headers"] = request.headers
|
|
204
|
+
kwargs["opts"] = opts or {}
|
|
205
|
+
|
|
206
|
+
return await self.call_and_deserialize(**kwargs)
|
|
207
|
+
|
|
208
|
+
async def EncryptedPhoneVerification(
|
|
209
|
+
self,
|
|
210
|
+
request: models.EncryptedPhoneVerificationRequest,
|
|
211
|
+
opts: Dict = None,
|
|
212
|
+
) -> models.EncryptedPhoneVerificationResponse:
|
|
213
|
+
"""
|
|
214
|
+
本接口用于校验手机号、姓名和身份证号的真实性和一致性,入参支持明文、MD5和SHA256加密传输。
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
kwargs = {}
|
|
218
|
+
kwargs["action"] = "EncryptedPhoneVerification"
|
|
219
|
+
kwargs["params"] = request._serialize()
|
|
220
|
+
kwargs["resp_cls"] = models.EncryptedPhoneVerificationResponse
|
|
221
|
+
kwargs["headers"] = request.headers
|
|
222
|
+
kwargs["opts"] = opts or {}
|
|
223
|
+
|
|
224
|
+
return await self.call_and_deserialize(**kwargs)
|
|
225
|
+
|
|
226
|
+
async def GetActionSequence(
|
|
227
|
+
self,
|
|
228
|
+
request: models.GetActionSequenceRequest,
|
|
229
|
+
opts: Dict = None,
|
|
230
|
+
) -> models.GetActionSequenceResponse:
|
|
231
|
+
"""
|
|
232
|
+
使用动作活体检测模式前,需调用本接口获取动作顺序。
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
kwargs = {}
|
|
236
|
+
kwargs["action"] = "GetActionSequence"
|
|
237
|
+
kwargs["params"] = request._serialize()
|
|
238
|
+
kwargs["resp_cls"] = models.GetActionSequenceResponse
|
|
239
|
+
kwargs["headers"] = request.headers
|
|
240
|
+
kwargs["opts"] = opts or {}
|
|
241
|
+
|
|
242
|
+
return await self.call_and_deserialize(**kwargs)
|
|
243
|
+
|
|
244
|
+
async def GetDetectInfo(
|
|
245
|
+
self,
|
|
246
|
+
request: models.GetDetectInfoRequest,
|
|
247
|
+
opts: Dict = None,
|
|
248
|
+
) -> models.GetDetectInfoResponse:
|
|
249
|
+
"""
|
|
250
|
+
完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
|
|
251
|
+
"""
|
|
252
|
+
|
|
253
|
+
kwargs = {}
|
|
254
|
+
kwargs["action"] = "GetDetectInfo"
|
|
255
|
+
kwargs["params"] = request._serialize()
|
|
256
|
+
kwargs["resp_cls"] = models.GetDetectInfoResponse
|
|
257
|
+
kwargs["headers"] = request.headers
|
|
258
|
+
kwargs["opts"] = opts or {}
|
|
259
|
+
|
|
260
|
+
return await self.call_and_deserialize(**kwargs)
|
|
261
|
+
|
|
262
|
+
async def GetDetectInfoEnhanced(
|
|
263
|
+
self,
|
|
264
|
+
request: models.GetDetectInfoEnhancedRequest,
|
|
265
|
+
opts: Dict = None,
|
|
266
|
+
) -> models.GetDetectInfoEnhancedResponse:
|
|
267
|
+
"""
|
|
268
|
+
完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
|
|
269
|
+
"""
|
|
270
|
+
|
|
271
|
+
kwargs = {}
|
|
272
|
+
kwargs["action"] = "GetDetectInfoEnhanced"
|
|
273
|
+
kwargs["params"] = request._serialize()
|
|
274
|
+
kwargs["resp_cls"] = models.GetDetectInfoEnhancedResponse
|
|
275
|
+
kwargs["headers"] = request.headers
|
|
276
|
+
kwargs["opts"] = opts or {}
|
|
277
|
+
|
|
278
|
+
return await self.call_and_deserialize(**kwargs)
|
|
279
|
+
|
|
280
|
+
async def GetEidResult(
|
|
281
|
+
self,
|
|
282
|
+
request: models.GetEidResultRequest,
|
|
283
|
+
opts: Dict = None,
|
|
284
|
+
) -> models.GetEidResultResponse:
|
|
285
|
+
"""
|
|
286
|
+
完成验证后,用EidToken调用本接口获取结果信息,EidToken生成后三天内(3\*24\*3,600秒)可多次拉取。
|
|
287
|
+
"""
|
|
288
|
+
|
|
289
|
+
kwargs = {}
|
|
290
|
+
kwargs["action"] = "GetEidResult"
|
|
291
|
+
kwargs["params"] = request._serialize()
|
|
292
|
+
kwargs["resp_cls"] = models.GetEidResultResponse
|
|
293
|
+
kwargs["headers"] = request.headers
|
|
294
|
+
kwargs["opts"] = opts or {}
|
|
295
|
+
|
|
296
|
+
return await self.call_and_deserialize(**kwargs)
|
|
297
|
+
|
|
298
|
+
async def GetEidToken(
|
|
299
|
+
self,
|
|
300
|
+
request: models.GetEidTokenRequest,
|
|
301
|
+
opts: Dict = None,
|
|
302
|
+
) -> models.GetEidTokenResponse:
|
|
303
|
+
"""
|
|
304
|
+
每次调用E证通服务前,需先调用本接口获取EidToken,用来串联E证通流程,在验证完成后,用于获取E证通结果信息。
|
|
305
|
+
"""
|
|
306
|
+
|
|
307
|
+
kwargs = {}
|
|
308
|
+
kwargs["action"] = "GetEidToken"
|
|
309
|
+
kwargs["params"] = request._serialize()
|
|
310
|
+
kwargs["resp_cls"] = models.GetEidTokenResponse
|
|
311
|
+
kwargs["headers"] = request.headers
|
|
312
|
+
kwargs["opts"] = opts or {}
|
|
313
|
+
|
|
314
|
+
return await self.call_and_deserialize(**kwargs)
|
|
315
|
+
|
|
316
|
+
async def GetFaceIdResult(
|
|
317
|
+
self,
|
|
318
|
+
request: models.GetFaceIdResultRequest,
|
|
319
|
+
opts: Dict = None,
|
|
320
|
+
) -> models.GetFaceIdResultResponse:
|
|
321
|
+
"""
|
|
322
|
+
完成验证后,用FaceIdToken调用本接口获取结果信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
kwargs = {}
|
|
326
|
+
kwargs["action"] = "GetFaceIdResult"
|
|
327
|
+
kwargs["params"] = request._serialize()
|
|
328
|
+
kwargs["resp_cls"] = models.GetFaceIdResultResponse
|
|
329
|
+
kwargs["headers"] = request.headers
|
|
330
|
+
kwargs["opts"] = opts or {}
|
|
331
|
+
|
|
332
|
+
return await self.call_and_deserialize(**kwargs)
|
|
333
|
+
|
|
334
|
+
async def GetFaceIdRiskInfo(
|
|
335
|
+
self,
|
|
336
|
+
request: models.GetFaceIdRiskInfoRequest,
|
|
337
|
+
opts: Dict = None,
|
|
338
|
+
) -> models.GetFaceIdRiskInfoResponse:
|
|
339
|
+
"""
|
|
340
|
+
完成验证后,用FaceIdToken调用本接口获取设备风险相关信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
|
|
341
|
+
"""
|
|
342
|
+
|
|
343
|
+
kwargs = {}
|
|
344
|
+
kwargs["action"] = "GetFaceIdRiskInfo"
|
|
345
|
+
kwargs["params"] = request._serialize()
|
|
346
|
+
kwargs["resp_cls"] = models.GetFaceIdRiskInfoResponse
|
|
347
|
+
kwargs["headers"] = request.headers
|
|
348
|
+
kwargs["opts"] = opts or {}
|
|
349
|
+
|
|
350
|
+
return await self.call_and_deserialize(**kwargs)
|
|
351
|
+
|
|
352
|
+
async def GetFaceIdToken(
|
|
353
|
+
self,
|
|
354
|
+
request: models.GetFaceIdTokenRequest,
|
|
355
|
+
opts: Dict = None,
|
|
356
|
+
) -> models.GetFaceIdTokenResponse:
|
|
357
|
+
"""
|
|
358
|
+
每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取验证结果信息,该token仅能核身一次。
|
|
359
|
+
"""
|
|
360
|
+
|
|
361
|
+
kwargs = {}
|
|
362
|
+
kwargs["action"] = "GetFaceIdToken"
|
|
363
|
+
kwargs["params"] = request._serialize()
|
|
364
|
+
kwargs["resp_cls"] = models.GetFaceIdTokenResponse
|
|
365
|
+
kwargs["headers"] = request.headers
|
|
366
|
+
kwargs["opts"] = opts or {}
|
|
367
|
+
|
|
368
|
+
return await self.call_and_deserialize(**kwargs)
|
|
369
|
+
|
|
370
|
+
async def GetFaceidRiskInfoToken(
|
|
371
|
+
self,
|
|
372
|
+
request: models.GetFaceidRiskInfoTokenRequest,
|
|
373
|
+
opts: Dict = None,
|
|
374
|
+
) -> models.GetFaceidRiskInfoTokenResponse:
|
|
375
|
+
"""
|
|
376
|
+
每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取风险结果信息,该Token仅能核身一次。
|
|
377
|
+
"""
|
|
378
|
+
|
|
379
|
+
kwargs = {}
|
|
380
|
+
kwargs["action"] = "GetFaceidRiskInfoToken"
|
|
381
|
+
kwargs["params"] = request._serialize()
|
|
382
|
+
kwargs["resp_cls"] = models.GetFaceidRiskInfoTokenResponse
|
|
383
|
+
kwargs["headers"] = request.headers
|
|
384
|
+
kwargs["opts"] = opts or {}
|
|
385
|
+
|
|
386
|
+
return await self.call_and_deserialize(**kwargs)
|
|
387
|
+
|
|
388
|
+
async def GetLiveCode(
|
|
389
|
+
self,
|
|
390
|
+
request: models.GetLiveCodeRequest,
|
|
391
|
+
opts: Dict = None,
|
|
392
|
+
) -> models.GetLiveCodeResponse:
|
|
393
|
+
"""
|
|
394
|
+
使用数字活体检测模式前,需调用本接口获取数字验证码。
|
|
395
|
+
"""
|
|
396
|
+
|
|
397
|
+
kwargs = {}
|
|
398
|
+
kwargs["action"] = "GetLiveCode"
|
|
399
|
+
kwargs["params"] = request._serialize()
|
|
400
|
+
kwargs["resp_cls"] = models.GetLiveCodeResponse
|
|
401
|
+
kwargs["headers"] = request.headers
|
|
402
|
+
kwargs["opts"] = opts or {}
|
|
403
|
+
|
|
404
|
+
return await self.call_and_deserialize(**kwargs)
|
|
405
|
+
|
|
406
|
+
async def GetWeChatBillDetails(
|
|
407
|
+
self,
|
|
408
|
+
request: models.GetWeChatBillDetailsRequest,
|
|
409
|
+
opts: Dict = None,
|
|
410
|
+
) -> models.GetWeChatBillDetailsResponse:
|
|
411
|
+
"""
|
|
412
|
+
查询微信渠道服务(微信小程序、微信原生H5、微信普通H5)的账单明细及计费状态。
|
|
413
|
+
"""
|
|
414
|
+
|
|
415
|
+
kwargs = {}
|
|
416
|
+
kwargs["action"] = "GetWeChatBillDetails"
|
|
417
|
+
kwargs["params"] = request._serialize()
|
|
418
|
+
kwargs["resp_cls"] = models.GetWeChatBillDetailsResponse
|
|
419
|
+
kwargs["headers"] = request.headers
|
|
420
|
+
kwargs["opts"] = opts or {}
|
|
421
|
+
|
|
422
|
+
return await self.call_and_deserialize(**kwargs)
|
|
423
|
+
|
|
424
|
+
async def IdCardOCRVerification(
|
|
425
|
+
self,
|
|
426
|
+
request: models.IdCardOCRVerificationRequest,
|
|
427
|
+
opts: Dict = None,
|
|
428
|
+
) -> models.IdCardOCRVerificationResponse:
|
|
429
|
+
"""
|
|
430
|
+
本接口用于校验姓名和身份证号的真实性和一致性,您可以通过输入姓名和身份证号或传入身份证人像面照片提供所需验证信息。
|
|
431
|
+
"""
|
|
432
|
+
|
|
433
|
+
kwargs = {}
|
|
434
|
+
kwargs["action"] = "IdCardOCRVerification"
|
|
435
|
+
kwargs["params"] = request._serialize()
|
|
436
|
+
kwargs["resp_cls"] = models.IdCardOCRVerificationResponse
|
|
437
|
+
kwargs["headers"] = request.headers
|
|
438
|
+
kwargs["opts"] = opts or {}
|
|
439
|
+
|
|
440
|
+
return await self.call_and_deserialize(**kwargs)
|
|
441
|
+
|
|
442
|
+
async def IdCardVerification(
|
|
443
|
+
self,
|
|
444
|
+
request: models.IdCardVerificationRequest,
|
|
445
|
+
opts: Dict = None,
|
|
446
|
+
) -> models.IdCardVerificationResponse:
|
|
447
|
+
"""
|
|
448
|
+
传入姓名和身份证号,校验两者的真实性和一致性。
|
|
449
|
+
"""
|
|
450
|
+
|
|
451
|
+
kwargs = {}
|
|
452
|
+
kwargs["action"] = "IdCardVerification"
|
|
453
|
+
kwargs["params"] = request._serialize()
|
|
454
|
+
kwargs["resp_cls"] = models.IdCardVerificationResponse
|
|
455
|
+
kwargs["headers"] = request.headers
|
|
456
|
+
kwargs["opts"] = opts or {}
|
|
457
|
+
|
|
458
|
+
return await self.call_and_deserialize(**kwargs)
|
|
459
|
+
|
|
460
|
+
async def ImageRecognition(
|
|
461
|
+
self,
|
|
462
|
+
request: models.ImageRecognitionRequest,
|
|
463
|
+
opts: Dict = None,
|
|
464
|
+
) -> models.ImageRecognitionResponse:
|
|
465
|
+
"""
|
|
466
|
+
传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人(该接口已停止接入,新客户请使用<a href="https://cloud.tencent.com/document/product/1007/102203">照片人脸核身(V2.0)</a>接口)。
|
|
467
|
+
"""
|
|
468
|
+
|
|
469
|
+
kwargs = {}
|
|
470
|
+
kwargs["action"] = "ImageRecognition"
|
|
471
|
+
kwargs["params"] = request._serialize()
|
|
472
|
+
kwargs["resp_cls"] = models.ImageRecognitionResponse
|
|
473
|
+
kwargs["headers"] = request.headers
|
|
474
|
+
kwargs["opts"] = opts or {}
|
|
475
|
+
|
|
476
|
+
return await self.call_and_deserialize(**kwargs)
|
|
477
|
+
|
|
478
|
+
async def ImageRecognitionV2(
|
|
479
|
+
self,
|
|
480
|
+
request: models.ImageRecognitionV2Request,
|
|
481
|
+
opts: Dict = None,
|
|
482
|
+
) -> models.ImageRecognitionV2Response:
|
|
483
|
+
"""
|
|
484
|
+
传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
|
|
485
|
+
"""
|
|
486
|
+
|
|
487
|
+
kwargs = {}
|
|
488
|
+
kwargs["action"] = "ImageRecognitionV2"
|
|
489
|
+
kwargs["params"] = request._serialize()
|
|
490
|
+
kwargs["resp_cls"] = models.ImageRecognitionV2Response
|
|
491
|
+
kwargs["headers"] = request.headers
|
|
492
|
+
kwargs["opts"] = opts or {}
|
|
493
|
+
|
|
494
|
+
return await self.call_and_deserialize(**kwargs)
|
|
495
|
+
|
|
496
|
+
async def LivenessCompare(
|
|
497
|
+
self,
|
|
498
|
+
request: models.LivenessCompareRequest,
|
|
499
|
+
opts: Dict = None,
|
|
500
|
+
) -> models.LivenessCompareResponse:
|
|
501
|
+
"""
|
|
502
|
+
传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
|
|
503
|
+
"""
|
|
504
|
+
|
|
505
|
+
kwargs = {}
|
|
506
|
+
kwargs["action"] = "LivenessCompare"
|
|
507
|
+
kwargs["params"] = request._serialize()
|
|
508
|
+
kwargs["resp_cls"] = models.LivenessCompareResponse
|
|
509
|
+
kwargs["headers"] = request.headers
|
|
510
|
+
kwargs["opts"] = opts or {}
|
|
511
|
+
|
|
512
|
+
return await self.call_and_deserialize(**kwargs)
|
|
513
|
+
|
|
514
|
+
async def LivenessRecognition(
|
|
515
|
+
self,
|
|
516
|
+
request: models.LivenessRecognitionRequest,
|
|
517
|
+
opts: Dict = None,
|
|
518
|
+
) -> models.LivenessRecognitionResponse:
|
|
519
|
+
"""
|
|
520
|
+
传入视频和身份信息,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与权威库的证件照是否属于同一个人。
|
|
521
|
+
"""
|
|
522
|
+
|
|
523
|
+
kwargs = {}
|
|
524
|
+
kwargs["action"] = "LivenessRecognition"
|
|
525
|
+
kwargs["params"] = request._serialize()
|
|
526
|
+
kwargs["resp_cls"] = models.LivenessRecognitionResponse
|
|
527
|
+
kwargs["headers"] = request.headers
|
|
528
|
+
kwargs["opts"] = opts or {}
|
|
529
|
+
|
|
530
|
+
return await self.call_and_deserialize(**kwargs)
|
|
531
|
+
|
|
532
|
+
async def MinorsVerification(
|
|
533
|
+
self,
|
|
534
|
+
request: models.MinorsVerificationRequest,
|
|
535
|
+
opts: Dict = None,
|
|
536
|
+
) -> models.MinorsVerificationResponse:
|
|
537
|
+
"""
|
|
538
|
+
通过传入手机号或姓名和身份证号,结合权威数据源和腾讯健康守护可信模型,判断该信息是否真实且年满18周岁。腾讯健康守护可信模型覆盖了上十亿手机库源,覆盖率高、准确率高,如果不在库中的手机号,还可以通过姓名+身份证进行兜底验证。
|
|
539
|
+
"""
|
|
540
|
+
|
|
541
|
+
kwargs = {}
|
|
542
|
+
kwargs["action"] = "MinorsVerification"
|
|
543
|
+
kwargs["params"] = request._serialize()
|
|
544
|
+
kwargs["resp_cls"] = models.MinorsVerificationResponse
|
|
545
|
+
kwargs["headers"] = request.headers
|
|
546
|
+
kwargs["opts"] = opts or {}
|
|
547
|
+
|
|
548
|
+
return await self.call_and_deserialize(**kwargs)
|
|
549
|
+
|
|
550
|
+
async def MobileNetworkTimeVerification(
|
|
551
|
+
self,
|
|
552
|
+
request: models.MobileNetworkTimeVerificationRequest,
|
|
553
|
+
opts: Dict = None,
|
|
554
|
+
) -> models.MobileNetworkTimeVerificationResponse:
|
|
555
|
+
"""
|
|
556
|
+
本接口用于查询手机号在网时长,输入手机号进行查询。
|
|
557
|
+
"""
|
|
558
|
+
|
|
559
|
+
kwargs = {}
|
|
560
|
+
kwargs["action"] = "MobileNetworkTimeVerification"
|
|
561
|
+
kwargs["params"] = request._serialize()
|
|
562
|
+
kwargs["resp_cls"] = models.MobileNetworkTimeVerificationResponse
|
|
563
|
+
kwargs["headers"] = request.headers
|
|
564
|
+
kwargs["opts"] = opts or {}
|
|
565
|
+
|
|
566
|
+
return await self.call_and_deserialize(**kwargs)
|
|
567
|
+
|
|
568
|
+
async def MobileStatus(
|
|
569
|
+
self,
|
|
570
|
+
request: models.MobileStatusRequest,
|
|
571
|
+
opts: Dict = None,
|
|
572
|
+
) -> models.MobileStatusResponse:
|
|
573
|
+
"""
|
|
574
|
+
本接口用于验证手机号的状态,您可以输入手机号进行查询。
|
|
575
|
+
"""
|
|
576
|
+
|
|
577
|
+
kwargs = {}
|
|
578
|
+
kwargs["action"] = "MobileStatus"
|
|
579
|
+
kwargs["params"] = request._serialize()
|
|
580
|
+
kwargs["resp_cls"] = models.MobileStatusResponse
|
|
581
|
+
kwargs["headers"] = request.headers
|
|
582
|
+
kwargs["opts"] = opts or {}
|
|
583
|
+
|
|
584
|
+
return await self.call_and_deserialize(**kwargs)
|
|
585
|
+
|
|
586
|
+
async def ParseNfcData(
|
|
587
|
+
self,
|
|
588
|
+
request: models.ParseNfcDataRequest,
|
|
589
|
+
opts: Dict = None,
|
|
590
|
+
) -> models.ParseNfcDataResponse:
|
|
591
|
+
"""
|
|
592
|
+
解析SDK获取到的证件NFC数据,接口传入SDK返回的ReqId,返回证件信息(个别字段为特定证件类型特有)。SDK生成的ReqId五分钟内有效,重复查询仅收一次费。支持身份证类证件(二代身份证、港澳居住证、台湾居住证、外国人永居证)以及旅行类证件(港澳通行证、台湾通行证、台胞证、回乡证)的NFC识别及核验。
|
|
593
|
+
"""
|
|
594
|
+
|
|
595
|
+
kwargs = {}
|
|
596
|
+
kwargs["action"] = "ParseNfcData"
|
|
597
|
+
kwargs["params"] = request._serialize()
|
|
598
|
+
kwargs["resp_cls"] = models.ParseNfcDataResponse
|
|
599
|
+
kwargs["headers"] = request.headers
|
|
600
|
+
kwargs["opts"] = opts or {}
|
|
601
|
+
|
|
602
|
+
return await self.call_and_deserialize(**kwargs)
|
|
603
|
+
|
|
604
|
+
async def PhoneVerification(
|
|
605
|
+
self,
|
|
606
|
+
request: models.PhoneVerificationRequest,
|
|
607
|
+
opts: Dict = None,
|
|
608
|
+
) -> models.PhoneVerificationResponse:
|
|
609
|
+
"""
|
|
610
|
+
本接口用于校验手机号、姓名和身份证号的真实性和一致性。支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
|
|
611
|
+
"""
|
|
612
|
+
|
|
613
|
+
kwargs = {}
|
|
614
|
+
kwargs["action"] = "PhoneVerification"
|
|
615
|
+
kwargs["params"] = request._serialize()
|
|
616
|
+
kwargs["resp_cls"] = models.PhoneVerificationResponse
|
|
617
|
+
kwargs["headers"] = request.headers
|
|
618
|
+
kwargs["opts"] = opts or {}
|
|
619
|
+
|
|
620
|
+
return await self.call_and_deserialize(**kwargs)
|
|
621
|
+
|
|
622
|
+
async def PhoneVerificationCMCC(
|
|
623
|
+
self,
|
|
624
|
+
request: models.PhoneVerificationCMCCRequest,
|
|
625
|
+
opts: Dict = None,
|
|
626
|
+
) -> models.PhoneVerificationCMCCResponse:
|
|
627
|
+
"""
|
|
628
|
+
本接口用于校验中国移动手机号、姓名和身份证号的真实性和一致性。中国移动支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
|
|
629
|
+
"""
|
|
630
|
+
|
|
631
|
+
kwargs = {}
|
|
632
|
+
kwargs["action"] = "PhoneVerificationCMCC"
|
|
633
|
+
kwargs["params"] = request._serialize()
|
|
634
|
+
kwargs["resp_cls"] = models.PhoneVerificationCMCCResponse
|
|
635
|
+
kwargs["headers"] = request.headers
|
|
636
|
+
kwargs["opts"] = opts or {}
|
|
637
|
+
|
|
638
|
+
return await self.call_and_deserialize(**kwargs)
|
|
639
|
+
|
|
640
|
+
async def PhoneVerificationCTCC(
|
|
641
|
+
self,
|
|
642
|
+
request: models.PhoneVerificationCTCCRequest,
|
|
643
|
+
opts: Dict = None,
|
|
644
|
+
) -> models.PhoneVerificationCTCCResponse:
|
|
645
|
+
"""
|
|
646
|
+
本接口用于校验中国电信手机号、姓名和身份证号的真实性和一致性。中国电信支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
|
|
647
|
+
"""
|
|
648
|
+
|
|
649
|
+
kwargs = {}
|
|
650
|
+
kwargs["action"] = "PhoneVerificationCTCC"
|
|
651
|
+
kwargs["params"] = request._serialize()
|
|
652
|
+
kwargs["resp_cls"] = models.PhoneVerificationCTCCResponse
|
|
653
|
+
kwargs["headers"] = request.headers
|
|
654
|
+
kwargs["opts"] = opts or {}
|
|
655
|
+
|
|
656
|
+
return await self.call_and_deserialize(**kwargs)
|
|
657
|
+
|
|
658
|
+
async def PhoneVerificationCUCC(
|
|
659
|
+
self,
|
|
660
|
+
request: models.PhoneVerificationCUCCRequest,
|
|
661
|
+
opts: Dict = None,
|
|
662
|
+
) -> models.PhoneVerificationCUCCResponse:
|
|
663
|
+
"""
|
|
664
|
+
本接口用于校验中国联通手机号、姓名和身份证号的真实性和一致性。中国联通支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
|
|
665
|
+
"""
|
|
666
|
+
|
|
667
|
+
kwargs = {}
|
|
668
|
+
kwargs["action"] = "PhoneVerificationCUCC"
|
|
669
|
+
kwargs["params"] = request._serialize()
|
|
670
|
+
kwargs["resp_cls"] = models.PhoneVerificationCUCCResponse
|
|
671
|
+
kwargs["headers"] = request.headers
|
|
672
|
+
kwargs["opts"] = opts or {}
|
|
673
|
+
|
|
674
|
+
return await self.call_and_deserialize(**kwargs)
|