cloudauth

package
v0.0.0-...-66ec9f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://help.aliyun.com/document_detail/66217.html

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://help.aliyun.com/document_detail/66223.html

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://help.aliyun.com/document_detail/66222.html

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair attention: rsa key pair auth is only Japan regions available

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://help.aliyun.com/document_detail/66222.html

func (*Client) CompareFaces

func (client *Client) CompareFaces(request *CompareFacesRequest) (response *CompareFacesResponse, err error)

CompareFaces invokes the cloudauth.CompareFaces API synchronously api document: https://help.aliyun.com/api/cloudauth/comparefaces.html

func (*Client) CompareFacesWithCallback

func (client *Client) CompareFacesWithCallback(request *CompareFacesRequest, callback func(response *CompareFacesResponse, err error)) <-chan int

CompareFacesWithCallback invokes the cloudauth.CompareFaces API asynchronously api document: https://help.aliyun.com/api/cloudauth/comparefaces.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CompareFacesWithChan

func (client *Client) CompareFacesWithChan(request *CompareFacesRequest) (<-chan *CompareFacesResponse, <-chan error)

CompareFacesWithChan invokes the cloudauth.CompareFaces API asynchronously api document: https://help.aliyun.com/api/cloudauth/comparefaces.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateAuthKey

func (client *Client) CreateAuthKey(request *CreateAuthKeyRequest) (response *CreateAuthKeyResponse, err error)

CreateAuthKey invokes the cloudauth.CreateAuthKey API synchronously api document: https://help.aliyun.com/api/cloudauth/createauthkey.html

func (*Client) CreateAuthKeyWithCallback

func (client *Client) CreateAuthKeyWithCallback(request *CreateAuthKeyRequest, callback func(response *CreateAuthKeyResponse, err error)) <-chan int

CreateAuthKeyWithCallback invokes the cloudauth.CreateAuthKey API asynchronously api document: https://help.aliyun.com/api/cloudauth/createauthkey.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateAuthKeyWithChan

func (client *Client) CreateAuthKeyWithChan(request *CreateAuthKeyRequest) (<-chan *CreateAuthKeyResponse, <-chan error)

CreateAuthKeyWithChan invokes the cloudauth.CreateAuthKey API asynchronously api document: https://help.aliyun.com/api/cloudauth/createauthkey.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateVerifySDK

func (client *Client) CreateVerifySDK(request *CreateVerifySDKRequest) (response *CreateVerifySDKResponse, err error)

CreateVerifySDK invokes the cloudauth.CreateVerifySDK API synchronously api document: https://help.aliyun.com/api/cloudauth/createverifysdk.html

func (*Client) CreateVerifySDKWithCallback

func (client *Client) CreateVerifySDKWithCallback(request *CreateVerifySDKRequest, callback func(response *CreateVerifySDKResponse, err error)) <-chan int

CreateVerifySDKWithCallback invokes the cloudauth.CreateVerifySDK API asynchronously api document: https://help.aliyun.com/api/cloudauth/createverifysdk.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateVerifySDKWithChan

func (client *Client) CreateVerifySDKWithChan(request *CreateVerifySDKRequest) (<-chan *CreateVerifySDKResponse, <-chan error)

CreateVerifySDKWithChan invokes the cloudauth.CreateVerifySDK API asynchronously api document: https://help.aliyun.com/api/cloudauth/createverifysdk.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeDeviceInfo

func (client *Client) DescribeDeviceInfo(request *DescribeDeviceInfoRequest) (response *DescribeDeviceInfoResponse, err error)

DescribeDeviceInfo invokes the cloudauth.DescribeDeviceInfo API synchronously api document: https://help.aliyun.com/api/cloudauth/describedeviceinfo.html

func (*Client) DescribeDeviceInfoWithCallback

func (client *Client) DescribeDeviceInfoWithCallback(request *DescribeDeviceInfoRequest, callback func(response *DescribeDeviceInfoResponse, err error)) <-chan int

DescribeDeviceInfoWithCallback invokes the cloudauth.DescribeDeviceInfo API asynchronously api document: https://help.aliyun.com/api/cloudauth/describedeviceinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeDeviceInfoWithChan

func (client *Client) DescribeDeviceInfoWithChan(request *DescribeDeviceInfoRequest) (<-chan *DescribeDeviceInfoResponse, <-chan error)

DescribeDeviceInfoWithChan invokes the cloudauth.DescribeDeviceInfo API asynchronously api document: https://help.aliyun.com/api/cloudauth/describedeviceinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeVerifySDK

func (client *Client) DescribeVerifySDK(request *DescribeVerifySDKRequest) (response *DescribeVerifySDKResponse, err error)

DescribeVerifySDK invokes the cloudauth.DescribeVerifySDK API synchronously api document: https://help.aliyun.com/api/cloudauth/describeverifysdk.html

func (*Client) DescribeVerifySDKWithCallback

func (client *Client) DescribeVerifySDKWithCallback(request *DescribeVerifySDKRequest, callback func(response *DescribeVerifySDKResponse, err error)) <-chan int

DescribeVerifySDKWithCallback invokes the cloudauth.DescribeVerifySDK API asynchronously api document: https://help.aliyun.com/api/cloudauth/describeverifysdk.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeVerifySDKWithChan

func (client *Client) DescribeVerifySDKWithChan(request *DescribeVerifySDKRequest) (<-chan *DescribeVerifySDKResponse, <-chan error)

DescribeVerifySDKWithChan invokes the cloudauth.DescribeVerifySDK API asynchronously api document: https://help.aliyun.com/api/cloudauth/describeverifysdk.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DetectFaceAttributes

func (client *Client) DetectFaceAttributes(request *DetectFaceAttributesRequest) (response *DetectFaceAttributesResponse, err error)

DetectFaceAttributes invokes the cloudauth.DetectFaceAttributes API synchronously api document: https://help.aliyun.com/api/cloudauth/detectfaceattributes.html

func (*Client) DetectFaceAttributesWithCallback

func (client *Client) DetectFaceAttributesWithCallback(request *DetectFaceAttributesRequest, callback func(response *DetectFaceAttributesResponse, err error)) <-chan int

DetectFaceAttributesWithCallback invokes the cloudauth.DetectFaceAttributes API asynchronously api document: https://help.aliyun.com/api/cloudauth/detectfaceattributes.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DetectFaceAttributesWithChan

func (client *Client) DetectFaceAttributesWithChan(request *DetectFaceAttributesRequest) (<-chan *DetectFaceAttributesResponse, <-chan error)

DetectFaceAttributesWithChan invokes the cloudauth.DetectFaceAttributes API asynchronously api document: https://help.aliyun.com/api/cloudauth/detectfaceattributes.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetMaterials

func (client *Client) GetMaterials(request *GetMaterialsRequest) (response *GetMaterialsResponse, err error)

GetMaterials invokes the cloudauth.GetMaterials API synchronously api document: https://help.aliyun.com/api/cloudauth/getmaterials.html

func (*Client) GetMaterialsWithCallback

func (client *Client) GetMaterialsWithCallback(request *GetMaterialsRequest, callback func(response *GetMaterialsResponse, err error)) <-chan int

GetMaterialsWithCallback invokes the cloudauth.GetMaterials API asynchronously api document: https://help.aliyun.com/api/cloudauth/getmaterials.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetMaterialsWithChan

func (client *Client) GetMaterialsWithChan(request *GetMaterialsRequest) (<-chan *GetMaterialsResponse, <-chan error)

GetMaterialsWithChan invokes the cloudauth.GetMaterials API asynchronously api document: https://help.aliyun.com/api/cloudauth/getmaterials.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetStatus

func (client *Client) GetStatus(request *GetStatusRequest) (response *GetStatusResponse, err error)

GetStatus invokes the cloudauth.GetStatus API synchronously api document: https://help.aliyun.com/api/cloudauth/getstatus.html

func (*Client) GetStatusWithCallback

func (client *Client) GetStatusWithCallback(request *GetStatusRequest, callback func(response *GetStatusResponse, err error)) <-chan int

GetStatusWithCallback invokes the cloudauth.GetStatus API asynchronously api document: https://help.aliyun.com/api/cloudauth/getstatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetStatusWithChan

func (client *Client) GetStatusWithChan(request *GetStatusRequest) (<-chan *GetStatusResponse, <-chan error)

GetStatusWithChan invokes the cloudauth.GetStatus API asynchronously api document: https://help.aliyun.com/api/cloudauth/getstatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetVerifyToken

func (client *Client) GetVerifyToken(request *GetVerifyTokenRequest) (response *GetVerifyTokenResponse, err error)

GetVerifyToken invokes the cloudauth.GetVerifyToken API synchronously api document: https://help.aliyun.com/api/cloudauth/getverifytoken.html

func (*Client) GetVerifyTokenWithCallback

func (client *Client) GetVerifyTokenWithCallback(request *GetVerifyTokenRequest, callback func(response *GetVerifyTokenResponse, err error)) <-chan int

GetVerifyTokenWithCallback invokes the cloudauth.GetVerifyToken API asynchronously api document: https://help.aliyun.com/api/cloudauth/getverifytoken.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetVerifyTokenWithChan

func (client *Client) GetVerifyTokenWithChan(request *GetVerifyTokenRequest) (<-chan *GetVerifyTokenResponse, <-chan error)

GetVerifyTokenWithChan invokes the cloudauth.GetVerifyToken API asynchronously api document: https://help.aliyun.com/api/cloudauth/getverifytoken.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyDeviceInfo

func (client *Client) ModifyDeviceInfo(request *ModifyDeviceInfoRequest) (response *ModifyDeviceInfoResponse, err error)

ModifyDeviceInfo invokes the cloudauth.ModifyDeviceInfo API synchronously api document: https://help.aliyun.com/api/cloudauth/modifydeviceinfo.html

func (*Client) ModifyDeviceInfoWithCallback

func (client *Client) ModifyDeviceInfoWithCallback(request *ModifyDeviceInfoRequest, callback func(response *ModifyDeviceInfoResponse, err error)) <-chan int

ModifyDeviceInfoWithCallback invokes the cloudauth.ModifyDeviceInfo API asynchronously api document: https://help.aliyun.com/api/cloudauth/modifydeviceinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ModifyDeviceInfoWithChan

func (client *Client) ModifyDeviceInfoWithChan(request *ModifyDeviceInfoRequest) (<-chan *ModifyDeviceInfoResponse, <-chan error)

ModifyDeviceInfoWithChan invokes the cloudauth.ModifyDeviceInfo API asynchronously api document: https://help.aliyun.com/api/cloudauth/modifydeviceinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SubmitMaterials

func (client *Client) SubmitMaterials(request *SubmitMaterialsRequest) (response *SubmitMaterialsResponse, err error)

SubmitMaterials invokes the cloudauth.SubmitMaterials API synchronously api document: https://help.aliyun.com/api/cloudauth/submitmaterials.html

func (*Client) SubmitMaterialsWithCallback

func (client *Client) SubmitMaterialsWithCallback(request *SubmitMaterialsRequest, callback func(response *SubmitMaterialsResponse, err error)) <-chan int

SubmitMaterialsWithCallback invokes the cloudauth.SubmitMaterials API asynchronously api document: https://help.aliyun.com/api/cloudauth/submitmaterials.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SubmitMaterialsWithChan

func (client *Client) SubmitMaterialsWithChan(request *SubmitMaterialsRequest) (<-chan *SubmitMaterialsResponse, <-chan error)

SubmitMaterialsWithChan invokes the cloudauth.SubmitMaterials API asynchronously api document: https://help.aliyun.com/api/cloudauth/submitmaterials.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SubmitVerification

func (client *Client) SubmitVerification(request *SubmitVerificationRequest) (response *SubmitVerificationResponse, err error)

SubmitVerification invokes the cloudauth.SubmitVerification API synchronously api document: https://help.aliyun.com/api/cloudauth/submitverification.html

func (*Client) SubmitVerificationWithCallback

func (client *Client) SubmitVerificationWithCallback(request *SubmitVerificationRequest, callback func(response *SubmitVerificationResponse, err error)) <-chan int

SubmitVerificationWithCallback invokes the cloudauth.SubmitVerification API asynchronously api document: https://help.aliyun.com/api/cloudauth/submitverification.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SubmitVerificationWithChan

func (client *Client) SubmitVerificationWithChan(request *SubmitVerificationRequest) (<-chan *SubmitVerificationResponse, <-chan error)

SubmitVerificationWithChan invokes the cloudauth.SubmitVerification API asynchronously api document: https://help.aliyun.com/api/cloudauth/submitverification.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type CompareFacesRequest

type CompareFacesRequest struct {
	*requests.RpcRequest
	SourceImageType  string           `position:"Body" name:"SourceImageType"`
	ResourceOwnerId  requests.Integer `position:"Query" name:"ResourceOwnerId"`
	SourceIp         string           `position:"Query" name:"SourceIp"`
	TargetImageType  string           `position:"Body" name:"TargetImageType"`
	SourceImageValue string           `position:"Body" name:"SourceImageValue"`
	TargetImageValue string           `position:"Body" name:"TargetImageValue"`
}

CompareFacesRequest is the request struct for api CompareFaces

func CreateCompareFacesRequest

func CreateCompareFacesRequest() (request *CompareFacesRequest)

CreateCompareFacesRequest creates a request to invoke CompareFaces API

type CompareFacesResponse

type CompareFacesResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

CompareFacesResponse is the response struct for api CompareFaces

func CreateCompareFacesResponse

func CreateCompareFacesResponse() (response *CompareFacesResponse)

CreateCompareFacesResponse creates a response to parse from CompareFaces response

type CreateAuthKeyRequest

type CreateAuthKeyRequest struct {
	*requests.RpcRequest
	BizType      string           `position:"Query" name:"BizType"`
	UserDeviceId string           `position:"Query" name:"UserDeviceId"`
	SourceIp     string           `position:"Query" name:"SourceIp"`
	Test         requests.Boolean `position:"Query" name:"Test"`
	AuthYears    requests.Integer `position:"Query" name:"AuthYears"`
	Lang         string           `position:"Query" name:"Lang"`
}

CreateAuthKeyRequest is the request struct for api CreateAuthKey

func CreateCreateAuthKeyRequest

func CreateCreateAuthKeyRequest() (request *CreateAuthKeyRequest)

CreateCreateAuthKeyRequest creates a request to invoke CreateAuthKey API

type CreateAuthKeyResponse

type CreateAuthKeyResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	AuthKey   string `json:"AuthKey" xml:"AuthKey"`
}

CreateAuthKeyResponse is the response struct for api CreateAuthKey

func CreateCreateAuthKeyResponse

func CreateCreateAuthKeyResponse() (response *CreateAuthKeyResponse)

CreateCreateAuthKeyResponse creates a response to parse from CreateAuthKey response

type CreateVerifySDKRequest

type CreateVerifySDKRequest struct {
	*requests.RpcRequest
	SourceIp string `position:"Query" name:"SourceIp"`
	AppUrl   string `position:"Query" name:"AppUrl"`
	Lang     string `position:"Query" name:"Lang"`
	Platform string `position:"Query" name:"Platform"`
}

CreateVerifySDKRequest is the request struct for api CreateVerifySDK

func CreateCreateVerifySDKRequest

func CreateCreateVerifySDKRequest() (request *CreateVerifySDKRequest)

CreateCreateVerifySDKRequest creates a request to invoke CreateVerifySDK API

type CreateVerifySDKResponse

type CreateVerifySDKResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	TaskId    string `json:"TaskId" xml:"TaskId"`
}

CreateVerifySDKResponse is the response struct for api CreateVerifySDK

func CreateCreateVerifySDKResponse

func CreateCreateVerifySDKResponse() (response *CreateVerifySDKResponse)

CreateCreateVerifySDKResponse creates a response to parse from CreateVerifySDK response

type Data

type Data struct {
	Name                     string       `json:"Name" xml:"Name"`
	IdCardFrontPic           string       `json:"IdCardFrontPic" xml:"IdCardFrontPic"`
	TrustedScore             float64      `json:"TrustedScore" xml:"TrustedScore"`
	FacePic                  string       `json:"FacePic" xml:"FacePic"`
	IdCardExpiry             string       `json:"IdCardExpiry" xml:"IdCardExpiry"`
	AuditConclusions         string       `json:"AuditConclusions" xml:"AuditConclusions"`
	AuthorityComparisonScore float64      `json:"AuthorityComparisonScore" xml:"AuthorityComparisonScore"`
	IdCardStartDate          string       `json:"IdCardStartDate" xml:"IdCardStartDate"`
	IdCardType               string       `json:"IdCardType" xml:"IdCardType"`
	SimilarityScore          float64      `json:"SimilarityScore" xml:"SimilarityScore"`
	IdentificationNumber     string       `json:"IdentificationNumber" xml:"IdentificationNumber"`
	Address                  string       `json:"Address" xml:"Address"`
	EthnicGroup              string       `json:"EthnicGroup" xml:"EthnicGroup"`
	Sex                      string       `json:"Sex" xml:"Sex"`
	IdCardBackPic            string       `json:"IdCardBackPic" xml:"IdCardBackPic"`
	ImgWidth                 int          `json:"ImgWidth" xml:"ImgWidth"`
	CloudauthPageUrl         string       `json:"CloudauthPageUrl" xml:"CloudauthPageUrl"`
	StatusCode               int          `json:"StatusCode" xml:"StatusCode"`
	ImgHeight                int          `json:"ImgHeight" xml:"ImgHeight"`
	ConfidenceThresholds     string       `json:"ConfidenceThresholds" xml:"ConfidenceThresholds"`
	StsToken                 StsToken     `json:"StsToken" xml:"StsToken"`
	VerifyStatus             VerifyStatus `json:"VerifyStatus" xml:"VerifyStatus"`
	VerifyToken              VerifyToken  `json:"VerifyToken" xml:"VerifyToken"`
	FaceInfos                FaceInfos    `json:"FaceInfos" xml:"FaceInfos"`
}

Data is a nested struct in cloudauth response

type DescribeDeviceInfoRequest

type DescribeDeviceInfoRequest struct {
	*requests.RpcRequest
	BizType         string           `position:"Query" name:"BizType"`
	UserDeviceId    string           `position:"Query" name:"UserDeviceId"`
	TotalCount      requests.Integer `position:"Query" name:"TotalCount"`
	SourceIp        string           `position:"Query" name:"SourceIp"`
	PageSize        requests.Integer `position:"Query" name:"PageSize"`
	CurrentPage     requests.Integer `position:"Query" name:"CurrentPage"`
	Lang            string           `position:"Query" name:"Lang"`
	ExpiredEndDay   string           `position:"Query" name:"ExpiredEndDay"`
	DeviceId        string           `position:"Query" name:"DeviceId"`
	ExpiredStartDay string           `position:"Query" name:"ExpiredStartDay"`
}

DescribeDeviceInfoRequest is the request struct for api DescribeDeviceInfo

func CreateDescribeDeviceInfoRequest

func CreateDescribeDeviceInfoRequest() (request *DescribeDeviceInfoRequest)

CreateDescribeDeviceInfoRequest creates a request to invoke DescribeDeviceInfo API

type DescribeDeviceInfoResponse

type DescribeDeviceInfoResponse struct {
	*responses.BaseResponse
	RequestId      string         `json:"RequestId" xml:"RequestId"`
	PageSize       int            `json:"PageSize" xml:"PageSize"`
	CurrentPage    int            `json:"CurrentPage" xml:"CurrentPage"`
	TotalCount     int            `json:"TotalCount" xml:"TotalCount"`
	DeviceInfoList DeviceInfoList `json:"DeviceInfoList" xml:"DeviceInfoList"`
}

DescribeDeviceInfoResponse is the response struct for api DescribeDeviceInfo

func CreateDescribeDeviceInfoResponse

func CreateDescribeDeviceInfoResponse() (response *DescribeDeviceInfoResponse)

CreateDescribeDeviceInfoResponse creates a response to parse from DescribeDeviceInfo response

type DescribeVerifySDKRequest

type DescribeVerifySDKRequest struct {
	*requests.RpcRequest
	SourceIp string `position:"Query" name:"SourceIp"`
	Lang     string `position:"Query" name:"Lang"`
	TaskId   string `position:"Query" name:"TaskId"`
}

DescribeVerifySDKRequest is the request struct for api DescribeVerifySDK

func CreateDescribeVerifySDKRequest

func CreateDescribeVerifySDKRequest() (request *DescribeVerifySDKRequest)

CreateDescribeVerifySDKRequest creates a request to invoke DescribeVerifySDK API

type DescribeVerifySDKResponse

type DescribeVerifySDKResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	SdkUrl    string `json:"SdkUrl" xml:"SdkUrl"`
}

DescribeVerifySDKResponse is the response struct for api DescribeVerifySDK

func CreateDescribeVerifySDKResponse

func CreateDescribeVerifySDKResponse() (response *DescribeVerifySDKResponse)

CreateDescribeVerifySDKResponse creates a response to parse from DescribeVerifySDK response

type DetectFaceAttributesRequest

type DetectFaceAttributesRequest struct {
	*requests.RpcRequest
	MaxNumPhotosPerCategory requests.Integer `position:"Body" name:"MaxNumPhotosPerCategory"`
	MaxFaceNum              requests.Integer `position:"Body" name:"MaxFaceNum"`
	ResourceOwnerId         requests.Integer `position:"Query" name:"ResourceOwnerId"`
	SourceIp                string           `position:"Query" name:"SourceIp"`
	RetAttributes           string           `position:"Body" name:"RetAttributes"`
	MaterialValue           string           `position:"Body" name:"MaterialValue"`
	DontSaveDB              requests.Boolean `position:"Body" name:"DontSaveDB"`
	ClientTag               string           `position:"Body" name:"ClientTag"`
}

DetectFaceAttributesRequest is the request struct for api DetectFaceAttributes

func CreateDetectFaceAttributesRequest

func CreateDetectFaceAttributesRequest() (request *DetectFaceAttributesRequest)

CreateDetectFaceAttributesRequest creates a request to invoke DetectFaceAttributes API

type DetectFaceAttributesResponse

type DetectFaceAttributesResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

DetectFaceAttributesResponse is the response struct for api DetectFaceAttributes

func CreateDetectFaceAttributesResponse

func CreateDetectFaceAttributesResponse() (response *DetectFaceAttributesResponse)

CreateDetectFaceAttributesResponse creates a response to parse from DetectFaceAttributes response

type DeviceInfo

type DeviceInfo struct {
	DeviceId     string `json:"DeviceId" xml:"DeviceId"`
	UserDeviceId string `json:"UserDeviceId" xml:"UserDeviceId"`
	BizType      string `json:"BizType" xml:"BizType"`
	BeginDay     string `json:"BeginDay" xml:"BeginDay"`
	ExpiredDay   string `json:"ExpiredDay" xml:"ExpiredDay"`
}

DeviceInfo is a nested struct in cloudauth response

type DeviceInfoList

type DeviceInfoList struct {
	DeviceInfo []DeviceInfo `json:"DeviceInfo" xml:"DeviceInfo"`
}

DeviceInfoList is a nested struct in cloudauth response

type FaceAttributes

type FaceAttributes struct {
	Age       int      `json:"Age" xml:"Age"`
	Glasses   string   `json:"Glasses" xml:"Glasses"`
	Facetype  string   `json:"Facetype" xml:"Facetype"`
	Blur      float64  `json:"Blur" xml:"Blur"`
	Ethnicity string   `json:"Ethnicity" xml:"Ethnicity"`
	Gender    Gender   `json:"Gender" xml:"Gender"`
	Smiling   Smiling  `json:"Smiling" xml:"Smiling"`
	Headpose  Headpose `json:"Headpose" xml:"Headpose"`
}

FaceAttributes is a nested struct in cloudauth response

type FaceAttributesDetectInfo

type FaceAttributesDetectInfo struct {
	FaceRect       FaceRect       `json:"FaceRect" xml:"FaceRect"`
	FaceAttributes FaceAttributes `json:"FaceAttributes" xml:"FaceAttributes"`
}

FaceAttributesDetectInfo is a nested struct in cloudauth response

type FaceInfos

type FaceInfos struct {
	FaceAttributesDetectInfo []FaceAttributesDetectInfo `json:"FaceAttributesDetectInfo" xml:"FaceAttributesDetectInfo"`
}

FaceInfos is a nested struct in cloudauth response

type FaceRect

type FaceRect struct {
	Top    int `json:"Top" xml:"Top"`
	Left   int `json:"Left" xml:"Left"`
	Width  int `json:"Width" xml:"Width"`
	Height int `json:"Height" xml:"Height"`
}

FaceRect is a nested struct in cloudauth response

type Gender

type Gender struct {
	Score float64 `json:"Score" xml:"Score"`
	Value string  `json:"Value" xml:"Value"`
}

Gender is a nested struct in cloudauth response

type GetMaterialsRequest

type GetMaterialsRequest struct {
	*requests.RpcRequest
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	Biz             string           `position:"Query" name:"Biz"`
	SourceIp        string           `position:"Query" name:"SourceIp"`
	TicketId        string           `position:"Query" name:"TicketId"`
}

GetMaterialsRequest is the request struct for api GetMaterials

func CreateGetMaterialsRequest

func CreateGetMaterialsRequest() (request *GetMaterialsRequest)

CreateGetMaterialsRequest creates a request to invoke GetMaterials API

type GetMaterialsResponse

type GetMaterialsResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

GetMaterialsResponse is the response struct for api GetMaterials

func CreateGetMaterialsResponse

func CreateGetMaterialsResponse() (response *GetMaterialsResponse)

CreateGetMaterialsResponse creates a response to parse from GetMaterials response

type GetStatusRequest

type GetStatusRequest struct {
	*requests.RpcRequest
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	Biz             string           `position:"Query" name:"Biz"`
	SourceIp        string           `position:"Query" name:"SourceIp"`
	TicketId        string           `position:"Query" name:"TicketId"`
}

GetStatusRequest is the request struct for api GetStatus

func CreateGetStatusRequest

func CreateGetStatusRequest() (request *GetStatusRequest)

CreateGetStatusRequest creates a request to invoke GetStatus API

type GetStatusResponse

type GetStatusResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

GetStatusResponse is the response struct for api GetStatus

func CreateGetStatusResponse

func CreateGetStatusResponse() (response *GetStatusResponse)

CreateGetStatusResponse creates a response to parse from GetStatus response

type GetVerifyTokenRequest

type GetVerifyTokenRequest struct {
	*requests.RpcRequest
	UserData        string           `position:"Query" name:"UserData"`
	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
	Biz             string           `position:"Query" name:"Biz"`
	SourceIp        string           `position:"Query" name:"SourceIp"`
	Binding         string           `position:"Body" name:"Binding"`
	VerifyConfigs   string           `position:"Query" name:"VerifyConfigs"`
	TicketId        string           `position:"Query" name:"TicketId"`
}

GetVerifyTokenRequest is the request struct for api GetVerifyToken

func CreateGetVerifyTokenRequest

func CreateGetVerifyTokenRequest() (request *GetVerifyTokenRequest)

CreateGetVerifyTokenRequest creates a request to invoke GetVerifyToken API

type GetVerifyTokenResponse

type GetVerifyTokenResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

GetVerifyTokenResponse is the response struct for api GetVerifyToken

func CreateGetVerifyTokenResponse

func CreateGetVerifyTokenResponse() (response *GetVerifyTokenResponse)

CreateGetVerifyTokenResponse creates a response to parse from GetVerifyToken response

type Headpose

type Headpose struct {
	PitchAngle float64 `json:"PitchAngle" xml:"PitchAngle"`
	RollAngle  float64 `json:"RollAngle" xml:"RollAngle"`
	YawAngle   float64 `json:"YawAngle" xml:"YawAngle"`
}

Headpose is a nested struct in cloudauth response

type ModifyDeviceInfoRequest

type ModifyDeviceInfoRequest struct {
	*requests.RpcRequest
	UserDeviceId string `position:"Query" name:"UserDeviceId"`
	BizType      string `position:"Query" name:"BizType"`
	Duration     string `position:"Query" name:"Duration"`
	ExpiredDay   string `position:"Query" name:"ExpiredDay"`
	SourceIp     string `position:"Query" name:"SourceIp"`
	Lang         string `position:"Query" name:"Lang"`
	DeviceId     string `position:"Query" name:"DeviceId"`
}

ModifyDeviceInfoRequest is the request struct for api ModifyDeviceInfo

func CreateModifyDeviceInfoRequest

func CreateModifyDeviceInfoRequest() (request *ModifyDeviceInfoRequest)

CreateModifyDeviceInfoRequest creates a request to invoke ModifyDeviceInfo API

type ModifyDeviceInfoResponse

type ModifyDeviceInfoResponse struct {
	*responses.BaseResponse
	RequestId    string `json:"RequestId" xml:"RequestId"`
	DeviceId     string `json:"DeviceId" xml:"DeviceId"`
	UserDeviceId string `json:"UserDeviceId" xml:"UserDeviceId"`
	BizType      string `json:"BizType" xml:"BizType"`
	BeginDay     string `json:"BeginDay" xml:"BeginDay"`
	ExpiredDay   string `json:"ExpiredDay" xml:"ExpiredDay"`
}

ModifyDeviceInfoResponse is the response struct for api ModifyDeviceInfo

func CreateModifyDeviceInfoResponse

func CreateModifyDeviceInfoResponse() (response *ModifyDeviceInfoResponse)

CreateModifyDeviceInfoResponse creates a response to parse from ModifyDeviceInfo response

type Smiling

type Smiling struct {
	Value     float64 `json:"Value" xml:"Value"`
	Threshold float64 `json:"Threshold" xml:"Threshold"`
}

Smiling is a nested struct in cloudauth response

type StsToken

type StsToken struct {
	AccessKeyId     string `json:"AccessKeyId" xml:"AccessKeyId"`
	AccessKeySecret string `json:"AccessKeySecret" xml:"AccessKeySecret"`
	Expiration      string `json:"Expiration" xml:"Expiration"`
	EndPoint        string `json:"EndPoint" xml:"EndPoint"`
	BucketName      string `json:"BucketName" xml:"BucketName"`
	Path            string `json:"Path" xml:"Path"`
	Token           string `json:"Token" xml:"Token"`
}

StsToken is a nested struct in cloudauth response

type SubmitMaterialsMaterial

type SubmitMaterialsMaterial struct {
	MaterialType string `name:"MaterialType"`
	Value        string `name:"Value"`
}

SubmitMaterialsMaterial is a repeated param struct in SubmitMaterialsRequest

type SubmitMaterialsRequest

type SubmitMaterialsRequest struct {
	*requests.RpcRequest
	ResourceOwnerId requests.Integer           `position:"Query" name:"ResourceOwnerId"`
	SourceIp        string                     `position:"Query" name:"SourceIp"`
	Material        *[]SubmitMaterialsMaterial `position:"Body" name:"Material"  type:"Repeated"`
	VerifyToken     string                     `position:"Body" name:"VerifyToken"`
}

SubmitMaterialsRequest is the request struct for api SubmitMaterials

func CreateSubmitMaterialsRequest

func CreateSubmitMaterialsRequest() (request *SubmitMaterialsRequest)

CreateSubmitMaterialsRequest creates a request to invoke SubmitMaterials API

type SubmitMaterialsResponse

type SubmitMaterialsResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

SubmitMaterialsResponse is the response struct for api SubmitMaterials

func CreateSubmitMaterialsResponse

func CreateSubmitMaterialsResponse() (response *SubmitMaterialsResponse)

CreateSubmitMaterialsResponse creates a response to parse from SubmitMaterials response

type SubmitVerificationMaterial

type SubmitVerificationMaterial struct {
	MaterialType string `name:"MaterialType"`
	Value        string `name:"Value"`
}

SubmitVerificationMaterial is a repeated param struct in SubmitVerificationRequest

type SubmitVerificationRequest

type SubmitVerificationRequest struct {
	*requests.RpcRequest
	ResourceOwnerId requests.Integer              `position:"Query" name:"ResourceOwnerId"`
	Biz             string                        `position:"Body" name:"Biz"`
	SourceIp        string                        `position:"Query" name:"SourceIp"`
	Material        *[]SubmitVerificationMaterial `position:"Body" name:"Material"  type:"Repeated"`
	TicketId        string                        `position:"Body" name:"TicketId"`
}

SubmitVerificationRequest is the request struct for api SubmitVerification

func CreateSubmitVerificationRequest

func CreateSubmitVerificationRequest() (request *SubmitVerificationRequest)

CreateSubmitVerificationRequest creates a request to invoke SubmitVerification API

type SubmitVerificationResponse

type SubmitVerificationResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      Data   `json:"Data" xml:"Data"`
}

SubmitVerificationResponse is the response struct for api SubmitVerification

func CreateSubmitVerificationResponse

func CreateSubmitVerificationResponse() (response *SubmitVerificationResponse)

CreateSubmitVerificationResponse creates a response to parse from SubmitVerification response

type VerifyStatus

type VerifyStatus struct {
	TrustedScore             float64 `json:"TrustedScore" xml:"TrustedScore"`
	AuditConclusions         string  `json:"AuditConclusions" xml:"AuditConclusions"`
	AuthorityComparisonScore float64 `json:"AuthorityComparisonScore" xml:"AuthorityComparisonScore"`
	StatusCode               int     `json:"StatusCode" xml:"StatusCode"`
	SimilarityScore          float64 `json:"SimilarityScore" xml:"SimilarityScore"`
}

VerifyStatus is a nested struct in cloudauth response

type VerifyToken

type VerifyToken struct {
	Token           string `json:"Token" xml:"Token"`
	DurationSeconds int    `json:"DurationSeconds" xml:"DurationSeconds"`
}

VerifyToken is a nested struct in cloudauth response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL