TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaLvmsLvrImportcallcustomerRequest req = new AlibabaLvmsLvrImportcallcustomerRequest();
req.setRpcContextString("{}");
AlibabaLvmsLvrImportcallcustomerRequest.IvrImportCustomerDto obj1 = new AlibabaLvmsLvrImportcallcustomerRequest.IvrImportCustomerDto();
obj1.setRobotCallJobId(3L);
List<AlibabaLvmsLvrImportcallcustomerRequest.CallCustomerDto> list3 = new ArrayList<AlibabaLvmsLvrImportcallcustomerRequest.CallCustomerDto>();
AlibabaLvmsLvrImportcallcustomerRequest.CallCustomerDto obj4 = new AlibabaLvmsLvrImportcallcustomerRequest.CallCustomerDto();
list3.add(obj4);
obj4.setSerialNumber("xxxxx");
obj4.setName("xxxxx");
obj4.setPhoneNumber("xxxxx");
obj4.setAlternatePhoneNumbers("xxxxx");
obj4.setProperties("");
obj1.setCustomerDTOList(list3);
req.setIvrImportCustomerDTO(obj1);
AlibabaLvmsLvrImportcallcustomerResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaLvmsLvrImportcallcustomerRequest req = new AlibabaLvmsLvrImportcallcustomerRequest();
req.RpcContext = "{}";
AlibabaLvmsLvrImportcallcustomerRequest.IvrImportCustomerDtoDomain obj1 = new AlibabaLvmsLvrImportcallcustomerRequest.IvrImportCustomerDtoDomain();
obj1.RobotCallJobId = 3L;
List<AlibabaLvmsLvrImportcallcustomerRequest.CallCustomerDtoDomain> list3 = new List<AlibabaLvmsLvrImportcallcustomerRequest.CallCustomerDtoDomain>();
AlibabaLvmsLvrImportcallcustomerRequest.CallCustomerDtoDomain obj4 = new AlibabaLvmsLvrImportcallcustomerRequest.CallCustomerDtoDomain();
list3.Add(obj4);
obj4.SerialNumber = "xxxxx";
obj4.Name = "xxxxx";
obj4.PhoneNumber = "xxxxx";
obj4.AlternatePhoneNumbers = "xxxxx";
obj4.Properties = "";
obj1.CustomerDTOList= list3;
req.IvrImportCustomerDTO_ = obj1;
AlibabaLvmsLvrImportcallcustomerResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaLvmsLvrImportcallcustomerRequest;
$req->setRpcContext("{}");
$ivr_import_customer_d_t_o = new IvrImportCustomerDto;
$ivr_import_customer_d_t_o->robot_call_job_id="3";
$customer_d_t_o_list = new CallCustomerDto;
$customer_d_t_o_list->serial_number="xxxxx";
$customer_d_t_o_list->name="xxxxx";
$customer_d_t_o_list->phone_number="xxxxx";
$customer_d_t_o_list->alternate_phone_numbers="xxxxx";
$customer_d_t_o_list->properties="";
$ivr_import_customer_d_t_o->customer_d_t_o_list = $customer_d_t_o_list;
$req->setIvrImportCustomerDTO(json_encode($ivr_import_customer_d_t_o));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alibaba.lvms.lvr.importcallcustomer' \
-d 'partner_id=apidoc' \
-d 'sign=3A9B4B64447E9A71CB7E14948BB0BC16' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-14+18%3A45%3A30' \
-d 'v=2.0' \
-d 'ivr_import_customer_d_t_o=null' \
-d 'rpc_context=%7B%7D'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaLvmsLvrImportcallcustomerRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.rpc_context="{}"
req.ivr_import_customer_d_t_o=""
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alibaba.lvms.lvr.importcallcustomer");
add_param(pRequest,"rpc_context","{}");
add_param(pRequest,"ivr_import_customer_d_t_o","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.lvms.lvr.importcallcustomer', {
'rpc_context':'{}',
'ivr_import_customer_d_t_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})