Documentation ¶
Index ¶
- type Client
- func NewClient() (client *Client, err error)
- func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
- func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)
- func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
- func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
- func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
- func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
- func (client *Client) DescribePhoneInfo(request *DescribePhoneInfoRequest) (response *DescribePhoneInfoResponse, err error)
- func (client *Client) DescribePhoneInfoWithCallback(request *DescribePhoneInfoRequest, ...) <-chan int
- func (client *Client) DescribePhoneInfoWithChan(request *DescribePhoneInfoRequest) (<-chan *DescribePhoneInfoResponse, <-chan error)
- type DescribePhoneInfoRequest
- type DescribePhoneInfoResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
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 ¶
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) DescribePhoneInfo ¶
func (client *Client) DescribePhoneInfo(request *DescribePhoneInfoRequest) (response *DescribePhoneInfoResponse, err error)
DescribePhoneInfo invokes the jarvis_public.DescribePhoneInfo API synchronously api document: https://help.aliyun.com/api/jarvis-public/describephoneinfo.html
func (*Client) DescribePhoneInfoWithCallback ¶
func (client *Client) DescribePhoneInfoWithCallback(request *DescribePhoneInfoRequest, callback func(response *DescribePhoneInfoResponse, err error)) <-chan int
DescribePhoneInfoWithCallback invokes the jarvis_public.DescribePhoneInfo API asynchronously api document: https://help.aliyun.com/api/jarvis-public/describephoneinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DescribePhoneInfoWithChan ¶
func (client *Client) DescribePhoneInfoWithChan(request *DescribePhoneInfoRequest) (<-chan *DescribePhoneInfoResponse, <-chan error)
DescribePhoneInfoWithChan invokes the jarvis_public.DescribePhoneInfo API asynchronously api document: https://help.aliyun.com/api/jarvis-public/describephoneinfo.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
type DescribePhoneInfoRequest ¶
type DescribePhoneInfoRequest struct { *requests.RpcRequest SourceIp string `position:"Query" name:"SourceIp"` PhoneNum string `position:"Query" name:"phoneNum"` Lang string `position:"Query" name:"Lang"` SourceCode string `position:"Query" name:"sourceCode"` }
DescribePhoneInfoRequest is the request struct for api DescribePhoneInfo
func CreateDescribePhoneInfoRequest ¶
func CreateDescribePhoneInfoRequest() (request *DescribePhoneInfoRequest)
CreateDescribePhoneInfoRequest creates a request to invoke DescribePhoneInfo API
type DescribePhoneInfoResponse ¶
type DescribePhoneInfoResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Module string `json:"Module" xml:"Module"` PhoneNum int `json:"phoneNum" xml:"phoneNum"` RiskLevel int `json:"riskLevel" xml:"riskLevel"` DetectTime string `json:"detectTime" xml:"detectTime"` }
DescribePhoneInfoResponse is the response struct for api DescribePhoneInfo
func CreateDescribePhoneInfoResponse ¶
func CreateDescribePhoneInfoResponse() (response *DescribePhoneInfoResponse)
CreateDescribePhoneInfoResponse creates a response to parse from DescribePhoneInfo response