Selaa lähdekoodia

Generated 2017-05-25 for Dyvmsapi.

sdk-team 6 vuotta sitten
vanhempi
commit
dd2e121ec8
31 muutettua tiedostoa jossa 2310 lisäystä ja 49 poistoa
  1. 3 0
      ChangeLog.txt
  2. 109 0
      services/dyvmsapi/add_rtc_account.go
  3. 119 0
      services/dyvmsapi/batch_robot_smart_call.go
  4. 110 0
      services/dyvmsapi/bind_number_and_voip_id.go
  5. 3 3
      services/dyvmsapi/cancel_call.go
  6. 109 0
      services/dyvmsapi/cancel_order_robot_task.go
  7. 109 0
      services/dyvmsapi/cancel_robot_task.go
  8. 7 7
      services/dyvmsapi/click_to_dial.go
  9. 28 5
      services/dyvmsapi/client.go
  10. 118 0
      services/dyvmsapi/create_robot_task.go
  11. 109 0
      services/dyvmsapi/delete_robot_task.go
  12. 111 0
      services/dyvmsapi/get_rtc_token.go
  13. 9 9
      services/dyvmsapi/ivr_call.go
  14. 4 4
      services/dyvmsapi/query_call_detail_by_call_id.go
  15. 111 0
      services/dyvmsapi/query_call_detail_by_task_id.go
  16. 109 0
      services/dyvmsapi/query_robot_info_list.go
  17. 111 0
      services/dyvmsapi/query_robot_task_call_detail.go
  18. 118 0
      services/dyvmsapi/query_robot_task_call_list.go
  19. 109 0
      services/dyvmsapi/query_robot_task_detail.go
  20. 113 0
      services/dyvmsapi/query_robot_task_list.go
  21. 108 0
      services/dyvmsapi/query_robotv2_all_list.go
  22. 5 5
      services/dyvmsapi/single_call_by_tts.go
  23. 4 4
      services/dyvmsapi/single_call_by_voice.go
  24. 17 8
      services/dyvmsapi/smart_call.go
  25. 111 0
      services/dyvmsapi/smart_call_operate.go
  26. 110 0
      services/dyvmsapi/start_robot_task.go
  27. 109 0
      services/dyvmsapi/stop_robot_task.go
  28. 110 0
      services/dyvmsapi/unbind_number_and_voip_id.go
  29. 112 0
      services/dyvmsapi/upload_robot_task_called_file.go
  30. 2 2
      services/dyvmsapi/voip_add_account.go
  31. 3 2
      services/dyvmsapi/voip_get_token.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-11-02 Version: 1.60.225
+- Generated 2017-05-25 for `Dyvmsapi`.
+
 2019-10-31 Version: 1.60.224
 2019-10-31 Version: 1.60.224
 - Initial construction.
 - Initial construction.
 - Public beta version.
 - Public beta version.

+ 109 - 0
services/dyvmsapi/add_rtc_account.go

@@ -0,0 +1,109 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// AddRtcAccount invokes the dyvmsapi.AddRtcAccount API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/addrtcaccount.html
+func (client *Client) AddRtcAccount(request *AddRtcAccountRequest) (response *AddRtcAccountResponse, err error) {
+	response = CreateAddRtcAccountResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AddRtcAccountWithChan invokes the dyvmsapi.AddRtcAccount API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/addrtcaccount.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddRtcAccountWithChan(request *AddRtcAccountRequest) (<-chan *AddRtcAccountResponse, <-chan error) {
+	responseChan := make(chan *AddRtcAccountResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AddRtcAccount(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AddRtcAccountWithCallback invokes the dyvmsapi.AddRtcAccount API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/addrtcaccount.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddRtcAccountWithCallback(request *AddRtcAccountRequest, callback func(response *AddRtcAccountResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AddRtcAccountResponse
+		var err error
+		defer close(result)
+		response, err = client.AddRtcAccount(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AddRtcAccountRequest is the request struct for api AddRtcAccount
+type AddRtcAccountRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	DeviceId             string           `position:"Query" name:"DeviceId"`
+}
+
+// AddRtcAccountResponse is the response struct for api AddRtcAccount
+type AddRtcAccountResponse 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"`
+}
+
+// CreateAddRtcAccountRequest creates a request to invoke AddRtcAccount API
+func CreateAddRtcAccountRequest() (request *AddRtcAccountRequest) {
+	request = &AddRtcAccountRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "AddRtcAccount", "", "")
+	return
+}
+
+// CreateAddRtcAccountResponse creates a response to parse from AddRtcAccount response
+func CreateAddRtcAccountResponse() (response *AddRtcAccountResponse) {
+	response = &AddRtcAccountResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 119 - 0
services/dyvmsapi/batch_robot_smart_call.go

@@ -0,0 +1,119 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// BatchRobotSmartCall invokes the dyvmsapi.BatchRobotSmartCall API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/batchrobotsmartcall.html
+func (client *Client) BatchRobotSmartCall(request *BatchRobotSmartCallRequest) (response *BatchRobotSmartCallResponse, err error) {
+	response = CreateBatchRobotSmartCallResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// BatchRobotSmartCallWithChan invokes the dyvmsapi.BatchRobotSmartCall API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/batchrobotsmartcall.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BatchRobotSmartCallWithChan(request *BatchRobotSmartCallRequest) (<-chan *BatchRobotSmartCallResponse, <-chan error) {
+	responseChan := make(chan *BatchRobotSmartCallResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.BatchRobotSmartCall(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// BatchRobotSmartCallWithCallback invokes the dyvmsapi.BatchRobotSmartCall API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/batchrobotsmartcall.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BatchRobotSmartCallWithCallback(request *BatchRobotSmartCallRequest, callback func(response *BatchRobotSmartCallResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *BatchRobotSmartCallResponse
+		var err error
+		defer close(result)
+		response, err = client.BatchRobotSmartCall(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// BatchRobotSmartCallRequest is the request struct for api BatchRobotSmartCall
+type BatchRobotSmartCallRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	EarlyMediaAsr        requests.Boolean `position:"Query" name:"EarlyMediaAsr"`
+	TtsParamHead         string           `position:"Query" name:"TtsParamHead"`
+	TaskName             string           `position:"Query" name:"TaskName"`
+	TtsParam             string           `position:"Query" name:"TtsParam"`
+	CalledNumber         string           `position:"Query" name:"CalledNumber"`
+	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
+	IsSelfLine           requests.Boolean `position:"Query" name:"IsSelfLine"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	DialogId             string           `position:"Query" name:"DialogId"`
+	ScheduleTime         requests.Integer `position:"Query" name:"ScheduleTime"`
+	CorpName             string           `position:"Query" name:"CorpName"`
+	ScheduleCall         requests.Boolean `position:"Query" name:"ScheduleCall"`
+}
+
+// BatchRobotSmartCallResponse is the response struct for api BatchRobotSmartCall
+type BatchRobotSmartCallResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	TaskId    string `json:"TaskId" xml:"TaskId"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+}
+
+// CreateBatchRobotSmartCallRequest creates a request to invoke BatchRobotSmartCall API
+func CreateBatchRobotSmartCallRequest() (request *BatchRobotSmartCallRequest) {
+	request = &BatchRobotSmartCallRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "BatchRobotSmartCall", "", "")
+	return
+}
+
+// CreateBatchRobotSmartCallResponse creates a response to parse from BatchRobotSmartCall response
+func CreateBatchRobotSmartCallResponse() (response *BatchRobotSmartCallResponse) {
+	response = &BatchRobotSmartCallResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/dyvmsapi/bind_number_and_voip_id.go

@@ -0,0 +1,110 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// BindNumberAndVoipId invokes the dyvmsapi.BindNumberAndVoipId API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/bindnumberandvoipid.html
+func (client *Client) BindNumberAndVoipId(request *BindNumberAndVoipIdRequest) (response *BindNumberAndVoipIdResponse, err error) {
+	response = CreateBindNumberAndVoipIdResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// BindNumberAndVoipIdWithChan invokes the dyvmsapi.BindNumberAndVoipId API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/bindnumberandvoipid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BindNumberAndVoipIdWithChan(request *BindNumberAndVoipIdRequest) (<-chan *BindNumberAndVoipIdResponse, <-chan error) {
+	responseChan := make(chan *BindNumberAndVoipIdResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.BindNumberAndVoipId(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// BindNumberAndVoipIdWithCallback invokes the dyvmsapi.BindNumberAndVoipId API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/bindnumberandvoipid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) BindNumberAndVoipIdWithCallback(request *BindNumberAndVoipIdRequest, callback func(response *BindNumberAndVoipIdResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *BindNumberAndVoipIdResponse
+		var err error
+		defer close(result)
+		response, err = client.BindNumberAndVoipId(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// BindNumberAndVoipIdRequest is the request struct for api BindNumberAndVoipId
+type BindNumberAndVoipIdRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	PhoneNumber          string           `position:"Query" name:"PhoneNumber"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	VoipId               string           `position:"Query" name:"VoipId"`
+}
+
+// BindNumberAndVoipIdResponse is the response struct for api BindNumberAndVoipId
+type BindNumberAndVoipIdResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Module    string `json:"Module" xml:"Module"`
+	Message   string `json:"Message" xml:"Message"`
+}
+
+// CreateBindNumberAndVoipIdRequest creates a request to invoke BindNumberAndVoipId API
+func CreateBindNumberAndVoipIdRequest() (request *BindNumberAndVoipIdRequest) {
+	request = &BindNumberAndVoipIdRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "BindNumberAndVoipId", "", "")
+	return
+}
+
+// CreateBindNumberAndVoipIdResponse creates a response to parse from BindNumberAndVoipId response
+func CreateBindNumberAndVoipIdResponse() (response *BindNumberAndVoipIdResponse) {
+	response = &BindNumberAndVoipIdResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 3 - 3
services/dyvmsapi/cancel_call.go

@@ -76,10 +76,10 @@ func (client *Client) CancelCallWithCallback(request *CancelCallRequest, callbac
 // CancelCallRequest is the request struct for api CancelCall
 // CancelCallRequest is the request struct for api CancelCall
 type CancelCallRequest struct {
 type CancelCallRequest struct {
 	*requests.RpcRequest
 	*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"`
 	CallId               string           `position:"Query" name:"CallId"`
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 }
 }
 
 
 // CancelCallResponse is the response struct for api CancelCall
 // CancelCallResponse is the response struct for api CancelCall

+ 109 - 0
services/dyvmsapi/cancel_order_robot_task.go

@@ -0,0 +1,109 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// CancelOrderRobotTask invokes the dyvmsapi.CancelOrderRobotTask API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/cancelorderrobottask.html
+func (client *Client) CancelOrderRobotTask(request *CancelOrderRobotTaskRequest) (response *CancelOrderRobotTaskResponse, err error) {
+	response = CreateCancelOrderRobotTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CancelOrderRobotTaskWithChan invokes the dyvmsapi.CancelOrderRobotTask API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/cancelorderrobottask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CancelOrderRobotTaskWithChan(request *CancelOrderRobotTaskRequest) (<-chan *CancelOrderRobotTaskResponse, <-chan error) {
+	responseChan := make(chan *CancelOrderRobotTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CancelOrderRobotTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CancelOrderRobotTaskWithCallback invokes the dyvmsapi.CancelOrderRobotTask API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/cancelorderrobottask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CancelOrderRobotTaskWithCallback(request *CancelOrderRobotTaskRequest, callback func(response *CancelOrderRobotTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CancelOrderRobotTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.CancelOrderRobotTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CancelOrderRobotTaskRequest is the request struct for api CancelOrderRobotTask
+type CancelOrderRobotTaskRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	TaskId               requests.Integer `position:"Query" name:"TaskId"`
+}
+
+// CancelOrderRobotTaskResponse is the response struct for api CancelOrderRobotTask
+type CancelOrderRobotTaskResponse 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"`
+}
+
+// CreateCancelOrderRobotTaskRequest creates a request to invoke CancelOrderRobotTask API
+func CreateCancelOrderRobotTaskRequest() (request *CancelOrderRobotTaskRequest) {
+	request = &CancelOrderRobotTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "CancelOrderRobotTask", "", "")
+	return
+}
+
+// CreateCancelOrderRobotTaskResponse creates a response to parse from CancelOrderRobotTask response
+func CreateCancelOrderRobotTaskResponse() (response *CancelOrderRobotTaskResponse) {
+	response = &CancelOrderRobotTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/dyvmsapi/cancel_robot_task.go

@@ -0,0 +1,109 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// CancelRobotTask invokes the dyvmsapi.CancelRobotTask API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/cancelrobottask.html
+func (client *Client) CancelRobotTask(request *CancelRobotTaskRequest) (response *CancelRobotTaskResponse, err error) {
+	response = CreateCancelRobotTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CancelRobotTaskWithChan invokes the dyvmsapi.CancelRobotTask API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/cancelrobottask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CancelRobotTaskWithChan(request *CancelRobotTaskRequest) (<-chan *CancelRobotTaskResponse, <-chan error) {
+	responseChan := make(chan *CancelRobotTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CancelRobotTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CancelRobotTaskWithCallback invokes the dyvmsapi.CancelRobotTask API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/cancelrobottask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CancelRobotTaskWithCallback(request *CancelRobotTaskRequest, callback func(response *CancelRobotTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CancelRobotTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.CancelRobotTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CancelRobotTaskRequest is the request struct for api CancelRobotTask
+type CancelRobotTaskRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	TaskId               requests.Integer `position:"Query" name:"TaskId"`
+}
+
+// CancelRobotTaskResponse is the response struct for api CancelRobotTask
+type CancelRobotTaskResponse 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"`
+}
+
+// CreateCancelRobotTaskRequest creates a request to invoke CancelRobotTask API
+func CreateCancelRobotTaskRequest() (request *CancelRobotTaskRequest) {
+	request = &CancelRobotTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "CancelRobotTask", "", "")
+	return
+}
+
+// CreateCancelRobotTaskResponse creates a response to parse from CancelRobotTask response
+func CreateCancelRobotTaskResponse() (response *CancelRobotTaskResponse) {
+	response = &CancelRobotTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 7 - 7
services/dyvmsapi/click_to_dial.go

@@ -76,18 +76,18 @@ func (client *Client) ClickToDialWithCallback(request *ClickToDialRequest, callb
 // ClickToDialRequest is the request struct for api ClickToDial
 // ClickToDialRequest is the request struct for api ClickToDial
 type ClickToDialRequest struct {
 type ClickToDialRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	CallerShowNumber     string           `position:"Query" name:"CallerShowNumber"`
 	CallerShowNumber     string           `position:"Query" name:"CallerShowNumber"`
-	CallerNumber         string           `position:"Query" name:"CallerNumber"`
-	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
+	SessionTimeout       requests.Integer `position:"Query" name:"SessionTimeout"`
 	CalledNumber         string           `position:"Query" name:"CalledNumber"`
 	CalledNumber         string           `position:"Query" name:"CalledNumber"`
-	RecordFlag           requests.Boolean `position:"Query" name:"RecordFlag"`
+	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
 	AsrFlag              requests.Boolean `position:"Query" name:"AsrFlag"`
 	AsrFlag              requests.Boolean `position:"Query" name:"AsrFlag"`
-	SessionTimeout       requests.Integer `position:"Query" name:"SessionTimeout"`
-	AsrModelId           string           `position:"Query" name:"AsrModelId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	RecordFlag           requests.Boolean `position:"Query" name:"RecordFlag"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	OutId                string           `position:"Query" name:"OutId"`
 	OutId                string           `position:"Query" name:"OutId"`
+	AsrModelId           string           `position:"Query" name:"AsrModelId"`
+	CallerNumber         string           `position:"Query" name:"CallerNumber"`
 }
 }
 
 
 // ClickToDialResponse is the response struct for api ClickToDial
 // ClickToDialResponse is the response struct for api ClickToDial

+ 28 - 5
services/dyvmsapi/client.go

@@ -18,6 +18,7 @@ package dyvmsapi
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
 )
 )
 
 
 // Client is the sdk client struct, each func corresponds to an OpenAPI
 // Client is the sdk client struct, each func corresponds to an OpenAPI
@@ -32,6 +33,20 @@ func NewClient() (client *Client, err error) {
 	return
 	return
 }
 }
 
 
+// NewClientWithProvider creates a sdk client with providers
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) {
+	client = &Client{}
+	var pc provider.Provider
+	if len(providers) == 0 {
+		pc = provider.DefaultChain
+	} else {
+		pc = provider.NewProviderChain(providers)
+	}
+	err = client.InitWithProviderChain(regionId, pc)
+	return
+}
+
 // NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
 // NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
 // this is the common api to create a sdk client
 // this is the common api to create a sdk client
 func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
 func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
@@ -41,7 +56,7 @@ func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.C
 }
 }
 
 
 // NewClientWithAccessKey is a shortcut to create sdk client with accesskey
 // NewClientWithAccessKey is a shortcut to create sdk client with accesskey
-// usage: https://help.aliyun.com/document_detail/66217.html
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
 func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
 	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
@@ -49,7 +64,7 @@ func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (clie
 }
 }
 
 
 // NewClientWithStsToken is a shortcut to create sdk client with sts token
 // NewClientWithStsToken is a shortcut to create sdk client with sts token
-// usage: https://help.aliyun.com/document_detail/66222.html
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
 func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
 	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
@@ -57,15 +72,23 @@ func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToke
 }
 }
 
 
 // NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
 // NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
-// usage: https://help.aliyun.com/document_detail/66222.html
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
 func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
 	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
 	return
 	return
 }
 }
 
 
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	return
+}
+
 // NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
 // NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
-// usage: https://help.aliyun.com/document_detail/66223.html
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
 func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithEcsRamRole(regionId, roleName)
 	err = client.InitWithEcsRamRole(regionId, roleName)
@@ -73,7 +96,7 @@ func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client,
 }
 }
 
 
 // NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
 // NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
-// attention: rsa key pair auth is only Japan regions available
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
 func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
 	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)

+ 118 - 0
services/dyvmsapi/create_robot_task.go

@@ -0,0 +1,118 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// CreateRobotTask invokes the dyvmsapi.CreateRobotTask API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/createrobottask.html
+func (client *Client) CreateRobotTask(request *CreateRobotTaskRequest) (response *CreateRobotTaskResponse, err error) {
+	response = CreateCreateRobotTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateRobotTaskWithChan invokes the dyvmsapi.CreateRobotTask API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/createrobottask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateRobotTaskWithChan(request *CreateRobotTaskRequest) (<-chan *CreateRobotTaskResponse, <-chan error) {
+	responseChan := make(chan *CreateRobotTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateRobotTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateRobotTaskWithCallback invokes the dyvmsapi.CreateRobotTask API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/createrobottask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateRobotTaskWithCallback(request *CreateRobotTaskRequest, callback func(response *CreateRobotTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateRobotTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateRobotTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateRobotTaskRequest is the request struct for api CreateRobotTask
+type CreateRobotTaskRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	RecallStateCodes     string           `position:"Query" name:"RecallStateCodes"`
+	TaskName             string           `position:"Query" name:"TaskName"`
+	RecallTimes          requests.Integer `position:"Query" name:"RecallTimes"`
+	IsSelfLine           requests.Boolean `position:"Query" name:"IsSelfLine"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	RetryType            requests.Integer `position:"Query" name:"RetryType"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	DialogId             requests.Integer `position:"Query" name:"DialogId"`
+	Caller               string           `position:"Query" name:"Caller"`
+	NumberStatusIdent    requests.Boolean `position:"Query" name:"NumberStatusIdent"`
+	CorpName             string           `position:"Query" name:"CorpName"`
+	RecallInterval       requests.Integer `position:"Query" name:"RecallInterval"`
+}
+
+// CreateRobotTaskResponse is the response struct for api CreateRobotTask
+type CreateRobotTaskResponse 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"`
+}
+
+// CreateCreateRobotTaskRequest creates a request to invoke CreateRobotTask API
+func CreateCreateRobotTaskRequest() (request *CreateRobotTaskRequest) {
+	request = &CreateRobotTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "CreateRobotTask", "", "")
+	return
+}
+
+// CreateCreateRobotTaskResponse creates a response to parse from CreateRobotTask response
+func CreateCreateRobotTaskResponse() (response *CreateRobotTaskResponse) {
+	response = &CreateRobotTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/dyvmsapi/delete_robot_task.go

@@ -0,0 +1,109 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DeleteRobotTask invokes the dyvmsapi.DeleteRobotTask API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/deleterobottask.html
+func (client *Client) DeleteRobotTask(request *DeleteRobotTaskRequest) (response *DeleteRobotTaskResponse, err error) {
+	response = CreateDeleteRobotTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteRobotTaskWithChan invokes the dyvmsapi.DeleteRobotTask API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/deleterobottask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteRobotTaskWithChan(request *DeleteRobotTaskRequest) (<-chan *DeleteRobotTaskResponse, <-chan error) {
+	responseChan := make(chan *DeleteRobotTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteRobotTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteRobotTaskWithCallback invokes the dyvmsapi.DeleteRobotTask API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/deleterobottask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteRobotTaskWithCallback(request *DeleteRobotTaskRequest, callback func(response *DeleteRobotTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteRobotTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteRobotTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteRobotTaskRequest is the request struct for api DeleteRobotTask
+type DeleteRobotTaskRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	TaskId               requests.Integer `position:"Query" name:"TaskId"`
+}
+
+// DeleteRobotTaskResponse is the response struct for api DeleteRobotTask
+type DeleteRobotTaskResponse 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"`
+}
+
+// CreateDeleteRobotTaskRequest creates a request to invoke DeleteRobotTask API
+func CreateDeleteRobotTaskRequest() (request *DeleteRobotTaskRequest) {
+	request = &DeleteRobotTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "DeleteRobotTask", "", "")
+	return
+}
+
+// CreateDeleteRobotTaskResponse creates a response to parse from DeleteRobotTask response
+func CreateDeleteRobotTaskResponse() (response *DeleteRobotTaskResponse) {
+	response = &DeleteRobotTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/dyvmsapi/get_rtc_token.go

@@ -0,0 +1,111 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetRtcToken invokes the dyvmsapi.GetRtcToken API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/getrtctoken.html
+func (client *Client) GetRtcToken(request *GetRtcTokenRequest) (response *GetRtcTokenResponse, err error) {
+	response = CreateGetRtcTokenResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetRtcTokenWithChan invokes the dyvmsapi.GetRtcToken API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/getrtctoken.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetRtcTokenWithChan(request *GetRtcTokenRequest) (<-chan *GetRtcTokenResponse, <-chan error) {
+	responseChan := make(chan *GetRtcTokenResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetRtcToken(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetRtcTokenWithCallback invokes the dyvmsapi.GetRtcToken API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/getrtctoken.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetRtcTokenWithCallback(request *GetRtcTokenRequest, callback func(response *GetRtcTokenResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetRtcTokenResponse
+		var err error
+		defer close(result)
+		response, err = client.GetRtcToken(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetRtcTokenRequest is the request struct for api GetRtcToken
+type GetRtcTokenRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	UserId               string           `position:"Query" name:"UserId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	DeviceId             string           `position:"Query" name:"DeviceId"`
+	IsCustomAccount      requests.Boolean `position:"Query" name:"IsCustomAccount"`
+}
+
+// GetRtcTokenResponse is the response struct for api GetRtcToken
+type GetRtcTokenResponse 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"`
+}
+
+// CreateGetRtcTokenRequest creates a request to invoke GetRtcToken API
+func CreateGetRtcTokenRequest() (request *GetRtcTokenRequest) {
+	request = &GetRtcTokenRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "GetRtcToken", "", "")
+	return
+}
+
+// CreateGetRtcTokenResponse creates a response to parse from GetRtcToken response
+func CreateGetRtcTokenResponse() (response *GetRtcTokenResponse) {
+	response = &GetRtcTokenResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 9 - 9
services/dyvmsapi/ivr_call.go

@@ -76,26 +76,26 @@ func (client *Client) IvrCallWithCallback(request *IvrCallRequest, callback func
 // IvrCallRequest is the request struct for api IvrCall
 // IvrCallRequest is the request struct for api IvrCall
 type IvrCallRequest struct {
 type IvrCallRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	OwnerId              requests.Integer     `position:"Query" name:"OwnerId"`
-	ResourceOwnerAccount string               `position:"Query" name:"ResourceOwnerAccount"`
+	ByeCode              string               `position:"Query" name:"ByeCode"`
 	ResourceOwnerId      requests.Integer     `position:"Query" name:"ResourceOwnerId"`
 	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"`
 	StartTtsParams       string               `position:"Query" name:"StartTtsParams"`
+	Timeout              requests.Integer     `position:"Query" name:"Timeout"`
+	StartCode            string               `position:"Query" name:"StartCode"`
+	CalledNumber         string               `position:"Query" name:"CalledNumber"`
+	CalledShowNumber     string               `position:"Query" name:"CalledShowNumber"`
 	MenuKeyMap           *[]IvrCallMenuKeyMap `position:"Query" name:"MenuKeyMap"  type:"Repeated"`
 	MenuKeyMap           *[]IvrCallMenuKeyMap `position:"Query" name:"MenuKeyMap"  type:"Repeated"`
+	ResourceOwnerAccount string               `position:"Query" name:"ResourceOwnerAccount"`
 	PlayTimes            requests.Integer     `position:"Query" name:"PlayTimes"`
 	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"`
+	OwnerId              requests.Integer     `position:"Query" name:"OwnerId"`
 	OutId                string               `position:"Query" name:"OutId"`
 	OutId                string               `position:"Query" name:"OutId"`
+	ByeTtsParams         string               `position:"Query" name:"ByeTtsParams"`
 }
 }
 
 
 // IvrCallMenuKeyMap is a repeated param struct in IvrCallRequest
 // IvrCallMenuKeyMap is a repeated param struct in IvrCallRequest
 type IvrCallMenuKeyMap struct {
 type IvrCallMenuKeyMap struct {
-	Key       string `name:"Key"`
 	Code      string `name:"Code"`
 	Code      string `name:"Code"`
 	TtsParams string `name:"TtsParams"`
 	TtsParams string `name:"TtsParams"`
+	Key       string `name:"Key"`
 }
 }
 
 
 // IvrCallResponse is the response struct for api IvrCall
 // IvrCallResponse is the response struct for api IvrCall

+ 4 - 4
services/dyvmsapi/query_call_detail_by_call_id.go

@@ -76,12 +76,12 @@ func (client *Client) QueryCallDetailByCallIdWithCallback(request *QueryCallDeta
 // QueryCallDetailByCallIdRequest is the request struct for api QueryCallDetailByCallId
 // QueryCallDetailByCallIdRequest is the request struct for api QueryCallDetailByCallId
 type QueryCallDetailByCallIdRequest struct {
 type QueryCallDetailByCallIdRequest struct {
 	*requests.RpcRequest
 	*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"`
 	CallId               string           `position:"Query" name:"CallId"`
-	ProdId               requests.Integer `position:"Query" name:"ProdId"`
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	QueryDate            requests.Integer `position:"Query" name:"QueryDate"`
 	QueryDate            requests.Integer `position:"Query" name:"QueryDate"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	ProdId               requests.Integer `position:"Query" name:"ProdId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 }
 }
 
 
 // QueryCallDetailByCallIdResponse is the response struct for api QueryCallDetailByCallId
 // QueryCallDetailByCallIdResponse is the response struct for api QueryCallDetailByCallId

+ 111 - 0
services/dyvmsapi/query_call_detail_by_task_id.go

@@ -0,0 +1,111 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryCallDetailByTaskId invokes the dyvmsapi.QueryCallDetailByTaskId API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/querycalldetailbytaskid.html
+func (client *Client) QueryCallDetailByTaskId(request *QueryCallDetailByTaskIdRequest) (response *QueryCallDetailByTaskIdResponse, err error) {
+	response = CreateQueryCallDetailByTaskIdResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryCallDetailByTaskIdWithChan invokes the dyvmsapi.QueryCallDetailByTaskId API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/querycalldetailbytaskid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryCallDetailByTaskIdWithChan(request *QueryCallDetailByTaskIdRequest) (<-chan *QueryCallDetailByTaskIdResponse, <-chan error) {
+	responseChan := make(chan *QueryCallDetailByTaskIdResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryCallDetailByTaskId(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryCallDetailByTaskIdWithCallback invokes the dyvmsapi.QueryCallDetailByTaskId API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/querycalldetailbytaskid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryCallDetailByTaskIdWithCallback(request *QueryCallDetailByTaskIdRequest, callback func(response *QueryCallDetailByTaskIdResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryCallDetailByTaskIdResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryCallDetailByTaskId(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryCallDetailByTaskIdRequest is the request struct for api QueryCallDetailByTaskId
+type QueryCallDetailByTaskIdRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	Callee               string           `position:"Query" name:"Callee"`
+	TaskId               string           `position:"Query" name:"TaskId"`
+	QueryDate            requests.Integer `position:"Query" name:"QueryDate"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// QueryCallDetailByTaskIdResponse is the response struct for api QueryCallDetailByTaskId
+type QueryCallDetailByTaskIdResponse 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"`
+}
+
+// CreateQueryCallDetailByTaskIdRequest creates a request to invoke QueryCallDetailByTaskId API
+func CreateQueryCallDetailByTaskIdRequest() (request *QueryCallDetailByTaskIdRequest) {
+	request = &QueryCallDetailByTaskIdRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "QueryCallDetailByTaskId", "", "")
+	return
+}
+
+// CreateQueryCallDetailByTaskIdResponse creates a response to parse from QueryCallDetailByTaskId response
+func CreateQueryCallDetailByTaskIdResponse() (response *QueryCallDetailByTaskIdResponse) {
+	response = &QueryCallDetailByTaskIdResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/dyvmsapi/query_robot_info_list.go

@@ -0,0 +1,109 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryRobotInfoList invokes the dyvmsapi.QueryRobotInfoList API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobotinfolist.html
+func (client *Client) QueryRobotInfoList(request *QueryRobotInfoListRequest) (response *QueryRobotInfoListResponse, err error) {
+	response = CreateQueryRobotInfoListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryRobotInfoListWithChan invokes the dyvmsapi.QueryRobotInfoList API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobotinfolist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryRobotInfoListWithChan(request *QueryRobotInfoListRequest) (<-chan *QueryRobotInfoListResponse, <-chan error) {
+	responseChan := make(chan *QueryRobotInfoListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryRobotInfoList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryRobotInfoListWithCallback invokes the dyvmsapi.QueryRobotInfoList API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobotinfolist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryRobotInfoListWithCallback(request *QueryRobotInfoListRequest, callback func(response *QueryRobotInfoListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryRobotInfoListResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryRobotInfoList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryRobotInfoListRequest is the request struct for api QueryRobotInfoList
+type QueryRobotInfoListRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	AuditStatus          string           `position:"Query" name:"AuditStatus"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// QueryRobotInfoListResponse is the response struct for api QueryRobotInfoList
+type QueryRobotInfoListResponse 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"`
+}
+
+// CreateQueryRobotInfoListRequest creates a request to invoke QueryRobotInfoList API
+func CreateQueryRobotInfoListRequest() (request *QueryRobotInfoListRequest) {
+	request = &QueryRobotInfoListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "QueryRobotInfoList", "", "")
+	return
+}
+
+// CreateQueryRobotInfoListResponse creates a response to parse from QueryRobotInfoList response
+func CreateQueryRobotInfoListResponse() (response *QueryRobotInfoListResponse) {
+	response = &QueryRobotInfoListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/dyvmsapi/query_robot_task_call_detail.go

@@ -0,0 +1,111 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryRobotTaskCallDetail invokes the dyvmsapi.QueryRobotTaskCallDetail API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobottaskcalldetail.html
+func (client *Client) QueryRobotTaskCallDetail(request *QueryRobotTaskCallDetailRequest) (response *QueryRobotTaskCallDetailResponse, err error) {
+	response = CreateQueryRobotTaskCallDetailResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryRobotTaskCallDetailWithChan invokes the dyvmsapi.QueryRobotTaskCallDetail API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobottaskcalldetail.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryRobotTaskCallDetailWithChan(request *QueryRobotTaskCallDetailRequest) (<-chan *QueryRobotTaskCallDetailResponse, <-chan error) {
+	responseChan := make(chan *QueryRobotTaskCallDetailResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryRobotTaskCallDetail(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryRobotTaskCallDetailWithCallback invokes the dyvmsapi.QueryRobotTaskCallDetail API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobottaskcalldetail.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryRobotTaskCallDetailWithCallback(request *QueryRobotTaskCallDetailRequest, callback func(response *QueryRobotTaskCallDetailResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryRobotTaskCallDetailResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryRobotTaskCallDetail(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryRobotTaskCallDetailRequest is the request struct for api QueryRobotTaskCallDetail
+type QueryRobotTaskCallDetailRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	Callee               string           `position:"Query" name:"Callee"`
+	TaskId               requests.Integer `position:"Query" name:"TaskId"`
+	QueryDate            requests.Integer `position:"Query" name:"QueryDate"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// QueryRobotTaskCallDetailResponse is the response struct for api QueryRobotTaskCallDetail
+type QueryRobotTaskCallDetailResponse 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"`
+}
+
+// CreateQueryRobotTaskCallDetailRequest creates a request to invoke QueryRobotTaskCallDetail API
+func CreateQueryRobotTaskCallDetailRequest() (request *QueryRobotTaskCallDetailRequest) {
+	request = &QueryRobotTaskCallDetailRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "QueryRobotTaskCallDetail", "", "")
+	return
+}
+
+// CreateQueryRobotTaskCallDetailResponse creates a response to parse from QueryRobotTaskCallDetail response
+func CreateQueryRobotTaskCallDetailResponse() (response *QueryRobotTaskCallDetailResponse) {
+	response = &QueryRobotTaskCallDetailResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 118 - 0
services/dyvmsapi/query_robot_task_call_list.go

@@ -0,0 +1,118 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryRobotTaskCallList invokes the dyvmsapi.QueryRobotTaskCallList API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobottaskcalllist.html
+func (client *Client) QueryRobotTaskCallList(request *QueryRobotTaskCallListRequest) (response *QueryRobotTaskCallListResponse, err error) {
+	response = CreateQueryRobotTaskCallListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryRobotTaskCallListWithChan invokes the dyvmsapi.QueryRobotTaskCallList API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobottaskcalllist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryRobotTaskCallListWithChan(request *QueryRobotTaskCallListRequest) (<-chan *QueryRobotTaskCallListResponse, <-chan error) {
+	responseChan := make(chan *QueryRobotTaskCallListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryRobotTaskCallList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryRobotTaskCallListWithCallback invokes the dyvmsapi.QueryRobotTaskCallList API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobottaskcalllist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryRobotTaskCallListWithCallback(request *QueryRobotTaskCallListRequest, callback func(response *QueryRobotTaskCallListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryRobotTaskCallListResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryRobotTaskCallList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryRobotTaskCallListRequest is the request struct for api QueryRobotTaskCallList
+type QueryRobotTaskCallListRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	Called               string           `position:"Query" name:"Called"`
+	DialogCountTo        string           `position:"Query" name:"DialogCountTo"`
+	DurationFrom         string           `position:"Query" name:"DurationFrom"`
+	PageSize             requests.Integer `position:"Query" name:"PageSize"`
+	TaskId               string           `position:"Query" name:"TaskId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	DialogCountFrom      string           `position:"Query" name:"DialogCountFrom"`
+	DurationTo           string           `position:"Query" name:"DurationTo"`
+	HangupDirection      string           `position:"Query" name:"HangupDirection"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	PageNo               requests.Integer `position:"Query" name:"PageNo"`
+	CallResult           string           `position:"Query" name:"CallResult"`
+}
+
+// QueryRobotTaskCallListResponse is the response struct for api QueryRobotTaskCallList
+type QueryRobotTaskCallListResponse 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"`
+}
+
+// CreateQueryRobotTaskCallListRequest creates a request to invoke QueryRobotTaskCallList API
+func CreateQueryRobotTaskCallListRequest() (request *QueryRobotTaskCallListRequest) {
+	request = &QueryRobotTaskCallListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "QueryRobotTaskCallList", "", "")
+	return
+}
+
+// CreateQueryRobotTaskCallListResponse creates a response to parse from QueryRobotTaskCallList response
+func CreateQueryRobotTaskCallListResponse() (response *QueryRobotTaskCallListResponse) {
+	response = &QueryRobotTaskCallListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/dyvmsapi/query_robot_task_detail.go

@@ -0,0 +1,109 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryRobotTaskDetail invokes the dyvmsapi.QueryRobotTaskDetail API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobottaskdetail.html
+func (client *Client) QueryRobotTaskDetail(request *QueryRobotTaskDetailRequest) (response *QueryRobotTaskDetailResponse, err error) {
+	response = CreateQueryRobotTaskDetailResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryRobotTaskDetailWithChan invokes the dyvmsapi.QueryRobotTaskDetail API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobottaskdetail.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryRobotTaskDetailWithChan(request *QueryRobotTaskDetailRequest) (<-chan *QueryRobotTaskDetailResponse, <-chan error) {
+	responseChan := make(chan *QueryRobotTaskDetailResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryRobotTaskDetail(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryRobotTaskDetailWithCallback invokes the dyvmsapi.QueryRobotTaskDetail API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobottaskdetail.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryRobotTaskDetailWithCallback(request *QueryRobotTaskDetailRequest, callback func(response *QueryRobotTaskDetailResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryRobotTaskDetailResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryRobotTaskDetail(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryRobotTaskDetailRequest is the request struct for api QueryRobotTaskDetail
+type QueryRobotTaskDetailRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	Id                   requests.Integer `position:"Query" name:"Id"`
+}
+
+// QueryRobotTaskDetailResponse is the response struct for api QueryRobotTaskDetail
+type QueryRobotTaskDetailResponse 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"`
+}
+
+// CreateQueryRobotTaskDetailRequest creates a request to invoke QueryRobotTaskDetail API
+func CreateQueryRobotTaskDetailRequest() (request *QueryRobotTaskDetailRequest) {
+	request = &QueryRobotTaskDetailRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "QueryRobotTaskDetail", "", "")
+	return
+}
+
+// CreateQueryRobotTaskDetailResponse creates a response to parse from QueryRobotTaskDetail response
+func CreateQueryRobotTaskDetailResponse() (response *QueryRobotTaskDetailResponse) {
+	response = &QueryRobotTaskDetailResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 113 - 0
services/dyvmsapi/query_robot_task_list.go

@@ -0,0 +1,113 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryRobotTaskList invokes the dyvmsapi.QueryRobotTaskList API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobottasklist.html
+func (client *Client) QueryRobotTaskList(request *QueryRobotTaskListRequest) (response *QueryRobotTaskListResponse, err error) {
+	response = CreateQueryRobotTaskListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryRobotTaskListWithChan invokes the dyvmsapi.QueryRobotTaskList API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobottasklist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryRobotTaskListWithChan(request *QueryRobotTaskListRequest) (<-chan *QueryRobotTaskListResponse, <-chan error) {
+	responseChan := make(chan *QueryRobotTaskListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryRobotTaskList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryRobotTaskListWithCallback invokes the dyvmsapi.QueryRobotTaskList API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobottasklist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryRobotTaskListWithCallback(request *QueryRobotTaskListRequest, callback func(response *QueryRobotTaskListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryRobotTaskListResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryRobotTaskList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryRobotTaskListRequest is the request struct for api QueryRobotTaskList
+type QueryRobotTaskListRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	TaskName             string           `position:"Query" name:"TaskName"`
+	PageSize             requests.Integer `position:"Query" name:"PageSize"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	PageNo               requests.Integer `position:"Query" name:"PageNo"`
+	Time                 string           `position:"Query" name:"Time"`
+	Status               string           `position:"Query" name:"Status"`
+}
+
+// QueryRobotTaskListResponse is the response struct for api QueryRobotTaskList
+type QueryRobotTaskListResponse 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"`
+}
+
+// CreateQueryRobotTaskListRequest creates a request to invoke QueryRobotTaskList API
+func CreateQueryRobotTaskListRequest() (request *QueryRobotTaskListRequest) {
+	request = &QueryRobotTaskListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "QueryRobotTaskList", "", "")
+	return
+}
+
+// CreateQueryRobotTaskListResponse creates a response to parse from QueryRobotTaskList response
+func CreateQueryRobotTaskListResponse() (response *QueryRobotTaskListResponse) {
+	response = &QueryRobotTaskListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/dyvmsapi/query_robotv2_all_list.go

@@ -0,0 +1,108 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryRobotv2AllList invokes the dyvmsapi.QueryRobotv2AllList API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobotv2alllist.html
+func (client *Client) QueryRobotv2AllList(request *QueryRobotv2AllListRequest) (response *QueryRobotv2AllListResponse, err error) {
+	response = CreateQueryRobotv2AllListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryRobotv2AllListWithChan invokes the dyvmsapi.QueryRobotv2AllList API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobotv2alllist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryRobotv2AllListWithChan(request *QueryRobotv2AllListRequest) (<-chan *QueryRobotv2AllListResponse, <-chan error) {
+	responseChan := make(chan *QueryRobotv2AllListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryRobotv2AllList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryRobotv2AllListWithCallback invokes the dyvmsapi.QueryRobotv2AllList API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/queryrobotv2alllist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryRobotv2AllListWithCallback(request *QueryRobotv2AllListRequest, callback func(response *QueryRobotv2AllListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryRobotv2AllListResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryRobotv2AllList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryRobotv2AllListRequest is the request struct for api QueryRobotv2AllList
+type QueryRobotv2AllListRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// QueryRobotv2AllListResponse is the response struct for api QueryRobotv2AllList
+type QueryRobotv2AllListResponse 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"`
+}
+
+// CreateQueryRobotv2AllListRequest creates a request to invoke QueryRobotv2AllList API
+func CreateQueryRobotv2AllListRequest() (request *QueryRobotv2AllListRequest) {
+	request = &QueryRobotv2AllListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "QueryRobotv2AllList", "", "")
+	return
+}
+
+// CreateQueryRobotv2AllListResponse creates a response to parse from QueryRobotv2AllList response
+func CreateQueryRobotv2AllListResponse() (response *QueryRobotv2AllListResponse) {
+	response = &QueryRobotv2AllListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 5 - 5
services/dyvmsapi/single_call_by_tts.go

@@ -76,16 +76,16 @@ func (client *Client) SingleCallByTtsWithCallback(request *SingleCallByTtsReques
 // SingleCallByTtsRequest is the request struct for api SingleCallByTts
 // SingleCallByTtsRequest is the request struct for api SingleCallByTts
 type SingleCallByTtsRequest struct {
 type SingleCallByTtsRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
+	TtsParam             string           `position:"Query" name:"TtsParam"`
+	Speed                requests.Integer `position:"Query" name:"Speed"`
 	CalledNumber         string           `position:"Query" name:"CalledNumber"`
 	CalledNumber         string           `position:"Query" name:"CalledNumber"`
+	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	TtsCode              string           `position:"Query" name:"TtsCode"`
 	TtsCode              string           `position:"Query" name:"TtsCode"`
-	TtsParam             string           `position:"Query" name:"TtsParam"`
 	PlayTimes            requests.Integer `position:"Query" name:"PlayTimes"`
 	PlayTimes            requests.Integer `position:"Query" name:"PlayTimes"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	Volume               requests.Integer `position:"Query" name:"Volume"`
 	Volume               requests.Integer `position:"Query" name:"Volume"`
-	Speed                requests.Integer `position:"Query" name:"Speed"`
 	OutId                string           `position:"Query" name:"OutId"`
 	OutId                string           `position:"Query" name:"OutId"`
 }
 }
 
 

+ 4 - 4
services/dyvmsapi/single_call_by_voice.go

@@ -76,15 +76,15 @@ func (client *Client) SingleCallByVoiceWithCallback(request *SingleCallByVoiceRe
 // SingleCallByVoiceRequest is the request struct for api SingleCallByVoice
 // SingleCallByVoiceRequest is the request struct for api SingleCallByVoice
 type SingleCallByVoiceRequest struct {
 type SingleCallByVoiceRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
+	Speed                requests.Integer `position:"Query" name:"Speed"`
 	CalledNumber         string           `position:"Query" name:"CalledNumber"`
 	CalledNumber         string           `position:"Query" name:"CalledNumber"`
 	VoiceCode            string           `position:"Query" name:"VoiceCode"`
 	VoiceCode            string           `position:"Query" name:"VoiceCode"`
+	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	PlayTimes            requests.Integer `position:"Query" name:"PlayTimes"`
 	PlayTimes            requests.Integer `position:"Query" name:"PlayTimes"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	Volume               requests.Integer `position:"Query" name:"Volume"`
 	Volume               requests.Integer `position:"Query" name:"Volume"`
-	Speed                requests.Integer `position:"Query" name:"Speed"`
 	OutId                string           `position:"Query" name:"OutId"`
 	OutId                string           `position:"Query" name:"OutId"`
 }
 }
 
 

+ 17 - 8
services/dyvmsapi/smart_call.go

@@ -76,21 +76,30 @@ func (client *Client) SmartCallWithCallback(request *SmartCallRequest, callback
 // SmartCallRequest is the request struct for api SmartCall
 // SmartCallRequest is the request struct for api SmartCall
 type SmartCallRequest struct {
 type SmartCallRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
+	VoiceCodeParam       string           `position:"Query" name:"VoiceCodeParam"`
+	EarlyMediaAsr        requests.Boolean `position:"Query" name:"EarlyMediaAsr"`
+	Speed                requests.Integer `position:"Query" name:"Speed"`
+	AsrBaseId            string           `position:"Query" name:"AsrBaseId"`
+	SessionTimeout       requests.Integer `position:"Query" name:"SessionTimeout"`
+	DynamicId            string           `position:"Query" name:"DynamicId"`
 	CalledNumber         string           `position:"Query" name:"CalledNumber"`
 	CalledNumber         string           `position:"Query" name:"CalledNumber"`
+	TtsSpeed             requests.Integer `position:"Query" name:"TtsSpeed"`
 	VoiceCode            string           `position:"Query" name:"VoiceCode"`
 	VoiceCode            string           `position:"Query" name:"VoiceCode"`
+	CalledShowNumber     string           `position:"Query" name:"CalledShowNumber"`
+	ActionCodeTimeBreak  requests.Integer `position:"Query" name:"ActionCodeTimeBreak"`
+	TtsConf              requests.Boolean `position:"Query" name:"TtsConf"`
+	ActionCodeBreak      requests.Boolean `position:"Query" name:"ActionCodeBreak"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	RecordFlag           requests.Boolean `position:"Query" name:"RecordFlag"`
 	RecordFlag           requests.Boolean `position:"Query" name:"RecordFlag"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	TtsVolume            requests.Integer `position:"Query" name:"TtsVolume"`
 	Volume               requests.Integer `position:"Query" name:"Volume"`
 	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"`
 	MuteTime             requests.Integer `position:"Query" name:"MuteTime"`
-	ActionCodeBreak      requests.Boolean `position:"Query" name:"ActionCodeBreak"`
 	OutId                string           `position:"Query" name:"OutId"`
 	OutId                string           `position:"Query" name:"OutId"`
-	DynamicId            string           `position:"Query" name:"DynamicId"`
+	AsrModelId           string           `position:"Query" name:"AsrModelId"`
+	PauseTime            requests.Integer `position:"Query" name:"PauseTime"`
+	TtsStyle             string           `position:"Query" name:"TtsStyle"`
 }
 }
 
 
 // SmartCallResponse is the response struct for api SmartCall
 // SmartCallResponse is the response struct for api SmartCall

+ 111 - 0
services/dyvmsapi/smart_call_operate.go

@@ -0,0 +1,111 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// SmartCallOperate invokes the dyvmsapi.SmartCallOperate API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/smartcalloperate.html
+func (client *Client) SmartCallOperate(request *SmartCallOperateRequest) (response *SmartCallOperateResponse, err error) {
+	response = CreateSmartCallOperateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SmartCallOperateWithChan invokes the dyvmsapi.SmartCallOperate API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/smartcalloperate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SmartCallOperateWithChan(request *SmartCallOperateRequest) (<-chan *SmartCallOperateResponse, <-chan error) {
+	responseChan := make(chan *SmartCallOperateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SmartCallOperate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SmartCallOperateWithCallback invokes the dyvmsapi.SmartCallOperate API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/smartcalloperate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SmartCallOperateWithCallback(request *SmartCallOperateRequest, callback func(response *SmartCallOperateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SmartCallOperateResponse
+		var err error
+		defer close(result)
+		response, err = client.SmartCallOperate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SmartCallOperateRequest is the request struct for api SmartCallOperate
+type SmartCallOperateRequest struct {
+	*requests.RpcRequest
+	CallId               string           `position:"Query" name:"CallId"`
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	Param                string           `position:"Query" name:"Param"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	Command              string           `position:"Query" name:"Command"`
+}
+
+// SmartCallOperateResponse is the response struct for api SmartCallOperate
+type SmartCallOperateResponse 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"`
+}
+
+// CreateSmartCallOperateRequest creates a request to invoke SmartCallOperate API
+func CreateSmartCallOperateRequest() (request *SmartCallOperateRequest) {
+	request = &SmartCallOperateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "SmartCallOperate", "", "")
+	return
+}
+
+// CreateSmartCallOperateResponse creates a response to parse from SmartCallOperate response
+func CreateSmartCallOperateResponse() (response *SmartCallOperateResponse) {
+	response = &SmartCallOperateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/dyvmsapi/start_robot_task.go

@@ -0,0 +1,110 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// StartRobotTask invokes the dyvmsapi.StartRobotTask API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/startrobottask.html
+func (client *Client) StartRobotTask(request *StartRobotTaskRequest) (response *StartRobotTaskResponse, err error) {
+	response = CreateStartRobotTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// StartRobotTaskWithChan invokes the dyvmsapi.StartRobotTask API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/startrobottask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StartRobotTaskWithChan(request *StartRobotTaskRequest) (<-chan *StartRobotTaskResponse, <-chan error) {
+	responseChan := make(chan *StartRobotTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.StartRobotTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// StartRobotTaskWithCallback invokes the dyvmsapi.StartRobotTask API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/startrobottask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StartRobotTaskWithCallback(request *StartRobotTaskRequest, callback func(response *StartRobotTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *StartRobotTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.StartRobotTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// StartRobotTaskRequest is the request struct for api StartRobotTask
+type StartRobotTaskRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	ScheduleTime         string           `position:"Query" name:"ScheduleTime"`
+	TaskId               requests.Integer `position:"Query" name:"TaskId"`
+}
+
+// StartRobotTaskResponse is the response struct for api StartRobotTask
+type StartRobotTaskResponse 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"`
+}
+
+// CreateStartRobotTaskRequest creates a request to invoke StartRobotTask API
+func CreateStartRobotTaskRequest() (request *StartRobotTaskRequest) {
+	request = &StartRobotTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "StartRobotTask", "", "")
+	return
+}
+
+// CreateStartRobotTaskResponse creates a response to parse from StartRobotTask response
+func CreateStartRobotTaskResponse() (response *StartRobotTaskResponse) {
+	response = &StartRobotTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/dyvmsapi/stop_robot_task.go

@@ -0,0 +1,109 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// StopRobotTask invokes the dyvmsapi.StopRobotTask API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/stoprobottask.html
+func (client *Client) StopRobotTask(request *StopRobotTaskRequest) (response *StopRobotTaskResponse, err error) {
+	response = CreateStopRobotTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// StopRobotTaskWithChan invokes the dyvmsapi.StopRobotTask API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/stoprobottask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StopRobotTaskWithChan(request *StopRobotTaskRequest) (<-chan *StopRobotTaskResponse, <-chan error) {
+	responseChan := make(chan *StopRobotTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.StopRobotTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// StopRobotTaskWithCallback invokes the dyvmsapi.StopRobotTask API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/stoprobottask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StopRobotTaskWithCallback(request *StopRobotTaskRequest, callback func(response *StopRobotTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *StopRobotTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.StopRobotTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// StopRobotTaskRequest is the request struct for api StopRobotTask
+type StopRobotTaskRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	TaskId               requests.Integer `position:"Query" name:"TaskId"`
+}
+
+// StopRobotTaskResponse is the response struct for api StopRobotTask
+type StopRobotTaskResponse 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"`
+}
+
+// CreateStopRobotTaskRequest creates a request to invoke StopRobotTask API
+func CreateStopRobotTaskRequest() (request *StopRobotTaskRequest) {
+	request = &StopRobotTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "StopRobotTask", "", "")
+	return
+}
+
+// CreateStopRobotTaskResponse creates a response to parse from StopRobotTask response
+func CreateStopRobotTaskResponse() (response *StopRobotTaskResponse) {
+	response = &StopRobotTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/dyvmsapi/unbind_number_and_voip_id.go

@@ -0,0 +1,110 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// UnbindNumberAndVoipId invokes the dyvmsapi.UnbindNumberAndVoipId API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/unbindnumberandvoipid.html
+func (client *Client) UnbindNumberAndVoipId(request *UnbindNumberAndVoipIdRequest) (response *UnbindNumberAndVoipIdResponse, err error) {
+	response = CreateUnbindNumberAndVoipIdResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UnbindNumberAndVoipIdWithChan invokes the dyvmsapi.UnbindNumberAndVoipId API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/unbindnumberandvoipid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UnbindNumberAndVoipIdWithChan(request *UnbindNumberAndVoipIdRequest) (<-chan *UnbindNumberAndVoipIdResponse, <-chan error) {
+	responseChan := make(chan *UnbindNumberAndVoipIdResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UnbindNumberAndVoipId(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UnbindNumberAndVoipIdWithCallback invokes the dyvmsapi.UnbindNumberAndVoipId API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/unbindnumberandvoipid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UnbindNumberAndVoipIdWithCallback(request *UnbindNumberAndVoipIdRequest, callback func(response *UnbindNumberAndVoipIdResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UnbindNumberAndVoipIdResponse
+		var err error
+		defer close(result)
+		response, err = client.UnbindNumberAndVoipId(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UnbindNumberAndVoipIdRequest is the request struct for api UnbindNumberAndVoipId
+type UnbindNumberAndVoipIdRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	PhoneNumber          string           `position:"Query" name:"PhoneNumber"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	VoipId               string           `position:"Query" name:"VoipId"`
+}
+
+// UnbindNumberAndVoipIdResponse is the response struct for api UnbindNumberAndVoipId
+type UnbindNumberAndVoipIdResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Code      string `json:"Code" xml:"Code"`
+	Module    string `json:"Module" xml:"Module"`
+	Message   string `json:"Message" xml:"Message"`
+}
+
+// CreateUnbindNumberAndVoipIdRequest creates a request to invoke UnbindNumberAndVoipId API
+func CreateUnbindNumberAndVoipIdRequest() (request *UnbindNumberAndVoipIdRequest) {
+	request = &UnbindNumberAndVoipIdRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "UnbindNumberAndVoipId", "", "")
+	return
+}
+
+// CreateUnbindNumberAndVoipIdResponse creates a response to parse from UnbindNumberAndVoipId response
+func CreateUnbindNumberAndVoipIdResponse() (response *UnbindNumberAndVoipIdResponse) {
+	response = &UnbindNumberAndVoipIdResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 112 - 0
services/dyvmsapi/upload_robot_task_called_file.go

@@ -0,0 +1,112 @@
+package dyvmsapi
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// UploadRobotTaskCalledFile invokes the dyvmsapi.UploadRobotTaskCalledFile API synchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/uploadrobottaskcalledfile.html
+func (client *Client) UploadRobotTaskCalledFile(request *UploadRobotTaskCalledFileRequest) (response *UploadRobotTaskCalledFileResponse, err error) {
+	response = CreateUploadRobotTaskCalledFileResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UploadRobotTaskCalledFileWithChan invokes the dyvmsapi.UploadRobotTaskCalledFile API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/uploadrobottaskcalledfile.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UploadRobotTaskCalledFileWithChan(request *UploadRobotTaskCalledFileRequest) (<-chan *UploadRobotTaskCalledFileResponse, <-chan error) {
+	responseChan := make(chan *UploadRobotTaskCalledFileResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UploadRobotTaskCalledFile(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UploadRobotTaskCalledFileWithCallback invokes the dyvmsapi.UploadRobotTaskCalledFile API asynchronously
+// api document: https://help.aliyun.com/api/dyvmsapi/uploadrobottaskcalledfile.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UploadRobotTaskCalledFileWithCallback(request *UploadRobotTaskCalledFileRequest, callback func(response *UploadRobotTaskCalledFileResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UploadRobotTaskCalledFileResponse
+		var err error
+		defer close(result)
+		response, err = client.UploadRobotTaskCalledFile(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UploadRobotTaskCalledFileRequest is the request struct for api UploadRobotTaskCalledFile
+type UploadRobotTaskCalledFileRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	TtsParamHead         string           `position:"Query" name:"TtsParamHead"`
+	TtsParam             string           `position:"Query" name:"TtsParam"`
+	CalledNumber         string           `position:"Query" name:"CalledNumber"`
+	Id                   requests.Integer `position:"Query" name:"Id"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// UploadRobotTaskCalledFileResponse is the response struct for api UploadRobotTaskCalledFile
+type UploadRobotTaskCalledFileResponse 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"`
+}
+
+// CreateUploadRobotTaskCalledFileRequest creates a request to invoke UploadRobotTaskCalledFile API
+func CreateUploadRobotTaskCalledFileRequest() (request *UploadRobotTaskCalledFileRequest) {
+	request = &UploadRobotTaskCalledFileRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dyvmsapi", "2017-05-25", "UploadRobotTaskCalledFile", "", "")
+	return
+}
+
+// CreateUploadRobotTaskCalledFileResponse creates a response to parse from UploadRobotTaskCalledFile response
+func CreateUploadRobotTaskCalledFileResponse() (response *UploadRobotTaskCalledFileResponse) {
+	response = &UploadRobotTaskCalledFileResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 2
services/dyvmsapi/voip_add_account.go

@@ -76,9 +76,9 @@ func (client *Client) VoipAddAccountWithCallback(request *VoipAddAccountRequest,
 // VoipAddAccountRequest is the request struct for api VoipAddAccount
 // VoipAddAccountRequest is the request struct for api VoipAddAccount
 type VoipAddAccountRequest struct {
 type VoipAddAccountRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	DeviceId             string           `position:"Query" name:"DeviceId"`
 	DeviceId             string           `position:"Query" name:"DeviceId"`
 }
 }
 
 

+ 3 - 2
services/dyvmsapi/voip_get_token.go

@@ -76,11 +76,12 @@ func (client *Client) VoipGetTokenWithCallback(request *VoipGetTokenRequest, cal
 // VoipGetTokenRequest is the request struct for api VoipGetToken
 // VoipGetTokenRequest is the request struct for api VoipGetToken
 type VoipGetTokenRequest struct {
 type VoipGetTokenRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	VoipId               string           `position:"Query" name:"VoipId"`
 	VoipId               string           `position:"Query" name:"VoipId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	DeviceId             string           `position:"Query" name:"DeviceId"`
 	DeviceId             string           `position:"Query" name:"DeviceId"`
+	IsCustomAccount      requests.Boolean `position:"Query" name:"IsCustomAccount"`
 }
 }
 
 
 // VoipGetTokenResponse is the response struct for api VoipGetToken
 // VoipGetTokenResponse is the response struct for api VoipGetToken