dyvmsapi

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 CancelCallRequest

type CancelCallRequest struct {
	*requests.RpcRequest
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
	CallId               string           `position:"Query" name:"CallId"`
}

CancelCallRequest is the request struct for api CancelCall

func CreateCancelCallRequest

func CreateCancelCallRequest() (request *CancelCallRequest)

CreateCancelCallRequest creates a request to invoke CancelCall API

type CancelCallResponse

type CancelCallResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Status    bool   `json:"Status" xml:"Status"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
}

CancelCallResponse is the response struct for api CancelCall

func CreateCancelCallResponse

func CreateCancelCallResponse() (response *CancelCallResponse)

CreateCancelCallResponse creates a response to parse from CancelCall response

type ClickToDialRequest

type ClickToDialRequest struct {
	*requests.RpcRequest
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
	CallerShowNumber     string           `position:"Query" name:"CallerShowNumber"`
	CallerNumber         string           `position:"Query" name:"CallerNumber"`
	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
	CalledNumber         string           `position:"Query" name:"CalledNumber"`
	RecordFlag           requests.Boolean `position:"Query" name:"RecordFlag"`
	AsrFlag              requests.Boolean `position:"Query" name:"AsrFlag"`
	SessionTimeout       requests.Integer `position:"Query" name:"SessionTimeout"`
	AsrModelId           string           `position:"Query" name:"AsrModelId"`
	OutId                string           `position:"Query" name:"OutId"`
}

ClickToDialRequest is the request struct for api ClickToDial

func CreateClickToDialRequest

func CreateClickToDialRequest() (request *ClickToDialRequest)

CreateClickToDialRequest creates a request to invoke ClickToDial API

type ClickToDialResponse

type ClickToDialResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	CallId    string `json:"CallId" xml:"CallId"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
}

ClickToDialResponse is the response struct for api ClickToDial

func CreateClickToDialResponse

func CreateClickToDialResponse() (response *ClickToDialResponse)

CreateClickToDialResponse creates a response to parse from ClickToDial response

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

func (client *Client) CancelCall(request *CancelCallRequest) (response *CancelCallResponse, err error)

CancelCall invokes the dyvmsapi.CancelCall API synchronously api document: https://help.aliyun.com/api/dyvmsapi/cancelcall.html

func (*Client) CancelCallWithCallback

func (client *Client) CancelCallWithCallback(request *CancelCallRequest, callback func(response *CancelCallResponse, err error)) <-chan int

CancelCallWithCallback invokes the dyvmsapi.CancelCall API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/cancelcall.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CancelCallWithChan

func (client *Client) CancelCallWithChan(request *CancelCallRequest) (<-chan *CancelCallResponse, <-chan error)

CancelCallWithChan invokes the dyvmsapi.CancelCall API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/cancelcall.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ClickToDial

func (client *Client) ClickToDial(request *ClickToDialRequest) (response *ClickToDialResponse, err error)

ClickToDial invokes the dyvmsapi.ClickToDial API synchronously api document: https://help.aliyun.com/api/dyvmsapi/clicktodial.html

func (*Client) ClickToDialWithCallback

func (client *Client) ClickToDialWithCallback(request *ClickToDialRequest, callback func(response *ClickToDialResponse, err error)) <-chan int

ClickToDialWithCallback invokes the dyvmsapi.ClickToDial API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/clicktodial.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ClickToDialWithChan

func (client *Client) ClickToDialWithChan(request *ClickToDialRequest) (<-chan *ClickToDialResponse, <-chan error)

ClickToDialWithChan invokes the dyvmsapi.ClickToDial API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/clicktodial.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) IvrCall

func (client *Client) IvrCall(request *IvrCallRequest) (response *IvrCallResponse, err error)

IvrCall invokes the dyvmsapi.IvrCall API synchronously api document: https://help.aliyun.com/api/dyvmsapi/ivrcall.html

func (*Client) IvrCallWithCallback

func (client *Client) IvrCallWithCallback(request *IvrCallRequest, callback func(response *IvrCallResponse, err error)) <-chan int

IvrCallWithCallback invokes the dyvmsapi.IvrCall API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/ivrcall.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) IvrCallWithChan

func (client *Client) IvrCallWithChan(request *IvrCallRequest) (<-chan *IvrCallResponse, <-chan error)

IvrCallWithChan invokes the dyvmsapi.IvrCall API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/ivrcall.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryCallDetailByCallId

func (client *Client) QueryCallDetailByCallId(request *QueryCallDetailByCallIdRequest) (response *QueryCallDetailByCallIdResponse, err error)

QueryCallDetailByCallId invokes the dyvmsapi.QueryCallDetailByCallId API synchronously api document: https://help.aliyun.com/api/dyvmsapi/querycalldetailbycallid.html

func (*Client) QueryCallDetailByCallIdWithCallback

func (client *Client) QueryCallDetailByCallIdWithCallback(request *QueryCallDetailByCallIdRequest, callback func(response *QueryCallDetailByCallIdResponse, err error)) <-chan int

QueryCallDetailByCallIdWithCallback invokes the dyvmsapi.QueryCallDetailByCallId API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/querycalldetailbycallid.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryCallDetailByCallIdWithChan

func (client *Client) QueryCallDetailByCallIdWithChan(request *QueryCallDetailByCallIdRequest) (<-chan *QueryCallDetailByCallIdResponse, <-chan error)

QueryCallDetailByCallIdWithChan invokes the dyvmsapi.QueryCallDetailByCallId API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/querycalldetailbycallid.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SingleCallByTts

func (client *Client) SingleCallByTts(request *SingleCallByTtsRequest) (response *SingleCallByTtsResponse, err error)

SingleCallByTts invokes the dyvmsapi.SingleCallByTts API synchronously api document: https://help.aliyun.com/api/dyvmsapi/singlecallbytts.html

func (*Client) SingleCallByTtsWithCallback

func (client *Client) SingleCallByTtsWithCallback(request *SingleCallByTtsRequest, callback func(response *SingleCallByTtsResponse, err error)) <-chan int

SingleCallByTtsWithCallback invokes the dyvmsapi.SingleCallByTts API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/singlecallbytts.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SingleCallByTtsWithChan

func (client *Client) SingleCallByTtsWithChan(request *SingleCallByTtsRequest) (<-chan *SingleCallByTtsResponse, <-chan error)

SingleCallByTtsWithChan invokes the dyvmsapi.SingleCallByTts API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/singlecallbytts.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SingleCallByVoice

func (client *Client) SingleCallByVoice(request *SingleCallByVoiceRequest) (response *SingleCallByVoiceResponse, err error)

SingleCallByVoice invokes the dyvmsapi.SingleCallByVoice API synchronously api document: https://help.aliyun.com/api/dyvmsapi/singlecallbyvoice.html

func (*Client) SingleCallByVoiceWithCallback

func (client *Client) SingleCallByVoiceWithCallback(request *SingleCallByVoiceRequest, callback func(response *SingleCallByVoiceResponse, err error)) <-chan int

SingleCallByVoiceWithCallback invokes the dyvmsapi.SingleCallByVoice API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/singlecallbyvoice.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SingleCallByVoiceWithChan

func (client *Client) SingleCallByVoiceWithChan(request *SingleCallByVoiceRequest) (<-chan *SingleCallByVoiceResponse, <-chan error)

SingleCallByVoiceWithChan invokes the dyvmsapi.SingleCallByVoice API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/singlecallbyvoice.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SmartCall

func (client *Client) SmartCall(request *SmartCallRequest) (response *SmartCallResponse, err error)

SmartCall invokes the dyvmsapi.SmartCall API synchronously api document: https://help.aliyun.com/api/dyvmsapi/smartcall.html

func (*Client) SmartCallWithCallback

func (client *Client) SmartCallWithCallback(request *SmartCallRequest, callback func(response *SmartCallResponse, err error)) <-chan int

SmartCallWithCallback invokes the dyvmsapi.SmartCall API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/smartcall.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) SmartCallWithChan

func (client *Client) SmartCallWithChan(request *SmartCallRequest) (<-chan *SmartCallResponse, <-chan error)

SmartCallWithChan invokes the dyvmsapi.SmartCall API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/smartcall.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) VoipAddAccount

func (client *Client) VoipAddAccount(request *VoipAddAccountRequest) (response *VoipAddAccountResponse, err error)

VoipAddAccount invokes the dyvmsapi.VoipAddAccount API synchronously api document: https://help.aliyun.com/api/dyvmsapi/voipaddaccount.html

func (*Client) VoipAddAccountWithCallback

func (client *Client) VoipAddAccountWithCallback(request *VoipAddAccountRequest, callback func(response *VoipAddAccountResponse, err error)) <-chan int

VoipAddAccountWithCallback invokes the dyvmsapi.VoipAddAccount API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/voipaddaccount.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) VoipAddAccountWithChan

func (client *Client) VoipAddAccountWithChan(request *VoipAddAccountRequest) (<-chan *VoipAddAccountResponse, <-chan error)

VoipAddAccountWithChan invokes the dyvmsapi.VoipAddAccount API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/voipaddaccount.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) VoipGetToken

func (client *Client) VoipGetToken(request *VoipGetTokenRequest) (response *VoipGetTokenResponse, err error)

VoipGetToken invokes the dyvmsapi.VoipGetToken API synchronously api document: https://help.aliyun.com/api/dyvmsapi/voipgettoken.html

func (*Client) VoipGetTokenWithCallback

func (client *Client) VoipGetTokenWithCallback(request *VoipGetTokenRequest, callback func(response *VoipGetTokenResponse, err error)) <-chan int

VoipGetTokenWithCallback invokes the dyvmsapi.VoipGetToken API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/voipgettoken.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) VoipGetTokenWithChan

func (client *Client) VoipGetTokenWithChan(request *VoipGetTokenRequest) (<-chan *VoipGetTokenResponse, <-chan error)

VoipGetTokenWithChan invokes the dyvmsapi.VoipGetToken API asynchronously api document: https://help.aliyun.com/api/dyvmsapi/voipgettoken.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type IvrCallMenuKeyMap

type IvrCallMenuKeyMap struct {
	Key       string `name:"Key"`
	Code      string `name:"Code"`
	TtsParams string `name:"TtsParams"`
}

IvrCallMenuKeyMap is a repeated param struct in IvrCallRequest

type IvrCallRequest

type IvrCallRequest struct {
	*requests.RpcRequest
	OwnerId              requests.Integer     `position:"Query" name:"OwnerId"`
	ResourceOwnerAccount string               `position:"Query" name:"ResourceOwnerAccount"`
	ResourceOwnerId      requests.Integer     `position:"Query" name:"ResourceOwnerId"`
	CalledShowNumber     string               `position:"Query" name:"CalledShowNumber"`
	CalledNumber         string               `position:"Query" name:"CalledNumber"`
	StartCode            string               `position:"Query" name:"StartCode"`
	StartTtsParams       string               `position:"Query" name:"StartTtsParams"`
	MenuKeyMap           *[]IvrCallMenuKeyMap `position:"Query" name:"MenuKeyMap"  type:"Repeated"`
	PlayTimes            requests.Integer     `position:"Query" name:"PlayTimes"`
	ByeCode              string               `position:"Query" name:"ByeCode"`
	ByeTtsParams         string               `position:"Query" name:"ByeTtsParams"`
	Timeout              requests.Integer     `position:"Query" name:"Timeout"`
	OutId                string               `position:"Query" name:"OutId"`
}

IvrCallRequest is the request struct for api IvrCall

func CreateIvrCallRequest

func CreateIvrCallRequest() (request *IvrCallRequest)

CreateIvrCallRequest creates a request to invoke IvrCall API

type IvrCallResponse

type IvrCallResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	CallId    string `json:"CallId" xml:"CallId"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
}

IvrCallResponse is the response struct for api IvrCall

func CreateIvrCallResponse

func CreateIvrCallResponse() (response *IvrCallResponse)

CreateIvrCallResponse creates a response to parse from IvrCall response

type QueryCallDetailByCallIdRequest

type QueryCallDetailByCallIdRequest struct {
	*requests.RpcRequest
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
	CallId               string           `position:"Query" name:"CallId"`
	ProdId               requests.Integer `position:"Query" name:"ProdId"`
	QueryDate            requests.Integer `position:"Query" name:"QueryDate"`
}

QueryCallDetailByCallIdRequest is the request struct for api QueryCallDetailByCallId

func CreateQueryCallDetailByCallIdRequest

func CreateQueryCallDetailByCallIdRequest() (request *QueryCallDetailByCallIdRequest)

CreateQueryCallDetailByCallIdRequest creates a request to invoke QueryCallDetailByCallId API

type QueryCallDetailByCallIdResponse

type QueryCallDetailByCallIdResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      string `json:"Data" xml:"Data"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
}

QueryCallDetailByCallIdResponse is the response struct for api QueryCallDetailByCallId

func CreateQueryCallDetailByCallIdResponse

func CreateQueryCallDetailByCallIdResponse() (response *QueryCallDetailByCallIdResponse)

CreateQueryCallDetailByCallIdResponse creates a response to parse from QueryCallDetailByCallId response

type SingleCallByTtsRequest

type SingleCallByTtsRequest struct {
	*requests.RpcRequest
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
	CalledNumber         string           `position:"Query" name:"CalledNumber"`
	TtsCode              string           `position:"Query" name:"TtsCode"`
	TtsParam             string           `position:"Query" name:"TtsParam"`
	PlayTimes            requests.Integer `position:"Query" name:"PlayTimes"`
	Volume               requests.Integer `position:"Query" name:"Volume"`
	Speed                requests.Integer `position:"Query" name:"Speed"`
	OutId                string           `position:"Query" name:"OutId"`
}

SingleCallByTtsRequest is the request struct for api SingleCallByTts

func CreateSingleCallByTtsRequest

func CreateSingleCallByTtsRequest() (request *SingleCallByTtsRequest)

CreateSingleCallByTtsRequest creates a request to invoke SingleCallByTts API

type SingleCallByTtsResponse

type SingleCallByTtsResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	CallId    string `json:"CallId" xml:"CallId"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
}

SingleCallByTtsResponse is the response struct for api SingleCallByTts

func CreateSingleCallByTtsResponse

func CreateSingleCallByTtsResponse() (response *SingleCallByTtsResponse)

CreateSingleCallByTtsResponse creates a response to parse from SingleCallByTts response

type SingleCallByVoiceRequest

type SingleCallByVoiceRequest struct {
	*requests.RpcRequest
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
	CalledNumber         string           `position:"Query" name:"CalledNumber"`
	VoiceCode            string           `position:"Query" name:"VoiceCode"`
	PlayTimes            requests.Integer `position:"Query" name:"PlayTimes"`
	Volume               requests.Integer `position:"Query" name:"Volume"`
	Speed                requests.Integer `position:"Query" name:"Speed"`
	OutId                string           `position:"Query" name:"OutId"`
}

SingleCallByVoiceRequest is the request struct for api SingleCallByVoice

func CreateSingleCallByVoiceRequest

func CreateSingleCallByVoiceRequest() (request *SingleCallByVoiceRequest)

CreateSingleCallByVoiceRequest creates a request to invoke SingleCallByVoice API

type SingleCallByVoiceResponse

type SingleCallByVoiceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	CallId    string `json:"CallId" xml:"CallId"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
}

SingleCallByVoiceResponse is the response struct for api SingleCallByVoice

func CreateSingleCallByVoiceResponse

func CreateSingleCallByVoiceResponse() (response *SingleCallByVoiceResponse)

CreateSingleCallByVoiceResponse creates a response to parse from SingleCallByVoice response

type SmartCallRequest

type SmartCallRequest struct {
	*requests.RpcRequest
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
	CalledNumber         string           `position:"Query" name:"CalledNumber"`
	VoiceCode            string           `position:"Query" name:"VoiceCode"`
	RecordFlag           requests.Boolean `position:"Query" name:"RecordFlag"`
	Volume               requests.Integer `position:"Query" name:"Volume"`
	Speed                requests.Integer `position:"Query" name:"Speed"`
	AsrModelId           string           `position:"Query" name:"AsrModelId"`
	PauseTime            requests.Integer `position:"Query" name:"PauseTime"`
	MuteTime             requests.Integer `position:"Query" name:"MuteTime"`
	ActionCodeBreak      requests.Boolean `position:"Query" name:"ActionCodeBreak"`
	OutId                string           `position:"Query" name:"OutId"`
	DynamicId            string           `position:"Query" name:"DynamicId"`
}

SmartCallRequest is the request struct for api SmartCall

func CreateSmartCallRequest

func CreateSmartCallRequest() (request *SmartCallRequest)

CreateSmartCallRequest creates a request to invoke SmartCall API

type SmartCallResponse

type SmartCallResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	CallId    string `json:"CallId" xml:"CallId"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
}

SmartCallResponse is the response struct for api SmartCall

func CreateSmartCallResponse

func CreateSmartCallResponse() (response *SmartCallResponse)

CreateSmartCallResponse creates a response to parse from SmartCall response

type VoipAddAccountRequest

type VoipAddAccountRequest struct {
	*requests.RpcRequest
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
	DeviceId             string           `position:"Query" name:"DeviceId"`
}

VoipAddAccountRequest is the request struct for api VoipAddAccount

func CreateVoipAddAccountRequest

func CreateVoipAddAccountRequest() (request *VoipAddAccountRequest)

CreateVoipAddAccountRequest creates a request to invoke VoipAddAccount API

type VoipAddAccountResponse

type VoipAddAccountResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Module    string `json:"Module" xml:"Module"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
}

VoipAddAccountResponse is the response struct for api VoipAddAccount

func CreateVoipAddAccountResponse

func CreateVoipAddAccountResponse() (response *VoipAddAccountResponse)

CreateVoipAddAccountResponse creates a response to parse from VoipAddAccount response

type VoipGetTokenRequest

type VoipGetTokenRequest struct {
	*requests.RpcRequest
	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
	VoipId               string           `position:"Query" name:"VoipId"`
	DeviceId             string           `position:"Query" name:"DeviceId"`
}

VoipGetTokenRequest is the request struct for api VoipGetToken

func CreateVoipGetTokenRequest

func CreateVoipGetTokenRequest() (request *VoipGetTokenRequest)

CreateVoipGetTokenRequest creates a request to invoke VoipGetToken API

type VoipGetTokenResponse

type VoipGetTokenResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Module    string `json:"Module" xml:"Module"`
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
}

VoipGetTokenResponse is the response struct for api VoipGetToken

func CreateVoipGetTokenResponse

func CreateVoipGetTokenResponse() (response *VoipGetTokenResponse)

CreateVoipGetTokenResponse creates a response to parse from VoipGetToken response

Jump to

Keyboard shortcuts

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