TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlicomTradeAdvertiseinfoGetRequest req = new AlibabaAlicomTradeAdvertiseinfoGetRequest();
AlibabaAlicomTradeAdvertiseinfoGetRequest.AdvertiseInfoQuery obj1 = new AlibabaAlicomTradeAdvertiseinfoGetRequest.AdvertiseInfoQuery();
obj1.setOrderId(3452653692770630453L);
obj1.setOpenId("AAHzVKOdAOIduo9TH9oeO6D6");
req.setAdvertiseInfoQuery(obj1);
AlibabaAlicomTradeAdvertiseinfoGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlicomTradeAdvertiseinfoGetRequest req = new AlibabaAlicomTradeAdvertiseinfoGetRequest();
AlibabaAlicomTradeAdvertiseinfoGetRequest.AdvertiseInfoQueryDomain obj1 = new AlibabaAlicomTradeAdvertiseinfoGetRequest.AdvertiseInfoQueryDomain();
obj1.OrderId = 3452653692770630453L;
obj1.OpenId = "AAHzVKOdAOIduo9TH9oeO6D6";
req.AdvertiseInfoQuery_ = obj1;
AlibabaAlicomTradeAdvertiseinfoGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlicomTradeAdvertiseinfoGetRequest;
$advertise_info_query = new AdvertiseInfoQuery;
$advertise_info_query->order_id="3452653692770630453";
$advertise_info_query->open_id="AAHzVKOdAOIduo9TH9oeO6D6";
$req->setAdvertiseInfoQuery(json_encode($advertise_info_query));
$resp = $c->execute($req, $sessionKey);
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.alicom.trade.advertiseinfo.get' \
-d 'partner_id=apidoc' \
-d 'session=27b6b897-91c8-4462-9cf4-070cd9c2de4f' \
-d 'sign=723A3336E22464EEB9B99C3CED53FB21' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-03-05+10%3A16%3A47' \
-d 'v=2.0' \
-d 'advertise_info_query=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlicomTradeAdvertiseinfoGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.advertise_info_query="数据结构示例JSON格式"
try:
resp= req.getResponse(sessionkey)
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.alicom.trade.advertiseinfo.get");
add_param(pRequest,"advertise_info_query","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,sessionKey);
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.alicom.trade.advertiseinfo.get', {
'advertise_info_query':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})