TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AilabAicloudCallContactOpenContactInfoListQueryRequest req = new AilabAicloudCallContactOpenContactInfoListQueryRequest();
req.setServiceName("test_china_unicom_voip_call");
req.setOwnerExtUserId("01MLnDVSANVwCRaIMp2cfryQ");
req.setOwnerProductKey("b1ZLOhA9rF7");
req.setOwnerDeviceName("00-16-EA-AE-3C-40");
AilabAicloudCallContactOpenContactInfoListQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AilabAicloudCallContactOpenContactInfoListQueryRequest req = new AilabAicloudCallContactOpenContactInfoListQueryRequest();
req.ServiceName = "test_china_unicom_voip_call";
req.OwnerExtUserId = "01MLnDVSANVwCRaIMp2cfryQ";
req.OwnerProductKey = "b1ZLOhA9rF7";
req.OwnerDeviceName = "00-16-EA-AE-3C-40";
AilabAicloudCallContactOpenContactInfoListQueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AilabAicloudCallContactOpenContactInfoListQueryRequest;
$req->setServiceName("test_china_unicom_voip_call");
$req->setOwnerExtUserId("01MLnDVSANVwCRaIMp2cfryQ");
$req->setOwnerProductKey("b1ZLOhA9rF7");
$req->setOwnerDeviceName("00-16-EA-AE-3C-40");
$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=taobao.ailab.aicloud.call.contact.open.contact.info.list.query' \
-d 'partner_id=apidoc' \
-d 'sign=07BBCE1871E3CBDA9C8DF3F01786BC8D' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-19+17%3A58%3A42' \
-d 'v=2.0' \
-d 'owner_device_name=00-16-EA-AE-3C-40' \
-d 'owner_ext_user_id=01MLnDVSANVwCRaIMp2cfryQ' \
-d 'owner_product_key=b1ZLOhA9rF7' \
-d 'service_name=test_china_unicom_voip_call'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AilabAicloudCallContactOpenContactInfoListQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.service_name="test_china_unicom_voip_call"
req.owner_ext_user_id="01MLnDVSANVwCRaIMp2cfryQ"
req.owner_product_key="b1ZLOhA9rF7"
req.owner_device_name="00-16-EA-AE-3C-40"
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,"taobao.ailab.aicloud.call.contact.open.contact.info.list.query");
add_param(pRequest,"service_name","test_china_unicom_voip_call");
add_param(pRequest,"owner_ext_user_id","01MLnDVSANVwCRaIMp2cfryQ");
add_param(pRequest,"owner_product_key","b1ZLOhA9rF7");
add_param(pRequest,"owner_device_name","00-16-EA-AE-3C-40");
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('taobao.ailab.aicloud.call.contact.open.contact.info.list.query', {
'service_name':'test_china_unicom_voip_call',
'owner_ext_user_id':'01MLnDVSANVwCRaIMp2cfryQ',
'owner_product_key':'b1ZLOhA9rF7',
'owner_device_name':'00-16-EA-AE-3C-40'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})