TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscSalesLeadsQueryPageRequest req = new AlibabaAlscSalesLeadsQueryPageRequest();
AlibabaAlscSalesLeadsQueryPageRequest.TopLeadsSearchRequest obj1 = new AlibabaAlscSalesLeadsQueryPageRequest.TopLeadsSearchRequest();
obj1.setEndDate(StringUtils.parseDateTime("2019-10-01 23:00:00"));
obj1.setExtInfo("{}");
obj1.setPageNo(0L);
obj1.setPageSize(10L);
obj1.setStartDate(StringUtils.parseDateTime("2019-10-01 00:00:00"));
obj1.setTerritoryId("201910011412354");
req.setParamLeadsSearchRequest(obj1);
AlibabaAlscSalesLeadsQueryPageResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscSalesLeadsQueryPageRequest req = new AlibabaAlscSalesLeadsQueryPageRequest();
AlibabaAlscSalesLeadsQueryPageRequest.TopLeadsSearchRequestDomain obj1 = new AlibabaAlscSalesLeadsQueryPageRequest.TopLeadsSearchRequestDomain();
obj1.EndDate = DateTime.Parse(2019-10-01 23:00:00");
obj1.ExtInfo = "{}";
obj1.PageNo = 0L;
obj1.PageSize = 10L;
obj1.StartDate = DateTime.Parse(2019-10-01 00:00:00");
obj1.TerritoryId = "201910011412354";
req.ParamLeadsSearchRequest_ = obj1;
AlibabaAlscSalesLeadsQueryPageResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscSalesLeadsQueryPageRequest;
$param_leads_search_request = new TopLeadsSearchRequest;
$param_leads_search_request->end_date="2019-10-01 23:00:00";
$param_leads_search_request->ext_info="{}";
$param_leads_search_request->page_no="0";
$param_leads_search_request->page_size="10";
$param_leads_search_request->start_date="2019-10-01 00:00:00";
$param_leads_search_request->territory_id="201910011412354";
$req->setParamLeadsSearchRequest(json_encode($param_leads_search_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.alsc.sales.leads.query.page' \
-d 'partner_id=apidoc' \
-d 'sign=33EC4E02E109DF4281FBB9F8EED4684A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-19+15%3A26%3A05' \
-d 'v=2.0' \
-d 'param_leads_search_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscSalesLeadsQueryPageRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_leads_search_request=""
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.alsc.sales.leads.query.page");
add_param(pRequest,"param_leads_search_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.alsc.sales.leads.query.page', {
'param_leads_search_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})