TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaLyservicePremiumCorpContactsRequest req = new AlibabaLyservicePremiumCorpContactsRequest();
AlibabaLyservicePremiumCorpContactsRequest.OpenPremiumCorpContactsQueryRequest obj1 = new AlibabaLyservicePremiumCorpContactsRequest.OpenPremiumCorpContactsQueryRequest();
obj1.setCorpId("dingd0cf6e1417544046ee0f45d8e4f7c288");
obj1.setTenantId(123L);
req.setOpenPremiumCorpContactsQueryRequest(obj1);
AlibabaLyservicePremiumCorpContactsResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaLyservicePremiumCorpContactsRequest req = new AlibabaLyservicePremiumCorpContactsRequest();
AlibabaLyservicePremiumCorpContactsRequest.OpenPremiumCorpContactsQueryRequestDomain obj1 = new AlibabaLyservicePremiumCorpContactsRequest.OpenPremiumCorpContactsQueryRequestDomain();
obj1.CorpId = "dingd0cf6e1417544046ee0f45d8e4f7c288";
obj1.TenantId = 123L;
req.OpenPremiumCorpContactsQueryRequest_ = obj1;
AlibabaLyservicePremiumCorpContactsResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaLyservicePremiumCorpContactsRequest;
$open_premium_corp_contacts_query_request = new OpenPremiumCorpContactsQueryRequest;
$open_premium_corp_contacts_query_request->corp_id="dingd0cf6e1417544046ee0f45d8e4f7c288";
$open_premium_corp_contacts_query_request->tenant_id="123";
$req->setOpenPremiumCorpContactsQueryRequest(json_encode($open_premium_corp_contacts_query_request));
$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.lyservice.premium.corp.contacts' \
-d 'partner_id=apidoc' \
-d 'sign=DDBBD77C25482A098A47FCB3CCC99743' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+16%3A06%3A29' \
-d 'v=2.0' \
-d 'open_premium_corp_contacts_query_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaLyservicePremiumCorpContactsRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.open_premium_corp_contacts_query_request="数据结构示例JSON格式"
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.lyservice.premium.corp.contacts");
add_param(pRequest,"open_premium_corp_contacts_query_request","数据结构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.lyservice.premium.corp.contacts', {
'open_premium_corp_contacts_query_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})