ubsms

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) DescribeBusinessStatus

func (client *Client) DescribeBusinessStatus(request *DescribeBusinessStatusRequest) (response *DescribeBusinessStatusResponse, err error)

DescribeBusinessStatus invokes the ubsms.DescribeBusinessStatus API synchronously api document: https://help.aliyun.com/api/ubsms/describebusinessstatus.html

func (*Client) DescribeBusinessStatusWithCallback

func (client *Client) DescribeBusinessStatusWithCallback(request *DescribeBusinessStatusRequest, callback func(response *DescribeBusinessStatusResponse, err error)) <-chan int

DescribeBusinessStatusWithCallback invokes the ubsms.DescribeBusinessStatus API asynchronously api document: https://help.aliyun.com/api/ubsms/describebusinessstatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeBusinessStatusWithChan

func (client *Client) DescribeBusinessStatusWithChan(request *DescribeBusinessStatusRequest) (<-chan *DescribeBusinessStatusResponse, <-chan error)

DescribeBusinessStatusWithChan invokes the ubsms.DescribeBusinessStatus API asynchronously api document: https://help.aliyun.com/api/ubsms/describebusinessstatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) NotifyUserBusinessCommand

func (client *Client) NotifyUserBusinessCommand(request *NotifyUserBusinessCommandRequest) (response *NotifyUserBusinessCommandResponse, err error)

NotifyUserBusinessCommand invokes the ubsms.NotifyUserBusinessCommand API synchronously api document: https://help.aliyun.com/api/ubsms/notifyuserbusinesscommand.html

func (*Client) NotifyUserBusinessCommandWithCallback

func (client *Client) NotifyUserBusinessCommandWithCallback(request *NotifyUserBusinessCommandRequest, callback func(response *NotifyUserBusinessCommandResponse, err error)) <-chan int

NotifyUserBusinessCommandWithCallback invokes the ubsms.NotifyUserBusinessCommand API asynchronously api document: https://help.aliyun.com/api/ubsms/notifyuserbusinesscommand.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) NotifyUserBusinessCommandWithChan

func (client *Client) NotifyUserBusinessCommandWithChan(request *NotifyUserBusinessCommandRequest) (<-chan *NotifyUserBusinessCommandResponse, <-chan error)

NotifyUserBusinessCommandWithChan invokes the ubsms.NotifyUserBusinessCommand API asynchronously api document: https://help.aliyun.com/api/ubsms/notifyuserbusinesscommand.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SetUserBusinessStatus

func (client *Client) SetUserBusinessStatus(request *SetUserBusinessStatusRequest) (response *SetUserBusinessStatusResponse, err error)

SetUserBusinessStatus invokes the ubsms.SetUserBusinessStatus API synchronously api document: https://help.aliyun.com/api/ubsms/setuserbusinessstatus.html

func (*Client) SetUserBusinessStatusWithCallback

func (client *Client) SetUserBusinessStatusWithCallback(request *SetUserBusinessStatusRequest, callback func(response *SetUserBusinessStatusResponse, err error)) <-chan int

SetUserBusinessStatusWithCallback invokes the ubsms.SetUserBusinessStatus API asynchronously api document: https://help.aliyun.com/api/ubsms/setuserbusinessstatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SetUserBusinessStatusWithChan

func (client *Client) SetUserBusinessStatusWithChan(request *SetUserBusinessStatusRequest) (<-chan *SetUserBusinessStatusResponse, <-chan error)

SetUserBusinessStatusWithChan invokes the ubsms.SetUserBusinessStatus API asynchronously api document: https://help.aliyun.com/api/ubsms/setuserbusinessstatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type DescribeBusinessStatusRequest

type DescribeBusinessStatusRequest struct {
	*requests.RpcRequest
	Password  string `position:"Query" name:"Password"`
	CallerBid string `position:"Query" name:"callerBid"`
}

DescribeBusinessStatusRequest is the request struct for api DescribeBusinessStatus

func CreateDescribeBusinessStatusRequest

func CreateDescribeBusinessStatusRequest() (request *DescribeBusinessStatusRequest)

CreateDescribeBusinessStatusRequest creates a request to invoke DescribeBusinessStatus API

type DescribeBusinessStatusResponse

type DescribeBusinessStatusResponse struct {
	*responses.BaseResponse
	RequestId              string                 `json:"RequestId" xml:"RequestId"`
	Success                bool                   `json:"Success" xml:"Success"`
	UserBusinessStatusList UserBusinessStatusList `json:"UserBusinessStatusList" xml:"UserBusinessStatusList"`
}

DescribeBusinessStatusResponse is the response struct for api DescribeBusinessStatus

func CreateDescribeBusinessStatusResponse

func CreateDescribeBusinessStatusResponse() (response *DescribeBusinessStatusResponse)

CreateDescribeBusinessStatusResponse creates a response to parse from DescribeBusinessStatus response

type NotifyUserBusinessCommandRequest

type NotifyUserBusinessCommandRequest struct {
	*requests.RpcRequest
	Uid         string `position:"Query" name:"Uid"`
	Password    string `position:"Query" name:"Password"`
	InstanceId  string `position:"Query" name:"InstanceId"`
	ServiceCode string `position:"Query" name:"ServiceCode"`
	ClientToken string `position:"Query" name:"ClientToken"`
	Cmd         string `position:"Query" name:"Cmd"`
	Region      string `position:"Query" name:"Region"`
}

NotifyUserBusinessCommandRequest is the request struct for api NotifyUserBusinessCommand

func CreateNotifyUserBusinessCommandRequest

func CreateNotifyUserBusinessCommandRequest() (request *NotifyUserBusinessCommandRequest)

CreateNotifyUserBusinessCommandRequest creates a request to invoke NotifyUserBusinessCommand API

type NotifyUserBusinessCommandResponse

type NotifyUserBusinessCommandResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

NotifyUserBusinessCommandResponse is the response struct for api NotifyUserBusinessCommand

func CreateNotifyUserBusinessCommandResponse

func CreateNotifyUserBusinessCommandResponse() (response *NotifyUserBusinessCommandResponse)

CreateNotifyUserBusinessCommandResponse creates a response to parse from NotifyUserBusinessCommand response

type SetUserBusinessStatusRequest

type SetUserBusinessStatusRequest struct {
	*requests.RpcRequest
	Uid         string `position:"Query" name:"Uid"`
	StatusValue string `position:"Query" name:"StatusValue"`
	Service     string `position:"Query" name:"Service"`
	StatusKey   string `position:"Query" name:"StatusKey"`
}

SetUserBusinessStatusRequest is the request struct for api SetUserBusinessStatus

func CreateSetUserBusinessStatusRequest

func CreateSetUserBusinessStatusRequest() (request *SetUserBusinessStatusRequest)

CreateSetUserBusinessStatusRequest creates a request to invoke SetUserBusinessStatus API

type SetUserBusinessStatusResponse

type SetUserBusinessStatusResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

SetUserBusinessStatusResponse is the response struct for api SetUserBusinessStatus

func CreateSetUserBusinessStatusResponse

func CreateSetUserBusinessStatusResponse() (response *SetUserBusinessStatusResponse)

CreateSetUserBusinessStatusResponse creates a response to parse from SetUserBusinessStatus response

type Status

type Status struct {
	StatusKey   string `json:"StatusKey" xml:"StatusKey"`
	StatusValue string `json:"StatusValue" xml:"StatusValue"`
}

Status is a nested struct in ubsms response

type Statuses

type Statuses struct {
	Status []Status `json:"Status" xml:"Status"`
}

Statuses is a nested struct in ubsms response

type UserBusinessStatus

type UserBusinessStatus struct {
	Uid         string   `json:"Uid" xml:"Uid"`
	ServiceCode string   `json:"ServiceCode" xml:"ServiceCode"`
	Statuses    Statuses `json:"Statuses" xml:"Statuses"`
}

UserBusinessStatus is a nested struct in ubsms response

type UserBusinessStatusList

type UserBusinessStatusList struct {
	UserBusinessStatus []UserBusinessStatus `json:"UserBusinessStatus" xml:"UserBusinessStatus"`
}

UserBusinessStatusList is a nested struct in ubsms response

Jump to

Keyboard shortcuts

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