Documentation
¶
Overview ¶
Package unvs include resources of ucloud unvs product
See also
- API: https://docs.ucloud.cn/api/unvs-api/index
- Product: https://www.ucloud.cn/site/product/unvs.html
for detail.
Index ¶
- type GetMobileRequest
- type GetMobileResponse
- type PhoneInfo
- type UNVSClient
- func (c *UNVSClient) GetMobile(req *GetMobileRequest) (*GetMobileResponse, error)
- func (c *UNVSClient) NewGetMobileRequest() *GetMobileRequest
- func (c *UNVSClient) NewVerifyMobileRequest() *VerifyMobileRequest
- func (c *UNVSClient) VerifyMobile(req *VerifyMobileRequest) (*VerifyMobileResponse, error)
- type VerifyInfo
- type VerifyMobileRequest
- type VerifyMobileResponse
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 UNVSClient ¶
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
Click to show internal directories.
Click to hide internal directories.