cloudauth

package
v0.0.0-...-bbc24d0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 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) 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) 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 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 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 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 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