unvs

package
v0.22.21 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package unvs include resources of ucloud unvs product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetMobileRequest

type GetMobileRequest struct {
	request.CommonBase

	// 业务ID
	BusinessId *string `required:"true"`

	// token
	Token *string `required:"true"`
}

GetMobileRequest is request schema for GetMobile action

type GetMobileResponse

type GetMobileResponse struct {
	response.CommonBase

	// 号码数据
	Data PhoneInfo

	// 发生错误时表示错误字符串
	Message string

	// 本次请求Uuid
	ReqUuid string
}

GetMobileResponse is response schema for GetMobile action

type PhoneInfo

type PhoneInfo struct {

	// 返回的电话号码
	Phone string
}

PhoneInfo - 号码信息

type UNVSClient

type UNVSClient struct {
	*ucloud.Client
}

UNVSClient is the client of UNVS

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UNVSClient

NewClient will return a instance of UNVSClient

func (*UNVSClient) GetMobile

func (c *UNVSClient) GetMobile(req *GetMobileRequest) (*GetMobileResponse, error)

API: GetMobile

一键登录

func (*UNVSClient) NewGetMobileRequest

func (c *UNVSClient) NewGetMobileRequest() *GetMobileRequest

NewGetMobileRequest will create request of GetMobile action.

func (*UNVSClient) NewVerifyMobileRequest

func (c *UNVSClient) NewVerifyMobileRequest() *VerifyMobileRequest

NewVerifyMobileRequest will create request of VerifyMobile action.

func (*UNVSClient) VerifyMobile

func (c *UNVSClient) VerifyMobile(req *VerifyMobileRequest) (*VerifyMobileResponse, error)

API: VerifyMobile

号码检测

type VerifyInfo

type VerifyInfo struct {

	// 检测结果:PASS:一致,REJECT:不一致
	VerifyResult string
}

VerifyInfo - 检测结果信息

type VerifyMobileRequest

type VerifyMobileRequest struct {
	request.CommonBase

	// 业务ID
	BusinessId *string `required:"true"`

	// 需要检测的手机号
	Phone *string `required:"true"`

	// token
	Token *string `required:"true"`
}

VerifyMobileRequest is request schema for VerifyMobile action

type VerifyMobileResponse

type VerifyMobileResponse struct {
	response.CommonBase

	// 手机号检测结果
	Data VerifyInfo

	// 发生错误时表示错误字符串
	Message string

	// 本次请求Uuid
	ReqUuid string
}

VerifyMobileResponse is response schema for VerifyMobile action

Jump to

Keyboard shortcuts

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