1 Star 6 Fork 0

tencentcloud/tencentcloud-sdk-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
client.go 131.28 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2024-04-12 17:19 . release v1.0.898
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package v20180301
import (
"context"
"errors"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
)
const APIVersion = "2018-03-01"
type Client struct {
common.Client
}
// Deprecated
func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) {
cpf := profile.NewClientProfile()
client = &Client{}
client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf)
return
}
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) {
client = &Client{}
client.Init(region).
WithCredential(credential).
WithProfile(clientProfile)
return
}
func NewBankCard2EVerificationRequest() (request *BankCard2EVerificationRequest) {
request = &BankCard2EVerificationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "BankCard2EVerification")
return
}
func NewBankCard2EVerificationResponse() (response *BankCard2EVerificationResponse) {
response = &BankCard2EVerificationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// BankCard2EVerification
// 本接口用于校验姓名和银行卡号的真实性和一致性。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) BankCard2EVerification(request *BankCard2EVerificationRequest) (response *BankCard2EVerificationResponse, err error) {
return c.BankCard2EVerificationWithContext(context.Background(), request)
}
// BankCard2EVerification
// 本接口用于校验姓名和银行卡号的真实性和一致性。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) BankCard2EVerificationWithContext(ctx context.Context, request *BankCard2EVerificationRequest) (response *BankCard2EVerificationResponse, err error) {
if request == nil {
request = NewBankCard2EVerificationRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("BankCard2EVerification require credential")
}
request.SetContext(ctx)
response = NewBankCard2EVerificationResponse()
err = c.Send(request, response)
return
}
func NewBankCard4EVerificationRequest() (request *BankCard4EVerificationRequest) {
request = &BankCard4EVerificationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "BankCard4EVerification")
return
}
func NewBankCard4EVerificationResponse() (response *BankCard4EVerificationResponse) {
response = &BankCard4EVerificationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// BankCard4EVerification
// 本接口用于输入银行卡号、姓名、开户证件号、开户手机号,校验信息的真实性和一致性。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) BankCard4EVerification(request *BankCard4EVerificationRequest) (response *BankCard4EVerificationResponse, err error) {
return c.BankCard4EVerificationWithContext(context.Background(), request)
}
// BankCard4EVerification
// 本接口用于输入银行卡号、姓名、开户证件号、开户手机号,校验信息的真实性和一致性。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) BankCard4EVerificationWithContext(ctx context.Context, request *BankCard4EVerificationRequest) (response *BankCard4EVerificationResponse, err error) {
if request == nil {
request = NewBankCard4EVerificationRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("BankCard4EVerification require credential")
}
request.SetContext(ctx)
response = NewBankCard4EVerificationResponse()
err = c.Send(request, response)
return
}
func NewBankCardVerificationRequest() (request *BankCardVerificationRequest) {
request = &BankCardVerificationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "BankCardVerification")
return
}
func NewBankCardVerificationResponse() (response *BankCardVerificationResponse) {
response = &BankCardVerificationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// BankCardVerification
// 本接口用于银行卡号、姓名、开户证件号信息的真实性和一致性。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) BankCardVerification(request *BankCardVerificationRequest) (response *BankCardVerificationResponse, err error) {
return c.BankCardVerificationWithContext(context.Background(), request)
}
// BankCardVerification
// 本接口用于银行卡号、姓名、开户证件号信息的真实性和一致性。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) BankCardVerificationWithContext(ctx context.Context, request *BankCardVerificationRequest) (response *BankCardVerificationResponse, err error) {
if request == nil {
request = NewBankCardVerificationRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("BankCardVerification require credential")
}
request.SetContext(ctx)
response = NewBankCardVerificationResponse()
err = c.Send(request, response)
return
}
func NewCheckBankCardInformationRequest() (request *CheckBankCardInformationRequest) {
request = &CheckBankCardInformationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "CheckBankCardInformation")
return
}
func NewCheckBankCardInformationResponse() (response *CheckBankCardInformationResponse) {
response = &CheckBankCardInformationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CheckBankCardInformation
// 银行卡基础信息查询
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) CheckBankCardInformation(request *CheckBankCardInformationRequest) (response *CheckBankCardInformationResponse, err error) {
return c.CheckBankCardInformationWithContext(context.Background(), request)
}
// CheckBankCardInformation
// 银行卡基础信息查询
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) CheckBankCardInformationWithContext(ctx context.Context, request *CheckBankCardInformationRequest) (response *CheckBankCardInformationResponse, err error) {
if request == nil {
request = NewCheckBankCardInformationRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CheckBankCardInformation require credential")
}
request.SetContext(ctx)
response = NewCheckBankCardInformationResponse()
err = c.Send(request, response)
return
}
func NewCheckEidTokenStatusRequest() (request *CheckEidTokenStatusRequest) {
request = &CheckEidTokenStatusRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "CheckEidTokenStatus")
return
}
func NewCheckEidTokenStatusResponse() (response *CheckEidTokenStatusResponse) {
response = &CheckEidTokenStatusResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CheckEidTokenStatus
// 用于轮询E证通H5场景EidToken验证状态。
//
// 可能返回的错误码:
// FAILEDOPERATION_DBERROR = "FailedOperation.DbError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_BIZTOKENILLEGAL = "InvalidParameterValue.BizTokenIllegal"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) CheckEidTokenStatus(request *CheckEidTokenStatusRequest) (response *CheckEidTokenStatusResponse, err error) {
return c.CheckEidTokenStatusWithContext(context.Background(), request)
}
// CheckEidTokenStatus
// 用于轮询E证通H5场景EidToken验证状态。
//
// 可能返回的错误码:
// FAILEDOPERATION_DBERROR = "FailedOperation.DbError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_BIZTOKENILLEGAL = "InvalidParameterValue.BizTokenIllegal"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) CheckEidTokenStatusWithContext(ctx context.Context, request *CheckEidTokenStatusRequest) (response *CheckEidTokenStatusResponse, err error) {
if request == nil {
request = NewCheckEidTokenStatusRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CheckEidTokenStatus require credential")
}
request.SetContext(ctx)
response = NewCheckEidTokenStatusResponse()
err = c.Send(request, response)
return
}
func NewCheckIdCardInformationRequest() (request *CheckIdCardInformationRequest) {
request = &CheckIdCardInformationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "CheckIdCardInformation")
return
}
func NewCheckIdCardInformationResponse() (response *CheckIdCardInformationResponse) {
response = &CheckIdCardInformationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CheckIdCardInformation
// 传入身份证人像面照片,识别身份证照片上的信息,并将姓名、身份证号、身份证人像照片与权威库的证件照进行比对,是否属于同一个人,从而验证身份证信息的真实性。
//
// 可能返回的错误码:
// FAILEDOPERATION_COMPAREFAIL = "FailedOperation.CompareFail"
// FAILEDOPERATION_COMPARELOWSIMILARITY = "FailedOperation.CompareLowSimilarity"
// FAILEDOPERATION_COMPARESYSTEMERROR = "FailedOperation.CompareSystemError"
// FAILEDOPERATION_DOWNLOADERROR = "FailedOperation.DownLoadError"
// FAILEDOPERATION_EMPTYIMAGEERROR = "FailedOperation.EmptyImageError"
// FAILEDOPERATION_ENCRYPTSYSTEMERROR = "FailedOperation.EncryptSystemError"
// FAILEDOPERATION_FILESAVEERROR = "FailedOperation.FileSaveError"
// FAILEDOPERATION_IDFORMATERROR = "FailedOperation.IdFormatError"
// FAILEDOPERATION_IDNAMEMISMATCH = "FailedOperation.IdNameMisMatch"
// FAILEDOPERATION_IDNOEXISTSYSTEM = "FailedOperation.IdNoExistSystem"
// FAILEDOPERATION_IDPHOTONOEXIST = "FailedOperation.IdPhotoNoExist"
// FAILEDOPERATION_IDPHOTOPOORQUALITY = "FailedOperation.IdPhotoPoorQuality"
// FAILEDOPERATION_IDPHOTOSYSTEMNOANSWER = "FailedOperation.IdPhotoSystemNoanswer"
// FAILEDOPERATION_IMAGEBLUR = "FailedOperation.ImageBlur"
// FAILEDOPERATION_IMAGEDECODEFAILED = "FailedOperation.ImageDecodeFailed"
// FAILEDOPERATION_IMAGENOIDCARD = "FailedOperation.ImageNoIdCard"
// FAILEDOPERATION_IMAGESIZETOOLARGE = "FailedOperation.ImageSizeTooLarge"
// FAILEDOPERATION_LIFEPHOTODETECTFACES = "FailedOperation.LifePhotoDetectFaces"
// FAILEDOPERATION_LIFEPHOTODETECTFAKE = "FailedOperation.LifePhotoDetectFake"
// FAILEDOPERATION_LIFEPHOTODETECTNOFACES = "FailedOperation.LifePhotoDetectNoFaces"
// FAILEDOPERATION_LIFEPHOTOPOORQUALITY = "FailedOperation.LifePhotoPoorQuality"
// FAILEDOPERATION_LIFEPHOTOSIZEERROR = "FailedOperation.LifePhotoSizeError"
// FAILEDOPERATION_OCRFAILED = "FailedOperation.OcrFailed"
// FAILEDOPERATION_REQUESTLIMITEXCEEDED = "FailedOperation.RequestLimitExceeded"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INTERNALERROR_ENCRYPTSYSTEMERROR = "InternalError.EncryptSystemError"
// INTERNALERROR_UNKNOWN = "InternalError.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) CheckIdCardInformation(request *CheckIdCardInformationRequest) (response *CheckIdCardInformationResponse, err error) {
return c.CheckIdCardInformationWithContext(context.Background(), request)
}
// CheckIdCardInformation
// 传入身份证人像面照片,识别身份证照片上的信息,并将姓名、身份证号、身份证人像照片与权威库的证件照进行比对,是否属于同一个人,从而验证身份证信息的真实性。
//
// 可能返回的错误码:
// FAILEDOPERATION_COMPAREFAIL = "FailedOperation.CompareFail"
// FAILEDOPERATION_COMPARELOWSIMILARITY = "FailedOperation.CompareLowSimilarity"
// FAILEDOPERATION_COMPARESYSTEMERROR = "FailedOperation.CompareSystemError"
// FAILEDOPERATION_DOWNLOADERROR = "FailedOperation.DownLoadError"
// FAILEDOPERATION_EMPTYIMAGEERROR = "FailedOperation.EmptyImageError"
// FAILEDOPERATION_ENCRYPTSYSTEMERROR = "FailedOperation.EncryptSystemError"
// FAILEDOPERATION_FILESAVEERROR = "FailedOperation.FileSaveError"
// FAILEDOPERATION_IDFORMATERROR = "FailedOperation.IdFormatError"
// FAILEDOPERATION_IDNAMEMISMATCH = "FailedOperation.IdNameMisMatch"
// FAILEDOPERATION_IDNOEXISTSYSTEM = "FailedOperation.IdNoExistSystem"
// FAILEDOPERATION_IDPHOTONOEXIST = "FailedOperation.IdPhotoNoExist"
// FAILEDOPERATION_IDPHOTOPOORQUALITY = "FailedOperation.IdPhotoPoorQuality"
// FAILEDOPERATION_IDPHOTOSYSTEMNOANSWER = "FailedOperation.IdPhotoSystemNoanswer"
// FAILEDOPERATION_IMAGEBLUR = "FailedOperation.ImageBlur"
// FAILEDOPERATION_IMAGEDECODEFAILED = "FailedOperation.ImageDecodeFailed"
// FAILEDOPERATION_IMAGENOIDCARD = "FailedOperation.ImageNoIdCard"
// FAILEDOPERATION_IMAGESIZETOOLARGE = "FailedOperation.ImageSizeTooLarge"
// FAILEDOPERATION_LIFEPHOTODETECTFACES = "FailedOperation.LifePhotoDetectFaces"
// FAILEDOPERATION_LIFEPHOTODETECTFAKE = "FailedOperation.LifePhotoDetectFake"
// FAILEDOPERATION_LIFEPHOTODETECTNOFACES = "FailedOperation.LifePhotoDetectNoFaces"
// FAILEDOPERATION_LIFEPHOTOPOORQUALITY = "FailedOperation.LifePhotoPoorQuality"
// FAILEDOPERATION_LIFEPHOTOSIZEERROR = "FailedOperation.LifePhotoSizeError"
// FAILEDOPERATION_OCRFAILED = "FailedOperation.OcrFailed"
// FAILEDOPERATION_REQUESTLIMITEXCEEDED = "FailedOperation.RequestLimitExceeded"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INTERNALERROR_ENCRYPTSYSTEMERROR = "InternalError.EncryptSystemError"
// INTERNALERROR_UNKNOWN = "InternalError.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) CheckIdCardInformationWithContext(ctx context.Context, request *CheckIdCardInformationRequest) (response *CheckIdCardInformationResponse, err error) {
if request == nil {
request = NewCheckIdCardInformationRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CheckIdCardInformation require credential")
}
request.SetContext(ctx)
response = NewCheckIdCardInformationResponse()
err = c.Send(request, response)
return
}
func NewCheckIdNameDateRequest() (request *CheckIdNameDateRequest) {
request = &CheckIdNameDateRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "CheckIdNameDate")
return
}
func NewCheckIdNameDateResponse() (response *CheckIdNameDateResponse) {
response = &CheckIdNameDateResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CheckIdNameDate
// 本接口用于校验姓名、身份证号、身份证有效期的真实性和一致性。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) CheckIdNameDate(request *CheckIdNameDateRequest) (response *CheckIdNameDateResponse, err error) {
return c.CheckIdNameDateWithContext(context.Background(), request)
}
// CheckIdNameDate
// 本接口用于校验姓名、身份证号、身份证有效期的真实性和一致性。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) CheckIdNameDateWithContext(ctx context.Context, request *CheckIdNameDateRequest) (response *CheckIdNameDateResponse, err error) {
if request == nil {
request = NewCheckIdNameDateRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CheckIdNameDate require credential")
}
request.SetContext(ctx)
response = NewCheckIdNameDateResponse()
err = c.Send(request, response)
return
}
func NewCheckPhoneAndNameRequest() (request *CheckPhoneAndNameRequest) {
request = &CheckPhoneAndNameRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "CheckPhoneAndName")
return
}
func NewCheckPhoneAndNameResponse() (response *CheckPhoneAndNameResponse) {
response = &CheckPhoneAndNameResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CheckPhoneAndName
// 手机号二要素核验接口用于校验手机号和姓名的真实性和一致性,支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) CheckPhoneAndName(request *CheckPhoneAndNameRequest) (response *CheckPhoneAndNameResponse, err error) {
return c.CheckPhoneAndNameWithContext(context.Background(), request)
}
// CheckPhoneAndName
// 手机号二要素核验接口用于校验手机号和姓名的真实性和一致性,支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) CheckPhoneAndNameWithContext(ctx context.Context, request *CheckPhoneAndNameRequest) (response *CheckPhoneAndNameResponse, err error) {
if request == nil {
request = NewCheckPhoneAndNameRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CheckPhoneAndName require credential")
}
request.SetContext(ctx)
response = NewCheckPhoneAndNameResponse()
err = c.Send(request, response)
return
}
func NewDetectAIFakeFacesRequest() (request *DetectAIFakeFacesRequest) {
request = &DetectAIFakeFacesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "DetectAIFakeFaces")
return
}
func NewDetectAIFakeFacesResponse() (response *DetectAIFakeFacesResponse) {
response = &DetectAIFakeFacesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DetectAIFakeFaces
// 提供对人脸图片/视频的AI合成、翻拍、水印等攻击痕迹的检测,增强图片/视频防伪能力
//
// 可能返回的错误码:
// FAILEDOPERATION_COVEREDFACE = "FailedOperation.CoveredFace"
// FAILEDOPERATION_DETECTENGINESYSTEMERROR = "FailedOperation.DetectEngineSystemError"
// FAILEDOPERATION_IMAGEDECODEFAILED = "FailedOperation.ImageDecodeFailed"
// FAILEDOPERATION_INCOMPLETEFACE = "FailedOperation.IncompleteFace"
// FAILEDOPERATION_POORIMAGEQUALITY = "FailedOperation.PoorImageQuality"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// FAILEDOPERATION_VIDEODECODEFAILED = "FailedOperation.VideoDecodeFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) DetectAIFakeFaces(request *DetectAIFakeFacesRequest) (response *DetectAIFakeFacesResponse, err error) {
return c.DetectAIFakeFacesWithContext(context.Background(), request)
}
// DetectAIFakeFaces
// 提供对人脸图片/视频的AI合成、翻拍、水印等攻击痕迹的检测,增强图片/视频防伪能力
//
// 可能返回的错误码:
// FAILEDOPERATION_COVEREDFACE = "FailedOperation.CoveredFace"
// FAILEDOPERATION_DETECTENGINESYSTEMERROR = "FailedOperation.DetectEngineSystemError"
// FAILEDOPERATION_IMAGEDECODEFAILED = "FailedOperation.ImageDecodeFailed"
// FAILEDOPERATION_INCOMPLETEFACE = "FailedOperation.IncompleteFace"
// FAILEDOPERATION_POORIMAGEQUALITY = "FailedOperation.PoorImageQuality"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// FAILEDOPERATION_VIDEODECODEFAILED = "FailedOperation.VideoDecodeFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) DetectAIFakeFacesWithContext(ctx context.Context, request *DetectAIFakeFacesRequest) (response *DetectAIFakeFacesResponse, err error) {
if request == nil {
request = NewDetectAIFakeFacesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DetectAIFakeFaces require credential")
}
request.SetContext(ctx)
response = NewDetectAIFakeFacesResponse()
err = c.Send(request, response)
return
}
func NewDetectAuthRequest() (request *DetectAuthRequest) {
request = &DetectAuthRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "DetectAuth")
return
}
func NewDetectAuthResponse() (response *DetectAuthResponse) {
response = &DetectAuthResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DetectAuth
// 每次调用人脸核身SaaS化服务前,需先调用本接口获取BizToken,用来串联核身流程,在验证完成后,用于获取验证结果信息。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE_RULEIDDISABLED = "InvalidParameterValue.RuleIdDisabled"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
// UNAUTHORIZEDOPERATION_ACTIVATEERROR = "UnauthorizedOperation.ActivateError"
// UNAUTHORIZEDOPERATION_ACTIVATING = "UnauthorizedOperation.Activating"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) DetectAuth(request *DetectAuthRequest) (response *DetectAuthResponse, err error) {
return c.DetectAuthWithContext(context.Background(), request)
}
// DetectAuth
// 每次调用人脸核身SaaS化服务前,需先调用本接口获取BizToken,用来串联核身流程,在验证完成后,用于获取验证结果信息。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE_RULEIDDISABLED = "InvalidParameterValue.RuleIdDisabled"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
// UNAUTHORIZEDOPERATION_ACTIVATEERROR = "UnauthorizedOperation.ActivateError"
// UNAUTHORIZEDOPERATION_ACTIVATING = "UnauthorizedOperation.Activating"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) DetectAuthWithContext(ctx context.Context, request *DetectAuthRequest) (response *DetectAuthResponse, err error) {
if request == nil {
request = NewDetectAuthRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DetectAuth require credential")
}
request.SetContext(ctx)
response = NewDetectAuthResponse()
err = c.Send(request, response)
return
}
func NewEncryptedPhoneVerificationRequest() (request *EncryptedPhoneVerificationRequest) {
request = &EncryptedPhoneVerificationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "EncryptedPhoneVerification")
return
}
func NewEncryptedPhoneVerificationResponse() (response *EncryptedPhoneVerificationResponse) {
response = &EncryptedPhoneVerificationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// EncryptedPhoneVerification
// 本接口用于校验手机号、姓名和身份证号的真实性和一致性,入参支持明文、MD5和SHA256加密传输。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) EncryptedPhoneVerification(request *EncryptedPhoneVerificationRequest) (response *EncryptedPhoneVerificationResponse, err error) {
return c.EncryptedPhoneVerificationWithContext(context.Background(), request)
}
// EncryptedPhoneVerification
// 本接口用于校验手机号、姓名和身份证号的真实性和一致性,入参支持明文、MD5和SHA256加密传输。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) EncryptedPhoneVerificationWithContext(ctx context.Context, request *EncryptedPhoneVerificationRequest) (response *EncryptedPhoneVerificationResponse, err error) {
if request == nil {
request = NewEncryptedPhoneVerificationRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("EncryptedPhoneVerification require credential")
}
request.SetContext(ctx)
response = NewEncryptedPhoneVerificationResponse()
err = c.Send(request, response)
return
}
func NewGetActionSequenceRequest() (request *GetActionSequenceRequest) {
request = &GetActionSequenceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "GetActionSequence")
return
}
func NewGetActionSequenceResponse() (response *GetActionSequenceResponse) {
response = &GetActionSequenceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// GetActionSequence
// 使用动作活体检测模式前,需调用本接口获取动作顺序。
//
// 可能返回的错误码:
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) GetActionSequence(request *GetActionSequenceRequest) (response *GetActionSequenceResponse, err error) {
return c.GetActionSequenceWithContext(context.Background(), request)
}
// GetActionSequence
// 使用动作活体检测模式前,需调用本接口获取动作顺序。
//
// 可能返回的错误码:
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) GetActionSequenceWithContext(ctx context.Context, request *GetActionSequenceRequest) (response *GetActionSequenceResponse, err error) {
if request == nil {
request = NewGetActionSequenceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("GetActionSequence require credential")
}
request.SetContext(ctx)
response = NewGetActionSequenceResponse()
err = c.Send(request, response)
return
}
func NewGetDetectInfoRequest() (request *GetDetectInfoRequest) {
request = &GetDetectInfoRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "GetDetectInfo")
return
}
func NewGetDetectInfoResponse() (response *GetDetectInfoResponse) {
response = &GetDetectInfoResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// GetDetectInfo
// 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
// UNAUTHORIZEDOPERATION_ACTIVATEERROR = "UnauthorizedOperation.ActivateError"
// UNAUTHORIZEDOPERATION_ACTIVATING = "UnauthorizedOperation.Activating"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetDetectInfo(request *GetDetectInfoRequest) (response *GetDetectInfoResponse, err error) {
return c.GetDetectInfoWithContext(context.Background(), request)
}
// GetDetectInfo
// 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
// UNAUTHORIZEDOPERATION_ACTIVATEERROR = "UnauthorizedOperation.ActivateError"
// UNAUTHORIZEDOPERATION_ACTIVATING = "UnauthorizedOperation.Activating"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetDetectInfoWithContext(ctx context.Context, request *GetDetectInfoRequest) (response *GetDetectInfoResponse, err error) {
if request == nil {
request = NewGetDetectInfoRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("GetDetectInfo require credential")
}
request.SetContext(ctx)
response = NewGetDetectInfoResponse()
err = c.Send(request, response)
return
}
func NewGetDetectInfoEnhancedRequest() (request *GetDetectInfoEnhancedRequest) {
request = &GetDetectInfoEnhancedRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "GetDetectInfoEnhanced")
return
}
func NewGetDetectInfoEnhancedResponse() (response *GetDetectInfoEnhancedResponse) {
response = &GetDetectInfoEnhancedResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// GetDetectInfoEnhanced
// 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_ENCRYPTSYSTEMERROR = "FailedOperation.EncryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
// UNAUTHORIZEDOPERATION_ACTIVATEERROR = "UnauthorizedOperation.ActivateError"
// UNAUTHORIZEDOPERATION_ACTIVATING = "UnauthorizedOperation.Activating"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetDetectInfoEnhanced(request *GetDetectInfoEnhancedRequest) (response *GetDetectInfoEnhancedResponse, err error) {
return c.GetDetectInfoEnhancedWithContext(context.Background(), request)
}
// GetDetectInfoEnhanced
// 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_ENCRYPTSYSTEMERROR = "FailedOperation.EncryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
// UNAUTHORIZEDOPERATION_ACTIVATEERROR = "UnauthorizedOperation.ActivateError"
// UNAUTHORIZEDOPERATION_ACTIVATING = "UnauthorizedOperation.Activating"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetDetectInfoEnhancedWithContext(ctx context.Context, request *GetDetectInfoEnhancedRequest) (response *GetDetectInfoEnhancedResponse, err error) {
if request == nil {
request = NewGetDetectInfoEnhancedRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("GetDetectInfoEnhanced require credential")
}
request.SetContext(ctx)
response = NewGetDetectInfoEnhancedResponse()
err = c.Send(request, response)
return
}
func NewGetEidResultRequest() (request *GetEidResultRequest) {
request = &GetEidResultRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "GetEidResult")
return
}
func NewGetEidResultResponse() (response *GetEidResultResponse) {
response = &GetEidResultResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// GetEidResult
// 完成验证后,用EidToken调用本接口获取结果信息,EidToken生成后三天内(3\*24\*3,600秒)可多次拉取。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INTERNALERROR = "InternalError"
// INTERNALERROR_ENCRYPTSYSTEMERROR = "InternalError.EncryptSystemError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_BIZTOKENILLEGAL = "InvalidParameterValue.BizTokenIllegal"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetEidResult(request *GetEidResultRequest) (response *GetEidResultResponse, err error) {
return c.GetEidResultWithContext(context.Background(), request)
}
// GetEidResult
// 完成验证后,用EidToken调用本接口获取结果信息,EidToken生成后三天内(3\*24\*3,600秒)可多次拉取。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INTERNALERROR = "InternalError"
// INTERNALERROR_ENCRYPTSYSTEMERROR = "InternalError.EncryptSystemError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_BIZTOKENILLEGAL = "InvalidParameterValue.BizTokenIllegal"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetEidResultWithContext(ctx context.Context, request *GetEidResultRequest) (response *GetEidResultResponse, err error) {
if request == nil {
request = NewGetEidResultRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("GetEidResult require credential")
}
request.SetContext(ctx)
response = NewGetEidResultResponse()
err = c.Send(request, response)
return
}
func NewGetEidTokenRequest() (request *GetEidTokenRequest) {
request = &GetEidTokenRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "GetEidToken")
return
}
func NewGetEidTokenResponse() (response *GetEidTokenResponse) {
response = &GetEidTokenResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// GetEidToken
// 每次调用E证通服务前,需先调用本接口获取EidToken,用来串联E证通流程,在验证完成后,用于获取E证通结果信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// FAILEDOPERATION_UNREGISTEREDEID = "FailedOperation.UnregisteredEid"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE_RULEIDDISABLED = "InvalidParameterValue.RuleIdDisabled"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetEidToken(request *GetEidTokenRequest) (response *GetEidTokenResponse, err error) {
return c.GetEidTokenWithContext(context.Background(), request)
}
// GetEidToken
// 每次调用E证通服务前,需先调用本接口获取EidToken,用来串联E证通流程,在验证完成后,用于获取E证通结果信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// FAILEDOPERATION_UNREGISTEREDEID = "FailedOperation.UnregisteredEid"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE_RULEIDDISABLED = "InvalidParameterValue.RuleIdDisabled"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetEidTokenWithContext(ctx context.Context, request *GetEidTokenRequest) (response *GetEidTokenResponse, err error) {
if request == nil {
request = NewGetEidTokenRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("GetEidToken require credential")
}
request.SetContext(ctx)
response = NewGetEidTokenResponse()
err = c.Send(request, response)
return
}
func NewGetFaceIdResultRequest() (request *GetFaceIdResultRequest) {
request = &GetFaceIdResultRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "GetFaceIdResult")
return
}
func NewGetFaceIdResultResponse() (response *GetFaceIdResultResponse) {
response = &GetFaceIdResultResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// GetFaceIdResult
// 完成验证后,用FaceIdToken调用本接口获取结果信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
//
// 可能返回的错误码:
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_BIZTOKENILLEGAL = "InvalidParameterValue.BizTokenIllegal"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetFaceIdResult(request *GetFaceIdResultRequest) (response *GetFaceIdResultResponse, err error) {
return c.GetFaceIdResultWithContext(context.Background(), request)
}
// GetFaceIdResult
// 完成验证后,用FaceIdToken调用本接口获取结果信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
//
// 可能返回的错误码:
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_BIZTOKENILLEGAL = "InvalidParameterValue.BizTokenIllegal"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetFaceIdResultWithContext(ctx context.Context, request *GetFaceIdResultRequest) (response *GetFaceIdResultResponse, err error) {
if request == nil {
request = NewGetFaceIdResultRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("GetFaceIdResult require credential")
}
request.SetContext(ctx)
response = NewGetFaceIdResultResponse()
err = c.Send(request, response)
return
}
func NewGetFaceIdRiskInfoRequest() (request *GetFaceIdRiskInfoRequest) {
request = &GetFaceIdRiskInfoRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "GetFaceIdRiskInfo")
return
}
func NewGetFaceIdRiskInfoResponse() (response *GetFaceIdRiskInfoResponse) {
response = &GetFaceIdRiskInfoResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// GetFaceIdRiskInfo
// 完成验证后,用FaceIdToken调用本接口获取设备风险相关信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
//
// 可能返回的错误码:
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_BIZTOKENILLEGAL = "InvalidParameterValue.BizTokenIllegal"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetFaceIdRiskInfo(request *GetFaceIdRiskInfoRequest) (response *GetFaceIdRiskInfoResponse, err error) {
return c.GetFaceIdRiskInfoWithContext(context.Background(), request)
}
// GetFaceIdRiskInfo
// 完成验证后,用FaceIdToken调用本接口获取设备风险相关信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
//
// 可能返回的错误码:
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_BIZTOKENILLEGAL = "InvalidParameterValue.BizTokenIllegal"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetFaceIdRiskInfoWithContext(ctx context.Context, request *GetFaceIdRiskInfoRequest) (response *GetFaceIdRiskInfoResponse, err error) {
if request == nil {
request = NewGetFaceIdRiskInfoRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("GetFaceIdRiskInfo require credential")
}
request.SetContext(ctx)
response = NewGetFaceIdRiskInfoResponse()
err = c.Send(request, response)
return
}
func NewGetFaceIdTokenRequest() (request *GetFaceIdTokenRequest) {
request = &GetFaceIdTokenRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "GetFaceIdToken")
return
}
func NewGetFaceIdTokenResponse() (response *GetFaceIdTokenResponse) {
response = &GetFaceIdTokenResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// GetFaceIdToken
// 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取验证结果信息,该token仅能核身一次。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_IMAGESIZETOOLARGE = "FailedOperation.ImageSizeTooLarge"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetFaceIdToken(request *GetFaceIdTokenRequest) (response *GetFaceIdTokenResponse, err error) {
return c.GetFaceIdTokenWithContext(context.Background(), request)
}
// GetFaceIdToken
// 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取验证结果信息,该token仅能核身一次。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_IMAGESIZETOOLARGE = "FailedOperation.ImageSizeTooLarge"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetFaceIdTokenWithContext(ctx context.Context, request *GetFaceIdTokenRequest) (response *GetFaceIdTokenResponse, err error) {
if request == nil {
request = NewGetFaceIdTokenRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("GetFaceIdToken require credential")
}
request.SetContext(ctx)
response = NewGetFaceIdTokenResponse()
err = c.Send(request, response)
return
}
func NewGetFaceidRiskInfoTokenRequest() (request *GetFaceidRiskInfoTokenRequest) {
request = &GetFaceidRiskInfoTokenRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "GetFaceidRiskInfoToken")
return
}
func NewGetFaceidRiskInfoTokenResponse() (response *GetFaceidRiskInfoTokenResponse) {
response = &GetFaceidRiskInfoTokenResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// GetFaceidRiskInfoToken
// 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取风险结果信息,该Token仅能核身一次。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_IMAGESIZETOOLARGE = "FailedOperation.ImageSizeTooLarge"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetFaceidRiskInfoToken(request *GetFaceidRiskInfoTokenRequest) (response *GetFaceidRiskInfoTokenResponse, err error) {
return c.GetFaceidRiskInfoTokenWithContext(context.Background(), request)
}
// GetFaceidRiskInfoToken
// 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取风险结果信息,该Token仅能核身一次。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_IMAGESIZETOOLARGE = "FailedOperation.ImageSizeTooLarge"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) GetFaceidRiskInfoTokenWithContext(ctx context.Context, request *GetFaceidRiskInfoTokenRequest) (response *GetFaceidRiskInfoTokenResponse, err error) {
if request == nil {
request = NewGetFaceidRiskInfoTokenRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("GetFaceidRiskInfoToken require credential")
}
request.SetContext(ctx)
response = NewGetFaceidRiskInfoTokenResponse()
err = c.Send(request, response)
return
}
func NewGetLiveCodeRequest() (request *GetLiveCodeRequest) {
request = &GetLiveCodeRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "GetLiveCode")
return
}
func NewGetLiveCodeResponse() (response *GetLiveCodeResponse) {
response = &GetLiveCodeResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// GetLiveCode
// 使用数字活体检测模式前,需调用本接口获取数字验证码。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) GetLiveCode(request *GetLiveCodeRequest) (response *GetLiveCodeResponse, err error) {
return c.GetLiveCodeWithContext(context.Background(), request)
}
// GetLiveCode
// 使用数字活体检测模式前,需调用本接口获取数字验证码。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) GetLiveCodeWithContext(ctx context.Context, request *GetLiveCodeRequest) (response *GetLiveCodeResponse, err error) {
if request == nil {
request = NewGetLiveCodeRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("GetLiveCode require credential")
}
request.SetContext(ctx)
response = NewGetLiveCodeResponse()
err = c.Send(request, response)
return
}
func NewGetWeChatBillDetailsRequest() (request *GetWeChatBillDetailsRequest) {
request = &GetWeChatBillDetailsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "GetWeChatBillDetails")
return
}
func NewGetWeChatBillDetailsResponse() (response *GetWeChatBillDetailsResponse) {
response = &GetWeChatBillDetailsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// GetWeChatBillDetails
// 查询微信渠道服务(微信小程序、微信原生H5、微信普通H5)的账单明细及计费状态。
//
// 可能返回的错误码:
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
func (c *Client) GetWeChatBillDetails(request *GetWeChatBillDetailsRequest) (response *GetWeChatBillDetailsResponse, err error) {
return c.GetWeChatBillDetailsWithContext(context.Background(), request)
}
// GetWeChatBillDetails
// 查询微信渠道服务(微信小程序、微信原生H5、微信普通H5)的账单明细及计费状态。
//
// 可能返回的错误码:
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
func (c *Client) GetWeChatBillDetailsWithContext(ctx context.Context, request *GetWeChatBillDetailsRequest) (response *GetWeChatBillDetailsResponse, err error) {
if request == nil {
request = NewGetWeChatBillDetailsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("GetWeChatBillDetails require credential")
}
request.SetContext(ctx)
response = NewGetWeChatBillDetailsResponse()
err = c.Send(request, response)
return
}
func NewIdCardOCRVerificationRequest() (request *IdCardOCRVerificationRequest) {
request = &IdCardOCRVerificationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "IdCardOCRVerification")
return
}
func NewIdCardOCRVerificationResponse() (response *IdCardOCRVerificationResponse) {
response = &IdCardOCRVerificationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// IdCardOCRVerification
// 本接口用于校验姓名和身份证号的真实性和一致性,您可以通过输入姓名和身份证号或传入身份证人像面照片提供所需验证信息。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_DOWNLOADERROR = "FailedOperation.DownLoadError"
// FAILEDOPERATION_EMPTYIMAGEERROR = "FailedOperation.EmptyImageError"
// FAILEDOPERATION_IMAGEBLUR = "FailedOperation.ImageBlur"
// FAILEDOPERATION_IMAGEDECODEFAILED = "FailedOperation.ImageDecodeFailed"
// FAILEDOPERATION_IMAGENOIDCARD = "FailedOperation.ImageNoIdCard"
// FAILEDOPERATION_IMAGESIZETOOLARGE = "FailedOperation.ImageSizeTooLarge"
// FAILEDOPERATION_OCRFAILED = "FailedOperation.OcrFailed"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) IdCardOCRVerification(request *IdCardOCRVerificationRequest) (response *IdCardOCRVerificationResponse, err error) {
return c.IdCardOCRVerificationWithContext(context.Background(), request)
}
// IdCardOCRVerification
// 本接口用于校验姓名和身份证号的真实性和一致性,您可以通过输入姓名和身份证号或传入身份证人像面照片提供所需验证信息。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_DOWNLOADERROR = "FailedOperation.DownLoadError"
// FAILEDOPERATION_EMPTYIMAGEERROR = "FailedOperation.EmptyImageError"
// FAILEDOPERATION_IMAGEBLUR = "FailedOperation.ImageBlur"
// FAILEDOPERATION_IMAGEDECODEFAILED = "FailedOperation.ImageDecodeFailed"
// FAILEDOPERATION_IMAGENOIDCARD = "FailedOperation.ImageNoIdCard"
// FAILEDOPERATION_IMAGESIZETOOLARGE = "FailedOperation.ImageSizeTooLarge"
// FAILEDOPERATION_OCRFAILED = "FailedOperation.OcrFailed"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) IdCardOCRVerificationWithContext(ctx context.Context, request *IdCardOCRVerificationRequest) (response *IdCardOCRVerificationResponse, err error) {
if request == nil {
request = NewIdCardOCRVerificationRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("IdCardOCRVerification require credential")
}
request.SetContext(ctx)
response = NewIdCardOCRVerificationResponse()
err = c.Send(request, response)
return
}
func NewIdCardVerificationRequest() (request *IdCardVerificationRequest) {
request = &IdCardVerificationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "IdCardVerification")
return
}
func NewIdCardVerificationResponse() (response *IdCardVerificationResponse) {
response = &IdCardVerificationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// IdCardVerification
// 传入姓名和身份证号,校验两者的真实性和一致性。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) IdCardVerification(request *IdCardVerificationRequest) (response *IdCardVerificationResponse, err error) {
return c.IdCardVerificationWithContext(context.Background(), request)
}
// IdCardVerification
// 传入姓名和身份证号,校验两者的真实性和一致性。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) IdCardVerificationWithContext(ctx context.Context, request *IdCardVerificationRequest) (response *IdCardVerificationResponse, err error) {
if request == nil {
request = NewIdCardVerificationRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("IdCardVerification require credential")
}
request.SetContext(ctx)
response = NewIdCardVerificationResponse()
err = c.Send(request, response)
return
}
func NewImageRecognitionRequest() (request *ImageRecognitionRequest) {
request = &ImageRecognitionRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "ImageRecognition")
return
}
func NewImageRecognitionResponse() (response *ImageRecognitionResponse) {
response = &ImageRecognitionResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ImageRecognition
// 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人(该接口已停止接入,新客户请使用<a href="https://cloud.tencent.com/document/product/1007/102203">照片人脸核身(V2.0)</a>接口)。
//
// 可能返回的错误码:
// FAILEDOPERATION_COMPAREFAIL = "FailedOperation.CompareFail"
// FAILEDOPERATION_COMPARELIBSERVICEUNAVAILABLE = "FailedOperation.CompareLibServiceUnavailable"
// FAILEDOPERATION_COMPARELOWSIMILARITY = "FailedOperation.CompareLowSimilarity"
// FAILEDOPERATION_COMPARESYSTEMERROR = "FailedOperation.CompareSystemError"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_IDFORMATERROR = "FailedOperation.IdFormatError"
// FAILEDOPERATION_IDNAMEMISMATCH = "FailedOperation.IdNameMisMatch"
// FAILEDOPERATION_IDNOEXISTSYSTEM = "FailedOperation.IdNoExistSystem"
// FAILEDOPERATION_IDPHOTONOEXIST = "FailedOperation.IdPhotoNoExist"
// FAILEDOPERATION_IDPHOTOPOORQUALITY = "FailedOperation.IdPhotoPoorQuality"
// FAILEDOPERATION_IDPHOTOSYSTEMNOANSWER = "FailedOperation.IdPhotoSystemNoanswer"
// FAILEDOPERATION_IDENTITYAUTHLIMITEXCEEDED = "FailedOperation.IdentityAuthLimitExceeded"
// FAILEDOPERATION_LIFEPHOTODETECTFACES = "FailedOperation.LifePhotoDetectFaces"
// FAILEDOPERATION_LIFEPHOTODETECTFAKE = "FailedOperation.LifePhotoDetectFake"
// FAILEDOPERATION_LIFEPHOTODETECTNOFACES = "FailedOperation.LifePhotoDetectNoFaces"
// FAILEDOPERATION_LIFEPHOTOPOORQUALITY = "FailedOperation.LifePhotoPoorQuality"
// FAILEDOPERATION_LIFEPHOTOSIZEERROR = "FailedOperation.LifePhotoSizeError"
// FAILEDOPERATION_NAMEFORMATERROR = "FailedOperation.NameFormatError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ImageRecognition(request *ImageRecognitionRequest) (response *ImageRecognitionResponse, err error) {
return c.ImageRecognitionWithContext(context.Background(), request)
}
// ImageRecognition
// 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人(该接口已停止接入,新客户请使用<a href="https://cloud.tencent.com/document/product/1007/102203">照片人脸核身(V2.0)</a>接口)。
//
// 可能返回的错误码:
// FAILEDOPERATION_COMPAREFAIL = "FailedOperation.CompareFail"
// FAILEDOPERATION_COMPARELIBSERVICEUNAVAILABLE = "FailedOperation.CompareLibServiceUnavailable"
// FAILEDOPERATION_COMPARELOWSIMILARITY = "FailedOperation.CompareLowSimilarity"
// FAILEDOPERATION_COMPARESYSTEMERROR = "FailedOperation.CompareSystemError"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_IDFORMATERROR = "FailedOperation.IdFormatError"
// FAILEDOPERATION_IDNAMEMISMATCH = "FailedOperation.IdNameMisMatch"
// FAILEDOPERATION_IDNOEXISTSYSTEM = "FailedOperation.IdNoExistSystem"
// FAILEDOPERATION_IDPHOTONOEXIST = "FailedOperation.IdPhotoNoExist"
// FAILEDOPERATION_IDPHOTOPOORQUALITY = "FailedOperation.IdPhotoPoorQuality"
// FAILEDOPERATION_IDPHOTOSYSTEMNOANSWER = "FailedOperation.IdPhotoSystemNoanswer"
// FAILEDOPERATION_IDENTITYAUTHLIMITEXCEEDED = "FailedOperation.IdentityAuthLimitExceeded"
// FAILEDOPERATION_LIFEPHOTODETECTFACES = "FailedOperation.LifePhotoDetectFaces"
// FAILEDOPERATION_LIFEPHOTODETECTFAKE = "FailedOperation.LifePhotoDetectFake"
// FAILEDOPERATION_LIFEPHOTODETECTNOFACES = "FailedOperation.LifePhotoDetectNoFaces"
// FAILEDOPERATION_LIFEPHOTOPOORQUALITY = "FailedOperation.LifePhotoPoorQuality"
// FAILEDOPERATION_LIFEPHOTOSIZEERROR = "FailedOperation.LifePhotoSizeError"
// FAILEDOPERATION_NAMEFORMATERROR = "FailedOperation.NameFormatError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ImageRecognitionWithContext(ctx context.Context, request *ImageRecognitionRequest) (response *ImageRecognitionResponse, err error) {
if request == nil {
request = NewImageRecognitionRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ImageRecognition require credential")
}
request.SetContext(ctx)
response = NewImageRecognitionResponse()
err = c.Send(request, response)
return
}
func NewImageRecognitionV2Request() (request *ImageRecognitionV2Request) {
request = &ImageRecognitionV2Request{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "ImageRecognitionV2")
return
}
func NewImageRecognitionV2Response() (response *ImageRecognitionV2Response) {
response = &ImageRecognitionV2Response{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ImageRecognitionV2
// 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
//
// 可能返回的错误码:
// FAILEDOPERATION_COMPAREFAIL = "FailedOperation.CompareFail"
// FAILEDOPERATION_COMPARELIBSERVICEUNAVAILABLE = "FailedOperation.CompareLibServiceUnavailable"
// FAILEDOPERATION_COMPARELOWSIMILARITY = "FailedOperation.CompareLowSimilarity"
// FAILEDOPERATION_COMPARESYSTEMERROR = "FailedOperation.CompareSystemError"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_IDFORMATERROR = "FailedOperation.IdFormatError"
// FAILEDOPERATION_IDNAMEMISMATCH = "FailedOperation.IdNameMisMatch"
// FAILEDOPERATION_IDNOEXISTSYSTEM = "FailedOperation.IdNoExistSystem"
// FAILEDOPERATION_IDPHOTONOEXIST = "FailedOperation.IdPhotoNoExist"
// FAILEDOPERATION_IDPHOTOPOORQUALITY = "FailedOperation.IdPhotoPoorQuality"
// FAILEDOPERATION_IDPHOTOSYSTEMNOANSWER = "FailedOperation.IdPhotoSystemNoanswer"
// FAILEDOPERATION_IDENTITYAUTHLIMITEXCEEDED = "FailedOperation.IdentityAuthLimitExceeded"
// FAILEDOPERATION_LIFEPHOTODETECTFACES = "FailedOperation.LifePhotoDetectFaces"
// FAILEDOPERATION_LIFEPHOTODETECTFAKE = "FailedOperation.LifePhotoDetectFake"
// FAILEDOPERATION_LIFEPHOTODETECTNOFACES = "FailedOperation.LifePhotoDetectNoFaces"
// FAILEDOPERATION_LIFEPHOTOPOORQUALITY = "FailedOperation.LifePhotoPoorQuality"
// FAILEDOPERATION_LIFEPHOTOSIZEERROR = "FailedOperation.LifePhotoSizeError"
// FAILEDOPERATION_NAMEFORMATERROR = "FailedOperation.NameFormatError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ImageRecognitionV2(request *ImageRecognitionV2Request) (response *ImageRecognitionV2Response, err error) {
return c.ImageRecognitionV2WithContext(context.Background(), request)
}
// ImageRecognitionV2
// 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
//
// 可能返回的错误码:
// FAILEDOPERATION_COMPAREFAIL = "FailedOperation.CompareFail"
// FAILEDOPERATION_COMPARELIBSERVICEUNAVAILABLE = "FailedOperation.CompareLibServiceUnavailable"
// FAILEDOPERATION_COMPARELOWSIMILARITY = "FailedOperation.CompareLowSimilarity"
// FAILEDOPERATION_COMPARESYSTEMERROR = "FailedOperation.CompareSystemError"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_IDFORMATERROR = "FailedOperation.IdFormatError"
// FAILEDOPERATION_IDNAMEMISMATCH = "FailedOperation.IdNameMisMatch"
// FAILEDOPERATION_IDNOEXISTSYSTEM = "FailedOperation.IdNoExistSystem"
// FAILEDOPERATION_IDPHOTONOEXIST = "FailedOperation.IdPhotoNoExist"
// FAILEDOPERATION_IDPHOTOPOORQUALITY = "FailedOperation.IdPhotoPoorQuality"
// FAILEDOPERATION_IDPHOTOSYSTEMNOANSWER = "FailedOperation.IdPhotoSystemNoanswer"
// FAILEDOPERATION_IDENTITYAUTHLIMITEXCEEDED = "FailedOperation.IdentityAuthLimitExceeded"
// FAILEDOPERATION_LIFEPHOTODETECTFACES = "FailedOperation.LifePhotoDetectFaces"
// FAILEDOPERATION_LIFEPHOTODETECTFAKE = "FailedOperation.LifePhotoDetectFake"
// FAILEDOPERATION_LIFEPHOTODETECTNOFACES = "FailedOperation.LifePhotoDetectNoFaces"
// FAILEDOPERATION_LIFEPHOTOPOORQUALITY = "FailedOperation.LifePhotoPoorQuality"
// FAILEDOPERATION_LIFEPHOTOSIZEERROR = "FailedOperation.LifePhotoSizeError"
// FAILEDOPERATION_NAMEFORMATERROR = "FailedOperation.NameFormatError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ImageRecognitionV2WithContext(ctx context.Context, request *ImageRecognitionV2Request) (response *ImageRecognitionV2Response, err error) {
if request == nil {
request = NewImageRecognitionV2Request()
}
if c.GetCredential() == nil {
return nil, errors.New("ImageRecognitionV2 require credential")
}
request.SetContext(ctx)
response = NewImageRecognitionV2Response()
err = c.Send(request, response)
return
}
func NewLivenessRequest() (request *LivenessRequest) {
request = &LivenessRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "Liveness")
return
}
func NewLivenessResponse() (response *LivenessResponse) {
response = &LivenessResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// Liveness
// 活体检测
//
// 可能返回的错误码:
// FAILEDOPERATION_ACTIONCLOSEEYE = "FailedOperation.ActionCloseEye"
// FAILEDOPERATION_ACTIONFACECLOSE = "FailedOperation.ActionFaceClose"
// FAILEDOPERATION_ACTIONFACEFAR = "FailedOperation.ActionFaceFar"
// FAILEDOPERATION_ACTIONFACELEFT = "FailedOperation.ActionFaceLeft"
// FAILEDOPERATION_ACTIONFACERIGHT = "FailedOperation.ActionFaceRight"
// FAILEDOPERATION_ACTIONFIRSTACTION = "FailedOperation.ActionFirstAction"
// FAILEDOPERATION_ACTIONLIGHTDARK = "FailedOperation.ActionLightDark"
// FAILEDOPERATION_ACTIONLIGHTSTRONG = "FailedOperation.ActionLightStrong"
// FAILEDOPERATION_ACTIONNODETECTFACE = "FailedOperation.ActionNodetectFace"
// FAILEDOPERATION_ACTIONOPENMOUTH = "FailedOperation.ActionOpenMouth"
// FAILEDOPERATION_DBERROR = "FailedOperation.DbError"
// FAILEDOPERATION_FILESAVEERROR = "FailedOperation.FileSaveError"
// FAILEDOPERATION_LIPFACEINCOMPLETE = "FailedOperation.LipFaceIncomplete"
// FAILEDOPERATION_LIPMOVESMALL = "FailedOperation.LipMoveSmall"
// FAILEDOPERATION_LIPNETFAILED = "FailedOperation.LipNetFailed"
// FAILEDOPERATION_LIPSIZEERROR = "FailedOperation.LipSizeError"
// FAILEDOPERATION_LIPVIDEOINVALID = "FailedOperation.LipVideoInvalid"
// FAILEDOPERATION_LIPVIDEOQUAILITY = "FailedOperation.LipVideoQuaility"
// FAILEDOPERATION_LIPVOICEDETECT = "FailedOperation.LipVoiceDetect"
// FAILEDOPERATION_LIPVOICELOW = "FailedOperation.LipVoiceLow"
// FAILEDOPERATION_LIPVOICERECOGNIZE = "FailedOperation.LipVoiceRecognize"
// FAILEDOPERATION_LIVESSBESTFRAMEERROR = "FailedOperation.LivessBestFrameError"
// FAILEDOPERATION_LIVESSDETECTFAIL = "FailedOperation.LivessDetectFail"
// FAILEDOPERATION_LIVESSDETECTFAKE = "FailedOperation.LivessDetectFake"
// FAILEDOPERATION_LIVESSSYSTEMERROR = "FailedOperation.LivessSystemError"
// FAILEDOPERATION_LIVESSUNKNOWNERROR = "FailedOperation.LivessUnknownError"
// FAILEDOPERATION_SILENTDETECTFAIL = "FailedOperation.SilentDetectFail"
// FAILEDOPERATION_SILENTTHRESHOLD = "FailedOperation.SilentThreshold"
// FAILEDOPERATION_SILENTTOOSHORT = "FailedOperation.SilentTooShort"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// FAILEDOPERATION_VERIFICATIONFAIL = "FailedOperation.VerificationFail"
// INTERNALERROR = "InternalError"
// INTERNALERROR_UNKNOWN = "InternalError.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RULEID = "InvalidParameter.RuleId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) Liveness(request *LivenessRequest) (response *LivenessResponse, err error) {
return c.LivenessWithContext(context.Background(), request)
}
// Liveness
// 活体检测
//
// 可能返回的错误码:
// FAILEDOPERATION_ACTIONCLOSEEYE = "FailedOperation.ActionCloseEye"
// FAILEDOPERATION_ACTIONFACECLOSE = "FailedOperation.ActionFaceClose"
// FAILEDOPERATION_ACTIONFACEFAR = "FailedOperation.ActionFaceFar"
// FAILEDOPERATION_ACTIONFACELEFT = "FailedOperation.ActionFaceLeft"
// FAILEDOPERATION_ACTIONFACERIGHT = "FailedOperation.ActionFaceRight"
// FAILEDOPERATION_ACTIONFIRSTACTION = "FailedOperation.ActionFirstAction"
// FAILEDOPERATION_ACTIONLIGHTDARK = "FailedOperation.ActionLightDark"
// FAILEDOPERATION_ACTIONLIGHTSTRONG = "FailedOperation.ActionLightStrong"
// FAILEDOPERATION_ACTIONNODETECTFACE = "FailedOperation.ActionNodetectFace"
// FAILEDOPERATION_ACTIONOPENMOUTH = "FailedOperation.ActionOpenMouth"
// FAILEDOPERATION_DBERROR = "FailedOperation.DbError"
// FAILEDOPERATION_FILESAVEERROR = "FailedOperation.FileSaveError"
// FAILEDOPERATION_LIPFACEINCOMPLETE = "FailedOperation.LipFaceIncomplete"
// FAILEDOPERATION_LIPMOVESMALL = "FailedOperation.LipMoveSmall"
// FAILEDOPERATION_LIPNETFAILED = "FailedOperation.LipNetFailed"
// FAILEDOPERATION_LIPSIZEERROR = "FailedOperation.LipSizeError"
// FAILEDOPERATION_LIPVIDEOINVALID = "FailedOperation.LipVideoInvalid"
// FAILEDOPERATION_LIPVIDEOQUAILITY = "FailedOperation.LipVideoQuaility"
// FAILEDOPERATION_LIPVOICEDETECT = "FailedOperation.LipVoiceDetect"
// FAILEDOPERATION_LIPVOICELOW = "FailedOperation.LipVoiceLow"
// FAILEDOPERATION_LIPVOICERECOGNIZE = "FailedOperation.LipVoiceRecognize"
// FAILEDOPERATION_LIVESSBESTFRAMEERROR = "FailedOperation.LivessBestFrameError"
// FAILEDOPERATION_LIVESSDETECTFAIL = "FailedOperation.LivessDetectFail"
// FAILEDOPERATION_LIVESSDETECTFAKE = "FailedOperation.LivessDetectFake"
// FAILEDOPERATION_LIVESSSYSTEMERROR = "FailedOperation.LivessSystemError"
// FAILEDOPERATION_LIVESSUNKNOWNERROR = "FailedOperation.LivessUnknownError"
// FAILEDOPERATION_SILENTDETECTFAIL = "FailedOperation.SilentDetectFail"
// FAILEDOPERATION_SILENTTHRESHOLD = "FailedOperation.SilentThreshold"
// FAILEDOPERATION_SILENTTOOSHORT = "FailedOperation.SilentTooShort"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// FAILEDOPERATION_VERIFICATIONFAIL = "FailedOperation.VerificationFail"
// INTERNALERROR = "InternalError"
// INTERNALERROR_UNKNOWN = "InternalError.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RULEID = "InvalidParameter.RuleId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) LivenessWithContext(ctx context.Context, request *LivenessRequest) (response *LivenessResponse, err error) {
if request == nil {
request = NewLivenessRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("Liveness require credential")
}
request.SetContext(ctx)
response = NewLivenessResponse()
err = c.Send(request, response)
return
}
func NewLivenessCompareRequest() (request *LivenessCompareRequest) {
request = &LivenessCompareRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "LivenessCompare")
return
}
func NewLivenessCompareResponse() (response *LivenessCompareResponse) {
response = &LivenessCompareResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// LivenessCompare
// 传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_ACTIONCLOSEEYE = "FailedOperation.ActionCloseEye"
// FAILEDOPERATION_ACTIONFACECLOSE = "FailedOperation.ActionFaceClose"
// FAILEDOPERATION_ACTIONFACEFAR = "FailedOperation.ActionFaceFar"
// FAILEDOPERATION_ACTIONFACELEFT = "FailedOperation.ActionFaceLeft"
// FAILEDOPERATION_ACTIONFACERIGHT = "FailedOperation.ActionFaceRight"
// FAILEDOPERATION_ACTIONFIRSTACTION = "FailedOperation.ActionFirstAction"
// FAILEDOPERATION_ACTIONLIGHTDARK = "FailedOperation.ActionLightDark"
// FAILEDOPERATION_ACTIONLIGHTSTRONG = "FailedOperation.ActionLightStrong"
// FAILEDOPERATION_ACTIONNODETECTFACE = "FailedOperation.ActionNodetectFace"
// FAILEDOPERATION_ACTIONOPENMOUTH = "FailedOperation.ActionOpenMouth"
// FAILEDOPERATION_COMPAREFAIL = "FailedOperation.CompareFail"
// FAILEDOPERATION_COMPARELOWSIMILARITY = "FailedOperation.CompareLowSimilarity"
// FAILEDOPERATION_COMPARESYSTEMERROR = "FailedOperation.CompareSystemError"
// FAILEDOPERATION_DOWNLOADERROR = "FailedOperation.DownLoadError"
// FAILEDOPERATION_DOWNLOADTIMEOUTERROR = "FailedOperation.DownLoadTimeoutError"
// FAILEDOPERATION_LIFEPHOTODETECTFACES = "FailedOperation.LifePhotoDetectFaces"
// FAILEDOPERATION_LIFEPHOTODETECTFAKE = "FailedOperation.LifePhotoDetectFake"
// FAILEDOPERATION_LIFEPHOTODETECTNOFACES = "FailedOperation.LifePhotoDetectNoFaces"
// FAILEDOPERATION_LIFEPHOTOPOORQUALITY = "FailedOperation.LifePhotoPoorQuality"
// FAILEDOPERATION_LIFEPHOTOSIZEERROR = "FailedOperation.LifePhotoSizeError"
// FAILEDOPERATION_LIPFACEINCOMPLETE = "FailedOperation.LipFaceIncomplete"
// FAILEDOPERATION_LIPMOVESMALL = "FailedOperation.LipMoveSmall"
// FAILEDOPERATION_LIPNETFAILED = "FailedOperation.LipNetFailed"
// FAILEDOPERATION_LIPSIZEERROR = "FailedOperation.LipSizeError"
// FAILEDOPERATION_LIPVIDEOINVALID = "FailedOperation.LipVideoInvalid"
// FAILEDOPERATION_LIPVIDEOQUAILITY = "FailedOperation.LipVideoQuaility"
// FAILEDOPERATION_LIPVOICEDETECT = "FailedOperation.LipVoiceDetect"
// FAILEDOPERATION_LIPVOICELOW = "FailedOperation.LipVoiceLow"
// FAILEDOPERATION_LIPVOICERECOGNIZE = "FailedOperation.LipVoiceRecognize"
// FAILEDOPERATION_LIVESSBESTFRAMEERROR = "FailedOperation.LivessBestFrameError"
// FAILEDOPERATION_LIVESSDETECTFAIL = "FailedOperation.LivessDetectFail"
// FAILEDOPERATION_LIVESSDETECTFAKE = "FailedOperation.LivessDetectFake"
// FAILEDOPERATION_LIVESSSYSTEMERROR = "FailedOperation.LivessSystemError"
// FAILEDOPERATION_LIVESSUNKNOWNERROR = "FailedOperation.LivessUnknownError"
// FAILEDOPERATION_SILENTDETECTFAIL = "FailedOperation.SilentDetectFail"
// FAILEDOPERATION_SILENTEYELIVEFAIL = "FailedOperation.SilentEyeLiveFail"
// FAILEDOPERATION_SILENTFACEDETECTFAIL = "FailedOperation.SilentFaceDetectFail"
// FAILEDOPERATION_SILENTFACEQUALITYFAIL = "FailedOperation.SilentFaceQualityFail"
// FAILEDOPERATION_SILENTFACEWITHMASKFAIL = "FailedOperation.SilentFaceWithMaskFail"
// FAILEDOPERATION_SILENTMOUTHLIVEFAIL = "FailedOperation.SilentMouthLiveFail"
// FAILEDOPERATION_SILENTMULTIFACEFAIL = "FailedOperation.SilentMultiFaceFail"
// FAILEDOPERATION_SILENTPICTURELIVEFAIL = "FailedOperation.SilentPictureLiveFail"
// FAILEDOPERATION_SILENTTHRESHOLD = "FailedOperation.SilentThreshold"
// FAILEDOPERATION_SILENTTOOSHORT = "FailedOperation.SilentTooShort"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) LivenessCompare(request *LivenessCompareRequest) (response *LivenessCompareResponse, err error) {
return c.LivenessCompareWithContext(context.Background(), request)
}
// LivenessCompare
// 传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_ACTIONCLOSEEYE = "FailedOperation.ActionCloseEye"
// FAILEDOPERATION_ACTIONFACECLOSE = "FailedOperation.ActionFaceClose"
// FAILEDOPERATION_ACTIONFACEFAR = "FailedOperation.ActionFaceFar"
// FAILEDOPERATION_ACTIONFACELEFT = "FailedOperation.ActionFaceLeft"
// FAILEDOPERATION_ACTIONFACERIGHT = "FailedOperation.ActionFaceRight"
// FAILEDOPERATION_ACTIONFIRSTACTION = "FailedOperation.ActionFirstAction"
// FAILEDOPERATION_ACTIONLIGHTDARK = "FailedOperation.ActionLightDark"
// FAILEDOPERATION_ACTIONLIGHTSTRONG = "FailedOperation.ActionLightStrong"
// FAILEDOPERATION_ACTIONNODETECTFACE = "FailedOperation.ActionNodetectFace"
// FAILEDOPERATION_ACTIONOPENMOUTH = "FailedOperation.ActionOpenMouth"
// FAILEDOPERATION_COMPAREFAIL = "FailedOperation.CompareFail"
// FAILEDOPERATION_COMPARELOWSIMILARITY = "FailedOperation.CompareLowSimilarity"
// FAILEDOPERATION_COMPARESYSTEMERROR = "FailedOperation.CompareSystemError"
// FAILEDOPERATION_DOWNLOADERROR = "FailedOperation.DownLoadError"
// FAILEDOPERATION_DOWNLOADTIMEOUTERROR = "FailedOperation.DownLoadTimeoutError"
// FAILEDOPERATION_LIFEPHOTODETECTFACES = "FailedOperation.LifePhotoDetectFaces"
// FAILEDOPERATION_LIFEPHOTODETECTFAKE = "FailedOperation.LifePhotoDetectFake"
// FAILEDOPERATION_LIFEPHOTODETECTNOFACES = "FailedOperation.LifePhotoDetectNoFaces"
// FAILEDOPERATION_LIFEPHOTOPOORQUALITY = "FailedOperation.LifePhotoPoorQuality"
// FAILEDOPERATION_LIFEPHOTOSIZEERROR = "FailedOperation.LifePhotoSizeError"
// FAILEDOPERATION_LIPFACEINCOMPLETE = "FailedOperation.LipFaceIncomplete"
// FAILEDOPERATION_LIPMOVESMALL = "FailedOperation.LipMoveSmall"
// FAILEDOPERATION_LIPNETFAILED = "FailedOperation.LipNetFailed"
// FAILEDOPERATION_LIPSIZEERROR = "FailedOperation.LipSizeError"
// FAILEDOPERATION_LIPVIDEOINVALID = "FailedOperation.LipVideoInvalid"
// FAILEDOPERATION_LIPVIDEOQUAILITY = "FailedOperation.LipVideoQuaility"
// FAILEDOPERATION_LIPVOICEDETECT = "FailedOperation.LipVoiceDetect"
// FAILEDOPERATION_LIPVOICELOW = "FailedOperation.LipVoiceLow"
// FAILEDOPERATION_LIPVOICERECOGNIZE = "FailedOperation.LipVoiceRecognize"
// FAILEDOPERATION_LIVESSBESTFRAMEERROR = "FailedOperation.LivessBestFrameError"
// FAILEDOPERATION_LIVESSDETECTFAIL = "FailedOperation.LivessDetectFail"
// FAILEDOPERATION_LIVESSDETECTFAKE = "FailedOperation.LivessDetectFake"
// FAILEDOPERATION_LIVESSSYSTEMERROR = "FailedOperation.LivessSystemError"
// FAILEDOPERATION_LIVESSUNKNOWNERROR = "FailedOperation.LivessUnknownError"
// FAILEDOPERATION_SILENTDETECTFAIL = "FailedOperation.SilentDetectFail"
// FAILEDOPERATION_SILENTEYELIVEFAIL = "FailedOperation.SilentEyeLiveFail"
// FAILEDOPERATION_SILENTFACEDETECTFAIL = "FailedOperation.SilentFaceDetectFail"
// FAILEDOPERATION_SILENTFACEQUALITYFAIL = "FailedOperation.SilentFaceQualityFail"
// FAILEDOPERATION_SILENTFACEWITHMASKFAIL = "FailedOperation.SilentFaceWithMaskFail"
// FAILEDOPERATION_SILENTMOUTHLIVEFAIL = "FailedOperation.SilentMouthLiveFail"
// FAILEDOPERATION_SILENTMULTIFACEFAIL = "FailedOperation.SilentMultiFaceFail"
// FAILEDOPERATION_SILENTPICTURELIVEFAIL = "FailedOperation.SilentPictureLiveFail"
// FAILEDOPERATION_SILENTTHRESHOLD = "FailedOperation.SilentThreshold"
// FAILEDOPERATION_SILENTTOOSHORT = "FailedOperation.SilentTooShort"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) LivenessCompareWithContext(ctx context.Context, request *LivenessCompareRequest) (response *LivenessCompareResponse, err error) {
if request == nil {
request = NewLivenessCompareRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("LivenessCompare require credential")
}
request.SetContext(ctx)
response = NewLivenessCompareResponse()
err = c.Send(request, response)
return
}
func NewLivenessRecognitionRequest() (request *LivenessRecognitionRequest) {
request = &LivenessRecognitionRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "LivenessRecognition")
return
}
func NewLivenessRecognitionResponse() (response *LivenessRecognitionResponse) {
response = &LivenessRecognitionResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// LivenessRecognition
// 传入视频和身份信息,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与权威库的证件照是否属于同一个人。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_ACTIONCLOSEEYE = "FailedOperation.ActionCloseEye"
// FAILEDOPERATION_ACTIONFACECLOSE = "FailedOperation.ActionFaceClose"
// FAILEDOPERATION_ACTIONFACEFAR = "FailedOperation.ActionFaceFar"
// FAILEDOPERATION_ACTIONFACELEFT = "FailedOperation.ActionFaceLeft"
// FAILEDOPERATION_ACTIONFACERIGHT = "FailedOperation.ActionFaceRight"
// FAILEDOPERATION_ACTIONFIRSTACTION = "FailedOperation.ActionFirstAction"
// FAILEDOPERATION_ACTIONLIGHTDARK = "FailedOperation.ActionLightDark"
// FAILEDOPERATION_ACTIONLIGHTSTRONG = "FailedOperation.ActionLightStrong"
// FAILEDOPERATION_ACTIONNODETECTFACE = "FailedOperation.ActionNodetectFace"
// FAILEDOPERATION_ACTIONOPENMOUTH = "FailedOperation.ActionOpenMouth"
// FAILEDOPERATION_COMPAREFAIL = "FailedOperation.CompareFail"
// FAILEDOPERATION_COMPARELIBSERVICEUNAVAILABLE = "FailedOperation.CompareLibServiceUnavailable"
// FAILEDOPERATION_COMPARELOWSIMILARITY = "FailedOperation.CompareLowSimilarity"
// FAILEDOPERATION_COMPARESYSTEMERROR = "FailedOperation.CompareSystemError"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_DOWNLOADERROR = "FailedOperation.DownLoadError"
// FAILEDOPERATION_DOWNLOADTIMEOUTERROR = "FailedOperation.DownLoadTimeoutError"
// FAILEDOPERATION_IDFORMATERROR = "FailedOperation.IdFormatError"
// FAILEDOPERATION_IDNAMEMISMATCH = "FailedOperation.IdNameMisMatch"
// FAILEDOPERATION_IDNOEXISTSYSTEM = "FailedOperation.IdNoExistSystem"
// FAILEDOPERATION_IDPHOTONOEXIST = "FailedOperation.IdPhotoNoExist"
// FAILEDOPERATION_IDPHOTOPOORQUALITY = "FailedOperation.IdPhotoPoorQuality"
// FAILEDOPERATION_IDENTITYAUTHLIMITEXCEEDED = "FailedOperation.IdentityAuthLimitExceeded"
// FAILEDOPERATION_LIFEPHOTODETECTFACES = "FailedOperation.LifePhotoDetectFaces"
// FAILEDOPERATION_LIFEPHOTODETECTFAKE = "FailedOperation.LifePhotoDetectFake"
// FAILEDOPERATION_LIFEPHOTODETECTNOFACES = "FailedOperation.LifePhotoDetectNoFaces"
// FAILEDOPERATION_LIFEPHOTOSIZEERROR = "FailedOperation.LifePhotoSizeError"
// FAILEDOPERATION_LIPFACEINCOMPLETE = "FailedOperation.LipFaceIncomplete"
// FAILEDOPERATION_LIPMOVESMALL = "FailedOperation.LipMoveSmall"
// FAILEDOPERATION_LIPNETFAILED = "FailedOperation.LipNetFailed"
// FAILEDOPERATION_LIPSIZEERROR = "FailedOperation.LipSizeError"
// FAILEDOPERATION_LIPVIDEOINVALID = "FailedOperation.LipVideoInvalid"
// FAILEDOPERATION_LIPVIDEOQUAILITY = "FailedOperation.LipVideoQuaility"
// FAILEDOPERATION_LIPVOICEDETECT = "FailedOperation.LipVoiceDetect"
// FAILEDOPERATION_LIPVOICELOW = "FailedOperation.LipVoiceLow"
// FAILEDOPERATION_LIPVOICERECOGNIZE = "FailedOperation.LipVoiceRecognize"
// FAILEDOPERATION_LIVESSBESTFRAMEERROR = "FailedOperation.LivessBestFrameError"
// FAILEDOPERATION_LIVESSDETECTFAIL = "FailedOperation.LivessDetectFail"
// FAILEDOPERATION_LIVESSDETECTFAKE = "FailedOperation.LivessDetectFake"
// FAILEDOPERATION_LIVESSSYSTEMERROR = "FailedOperation.LivessSystemError"
// FAILEDOPERATION_LIVESSUNKNOWNERROR = "FailedOperation.LivessUnknownError"
// FAILEDOPERATION_NAMEFORMATERROR = "FailedOperation.NameFormatError"
// FAILEDOPERATION_SILENTDETECTFAIL = "FailedOperation.SilentDetectFail"
// FAILEDOPERATION_SILENTTHRESHOLD = "FailedOperation.SilentThreshold"
// FAILEDOPERATION_SILENTTOOSHORT = "FailedOperation.SilentTooShort"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) LivenessRecognition(request *LivenessRecognitionRequest) (response *LivenessRecognitionResponse, err error) {
return c.LivenessRecognitionWithContext(context.Background(), request)
}
// LivenessRecognition
// 传入视频和身份信息,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与权威库的证件照是否属于同一个人。
//
// 可能返回的错误码:
// AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization"
// FAILEDOPERATION_ACTIONCLOSEEYE = "FailedOperation.ActionCloseEye"
// FAILEDOPERATION_ACTIONFACECLOSE = "FailedOperation.ActionFaceClose"
// FAILEDOPERATION_ACTIONFACEFAR = "FailedOperation.ActionFaceFar"
// FAILEDOPERATION_ACTIONFACELEFT = "FailedOperation.ActionFaceLeft"
// FAILEDOPERATION_ACTIONFACERIGHT = "FailedOperation.ActionFaceRight"
// FAILEDOPERATION_ACTIONFIRSTACTION = "FailedOperation.ActionFirstAction"
// FAILEDOPERATION_ACTIONLIGHTDARK = "FailedOperation.ActionLightDark"
// FAILEDOPERATION_ACTIONLIGHTSTRONG = "FailedOperation.ActionLightStrong"
// FAILEDOPERATION_ACTIONNODETECTFACE = "FailedOperation.ActionNodetectFace"
// FAILEDOPERATION_ACTIONOPENMOUTH = "FailedOperation.ActionOpenMouth"
// FAILEDOPERATION_COMPAREFAIL = "FailedOperation.CompareFail"
// FAILEDOPERATION_COMPARELIBSERVICEUNAVAILABLE = "FailedOperation.CompareLibServiceUnavailable"
// FAILEDOPERATION_COMPARELOWSIMILARITY = "FailedOperation.CompareLowSimilarity"
// FAILEDOPERATION_COMPARESYSTEMERROR = "FailedOperation.CompareSystemError"
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_DOWNLOADERROR = "FailedOperation.DownLoadError"
// FAILEDOPERATION_DOWNLOADTIMEOUTERROR = "FailedOperation.DownLoadTimeoutError"
// FAILEDOPERATION_IDFORMATERROR = "FailedOperation.IdFormatError"
// FAILEDOPERATION_IDNAMEMISMATCH = "FailedOperation.IdNameMisMatch"
// FAILEDOPERATION_IDNOEXISTSYSTEM = "FailedOperation.IdNoExistSystem"
// FAILEDOPERATION_IDPHOTONOEXIST = "FailedOperation.IdPhotoNoExist"
// FAILEDOPERATION_IDPHOTOPOORQUALITY = "FailedOperation.IdPhotoPoorQuality"
// FAILEDOPERATION_IDENTITYAUTHLIMITEXCEEDED = "FailedOperation.IdentityAuthLimitExceeded"
// FAILEDOPERATION_LIFEPHOTODETECTFACES = "FailedOperation.LifePhotoDetectFaces"
// FAILEDOPERATION_LIFEPHOTODETECTFAKE = "FailedOperation.LifePhotoDetectFake"
// FAILEDOPERATION_LIFEPHOTODETECTNOFACES = "FailedOperation.LifePhotoDetectNoFaces"
// FAILEDOPERATION_LIFEPHOTOSIZEERROR = "FailedOperation.LifePhotoSizeError"
// FAILEDOPERATION_LIPFACEINCOMPLETE = "FailedOperation.LipFaceIncomplete"
// FAILEDOPERATION_LIPMOVESMALL = "FailedOperation.LipMoveSmall"
// FAILEDOPERATION_LIPNETFAILED = "FailedOperation.LipNetFailed"
// FAILEDOPERATION_LIPSIZEERROR = "FailedOperation.LipSizeError"
// FAILEDOPERATION_LIPVIDEOINVALID = "FailedOperation.LipVideoInvalid"
// FAILEDOPERATION_LIPVIDEOQUAILITY = "FailedOperation.LipVideoQuaility"
// FAILEDOPERATION_LIPVOICEDETECT = "FailedOperation.LipVoiceDetect"
// FAILEDOPERATION_LIPVOICELOW = "FailedOperation.LipVoiceLow"
// FAILEDOPERATION_LIPVOICERECOGNIZE = "FailedOperation.LipVoiceRecognize"
// FAILEDOPERATION_LIVESSBESTFRAMEERROR = "FailedOperation.LivessBestFrameError"
// FAILEDOPERATION_LIVESSDETECTFAIL = "FailedOperation.LivessDetectFail"
// FAILEDOPERATION_LIVESSDETECTFAKE = "FailedOperation.LivessDetectFake"
// FAILEDOPERATION_LIVESSSYSTEMERROR = "FailedOperation.LivessSystemError"
// FAILEDOPERATION_LIVESSUNKNOWNERROR = "FailedOperation.LivessUnknownError"
// FAILEDOPERATION_NAMEFORMATERROR = "FailedOperation.NameFormatError"
// FAILEDOPERATION_SILENTDETECTFAIL = "FailedOperation.SilentDetectFail"
// FAILEDOPERATION_SILENTTHRESHOLD = "FailedOperation.SilentThreshold"
// FAILEDOPERATION_SILENTTOOSHORT = "FailedOperation.SilentTooShort"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) LivenessRecognitionWithContext(ctx context.Context, request *LivenessRecognitionRequest) (response *LivenessRecognitionResponse, err error) {
if request == nil {
request = NewLivenessRecognitionRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("LivenessRecognition require credential")
}
request.SetContext(ctx)
response = NewLivenessRecognitionResponse()
err = c.Send(request, response)
return
}
func NewMinorsVerificationRequest() (request *MinorsVerificationRequest) {
request = &MinorsVerificationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "MinorsVerification")
return
}
func NewMinorsVerificationResponse() (response *MinorsVerificationResponse) {
response = &MinorsVerificationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// MinorsVerification
// 通过传入手机号或姓名和身份证号,结合权威数据源和腾讯健康守护可信模型,判断该信息是否真实且年满18周岁。腾讯健康守护可信模型覆盖了上十亿手机库源,覆盖率高、准确率高,如果不在库中的手机号,还可以通过姓名+身份证进行兜底验证。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) MinorsVerification(request *MinorsVerificationRequest) (response *MinorsVerificationResponse, err error) {
return c.MinorsVerificationWithContext(context.Background(), request)
}
// MinorsVerification
// 通过传入手机号或姓名和身份证号,结合权威数据源和腾讯健康守护可信模型,判断该信息是否真实且年满18周岁。腾讯健康守护可信模型覆盖了上十亿手机库源,覆盖率高、准确率高,如果不在库中的手机号,还可以通过姓名+身份证进行兜底验证。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) MinorsVerificationWithContext(ctx context.Context, request *MinorsVerificationRequest) (response *MinorsVerificationResponse, err error) {
if request == nil {
request = NewMinorsVerificationRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("MinorsVerification require credential")
}
request.SetContext(ctx)
response = NewMinorsVerificationResponse()
err = c.Send(request, response)
return
}
func NewMobileNetworkTimeVerificationRequest() (request *MobileNetworkTimeVerificationRequest) {
request = &MobileNetworkTimeVerificationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "MobileNetworkTimeVerification")
return
}
func NewMobileNetworkTimeVerificationResponse() (response *MobileNetworkTimeVerificationResponse) {
response = &MobileNetworkTimeVerificationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// MobileNetworkTimeVerification
// 本接口用于查询手机号在网时长,输入手机号进行查询。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) MobileNetworkTimeVerification(request *MobileNetworkTimeVerificationRequest) (response *MobileNetworkTimeVerificationResponse, err error) {
return c.MobileNetworkTimeVerificationWithContext(context.Background(), request)
}
// MobileNetworkTimeVerification
// 本接口用于查询手机号在网时长,输入手机号进行查询。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_BIZTOKENEXPIRED = "InvalidParameterValue.BizTokenExpired"
// INVALIDPARAMETERVALUE_RULEIDNOTEXIST = "InvalidParameterValue.RuleIdNotExist"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) MobileNetworkTimeVerificationWithContext(ctx context.Context, request *MobileNetworkTimeVerificationRequest) (response *MobileNetworkTimeVerificationResponse, err error) {
if request == nil {
request = NewMobileNetworkTimeVerificationRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("MobileNetworkTimeVerification require credential")
}
request.SetContext(ctx)
response = NewMobileNetworkTimeVerificationResponse()
err = c.Send(request, response)
return
}
func NewMobileStatusRequest() (request *MobileStatusRequest) {
request = &MobileStatusRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "MobileStatus")
return
}
func NewMobileStatusResponse() (response *MobileStatusResponse) {
response = &MobileStatusResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// MobileStatus
// 本接口用于验证手机号的状态,您可以输入手机号进行查询。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) MobileStatus(request *MobileStatusRequest) (response *MobileStatusResponse, err error) {
return c.MobileStatusWithContext(context.Background(), request)
}
// MobileStatus
// 本接口用于验证手机号的状态,您可以输入手机号进行查询。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) MobileStatusWithContext(ctx context.Context, request *MobileStatusRequest) (response *MobileStatusResponse, err error) {
if request == nil {
request = NewMobileStatusRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("MobileStatus require credential")
}
request.SetContext(ctx)
response = NewMobileStatusResponse()
err = c.Send(request, response)
return
}
func NewParseNfcDataRequest() (request *ParseNfcDataRequest) {
request = &ParseNfcDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "ParseNfcData")
return
}
func NewParseNfcDataResponse() (response *ParseNfcDataResponse) {
response = &ParseNfcDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ParseNfcData
// 解析SDK获取到的证件NFC数据,接口传入SDK返回的ReqId,返回证件信息(个别字段为特定证件类型特有)。SDK生成的ReqId五分钟内有效,重复查询仅收一次费。支持身份证类证件(二代身份证、港澳居住证、台湾居住证、外国人永居证)以及旅行类证件(港澳通行证、台湾通行证、台胞证、回乡证)的NFC识别及核验。
//
// 可能返回的错误码:
// INTERNALERROR_UNKNOWN = "InternalError.UnKnown"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) ParseNfcData(request *ParseNfcDataRequest) (response *ParseNfcDataResponse, err error) {
return c.ParseNfcDataWithContext(context.Background(), request)
}
// ParseNfcData
// 解析SDK获取到的证件NFC数据,接口传入SDK返回的ReqId,返回证件信息(个别字段为特定证件类型特有)。SDK生成的ReqId五分钟内有效,重复查询仅收一次费。支持身份证类证件(二代身份证、港澳居住证、台湾居住证、外国人永居证)以及旅行类证件(港澳通行证、台湾通行证、台胞证、回乡证)的NFC识别及核验。
//
// 可能返回的错误码:
// INTERNALERROR_UNKNOWN = "InternalError.UnKnown"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) ParseNfcDataWithContext(ctx context.Context, request *ParseNfcDataRequest) (response *ParseNfcDataResponse, err error) {
if request == nil {
request = NewParseNfcDataRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ParseNfcData require credential")
}
request.SetContext(ctx)
response = NewParseNfcDataResponse()
err = c.Send(request, response)
return
}
func NewPhoneVerificationRequest() (request *PhoneVerificationRequest) {
request = &PhoneVerificationRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "PhoneVerification")
return
}
func NewPhoneVerificationResponse() (response *PhoneVerificationResponse) {
response = &PhoneVerificationResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// PhoneVerification
// 本接口用于校验手机号、姓名和身份证号的真实性和一致性。支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) PhoneVerification(request *PhoneVerificationRequest) (response *PhoneVerificationResponse, err error) {
return c.PhoneVerificationWithContext(context.Background(), request)
}
// PhoneVerification
// 本接口用于校验手机号、姓名和身份证号的真实性和一致性。支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) PhoneVerificationWithContext(ctx context.Context, request *PhoneVerificationRequest) (response *PhoneVerificationResponse, err error) {
if request == nil {
request = NewPhoneVerificationRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("PhoneVerification require credential")
}
request.SetContext(ctx)
response = NewPhoneVerificationResponse()
err = c.Send(request, response)
return
}
func NewPhoneVerificationCMCCRequest() (request *PhoneVerificationCMCCRequest) {
request = &PhoneVerificationCMCCRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "PhoneVerificationCMCC")
return
}
func NewPhoneVerificationCMCCResponse() (response *PhoneVerificationCMCCResponse) {
response = &PhoneVerificationCMCCResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// PhoneVerificationCMCC
// 本接口用于校验中国移动手机号、姓名和身份证号的真实性和一致性。中国移动支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) PhoneVerificationCMCC(request *PhoneVerificationCMCCRequest) (response *PhoneVerificationCMCCResponse, err error) {
return c.PhoneVerificationCMCCWithContext(context.Background(), request)
}
// PhoneVerificationCMCC
// 本接口用于校验中国移动手机号、姓名和身份证号的真实性和一致性。中国移动支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) PhoneVerificationCMCCWithContext(ctx context.Context, request *PhoneVerificationCMCCRequest) (response *PhoneVerificationCMCCResponse, err error) {
if request == nil {
request = NewPhoneVerificationCMCCRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("PhoneVerificationCMCC require credential")
}
request.SetContext(ctx)
response = NewPhoneVerificationCMCCResponse()
err = c.Send(request, response)
return
}
func NewPhoneVerificationCTCCRequest() (request *PhoneVerificationCTCCRequest) {
request = &PhoneVerificationCTCCRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "PhoneVerificationCTCC")
return
}
func NewPhoneVerificationCTCCResponse() (response *PhoneVerificationCTCCResponse) {
response = &PhoneVerificationCTCCResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// PhoneVerificationCTCC
// 本接口用于校验中国电信手机号、姓名和身份证号的真实性和一致性。中国电信支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) PhoneVerificationCTCC(request *PhoneVerificationCTCCRequest) (response *PhoneVerificationCTCCResponse, err error) {
return c.PhoneVerificationCTCCWithContext(context.Background(), request)
}
// PhoneVerificationCTCC
// 本接口用于校验中国电信手机号、姓名和身份证号的真实性和一致性。中国电信支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) PhoneVerificationCTCCWithContext(ctx context.Context, request *PhoneVerificationCTCCRequest) (response *PhoneVerificationCTCCResponse, err error) {
if request == nil {
request = NewPhoneVerificationCTCCRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("PhoneVerificationCTCC require credential")
}
request.SetContext(ctx)
response = NewPhoneVerificationCTCCResponse()
err = c.Send(request, response)
return
}
func NewPhoneVerificationCUCCRequest() (request *PhoneVerificationCUCCRequest) {
request = &PhoneVerificationCUCCRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("faceid", APIVersion, "PhoneVerificationCUCC")
return
}
func NewPhoneVerificationCUCCResponse() (response *PhoneVerificationCUCCResponse) {
response = &PhoneVerificationCUCCResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// PhoneVerificationCUCC
// 本接口用于校验中国联通手机号、姓名和身份证号的真实性和一致性。中国联通支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) PhoneVerificationCUCC(request *PhoneVerificationCUCCRequest) (response *PhoneVerificationCUCCResponse, err error) {
return c.PhoneVerificationCUCCWithContext(context.Background(), request)
}
// PhoneVerificationCUCC
// 本接口用于校验中国联通手机号、姓名和身份证号的真实性和一致性。中国联通支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
//
// 可能返回的错误码:
// FAILEDOPERATION_DECRYPTSYSTEMERROR = "FailedOperation.DecryptSystemError"
// FAILEDOPERATION_STSUNAUTHERRERROR = "FailedOperation.StsUnAuthErrError"
// FAILEDOPERATION_UNKNOWN = "FailedOperation.UnKnown"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = "InvalidParameter.UnsupportEncryptField"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION_ARREARS = "UnauthorizedOperation.Arrears"
// UNAUTHORIZEDOPERATION_CHARGESTATUSEXCEPTION = "UnauthorizedOperation.ChargeStatusException"
// UNAUTHORIZEDOPERATION_NONAUTHORIZE = "UnauthorizedOperation.NonAuthorize"
// UNAUTHORIZEDOPERATION_NONACTIVATED = "UnauthorizedOperation.Nonactivated"
func (c *Client) PhoneVerificationCUCCWithContext(ctx context.Context, request *PhoneVerificationCUCCRequest) (response *PhoneVerificationCUCCResponse, err error) {
if request == nil {
request = NewPhoneVerificationCUCCRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("PhoneVerificationCUCC require credential")
}
request.SetContext(ctx)
response = NewPhoneVerificationCUCCResponse()
err = c.Send(request, response)
return
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-go.git
git@gitee.com:tencentcloud/tencentcloud-sdk-go.git
tencentcloud
tencentcloud-sdk-go
tencentcloud-sdk-go
master

搜索帮助

Dd8185d8 1850385 E526c682 1850385