TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAliautoLeadInfoGetRequest req = new TmallAliautoLeadInfoGetRequest();
TmallAliautoLeadInfoGetRequest.LeadTopQuery obj1 = new TmallAliautoLeadInfoGetRequest.LeadTopQuery();
obj1.setOrderId(4277659395456225432L);
req.setLeadTopQuery(obj1);
TmallAliautoLeadInfoGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallAliautoLeadInfoGetRequest req = new TmallAliautoLeadInfoGetRequest();
TmallAliautoLeadInfoGetRequest.LeadTopQueryDomain obj1 = new TmallAliautoLeadInfoGetRequest.LeadTopQueryDomain();
obj1.OrderId = 4277659395456225432L;
req.LeadTopQuery_ = obj1;
TmallAliautoLeadInfoGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallAliautoLeadInfoGetRequest;
$lead_top_query = new LeadTopQuery;
$lead_top_query->order_id="4277659395456225432";
$req->setLeadTopQuery(json_encode($lead_top_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=tmall.aliauto.lead.info.get' \
-d 'partner_id=apidoc' \
-d 'session=2eb2677a-cb2a-4cb9-b1e7-8f803edea75c' \
-d 'sign=994F486560B0B6685C6ED85C241277A9' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-29+04%3A31%3A55' \
-d 'v=2.0' \
-d 'lead_top_query=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallAliautoLeadInfoGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.lead_top_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,"tmall.aliauto.lead.info.get");
add_param(pRequest,"lead_top_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('tmall.aliauto.lead.info.get', {
'lead_top_query':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})