Documentation
¶
Index ¶
- Constants
- type BankCard2EVerificationRequest
- type BankCard2EVerificationResponse
- type BankCard4EVerificationRequest
- type BankCard4EVerificationResponse
- type BankCardVerificationRequest
- type BankCardVerificationResponse
- type CheckBankCardInformationRequest
- type CheckBankCardInformationResponse
- type CheckIdCardInformationRequest
- type CheckIdCardInformationResponse
- type CheckPhoneAndNameRequest
- type CheckPhoneAndNameResponse
- type Client
- func (c *Client) BankCard2EVerification(request *BankCard2EVerificationRequest) (response *BankCard2EVerificationResponse, err error)
- func (c *Client) BankCard4EVerification(request *BankCard4EVerificationRequest) (response *BankCard4EVerificationResponse, err error)
- func (c *Client) BankCardVerification(request *BankCardVerificationRequest) (response *BankCardVerificationResponse, err error)
- func (c *Client) CheckBankCardInformation(request *CheckBankCardInformationRequest) (response *CheckBankCardInformationResponse, err error)
- func (c *Client) CheckIdCardInformation(request *CheckIdCardInformationRequest) (response *CheckIdCardInformationResponse, err error)
- func (c *Client) CheckPhoneAndName(request *CheckPhoneAndNameRequest) (response *CheckPhoneAndNameResponse, err error)
- func (c *Client) DetectAuth(request *DetectAuthRequest) (response *DetectAuthResponse, err error)
- func (c *Client) EncryptedPhoneVerification(request *EncryptedPhoneVerificationRequest) (response *EncryptedPhoneVerificationResponse, err error)
- func (c *Client) GetActionSequence(request *GetActionSequenceRequest) (response *GetActionSequenceResponse, err error)
- func (c *Client) GetDetectInfo(request *GetDetectInfoRequest) (response *GetDetectInfoResponse, err error)
- func (c *Client) GetDetectInfoEnhanced(request *GetDetectInfoEnhancedRequest) (response *GetDetectInfoEnhancedResponse, err error)
- func (c *Client) GetEidResult(request *GetEidResultRequest) (response *GetEidResultResponse, err error)
- func (c *Client) GetEidToken(request *GetEidTokenRequest) (response *GetEidTokenResponse, err error)
- func (c *Client) GetFaceIdResult(request *GetFaceIdResultRequest) (response *GetFaceIdResultResponse, err error)
- func (c *Client) GetFaceIdToken(request *GetFaceIdTokenRequest) (response *GetFaceIdTokenResponse, err error)
- func (c *Client) GetLiveCode(request *GetLiveCodeRequest) (response *GetLiveCodeResponse, err error)
- func (c *Client) GetRealNameAuthResult(request *GetRealNameAuthResultRequest) (response *GetRealNameAuthResultResponse, err error)
- func (c *Client) GetRealNameAuthToken(request *GetRealNameAuthTokenRequest) (response *GetRealNameAuthTokenResponse, err error)
- func (c *Client) IdCardOCRVerification(request *IdCardOCRVerificationRequest) (response *IdCardOCRVerificationResponse, err error)
- func (c *Client) IdCardVerification(request *IdCardVerificationRequest) (response *IdCardVerificationResponse, err error)
- func (c *Client) ImageRecognition(request *ImageRecognitionRequest) (response *ImageRecognitionResponse, err error)
- func (c *Client) Liveness(request *LivenessRequest) (response *LivenessResponse, err error)
- func (c *Client) LivenessCompare(request *LivenessCompareRequest) (response *LivenessCompareResponse, err error)
- func (c *Client) LivenessRecognition(request *LivenessRecognitionRequest) (response *LivenessRecognitionResponse, err error)
- func (c *Client) MinorsVerification(request *MinorsVerificationRequest) (response *MinorsVerificationResponse, err error)
- func (c *Client) MobileNetworkTimeVerification(request *MobileNetworkTimeVerificationRequest) (response *MobileNetworkTimeVerificationResponse, err error)
- func (c *Client) MobileStatus(request *MobileStatusRequest) (response *MobileStatusResponse, err error)
- func (c *Client) PhoneVerification(request *PhoneVerificationRequest) (response *PhoneVerificationResponse, err error)
- type DetectAuthRequest
- type DetectAuthResponse
- type DetectDetail
- type DetectInfoBestFrame
- type DetectInfoIdCardData
- type DetectInfoText
- type DetectInfoVideoData
- type EidInfo
- type EncryptedPhoneVerificationRequest
- type EncryptedPhoneVerificationResponse
- type Encryption
- type GetActionSequenceRequest
- type GetActionSequenceResponse
- type GetDetectInfoEnhancedRequest
- type GetDetectInfoEnhancedResponse
- type GetDetectInfoRequest
- type GetDetectInfoResponse
- type GetEidResultRequest
- type GetEidResultResponse
- type GetEidTokenConfig
- type GetEidTokenRequest
- type GetEidTokenResponse
- type GetFaceIdResultRequest
- type GetFaceIdResultResponse
- type GetFaceIdTokenRequest
- type GetFaceIdTokenResponse
- type GetLiveCodeRequest
- type GetLiveCodeResponse
- type GetRealNameAuthResultRequest
- type GetRealNameAuthResultResponse
- type GetRealNameAuthTokenRequest
- type GetRealNameAuthTokenResponse
- type IdCardOCRVerificationRequest
- type IdCardOCRVerificationResponse
- type IdCardVerificationRequest
- type IdCardVerificationResponse
- type ImageRecognitionRequest
- type ImageRecognitionResponse
- type LivenessCompareRequest
- type LivenessCompareResponse
- type LivenessRecognitionRequest
- type LivenessRecognitionResponse
- type LivenessRequest
- type LivenessResponse
- type MinorsVerificationRequest
- type MinorsVerificationResponse
- type MobileNetworkTimeVerificationRequest
- type MobileNetworkTimeVerificationResponse
- type MobileStatusRequest
- type MobileStatusResponse
- type PhoneVerificationRequest
- type PhoneVerificationResponse
Constants ¶
const APIVersion = "2018-03-01"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BankCard2EVerificationRequest ¶
type BankCard2EVerificationRequest struct {
*tchttp.BaseRequest
// 姓名
Name *string `json:"Name,omitempty" name:"Name"`
// 银行卡
BankCard *string `json:"BankCard,omitempty" name:"BankCard"`
}
func NewBankCard2EVerificationRequest ¶
func NewBankCard2EVerificationRequest() (request *BankCard2EVerificationRequest)
func (*BankCard2EVerificationRequest) FromJsonString ¶
func (r *BankCard2EVerificationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BankCard2EVerificationRequest) ToJsonString ¶
func (r *BankCard2EVerificationRequest) ToJsonString() string
type BankCard2EVerificationResponse ¶
type BankCard2EVerificationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 认证结果码
// 计费结果码:
// '0': '认证通过'
// '-1': '认证未通过'
// '-4': '持卡人信息有误'
// '-5': '未开通无卡支付'
// '-6': '此卡被没收'
// '-7': '无效卡号'
// '-8': '此卡无对应发卡行'
// '-9': '该卡未初始化或睡眠卡'
// '-10': '作弊卡、吞卡'
// '-11': '此卡已挂失'
// '-12': '该卡已过期'
// '-13': '受限制的卡'
// '-14': '密码错误次数超限'
// '-15': '发卡行不支持此交易'
// 不计费结果码:
// '-2': '姓名校验不通过'
// '-3': '银行卡号码有误'
// '-16': '验证中心服务繁忙'
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewBankCard2EVerificationResponse ¶
func NewBankCard2EVerificationResponse() (response *BankCard2EVerificationResponse)
func (*BankCard2EVerificationResponse) FromJsonString ¶
func (r *BankCard2EVerificationResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BankCard2EVerificationResponse) ToJsonString ¶
func (r *BankCard2EVerificationResponse) ToJsonString() string
type BankCard4EVerificationRequest ¶
type BankCard4EVerificationRequest struct {
*tchttp.BaseRequest
// 姓名
Name *string `json:"Name,omitempty" name:"Name"`
// 银行卡
BankCard *string `json:"BankCard,omitempty" name:"BankCard"`
// 手机号码
Phone *string `json:"Phone,omitempty" name:"Phone"`
// 开户证件号,与CertType参数的证件类型一致,如:身份证,则传入身份证号。
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 证件类型,请确认该证件为开户时使用的证件类型,未用于开户的证件信息不支持验证。
// 目前默认为0:身份证,其他证件类型暂不支持。
CertType *int64 `json:"CertType,omitempty" name:"CertType"`
// 敏感数据加密信息。对传入信息(姓名、身份证号、手机号、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
Encryption *Encryption `json:"Encryption,omitempty" name:"Encryption"`
}
func NewBankCard4EVerificationRequest ¶
func NewBankCard4EVerificationRequest() (request *BankCard4EVerificationRequest)
func (*BankCard4EVerificationRequest) FromJsonString ¶
func (r *BankCard4EVerificationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BankCard4EVerificationRequest) ToJsonString ¶
func (r *BankCard4EVerificationRequest) ToJsonString() string
type BankCard4EVerificationResponse ¶
type BankCard4EVerificationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 认证结果码
// 收费结果码:
// '0': '认证通过'
// '-1': '认证未通过'
// '-6': '持卡人信息有误'
// '-7': '未开通无卡支付'
// '-8': '此卡被没收'
// '-9': '无效卡号'
// '-10': '此卡无对应发卡行'
// '-11': '该卡未初始化或睡眠卡'
// '-12': '作弊卡、吞卡'
// '-13': '此卡已挂失'
// '-14': '该卡已过期'
// '-15': '受限制的卡'
// '-16': '密码错误次数超限'
// '-17': '发卡行不支持此交易'
// 不收费结果码:
// '-2': '姓名校验不通过'
// '-3': '身份证号码有误'
// '-4': '银行卡号码有误'
// '-5': '手机号码不合法'
// '-18': '验证中心服务繁忙'
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewBankCard4EVerificationResponse ¶
func NewBankCard4EVerificationResponse() (response *BankCard4EVerificationResponse)
func (*BankCard4EVerificationResponse) FromJsonString ¶
func (r *BankCard4EVerificationResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BankCard4EVerificationResponse) ToJsonString ¶
func (r *BankCard4EVerificationResponse) ToJsonString() string
type BankCardVerificationRequest ¶
type BankCardVerificationRequest struct {
*tchttp.BaseRequest
// 开户证件号,与CertType参数的证件类型一致,如:身份证,则传入身份证号。
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 姓名
Name *string `json:"Name,omitempty" name:"Name"`
// 银行卡
BankCard *string `json:"BankCard,omitempty" name:"BankCard"`
// 证件类型,请确认该证件为开户时使用的证件类型,未用于开户的证件信息不支持验证。
// 目前默认:0 身份证,其他证件类型需求可以联系小助手faceid001确认。
CertType *int64 `json:"CertType,omitempty" name:"CertType"`
// 敏感数据加密信息。对传入信息(姓名、身份证号、银行卡号)有加密需求的用户可使用此参数,详情请点击左侧链接。
Encryption *Encryption `json:"Encryption,omitempty" name:"Encryption"`
}
func NewBankCardVerificationRequest ¶
func NewBankCardVerificationRequest() (request *BankCardVerificationRequest)
func (*BankCardVerificationRequest) FromJsonString ¶
func (r *BankCardVerificationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BankCardVerificationRequest) ToJsonString ¶
func (r *BankCardVerificationRequest) ToJsonString() string
type BankCardVerificationResponse ¶
type BankCardVerificationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 认证结果码
// 收费结果码:
// '0': '认证通过'
// '-1': '认证未通过'
// '-5': '持卡人信息有误'
// '-6': '未开通无卡支付'
// '-7': '此卡被没收'
// '-8': '无效卡号'
// '-9': '此卡无对应发卡行'
// '-10': '该卡未初始化或睡眠卡'
// '-11': '作弊卡、吞卡'
// '-12': '此卡已挂失'
// '-13': '该卡已过期'
// '-14': '受限制的卡'
// '-15': '密码错误次数超限'
// '-16': '发卡行不支持此交易'
// 不收费结果码:
// '-2': '姓名校验不通过'
// '-3': '身份证号码有误'
// '-4': '银行卡号码有误'
// '-17': '验证中心服务繁忙'
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewBankCardVerificationResponse ¶
func NewBankCardVerificationResponse() (response *BankCardVerificationResponse)
func (*BankCardVerificationResponse) FromJsonString ¶
func (r *BankCardVerificationResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BankCardVerificationResponse) ToJsonString ¶
func (r *BankCardVerificationResponse) ToJsonString() string
type CheckBankCardInformationRequest ¶
type CheckBankCardInformationRequest struct {
*tchttp.BaseRequest
// 银行卡号。
BankCard *string `json:"BankCard,omitempty" name:"BankCard"`
}
func NewCheckBankCardInformationRequest ¶
func NewCheckBankCardInformationRequest() (request *CheckBankCardInformationRequest)
func (*CheckBankCardInformationRequest) FromJsonString ¶
func (r *CheckBankCardInformationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CheckBankCardInformationRequest) ToJsonString ¶
func (r *CheckBankCardInformationRequest) ToJsonString() string
type CheckBankCardInformationResponse ¶
type CheckBankCardInformationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 认证结果码,收费情况如下。
// 收费结果码:
// 0: 查询成功
// -1: 未查到信息
// 不收费结果码
// -2:验证中心服务繁忙
// -3:银行卡不存在
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述
Description *string `json:"Description,omitempty" name:"Description"`
// 开户行
AccountBank *string `json:"AccountBank,omitempty" name:"AccountBank"`
// 卡性质:1. 借记卡;2. 贷记卡
AccountType *int64 `json:"AccountType,omitempty" name:"AccountType"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCheckBankCardInformationResponse ¶
func NewCheckBankCardInformationResponse() (response *CheckBankCardInformationResponse)
func (*CheckBankCardInformationResponse) FromJsonString ¶
func (r *CheckBankCardInformationResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CheckBankCardInformationResponse) ToJsonString ¶
func (r *CheckBankCardInformationResponse) ToJsonString() string
type CheckIdCardInformationRequest ¶
type CheckIdCardInformationRequest struct {
*tchttp.BaseRequest
// 身份证人像面的 Base64 值
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 7M。
// 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
// ImageBase64、ImageUrl二者必须提供其中之一。若都提供了,则按照ImageUrl>ImageBase64的优先级使用参数。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 身份证人像面的 Url 地址
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
// 以下可选字段均为bool 类型,默认false:
// CopyWarn,复印件告警
// BorderCheckWarn,边框和框内遮挡告警
// ReshootWarn,翻拍告警
// DetectPsWarn,PS检测告警
// TempIdWarn,临时身份证告警
// Quality,图片质量告警(评价图片模糊程度)
//
// SDK 设置方式参考:
// Config = Json.stringify({"CopyWarn":true,"ReshootWarn":true})
// API 3.0 Explorer 设置方式参考:
// Config = {"CopyWarn":true,"ReshootWarn":true}
Config *string `json:"Config,omitempty" name:"Config"`
}
func NewCheckIdCardInformationRequest ¶
func NewCheckIdCardInformationRequest() (request *CheckIdCardInformationRequest)
func (*CheckIdCardInformationRequest) FromJsonString ¶
func (r *CheckIdCardInformationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CheckIdCardInformationRequest) ToJsonString ¶
func (r *CheckIdCardInformationRequest) ToJsonString() string
type CheckIdCardInformationResponse ¶
type CheckIdCardInformationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
Sim *float64 `json:"Sim,omitempty" name:"Sim"`
// 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 姓名
Name *string `json:"Name,omitempty" name:"Name"`
// 性别
Sex *string `json:"Sex,omitempty" name:"Sex"`
// 民族
Nation *string `json:"Nation,omitempty" name:"Nation"`
// 出生日期
Birth *string `json:"Birth,omitempty" name:"Birth"`
// 地址
Address *string `json:"Address,omitempty" name:"Address"`
// 身份证号
IdNum *string `json:"IdNum,omitempty" name:"IdNum"`
// 身份证头像照片的base64编码,如果抠图失败会拿整张身份证做比对并返回空。
Portrait *string `json:"Portrait,omitempty" name:"Portrait"`
// 告警信息,当在Config中配置了告警信息会停止人像比对,Result返回错误(FailedOperation.OcrWarningOccurred)并有此告警信息,Code 告警码列表和释义:
//
// -9101 身份证边框不完整告警,
// -9102 身份证复印件告警,
// -9103 身份证翻拍告警,
// -9105 身份证框内遮挡告警,
// -9104 临时身份证告警,
// -9106 身份证 PS 告警。
// -8001 图片模糊告警
// 多个会 | 隔开如 "-9101|-9106|-9104"
Warnings *string `json:"Warnings,omitempty" name:"Warnings"`
// 图片质量分数,当请求Config中配置图片模糊告警该参数才有意义,取值范围(0~100),目前默认阈值是50分,低于50分会触发模糊告警。
Quality *float64 `json:"Quality,omitempty" name:"Quality"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCheckIdCardInformationResponse ¶
func NewCheckIdCardInformationResponse() (response *CheckIdCardInformationResponse)
func (*CheckIdCardInformationResponse) FromJsonString ¶
func (r *CheckIdCardInformationResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CheckIdCardInformationResponse) ToJsonString ¶
func (r *CheckIdCardInformationResponse) ToJsonString() string
type CheckPhoneAndNameRequest ¶
type CheckPhoneAndNameRequest struct {
*tchttp.BaseRequest
// ⼿机号
Mobile *string `json:"Mobile,omitempty" name:"Mobile"`
// 姓名
Name *string `json:"Name,omitempty" name:"Name"`
}
func NewCheckPhoneAndNameRequest ¶
func NewCheckPhoneAndNameRequest() (request *CheckPhoneAndNameRequest)
func (*CheckPhoneAndNameRequest) FromJsonString ¶
func (r *CheckPhoneAndNameRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CheckPhoneAndNameRequest) ToJsonString ¶
func (r *CheckPhoneAndNameRequest) ToJsonString() string
type CheckPhoneAndNameResponse ¶
type CheckPhoneAndNameResponse struct {
*tchttp.BaseResponse
Response *struct {
// 认证结果码,收费情况如下。
// 收费结果码:
// 0: 验证结果一致
// 1: 验证结果不一致
// 不收费结果码:
// -1:查无记录
// -2:引擎未知错误
// -3:引擎服务异常
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述
Description *string `json:"Description,omitempty" name:"Description"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCheckPhoneAndNameResponse ¶
func NewCheckPhoneAndNameResponse() (response *CheckPhoneAndNameResponse)
func (*CheckPhoneAndNameResponse) FromJsonString ¶
func (r *CheckPhoneAndNameResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CheckPhoneAndNameResponse) ToJsonString ¶
func (r *CheckPhoneAndNameResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) BankCard2EVerification ¶
func (c *Client) BankCard2EVerification(request *BankCard2EVerificationRequest) (response *BankCard2EVerificationResponse, err error)
本接口用于校验姓名和银行卡号的真实性和一致性。
func (*Client) BankCard4EVerification ¶
func (c *Client) BankCard4EVerification(request *BankCard4EVerificationRequest) (response *BankCard4EVerificationResponse, err error)
本接口用于输入银行卡号、姓名、开户证件号、开户手机号,校验信息的真实性和一致性。
func (*Client) BankCardVerification ¶
func (c *Client) BankCardVerification(request *BankCardVerificationRequest) (response *BankCardVerificationResponse, err error)
本接口用于银行卡号、姓名、开户证件号信息的真实性和一致性。
func (*Client) CheckBankCardInformation ¶
func (c *Client) CheckBankCardInformation(request *CheckBankCardInformationRequest) (response *CheckBankCardInformationResponse, err error)
银行卡基础信息查询
func (*Client) CheckIdCardInformation ¶
func (c *Client) CheckIdCardInformation(request *CheckIdCardInformationRequest) (response *CheckIdCardInformationResponse, err error)
传入身份证人像面照片,识别身份证照片上的信息,并将姓名、身份证号、身份证人像照片与公安权威库的证件照进行比对,是否属于同一个人,从而验证身份证信息的真实性。
func (*Client) CheckPhoneAndName ¶
func (c *Client) CheckPhoneAndName(request *CheckPhoneAndNameRequest) (response *CheckPhoneAndNameResponse, err error)
手机号二要素核验接口用于校验手机号和姓名的真实性和一致性,支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
func (*Client) DetectAuth ¶
func (c *Client) DetectAuth(request *DetectAuthRequest) (response *DetectAuthResponse, err error)
每次调用人脸核身SaaS化服务前,需先调用本接口获取BizToken,用来串联核身流程,在验证完成后,用于获取验证结果信息。
func (*Client) EncryptedPhoneVerification ¶
func (c *Client) EncryptedPhoneVerification(request *EncryptedPhoneVerificationRequest) (response *EncryptedPhoneVerificationResponse, err error)
本接口用于校验手机号、姓名和身份证号的真实性和一致性,入参支持MD5加密传输。
func (*Client) GetActionSequence ¶
func (c *Client) GetActionSequence(request *GetActionSequenceRequest) (response *GetActionSequenceResponse, err error)
使用动作活体检测模式前,需调用本接口获取动作顺序。
func (*Client) GetDetectInfo ¶
func (c *Client) GetDetectInfo(request *GetDetectInfoRequest) (response *GetDetectInfoResponse, err error)
完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
func (*Client) GetDetectInfoEnhanced ¶
func (c *Client) GetDetectInfoEnhanced(request *GetDetectInfoEnhancedRequest) (response *GetDetectInfoEnhancedResponse, err error)
完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
func (*Client) GetEidResult ¶
func (c *Client) GetEidResult(request *GetEidResultRequest) (response *GetEidResultResponse, err error)
完成验证后,用EidToken调用本接口获取结果信息,EidToken生成后三天内(3\*24\*3,600秒)可多次拉取。
func (*Client) GetEidToken ¶
func (c *Client) GetEidToken(request *GetEidTokenRequest) (response *GetEidTokenResponse, err error)
每次调用E证通小程序服务前,需先调用本接口获取EidToken,用来串联核身流程,在验证完成后,用于获取验证结果信息。
func (*Client) GetFaceIdResult ¶
func (c *Client) GetFaceIdResult(request *GetFaceIdResultRequest) (response *GetFaceIdResultResponse, err error)
完成验证后,用FaceIdToken调用本接口获取结果信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
func (*Client) GetFaceIdToken ¶
func (c *Client) GetFaceIdToken(request *GetFaceIdTokenRequest) (response *GetFaceIdTokenResponse, err error)
每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取验证结果信息,该token仅能核身一次。
func (*Client) GetLiveCode ¶
func (c *Client) GetLiveCode(request *GetLiveCodeRequest) (response *GetLiveCodeResponse, err error)
使用数字活体检测模式前,需调用本接口获取数字验证码。
func (*Client) GetRealNameAuthResult ¶
func (c *Client) GetRealNameAuthResult(request *GetRealNameAuthResultRequest) (response *GetRealNameAuthResultResponse, err error)
获取微信实名认证结果
func (*Client) GetRealNameAuthToken ¶
func (c *Client) GetRealNameAuthToken(request *GetRealNameAuthTokenRequest) (response *GetRealNameAuthTokenResponse, err error)
该接口仅限微信公众号中使用,传入姓名和身份证号获取回调URL,在微信公众号中打开验证姓名和身份证号与微信实名的信息是否一致。
func (*Client) IdCardOCRVerification ¶
func (c *Client) IdCardOCRVerification(request *IdCardOCRVerificationRequest) (response *IdCardOCRVerificationResponse, err error)
本接口用于校验姓名和身份证号的真实性和一致性,您可以通过输入姓名和身份证号或传入身份证人像面照片提供所需验证信息。
func (*Client) IdCardVerification ¶
func (c *Client) IdCardVerification(request *IdCardVerificationRequest) (response *IdCardVerificationResponse, err error)
传入姓名和身份证号,校验两者的真实性和一致性。
func (*Client) ImageRecognition ¶
func (c *Client) ImageRecognition(request *ImageRecognitionRequest) (response *ImageRecognitionResponse, err error)
传入照片和身份信息,判断该照片与公安权威库的证件照是否属于同一个人。
func (*Client) Liveness ¶
func (c *Client) Liveness(request *LivenessRequest) (response *LivenessResponse, err error)
活体检测
func (*Client) LivenessCompare ¶
func (c *Client) LivenessCompare(request *LivenessCompareRequest) (response *LivenessCompareResponse, err error)
传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
func (*Client) LivenessRecognition ¶
func (c *Client) LivenessRecognition(request *LivenessRecognitionRequest) (response *LivenessRecognitionResponse, err error)
传入视频和身份信息,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与公安权威库的证件照是否属于同一个人。
func (*Client) MinorsVerification ¶
func (c *Client) MinorsVerification(request *MinorsVerificationRequest) (response *MinorsVerificationResponse, err error)
未成年人守护接口是通过传入手机号或姓名和身份证号,结合权威数据源和腾讯健康守护可信模型,判断该信息是否真实且年满18周岁。腾讯健康守护可信模型覆盖了上十亿手机库源,覆盖率高、准确率高,如果不在库中的手机号,还可以通过姓名+身份证进行兜底验证。
func (*Client) MobileNetworkTimeVerification ¶
func (c *Client) MobileNetworkTimeVerification(request *MobileNetworkTimeVerificationRequest) (response *MobileNetworkTimeVerificationResponse, err error)
本接口用于查询手机号在网时长,输入手机号进行查询。
func (*Client) MobileStatus ¶
func (c *Client) MobileStatus(request *MobileStatusRequest) (response *MobileStatusResponse, err error)
本接口用于验证手机号的状态,您可以输入手机号进行查询。
func (*Client) PhoneVerification ¶
func (c *Client) PhoneVerification(request *PhoneVerificationRequest) (response *PhoneVerificationResponse, err error)
本接口用于校验手机号、姓名和身份证号的真实性和一致性。支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
type DetectAuthRequest ¶
type DetectAuthRequest struct {
*tchttp.BaseRequest
// 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请加慧眼小助手微信(faceid001)进行咨询。
RuleId *string `json:"RuleId,omitempty" name:"RuleId"`
// 本接口不需要传递此参数。
TerminalType *string `json:"TerminalType,omitempty" name:"TerminalType"`
// 身份标识(未使用OCR服务时,必须传入)。
// 规则:a-zA-Z0-9组合。最长长度32位。
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 姓名。(未使用OCR服务时,必须传入)最长长度32位。中文请使用UTF-8编码。
Name *string `json:"Name,omitempty" name:"Name"`
// 认证结束后重定向的回调链接地址。最长长度1024位。
RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"`
// 透传字段,在获取验证结果时返回。
Extra *string `json:"Extra,omitempty" name:"Extra"`
// 用于人脸比对的照片,图片的Base64值;
// Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
Encryption *Encryption `json:"Encryption,omitempty" name:"Encryption"`
}
func NewDetectAuthRequest ¶
func NewDetectAuthRequest() (request *DetectAuthRequest)
func (*DetectAuthRequest) FromJsonString ¶
func (r *DetectAuthRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetectAuthRequest) ToJsonString ¶
func (r *DetectAuthRequest) ToJsonString() string
type DetectAuthResponse ¶
type DetectAuthResponse struct {
*tchttp.BaseResponse
Response *struct {
// 用于发起核身流程的URL,仅微信H5场景使用。
Url *string `json:"Url,omitempty" name:"Url"`
// 一次核身流程的标识,有效时间为7,200秒;
// 完成核身后,可用该标识获取验证结果信息。
BizToken *string `json:"BizToken,omitempty" name:"BizToken"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDetectAuthResponse ¶
func NewDetectAuthResponse() (response *DetectAuthResponse)
func (*DetectAuthResponse) FromJsonString ¶
func (r *DetectAuthResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetectAuthResponse) ToJsonString ¶
func (r *DetectAuthResponse) ToJsonString() string
type DetectDetail ¶
type DetectDetail struct {
// 请求时间戳。
// 注意:此字段可能返回 null,表示取不到有效值。
ReqTime *string `json:"ReqTime,omitempty" name:"ReqTime"`
// 本次活体一比一请求的唯一标记。
// 注意:此字段可能返回 null,表示取不到有效值。
Seq *string `json:"Seq,omitempty" name:"Seq"`
// 参与本次活体一比一的身份证号。
// 注意:此字段可能返回 null,表示取不到有效值。
Idcard *string `json:"Idcard,omitempty" name:"Idcard"`
// 参与本次活体一比一的姓名。
// 注意:此字段可能返回 null,表示取不到有效值。
Name *string `json:"Name,omitempty" name:"Name"`
// 本次活体一比一的相似度。
// 注意:此字段可能返回 null,表示取不到有效值。
Sim *string `json:"Sim,omitempty" name:"Sim"`
// 本次活体一比一是否收费
// 注意:此字段可能返回 null,表示取不到有效值。
IsNeedCharge *bool `json:"IsNeedCharge,omitempty" name:"IsNeedCharge"`
// 本次活体一比一最终结果。0为成功
// 注意:此字段可能返回 null,表示取不到有效值。
Errcode *int64 `json:"Errcode,omitempty" name:"Errcode"`
// 本次活体一比一最终结果描述。(仅描述用,文案更新时不会通知。)
// 注意:此字段可能返回 null,表示取不到有效值。
Errmsg *string `json:"Errmsg,omitempty" name:"Errmsg"`
// 本次活体结果。0为成功
// 注意:此字段可能返回 null,表示取不到有效值。
Livestatus *int64 `json:"Livestatus,omitempty" name:"Livestatus"`
// 本次活体结果描述。(仅描述用,文案更新时不会通知。)
// 注意:此字段可能返回 null,表示取不到有效值。
Livemsg *string `json:"Livemsg,omitempty" name:"Livemsg"`
// 本次一比一结果。0为成功
// 注意:此字段可能返回 null,表示取不到有效值。
Comparestatus *int64 `json:"Comparestatus,omitempty" name:"Comparestatus"`
// 本次一比一结果描述。(仅描述用,文案更新时不会通知。)
// 注意:此字段可能返回 null,表示取不到有效值。
Comparemsg *string `json:"Comparemsg,omitempty" name:"Comparemsg"`
// 比对库源类型。包括:
// 公安商业库;
// 业务方自有库(用户上传照片、客户的混合库、混合部署库);
// 二次验证库;
// 人工审核库;
// 注意:此字段可能返回 null,表示取不到有效值。
CompareLibType *string `json:"CompareLibType,omitempty" name:"CompareLibType"`
}
type DetectInfoBestFrame ¶
type DetectInfoIdCardData ¶
type DetectInfoIdCardData struct {
// OCR正面照片的base64编码。
// 注意:此字段可能返回 null,表示取不到有效值。
OcrFront *string `json:"OcrFront,omitempty" name:"OcrFront"`
// OCR反面照片的base64编码
// 注意:此字段可能返回 null,表示取不到有效值。
OcrBack *string `json:"OcrBack,omitempty" name:"OcrBack"`
// 旋转裁边后的正面照片base64编码。
// 注意:此字段可能返回 null,表示取不到有效值。
ProcessedFrontImage *string `json:"ProcessedFrontImage,omitempty" name:"ProcessedFrontImage"`
// 旋转裁边后的背面照片base64编码。
// 注意:此字段可能返回 null,表示取不到有效值。
ProcessedBackImage *string `json:"ProcessedBackImage,omitempty" name:"ProcessedBackImage"`
// 身份证正面人像图base64编码。
// 注意:此字段可能返回 null,表示取不到有效值。
Avatar *string `json:"Avatar,omitempty" name:"Avatar"`
}
type DetectInfoText ¶
type DetectInfoText struct {
// 本次流程最终验证结果。0为成功
// 注意:此字段可能返回 null,表示取不到有效值。
ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"`
// 本次流程最终验证结果描述。(仅描述用,文案更新时不会通知。)
// 注意:此字段可能返回 null,表示取不到有效值。
ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
// 本次验证使用的身份证号。
// 注意:此字段可能返回 null,表示取不到有效值。
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 本次验证使用的姓名。
// 注意:此字段可能返回 null,表示取不到有效值。
Name *string `json:"Name,omitempty" name:"Name"`
// Ocr识别结果。民族。
// 注意:此字段可能返回 null,表示取不到有效值。
OcrNation *string `json:"OcrNation,omitempty" name:"OcrNation"`
// Ocr识别结果。家庭住址。
// 注意:此字段可能返回 null,表示取不到有效值。
OcrAddress *string `json:"OcrAddress,omitempty" name:"OcrAddress"`
// Ocr识别结果。生日。
// 注意:此字段可能返回 null,表示取不到有效值。
OcrBirth *string `json:"OcrBirth,omitempty" name:"OcrBirth"`
// Ocr识别结果。签发机关。
// 注意:此字段可能返回 null,表示取不到有效值。
OcrAuthority *string `json:"OcrAuthority,omitempty" name:"OcrAuthority"`
// Ocr识别结果。有效日期。
// 注意:此字段可能返回 null,表示取不到有效值。
OcrValidDate *string `json:"OcrValidDate,omitempty" name:"OcrValidDate"`
// Ocr识别结果。姓名。
// 注意:此字段可能返回 null,表示取不到有效值。
OcrName *string `json:"OcrName,omitempty" name:"OcrName"`
// Ocr识别结果。身份证号。
// 注意:此字段可能返回 null,表示取不到有效值。
OcrIdCard *string `json:"OcrIdCard,omitempty" name:"OcrIdCard"`
// Ocr识别结果。性别。
// 注意:此字段可能返回 null,表示取不到有效值。
OcrGender *string `json:"OcrGender,omitempty" name:"OcrGender"`
// 本次流程最终活体结果。0为成功
// 注意:此字段可能返回 null,表示取不到有效值。
LiveStatus *int64 `json:"LiveStatus,omitempty" name:"LiveStatus"`
// 本次流程最终活体结果描述。(仅描述用,文案更新时不会通知。)
// 注意:此字段可能返回 null,表示取不到有效值。
LiveMsg *string `json:"LiveMsg,omitempty" name:"LiveMsg"`
// 本次流程最终一比一结果。0为成功
// 注意:此字段可能返回 null,表示取不到有效值。
Comparestatus *int64 `json:"Comparestatus,omitempty" name:"Comparestatus"`
// 本次流程最终一比一结果描述。(仅描述用,文案更新时不会通知。)
// 注意:此字段可能返回 null,表示取不到有效值。
Comparemsg *string `json:"Comparemsg,omitempty" name:"Comparemsg"`
// 本次流程活体一比一的分数,取值范围 [0.00, 100.00]。相似度大于等于70时才判断为同一人,也可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
// 注意:此字段可能返回 null,表示取不到有效值。
Sim *string `json:"Sim,omitempty" name:"Sim"`
// 地理位置经纬度。
// 注意:此字段可能返回 null,表示取不到有效值。
Location *string `json:"Location,omitempty" name:"Location"`
// Auth接口带入额外信息。
// 注意:此字段可能返回 null,表示取不到有效值。
Extra *string `json:"Extra,omitempty" name:"Extra"`
// 本次流程进行的活体一比一流水。
// 注意:此字段可能返回 null,表示取不到有效值。
LivenessDetail []*DetectDetail `json:"LivenessDetail,omitempty" name:"LivenessDetail" list`
// 手机号码。
// 注意:此字段可能返回 null,表示取不到有效值。
Mobile *string `json:"Mobile,omitempty" name:"Mobile"`
// 本次流程最终比对库源类型。包括:
// 公安商业库;
// 业务方自有库(用户上传照片、客户的混合库、混合部署库);
// 二次验证库;
// 人工审核库;
// 注意:此字段可能返回 null,表示取不到有效值。
CompareLibType *string `json:"CompareLibType,omitempty" name:"CompareLibType"`
}
type DetectInfoVideoData ¶
type DetectInfoVideoData struct {
// 活体视频的base64编码
// 注意:此字段可能返回 null,表示取不到有效值。
LivenessVideo *string `json:"LivenessVideo,omitempty" name:"LivenessVideo"`
}
type EncryptedPhoneVerificationRequest ¶
type EncryptedPhoneVerificationRequest struct {
*tchttp.BaseRequest
// 身份证号,加密方式以EncryptionMode为准
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 姓名,加密方式以EncryptionMode为准
Name *string `json:"Name,omitempty" name:"Name"`
// 手机号,加密方式以EncryptionMode为准
Phone *string `json:"Phone,omitempty" name:"Phone"`
// 敏感信息的加密方式,目前只支持MD5加密传输,参数取值:
//
// 0:明文,不加密
// 1:使用MD5加密
EncryptionMode *string `json:"EncryptionMode,omitempty" name:"EncryptionMode"`
}
func NewEncryptedPhoneVerificationRequest ¶
func NewEncryptedPhoneVerificationRequest() (request *EncryptedPhoneVerificationRequest)
func (*EncryptedPhoneVerificationRequest) FromJsonString ¶
func (r *EncryptedPhoneVerificationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EncryptedPhoneVerificationRequest) ToJsonString ¶
func (r *EncryptedPhoneVerificationRequest) ToJsonString() string
type EncryptedPhoneVerificationResponse ¶
type EncryptedPhoneVerificationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 认证结果码:
// 【收费结果码】
// 0: 认证通过
// -4: 信息不一致
//
// 【不收费结果码】
// -7: 身份证号码有误
// -9: 没有记录
// -11: 验证中心服务繁忙
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewEncryptedPhoneVerificationResponse ¶
func NewEncryptedPhoneVerificationResponse() (response *EncryptedPhoneVerificationResponse)
func (*EncryptedPhoneVerificationResponse) FromJsonString ¶
func (r *EncryptedPhoneVerificationResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EncryptedPhoneVerificationResponse) ToJsonString ¶
func (r *EncryptedPhoneVerificationResponse) ToJsonString() string
type Encryption ¶
type Encryption struct {
// 有加密需求的用户,接入传入kms的CiphertextBlob,关于数据加密可查阅<a href="https://cloud.tencent.com/document/product/1007/47180">数据加密</a> 文档。
CiphertextBlob *string `json:"CiphertextBlob,omitempty" name:"CiphertextBlob"`
// 在使用加密服务时,填入要被加密的字段。本接口中可填入加密后的一个或多个字段
EncryptList []*string `json:"EncryptList,omitempty" name:"EncryptList" list`
// 有加密需求的用户,传入CBC加密的初始向量
Iv *string `json:"Iv,omitempty" name:"Iv"`
}
type GetActionSequenceRequest ¶
type GetActionSequenceRequest struct {
*tchttp.BaseRequest
// 默认不需要使用
ActionType *string `json:"ActionType,omitempty" name:"ActionType"`
}
func NewGetActionSequenceRequest ¶
func NewGetActionSequenceRequest() (request *GetActionSequenceRequest)
func (*GetActionSequenceRequest) FromJsonString ¶
func (r *GetActionSequenceRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetActionSequenceRequest) ToJsonString ¶
func (r *GetActionSequenceRequest) ToJsonString() string
type GetActionSequenceResponse ¶
type GetActionSequenceResponse struct {
*tchttp.BaseResponse
Response *struct {
// 动作顺序(2,1 or 1,2) 。1代表张嘴,2代表闭眼。
ActionSequence *string `json:"ActionSequence,omitempty" name:"ActionSequence"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetActionSequenceResponse ¶
func NewGetActionSequenceResponse() (response *GetActionSequenceResponse)
func (*GetActionSequenceResponse) FromJsonString ¶
func (r *GetActionSequenceResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetActionSequenceResponse) ToJsonString ¶
func (r *GetActionSequenceResponse) ToJsonString() string
type GetDetectInfoEnhancedRequest ¶
type GetDetectInfoEnhancedRequest struct {
*tchttp.BaseRequest
// 人脸核身流程的标识,调用DetectAuth接口时生成。
BizToken *string `json:"BizToken,omitempty" name:"BizToken"`
// 用于细分客户使用场景,由腾讯侧在线下对接时分配。
RuleId *string `json:"RuleId,omitempty" name:"RuleId"`
// 指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证信息;3:视频最佳截图信息)。
// 如 13表示拉取文本类、视频最佳截图信息。
// 默认值:0
InfoType *string `json:"InfoType,omitempty" name:"InfoType"`
// 从活体视频中截取一定张数的最佳帧(仅部分服务支持,若需使用请与慧眼小助手沟通)。默认为0,最大为10,超出10的最多只给10张。(InfoType需要包含3)
BestFramesCount *uint64 `json:"BestFramesCount,omitempty" name:"BestFramesCount"`
// 是否对身份证照片进行裁边。默认为false。(InfoType需要包含2)
IsCutIdCardImage *bool `json:"IsCutIdCardImage,omitempty" name:"IsCutIdCardImage"`
// 是否需要从身份证中抠出头像。默认为false。(InfoType需要包含2)
IsNeedIdCardAvatar *bool `json:"IsNeedIdCardAvatar,omitempty" name:"IsNeedIdCardAvatar"`
// 是否需要对返回中的敏感信息进行加密。其中敏感信息包括:Response.Text.IdCard、Response.Text.Name、Response.Text.OcrIdCard、Response.Text.OcrName
IsEncrypt *bool `json:"IsEncrypt,omitempty" name:"IsEncrypt"`
}
func NewGetDetectInfoEnhancedRequest ¶
func NewGetDetectInfoEnhancedRequest() (request *GetDetectInfoEnhancedRequest)
func (*GetDetectInfoEnhancedRequest) FromJsonString ¶
func (r *GetDetectInfoEnhancedRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetDetectInfoEnhancedRequest) ToJsonString ¶
func (r *GetDetectInfoEnhancedRequest) ToJsonString() string
type GetDetectInfoEnhancedResponse ¶
type GetDetectInfoEnhancedResponse struct {
*tchttp.BaseResponse
Response *struct {
// 文本类信息。
// 注意:此字段可能返回 null,表示取不到有效值。
Text *DetectInfoText `json:"Text,omitempty" name:"Text"`
// 身份证照片信息。
// 注意:此字段可能返回 null,表示取不到有效值。
IdCardData *DetectInfoIdCardData `json:"IdCardData,omitempty" name:"IdCardData"`
// 最佳帧信息。
// 注意:此字段可能返回 null,表示取不到有效值。
BestFrame *DetectInfoBestFrame `json:"BestFrame,omitempty" name:"BestFrame"`
// 视频信息。
// 注意:此字段可能返回 null,表示取不到有效值。
VideoData *DetectInfoVideoData `json:"VideoData,omitempty" name:"VideoData"`
// 敏感数据加密信息。
// 注意:此字段可能返回 null,表示取不到有效值。
Encryption *Encryption `json:"Encryption,omitempty" name:"Encryption"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetDetectInfoEnhancedResponse ¶
func NewGetDetectInfoEnhancedResponse() (response *GetDetectInfoEnhancedResponse)
func (*GetDetectInfoEnhancedResponse) FromJsonString ¶
func (r *GetDetectInfoEnhancedResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetDetectInfoEnhancedResponse) ToJsonString ¶
func (r *GetDetectInfoEnhancedResponse) ToJsonString() string
type GetDetectInfoRequest ¶
type GetDetectInfoRequest struct {
*tchttp.BaseRequest
// 人脸核身流程的标识,调用DetectAuth接口时生成。
BizToken *string `json:"BizToken,omitempty" name:"BizToken"`
// 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请加慧眼小助手微信(faceid001)进行咨询。
RuleId *string `json:"RuleId,omitempty" name:"RuleId"`
// 指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证正反面;3:视频最佳截图照片;4:视频)。
// 如 134表示拉取文本类、视频最佳截图照片、视频。
// 默认值:0
InfoType *string `json:"InfoType,omitempty" name:"InfoType"`
}
func NewGetDetectInfoRequest ¶
func NewGetDetectInfoRequest() (request *GetDetectInfoRequest)
func (*GetDetectInfoRequest) FromJsonString ¶
func (r *GetDetectInfoRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetDetectInfoRequest) ToJsonString ¶
func (r *GetDetectInfoRequest) ToJsonString() string
type GetDetectInfoResponse ¶
type GetDetectInfoResponse struct {
*tchttp.BaseResponse
Response *struct {
// JSON字符串。
// {
// // 文本类信息
// "Text": {
// "ErrCode": null, // 本次核身最终结果。0为成功
// "ErrMsg": null, // 本次核身最终结果信息描述。
// "IdCard": "", // 本次核身最终获得的身份证号。
// "Name": "", // 本次核身最终获得的姓名。
// "OcrNation": null, // ocr阶段获取的民族
// "OcrAddress": null, // ocr阶段获取的地址
// "OcrBirth": null, // ocr阶段获取的出生信息
// "OcrAuthority": null, // ocr阶段获取的证件签发机关
// "OcrValidDate": null, // ocr阶段获取的证件有效期
// "OcrName": null, // ocr阶段获取的姓名
// "OcrIdCard": null, // ocr阶段获取的身份证号
// "OcrGender": null, // ocr阶段获取的性别
// "LiveStatus": null, // 活体检测阶段的错误码。0为成功
// "LiveMsg": null, // 活体检测阶段的错误信息
// "Comparestatus": null,// 一比一阶段的错误码。0为成功
// "Comparemsg": null, // 一比一阶段的错误信息
// "Sim": null, // 比对相似度
// "Location": null, // 地理位置信息
// "Extra": "", // DetectAuth结果传进来的Extra信息
// "Detail": { // 活体一比一信息详情
// "LivenessData": [
// {
// ErrCode: null, // 活体比对验证错误码
// ErrMsg: null, // 活体比对验证错误描述
// ReqTime: null, // 活体验证时间戳
// IdCard: null, // 验证身份证号
// Name: null // 验证姓名
// }
// ]
// }
// },
// // 身份证正反面照片Base64
// "IdCardData": {
// "OcrFront": null,
// "OcrBack": null
// },
// // 视频最佳帧截图Base64
// "BestFrame": {
// "BestFrame": null
// },
// // 活体视频Base64
// "VideoData": {
// "LivenessVideo": null
// }
// }
DetectInfo *string `json:"DetectInfo,omitempty" name:"DetectInfo"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetDetectInfoResponse ¶
func NewGetDetectInfoResponse() (response *GetDetectInfoResponse)
func (*GetDetectInfoResponse) FromJsonString ¶
func (r *GetDetectInfoResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetDetectInfoResponse) ToJsonString ¶
func (r *GetDetectInfoResponse) ToJsonString() string
type GetEidResultRequest ¶
type GetEidResultRequest struct {
*tchttp.BaseRequest
// 人脸核身流程的标识,调用GetEidToken接口时生成的。
EidToken *string `json:"EidToken,omitempty" name:"EidToken"`
// 指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证信息;3:最佳截图信息)。
// 如 13表示拉取文本类、最佳截图信息。
// 默认值:0
InfoType *string `json:"InfoType,omitempty" name:"InfoType"`
// 从活体视频中截取一定张数的最佳帧。默认为0,最大为3,超出3的最多只给3张。(InfoType需要包含3)
BestFramesCount *uint64 `json:"BestFramesCount,omitempty" name:"BestFramesCount"`
}
func NewGetEidResultRequest ¶
func NewGetEidResultRequest() (request *GetEidResultRequest)
func (*GetEidResultRequest) FromJsonString ¶
func (r *GetEidResultRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetEidResultRequest) ToJsonString ¶
func (r *GetEidResultRequest) ToJsonString() string
type GetEidResultResponse ¶
type GetEidResultResponse struct {
*tchttp.BaseResponse
Response *struct {
// 文本类信息。
// 注意:此字段可能返回 null,表示取不到有效值。
Text *DetectInfoText `json:"Text,omitempty" name:"Text"`
// 身份证照片信息。
// 注意:此字段可能返回 null,表示取不到有效值。
IdCardData *DetectInfoIdCardData `json:"IdCardData,omitempty" name:"IdCardData"`
// 最佳帧信息。
// 注意:此字段可能返回 null,表示取不到有效值。
BestFrame *DetectInfoBestFrame `json:"BestFrame,omitempty" name:"BestFrame"`
// Eid信息
// 注意:此字段可能返回 null,表示取不到有效值。
EidInfo *EidInfo `json:"EidInfo,omitempty" name:"EidInfo"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetEidResultResponse ¶
func NewGetEidResultResponse() (response *GetEidResultResponse)
func (*GetEidResultResponse) FromJsonString ¶
func (r *GetEidResultResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetEidResultResponse) ToJsonString ¶
func (r *GetEidResultResponse) ToJsonString() string
type GetEidTokenConfig ¶
type GetEidTokenConfig struct {
// 姓名身份证输入方式。
// 1:传身份证正反面OCR
// 2:传身份证正面OCR
// 3:用户手动输入
// 4:客户后台传入
// 默认1
// 注:使用OCR时仅支持用户修改结果中的姓名
InputType *string `json:"InputType,omitempty" name:"InputType"`
}
type GetEidTokenRequest ¶
type GetEidTokenRequest struct {
*tchttp.BaseRequest
// EID商户id
MerchantId *string `json:"MerchantId,omitempty" name:"MerchantId"`
// 身份标识(未使用OCR服务时,必须传入)。
// 规则:a-zA-Z0-9组合。最长长度32位。
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 姓名。(未使用OCR服务时,必须传入)最长长度32位。中文请使用UTF-8编码。
Name *string `json:"Name,omitempty" name:"Name"`
// 透传字段,在获取验证结果时返回。
Extra *string `json:"Extra,omitempty" name:"Extra"`
// 小程序模式配置,包括如何传入姓名身份证的配置。
Config *GetEidTokenConfig `json:"Config,omitempty" name:"Config"`
}
func NewGetEidTokenRequest ¶
func NewGetEidTokenRequest() (request *GetEidTokenRequest)
func (*GetEidTokenRequest) FromJsonString ¶
func (r *GetEidTokenRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetEidTokenRequest) ToJsonString ¶
func (r *GetEidTokenRequest) ToJsonString() string
type GetEidTokenResponse ¶
type GetEidTokenResponse struct {
*tchttp.BaseResponse
Response *struct {
// 一次核身流程的标识,有效时间为7,200秒;
// 完成核身后,可用该标识获取验证结果信息。
EidToken *string `json:"EidToken,omitempty" name:"EidToken"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetEidTokenResponse ¶
func NewGetEidTokenResponse() (response *GetEidTokenResponse)
func (*GetEidTokenResponse) FromJsonString ¶
func (r *GetEidTokenResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetEidTokenResponse) ToJsonString ¶
func (r *GetEidTokenResponse) ToJsonString() string
type GetFaceIdResultRequest ¶
type GetFaceIdResultRequest struct {
*tchttp.BaseRequest
// SDK人脸核身流程的标识,调用GetFaceIdToken接口时生成。
FaceIdToken *string `json:"FaceIdToken,omitempty" name:"FaceIdToken"`
// 是否需要拉取视频,默认false不需要
IsNeedVideo *bool `json:"IsNeedVideo,omitempty" name:"IsNeedVideo"`
// 是否需要拉取截帧,默认false不需要
IsNeedBestFrame *bool `json:"IsNeedBestFrame,omitempty" name:"IsNeedBestFrame"`
}
func NewGetFaceIdResultRequest ¶
func NewGetFaceIdResultRequest() (request *GetFaceIdResultRequest)
func (*GetFaceIdResultRequest) FromJsonString ¶
func (r *GetFaceIdResultRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetFaceIdResultRequest) ToJsonString ¶
func (r *GetFaceIdResultRequest) ToJsonString() string
type GetFaceIdResultResponse ¶
type GetFaceIdResultResponse struct {
*tchttp.BaseResponse
Response *struct {
// 身份证
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 姓名
Name *string `json:"Name,omitempty" name:"Name"`
// 业务核验结果,参考https://cloud.tencent.com/document/product/1007/47912
Result *string `json:"Result,omitempty" name:"Result"`
// 业务核验描述
Description *string `json:"Description,omitempty" name:"Description"`
// 相似度,0-100,数值越大相似度越高
Similarity *float64 `json:"Similarity,omitempty" name:"Similarity"`
// 用户核验的视频
// 注意:此字段可能返回 null,表示取不到有效值。
VideoBase64 *string `json:"VideoBase64,omitempty" name:"VideoBase64"`
// 用户核验视频的截帧
// 注意:此字段可能返回 null,表示取不到有效值。
BestFrameBase64 *string `json:"BestFrameBase64,omitempty" name:"BestFrameBase64"`
// 获取token时透传的信息
// 注意:此字段可能返回 null,表示取不到有效值。
Extra *string `json:"Extra,omitempty" name:"Extra"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetFaceIdResultResponse ¶
func NewGetFaceIdResultResponse() (response *GetFaceIdResultResponse)
func (*GetFaceIdResultResponse) FromJsonString ¶
func (r *GetFaceIdResultResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetFaceIdResultResponse) ToJsonString ¶
func (r *GetFaceIdResultResponse) ToJsonString() string
type GetFaceIdTokenRequest ¶
type GetFaceIdTokenRequest struct {
*tchttp.BaseRequest
// 本地上传照片(LOCAL)、商业库(BUSINESS)
CompareLib *string `json:"CompareLib,omitempty" name:"CompareLib"`
// CompareLib为商业库时必传。
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// CompareLib为商业库库时必传。
Name *string `json:"Name,omitempty" name:"Name"`
// CompareLib为上传照片比对时必传,Base64后图片最大8MB。
// 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// SDK中生成的Meta字符串
Meta *string `json:"Meta,omitempty" name:"Meta"`
// 透传参数 1000长度字符串
Extra *string `json:"Extra,omitempty" name:"Extra"`
}
func NewGetFaceIdTokenRequest ¶
func NewGetFaceIdTokenRequest() (request *GetFaceIdTokenRequest)
func (*GetFaceIdTokenRequest) FromJsonString ¶
func (r *GetFaceIdTokenRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetFaceIdTokenRequest) ToJsonString ¶
func (r *GetFaceIdTokenRequest) ToJsonString() string
type GetFaceIdTokenResponse ¶
type GetFaceIdTokenResponse struct {
*tchttp.BaseResponse
Response *struct {
// 有效期 10分钟。只能完成1次核身。
FaceIdToken *string `json:"FaceIdToken,omitempty" name:"FaceIdToken"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetFaceIdTokenResponse ¶
func NewGetFaceIdTokenResponse() (response *GetFaceIdTokenResponse)
func (*GetFaceIdTokenResponse) FromJsonString ¶
func (r *GetFaceIdTokenResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetFaceIdTokenResponse) ToJsonString ¶
func (r *GetFaceIdTokenResponse) ToJsonString() string
type GetLiveCodeRequest ¶
type GetLiveCodeRequest struct {
*tchttp.BaseRequest
}
func NewGetLiveCodeRequest ¶
func NewGetLiveCodeRequest() (request *GetLiveCodeRequest)
func (*GetLiveCodeRequest) FromJsonString ¶
func (r *GetLiveCodeRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetLiveCodeRequest) ToJsonString ¶
func (r *GetLiveCodeRequest) ToJsonString() string
type GetLiveCodeResponse ¶
type GetLiveCodeResponse struct {
*tchttp.BaseResponse
Response *struct {
// 数字验证码,如:1234
LiveCode *string `json:"LiveCode,omitempty" name:"LiveCode"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetLiveCodeResponse ¶
func NewGetLiveCodeResponse() (response *GetLiveCodeResponse)
func (*GetLiveCodeResponse) FromJsonString ¶
func (r *GetLiveCodeResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetLiveCodeResponse) ToJsonString ¶
func (r *GetLiveCodeResponse) ToJsonString() string
type GetRealNameAuthResultRequest ¶
type GetRealNameAuthResultRequest struct {
*tchttp.BaseRequest
// 实名认证凭证
AuthToken *string `json:"AuthToken,omitempty" name:"AuthToken"`
}
func NewGetRealNameAuthResultRequest ¶
func NewGetRealNameAuthResultRequest() (request *GetRealNameAuthResultRequest)
func (*GetRealNameAuthResultRequest) FromJsonString ¶
func (r *GetRealNameAuthResultRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetRealNameAuthResultRequest) ToJsonString ¶
func (r *GetRealNameAuthResultRequest) ToJsonString() string
type GetRealNameAuthResultResponse ¶
type GetRealNameAuthResultResponse struct {
*tchttp.BaseResponse
Response *struct {
// 认证结果码,收费情况如下:
//
// 收费码:
// 0: 姓名和身份证号一致
// -1: 姓名和身份证号不一致
// -2: 姓名和微信实名姓名不一致
//
// 不收费码:
// -3: 微信号未实名
ResultType *string `json:"ResultType,omitempty" name:"ResultType"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetRealNameAuthResultResponse ¶
func NewGetRealNameAuthResultResponse() (response *GetRealNameAuthResultResponse)
func (*GetRealNameAuthResultResponse) FromJsonString ¶
func (r *GetRealNameAuthResultResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetRealNameAuthResultResponse) ToJsonString ¶
func (r *GetRealNameAuthResultResponse) ToJsonString() string
type GetRealNameAuthTokenRequest ¶
type GetRealNameAuthTokenRequest struct {
*tchttp.BaseRequest
// 姓名
Name *string `json:"Name,omitempty" name:"Name"`
// 身份证号
IDCard *string `json:"IDCard,omitempty" name:"IDCard"`
// 回调地址。实名认证完成后,将会重定向到这个地址通知认证发起方。仅支持http或https协议。
CallbackURL *string `json:"CallbackURL,omitempty" name:"CallbackURL"`
}
func NewGetRealNameAuthTokenRequest ¶
func NewGetRealNameAuthTokenRequest() (request *GetRealNameAuthTokenRequest)
func (*GetRealNameAuthTokenRequest) FromJsonString ¶
func (r *GetRealNameAuthTokenRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetRealNameAuthTokenRequest) ToJsonString ¶
func (r *GetRealNameAuthTokenRequest) ToJsonString() string
type GetRealNameAuthTokenResponse ¶
type GetRealNameAuthTokenResponse struct {
*tchttp.BaseResponse
Response *struct {
// 查询实名认证结果的唯一凭证
AuthToken *string `json:"AuthToken,omitempty" name:"AuthToken"`
// 实名认证授权地址,认证发起方需要重定向到这个地址获取认证用户的授权,仅能在微信环境下打开。
RedirectURL *string `json:"RedirectURL,omitempty" name:"RedirectURL"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetRealNameAuthTokenResponse ¶
func NewGetRealNameAuthTokenResponse() (response *GetRealNameAuthTokenResponse)
func (*GetRealNameAuthTokenResponse) FromJsonString ¶
func (r *GetRealNameAuthTokenResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetRealNameAuthTokenResponse) ToJsonString ¶
func (r *GetRealNameAuthTokenResponse) ToJsonString() string
type IdCardOCRVerificationRequest ¶
type IdCardOCRVerificationRequest struct {
*tchttp.BaseRequest
// 身份证号
// 姓名和身份证号、ImageBase64、ImageUrl三者必须提供其中之一。若都提供了,则按照姓名和身份证号>ImageBase64>ImageUrl的优先级使用参数。
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 姓名
Name *string `json:"Name,omitempty" name:"Name"`
// 身份证人像面的 Base64 值
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 身份证人像面的 Url 地址
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
// 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
Encryption *Encryption `json:"Encryption,omitempty" name:"Encryption"`
}
func NewIdCardOCRVerificationRequest ¶
func NewIdCardOCRVerificationRequest() (request *IdCardOCRVerificationRequest)
func (*IdCardOCRVerificationRequest) FromJsonString ¶
func (r *IdCardOCRVerificationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IdCardOCRVerificationRequest) ToJsonString ¶
func (r *IdCardOCRVerificationRequest) ToJsonString() string
type IdCardOCRVerificationResponse ¶
type IdCardOCRVerificationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 认证结果码,收费情况如下。
// 收费结果码:
// 0: 姓名和身份证号一致
// -1: 姓名和身份证号不一致
// 不收费结果码:
// -2: 非法身份证号(长度、校验位等不正确)
// -3: 非法姓名(长度、格式等不正确)
// -4: 证件库服务异常
// -5: 证件库中无此身份证记录
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 用于验证的姓名
Name *string `json:"Name,omitempty" name:"Name"`
// 用于验证的身份证号
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// OCR得到的性别
// 注意:此字段可能返回 null,表示取不到有效值。
Sex *string `json:"Sex,omitempty" name:"Sex"`
// OCR得到的民族
// 注意:此字段可能返回 null,表示取不到有效值。
Nation *string `json:"Nation,omitempty" name:"Nation"`
// OCR得到的生日
// 注意:此字段可能返回 null,表示取不到有效值。
Birth *string `json:"Birth,omitempty" name:"Birth"`
// OCR得到的地址
// 注意:此字段可能返回 null,表示取不到有效值。
Address *string `json:"Address,omitempty" name:"Address"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewIdCardOCRVerificationResponse ¶
func NewIdCardOCRVerificationResponse() (response *IdCardOCRVerificationResponse)
func (*IdCardOCRVerificationResponse) FromJsonString ¶
func (r *IdCardOCRVerificationResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IdCardOCRVerificationResponse) ToJsonString ¶
func (r *IdCardOCRVerificationResponse) ToJsonString() string
type IdCardVerificationRequest ¶
type IdCardVerificationRequest struct {
*tchttp.BaseRequest
// 身份证号
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 姓名
Name *string `json:"Name,omitempty" name:"Name"`
}
func NewIdCardVerificationRequest ¶
func NewIdCardVerificationRequest() (request *IdCardVerificationRequest)
func (*IdCardVerificationRequest) FromJsonString ¶
func (r *IdCardVerificationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IdCardVerificationRequest) ToJsonString ¶
func (r *IdCardVerificationRequest) ToJsonString() string
type IdCardVerificationResponse ¶
type IdCardVerificationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 认证结果码,收费情况如下。
// 收费结果码:
// 0: 姓名和身份证号一致
// -1: 姓名和身份证号不一致
// 不收费结果码:
// -2: 非法身份证号(长度、校验位等不正确)
// -3: 非法姓名(长度、格式等不正确)
// -4: 证件库服务异常
// -5: 证件库中无此身份证记录
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewIdCardVerificationResponse ¶
func NewIdCardVerificationResponse() (response *IdCardVerificationResponse)
func (*IdCardVerificationResponse) FromJsonString ¶
func (r *IdCardVerificationResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IdCardVerificationResponse) ToJsonString ¶
func (r *IdCardVerificationResponse) ToJsonString() string
type ImageRecognitionRequest ¶
type ImageRecognitionRequest struct {
*tchttp.BaseRequest
// 身份证号
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 姓名。中文请使用UTF-8编码。
Name *string `json:"Name,omitempty" name:"Name"`
// 用于人脸比对的照片,图片的Base64值;
// Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
// 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 本接口不需要传递此参数。
Optional *string `json:"Optional,omitempty" name:"Optional"`
}
func NewImageRecognitionRequest ¶
func NewImageRecognitionRequest() (request *ImageRecognitionRequest)
func (*ImageRecognitionRequest) FromJsonString ¶
func (r *ImageRecognitionRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ImageRecognitionRequest) ToJsonString ¶
func (r *ImageRecognitionRequest) ToJsonString() string
type ImageRecognitionResponse ¶
type ImageRecognitionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
Sim *float64 `json:"Sim,omitempty" name:"Sim"`
// 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewImageRecognitionResponse ¶
func NewImageRecognitionResponse() (response *ImageRecognitionResponse)
func (*ImageRecognitionResponse) FromJsonString ¶
func (r *ImageRecognitionResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ImageRecognitionResponse) ToJsonString ¶
func (r *ImageRecognitionResponse) ToJsonString() string
type LivenessCompareRequest ¶
type LivenessCompareRequest struct {
*tchttp.BaseRequest
// 用于人脸比对的照片,图片的Base64值;
// Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
// 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 用于活体检测的视频,视频的Base64值;
// Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
// 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
VideoBase64 *string `json:"VideoBase64,omitempty" name:"VideoBase64"`
// 活体检测类型,取值:LIP/ACTION/SILENT。
// LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
LivenessType *string `json:"LivenessType,omitempty" name:"LivenessType"`
// 数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
// 动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
// 静默模式传参:空。
ValidateData *string `json:"ValidateData,omitempty" name:"ValidateData"`
// 额外配置,传入JSON字符串。
// {
// "BestFrameNum": 2 //需要返回多张最佳截图,取值范围1-10
// }
Optional *string `json:"Optional,omitempty" name:"Optional"`
}
func NewLivenessCompareRequest ¶
func NewLivenessCompareRequest() (request *LivenessCompareRequest)
func (*LivenessCompareRequest) FromJsonString ¶
func (r *LivenessCompareRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*LivenessCompareRequest) ToJsonString ¶
func (r *LivenessCompareRequest) ToJsonString() string
type LivenessCompareResponse ¶
type LivenessCompareResponse struct {
*tchttp.BaseResponse
Response *struct {
// 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
// 注意:此字段可能返回 null,表示取不到有效值。
BestFrameBase64 *string `json:"BestFrameBase64,omitempty" name:"BestFrameBase64"`
// 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
Sim *float64 `json:"Sim,omitempty" name:"Sim"`
// 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 最佳截图列表,仅在配置了返回多张最佳截图时返回。
// 注意:此字段可能返回 null,表示取不到有效值。
BestFrameList []*string `json:"BestFrameList,omitempty" name:"BestFrameList" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewLivenessCompareResponse ¶
func NewLivenessCompareResponse() (response *LivenessCompareResponse)
func (*LivenessCompareResponse) FromJsonString ¶
func (r *LivenessCompareResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*LivenessCompareResponse) ToJsonString ¶
func (r *LivenessCompareResponse) ToJsonString() string
type LivenessRecognitionRequest ¶
type LivenessRecognitionRequest struct {
*tchttp.BaseRequest
// 身份证号
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 姓名。中文请使用UTF-8编码。
Name *string `json:"Name,omitempty" name:"Name"`
// 用于活体检测的视频,视频的BASE64值;
// BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
VideoBase64 *string `json:"VideoBase64,omitempty" name:"VideoBase64"`
// 活体检测类型,取值:LIP/ACTION/SILENT。
// LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
LivenessType *string `json:"LivenessType,omitempty" name:"LivenessType"`
// 数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
// 动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
// 静默模式传参:空。
ValidateData *string `json:"ValidateData,omitempty" name:"ValidateData"`
// 额外配置,传入JSON字符串。
// {
// "BestFrameNum": 2 //需要返回多张最佳截图,取值范围1-10
// }
Optional *string `json:"Optional,omitempty" name:"Optional"`
}
func NewLivenessRecognitionRequest ¶
func NewLivenessRecognitionRequest() (request *LivenessRecognitionRequest)
func (*LivenessRecognitionRequest) FromJsonString ¶
func (r *LivenessRecognitionRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*LivenessRecognitionRequest) ToJsonString ¶
func (r *LivenessRecognitionRequest) ToJsonString() string
type LivenessRecognitionResponse ¶
type LivenessRecognitionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
// 注意:此字段可能返回 null,表示取不到有效值。
BestFrameBase64 *string `json:"BestFrameBase64,omitempty" name:"BestFrameBase64"`
// 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
Sim *float64 `json:"Sim,omitempty" name:"Sim"`
// 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 最佳截图列表,仅在配置了返回多张最佳截图时返回。
// 注意:此字段可能返回 null,表示取不到有效值。
BestFrameList []*string `json:"BestFrameList,omitempty" name:"BestFrameList" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewLivenessRecognitionResponse ¶
func NewLivenessRecognitionResponse() (response *LivenessRecognitionResponse)
func (*LivenessRecognitionResponse) FromJsonString ¶
func (r *LivenessRecognitionResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*LivenessRecognitionResponse) ToJsonString ¶
func (r *LivenessRecognitionResponse) ToJsonString() string
type LivenessRequest ¶
type LivenessRequest struct {
*tchttp.BaseRequest
// 用于活体检测的视频,视频的BASE64值;
// BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
VideoBase64 *string `json:"VideoBase64,omitempty" name:"VideoBase64"`
// 活体检测类型,取值:LIP/ACTION/SILENT。
// LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
LivenessType *string `json:"LivenessType,omitempty" name:"LivenessType"`
// 数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
// 动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
// 静默模式传参:不需要传递此参数。
ValidateData *string `json:"ValidateData,omitempty" name:"ValidateData"`
// 额外配置,传入JSON字符串。
// {
// "BestFrameNum": 2 //需要返回多张最佳截图,取值范围1-10
// }
Optional *string `json:"Optional,omitempty" name:"Optional"`
}
func NewLivenessRequest ¶
func NewLivenessRequest() (request *LivenessRequest)
func (*LivenessRequest) FromJsonString ¶
func (r *LivenessRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*LivenessRequest) ToJsonString ¶
func (r *LivenessRequest) ToJsonString() string
type LivenessResponse ¶
type LivenessResponse struct {
*tchttp.BaseResponse
Response *struct {
// 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
// 注意:此字段可能返回 null,表示取不到有效值。
BestFrameBase64 *string `json:"BestFrameBase64,omitempty" name:"BestFrameBase64"`
// 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 最佳最佳截图列表,仅在配置了返回多张最佳截图时有效。
// 注意:此字段可能返回 null,表示取不到有效值。
BestFrameList []*string `json:"BestFrameList,omitempty" name:"BestFrameList" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewLivenessResponse ¶
func NewLivenessResponse() (response *LivenessResponse)
func (*LivenessResponse) FromJsonString ¶
func (r *LivenessResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*LivenessResponse) ToJsonString ¶
func (r *LivenessResponse) ToJsonString() string
type MinorsVerificationRequest ¶
type MinorsVerificationRequest struct {
*tchttp.BaseRequest
// 参与校验的参数类型。
// 0:使用手机号进行校验;
// 1:使用姓名与身份证号进行校验。
Type *string `json:"Type,omitempty" name:"Type"`
// 手机号,11位数字,
// 特别提示:
// 手机号验证只限制在腾讯健康守护可信模型覆盖的数据范围内,与手机号本身在运营商是否实名无关联,不在范围会提示“手机号未实名”,建议客户与传入姓名和身份证号信息组合使用。
Mobile *string `json:"Mobile,omitempty" name:"Mobile"`
// 身份证号码。
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 姓名。
Name *string `json:"Name,omitempty" name:"Name"`
// 敏感数据加密信息。对传入信息(姓名、身份证号、手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
Encryption *Encryption `json:"Encryption,omitempty" name:"Encryption"`
}
func NewMinorsVerificationRequest ¶
func NewMinorsVerificationRequest() (request *MinorsVerificationRequest)
func (*MinorsVerificationRequest) FromJsonString ¶
func (r *MinorsVerificationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*MinorsVerificationRequest) ToJsonString ¶
func (r *MinorsVerificationRequest) ToJsonString() string
type MinorsVerificationResponse ¶
type MinorsVerificationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 结果码,收费情况如下。
// 收费结果码:
// 0: 成年
// -1: 未成年
// -3: 姓名和身份证号不一致
//
// 不收费结果码:
// -2: 未查询到手机号信息
// -4: 非法身份证号(长度、校验位等不正确)
// -5: 非法姓名(长度、格式等不正确)
// -6: 权威数据源服务异常
// -7: 未查询到身份信息
// -8: 权威数据源升级中,请稍后再试
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 该字段的值为年龄区间。格式为[a,b),
// [0,8)表示年龄小于8周岁区间,不包括8岁;
// [8,16)表示年龄8-16周岁区间,不包括16岁;
// [16,18)表示年龄16-18周岁区间,不包括18岁;
// [18,+)表示年龄大于18周岁。
AgeRange *string `json:"AgeRange,omitempty" name:"AgeRange"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewMinorsVerificationResponse ¶
func NewMinorsVerificationResponse() (response *MinorsVerificationResponse)
func (*MinorsVerificationResponse) FromJsonString ¶
func (r *MinorsVerificationResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*MinorsVerificationResponse) ToJsonString ¶
func (r *MinorsVerificationResponse) ToJsonString() string
type MobileNetworkTimeVerificationRequest ¶
type MobileNetworkTimeVerificationRequest struct {
*tchttp.BaseRequest
// 手机号码
Mobile *string `json:"Mobile,omitempty" name:"Mobile"`
// 敏感数据加密信息。对传入信息(手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
Encryption *Encryption `json:"Encryption,omitempty" name:"Encryption"`
}
func NewMobileNetworkTimeVerificationRequest ¶
func NewMobileNetworkTimeVerificationRequest() (request *MobileNetworkTimeVerificationRequest)
func (*MobileNetworkTimeVerificationRequest) FromJsonString ¶
func (r *MobileNetworkTimeVerificationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*MobileNetworkTimeVerificationRequest) ToJsonString ¶
func (r *MobileNetworkTimeVerificationRequest) ToJsonString() string
type MobileNetworkTimeVerificationResponse ¶
type MobileNetworkTimeVerificationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 认证结果码,收费情况如下。
// 收费结果码:
// 0: 成功
// -2: 手机号不存在
// -3: 手机号存在,但无法查询到在网时长
// 不收费结果码:
// -1: 手机号格式不正确
// -4: 验证中心服务繁忙
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 在网时长区间。
// 格式为(a,b],表示在网时长在a个月以上,b个月以下。若b为+时表示没有上限。
Range *string `json:"Range,omitempty" name:"Range"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewMobileNetworkTimeVerificationResponse ¶
func NewMobileNetworkTimeVerificationResponse() (response *MobileNetworkTimeVerificationResponse)
func (*MobileNetworkTimeVerificationResponse) FromJsonString ¶
func (r *MobileNetworkTimeVerificationResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*MobileNetworkTimeVerificationResponse) ToJsonString ¶
func (r *MobileNetworkTimeVerificationResponse) ToJsonString() string
type MobileStatusRequest ¶
type MobileStatusRequest struct {
*tchttp.BaseRequest
// 手机号码
Mobile *string `json:"Mobile,omitempty" name:"Mobile"`
// 敏感数据加密信息。对传入信息(手机号)有加密需求的用户可使用此参数,详情请点击左侧链接。
Encryption *Encryption `json:"Encryption,omitempty" name:"Encryption"`
}
func NewMobileStatusRequest ¶
func NewMobileStatusRequest() (request *MobileStatusRequest)
func (*MobileStatusRequest) FromJsonString ¶
func (r *MobileStatusRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*MobileStatusRequest) ToJsonString ¶
func (r *MobileStatusRequest) ToJsonString() string
type MobileStatusResponse ¶
type MobileStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// 认证结果码,收费情况如下。
// 收费结果码:
// 0:成功
// 不收费结果码:
// -1:未查询到结果
// -2:手机号格式不正确
// -3:验证中心服务繁忙
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 状态码:
// 0:正常
// 1:停机
// 2:销号
// 3:空号
// 4:不在网
// 99:未知状态
StatusCode *int64 `json:"StatusCode,omitempty" name:"StatusCode"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewMobileStatusResponse ¶
func NewMobileStatusResponse() (response *MobileStatusResponse)
func (*MobileStatusResponse) FromJsonString ¶
func (r *MobileStatusResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*MobileStatusResponse) ToJsonString ¶
func (r *MobileStatusResponse) ToJsonString() string
type PhoneVerificationRequest ¶
type PhoneVerificationRequest struct {
*tchttp.BaseRequest
// 身份证号
IdCard *string `json:"IdCard,omitempty" name:"IdCard"`
// 姓名
Name *string `json:"Name,omitempty" name:"Name"`
// 手机号
Phone *string `json:"Phone,omitempty" name:"Phone"`
// 有加密需求的用户,接入传入kms的CiphertextBlob,关于数据加密可查阅 <a href="https://cloud.tencent.com/document/product/1007/47180">数据加密</a> 文档。
CiphertextBlob *string `json:"CiphertextBlob,omitempty" name:"CiphertextBlob"`
// 在使用加密服务时,填入要被加密的字段。本接口中可填入加密后的IdCard,Name,Phone中的一个或多个
EncryptList []*string `json:"EncryptList,omitempty" name:"EncryptList" list`
// 有加密需求的用户,传入CBC加密的初试向量
Iv *string `json:"Iv,omitempty" name:"Iv"`
}
func NewPhoneVerificationRequest ¶
func NewPhoneVerificationRequest() (request *PhoneVerificationRequest)
func (*PhoneVerificationRequest) FromJsonString ¶
func (r *PhoneVerificationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PhoneVerificationRequest) ToJsonString ¶
func (r *PhoneVerificationRequest) ToJsonString() string
type PhoneVerificationResponse ¶
type PhoneVerificationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 认证结果码:
// 收费结果码
// 0: 认证通过
// -4: 信息不一致(手机号已实名,但姓名和身份证号与实名信息不一致)
// -5: 手机号未实名
// 不收费结果码
// -6: 手机号码不合法
// -7: 身份证号码有误
// -8: 姓名校验不通过
// -9: 没有记录
// -10: 认证未通过
// -11: 验证中心服务繁忙
Result *string `json:"Result,omitempty" name:"Result"`
// 业务结果描述。
Description *string `json:"Description,omitempty" name:"Description"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPhoneVerificationResponse ¶
func NewPhoneVerificationResponse() (response *PhoneVerificationResponse)
func (*PhoneVerificationResponse) FromJsonString ¶
func (r *PhoneVerificationResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PhoneVerificationResponse) ToJsonString ¶
func (r *PhoneVerificationResponse) ToJsonString() string