TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AuctionZcItemlistPagequeryRequest req = new AuctionZcItemlistPagequeryRequest();
req.setProxyNick("xxx机构");
req.setPage(1L);
req.setPageSize(40L);
req.setMiniStartTimeStr("2020-09-23 10:00:00");
req.setMaxStartTimeStr("2020-09-24 10:00:00");
req.setMiniEndTimeStr("2020-09-28 10:00:00");
req.setMaxEndTimeStr("2020-09-29 10:00:00");
req.setLocationCode(330101L);
req.setCatId(51231234L);
req.setQueryChild(true);
AuctionZcItemlistPagequeryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AuctionZcItemlistPagequeryRequest req = new AuctionZcItemlistPagequeryRequest();
req.ProxyNick = "xxx机构";
req.Page = 1L;
req.PageSize = 40L;
req.MiniStartTimeStr = "2020-09-23 10:00:00";
req.MaxStartTimeStr = "2020-09-24 10:00:00";
req.MiniEndTimeStr = "2020-09-28 10:00:00";
req.MaxEndTimeStr = "2020-09-29 10:00:00";
req.LocationCode = 330101L;
req.CatId = 51231234L;
req.QueryChild = true;
AuctionZcItemlistPagequeryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AuctionZcItemlistPagequeryRequest;
$req->setProxyNick("xxx机构");
$req->setPage("1");
$req->setPageSize("40");
$req->setMiniStartTimeStr("2020-09-23 10:00:00");
$req->setMaxStartTimeStr("2020-09-24 10:00:00");
$req->setMiniEndTimeStr("2020-09-28 10:00:00");
$req->setMaxEndTimeStr("2020-09-29 10:00:00");
$req->setLocationCode("330101");
$req->setCatId("51231234");
$req->setQueryChild("true");
$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.auction.zc.itemlist.pagequery' \
-d 'partner_id=apidoc' \
-d 'sign=AACFEFAE584F53BBC23CE572FA2A756B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-03+23%3A42%3A33' \
-d 'v=2.0' \
-d 'cat_id=51231234' \
-d 'location_code=330101' \
-d 'max_end_time_str=2020-09-29+10%3A00%3A00' \
-d 'max_start_time_str=2020-09-24+10%3A00%3A00' \
-d 'mini_end_time_str=2020-09-28+10%3A00%3A00' \
-d 'mini_start_time_str=2020-09-23+10%3A00%3A00' \
-d 'page=1' \
-d 'page_size=40' \
-d 'proxy_nick=xxx%E6%9C%BA%E6%9E%84' \
-d 'query_child=true'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AuctionZcItemlistPagequeryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.proxy_nick="xxx机构"
req.page=1
req.page_size=40
req.mini_start_time_str="2020-09-23 10:00:00"
req.max_start_time_str="2020-09-24 10:00:00"
req.mini_end_time_str="2020-09-28 10:00:00"
req.max_end_time_str="2020-09-29 10:00:00"
req.location_code=330101
req.cat_id=51231234
req.query_child=true
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.auction.zc.itemlist.pagequery");
add_param(pRequest,"proxy_nick","xxx机构");
add_param(pRequest,"page","1");
add_param(pRequest,"page_size","40");
add_param(pRequest,"mini_start_time_str","2020-09-23 10:00:00");
add_param(pRequest,"max_start_time_str","2020-09-24 10:00:00");
add_param(pRequest,"mini_end_time_str","2020-09-28 10:00:00");
add_param(pRequest,"max_end_time_str","2020-09-29 10:00:00");
add_param(pRequest,"location_code","330101");
add_param(pRequest,"cat_id","51231234");
add_param(pRequest,"query_child","true");
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.auction.zc.itemlist.pagequery', {
'proxy_nick':'xxx机构',
'page':'1',
'page_size':'40',
'mini_start_time_str':'2020-09-23 10:00:00',
'max_start_time_str':'2020-09-24 10:00:00',
'mini_end_time_str':'2020-09-28 10:00:00',
'max_end_time_str':'2020-09-29 10:00:00',
'location_code':'330101',
'cat_id':'51231234',
'query_child':'true'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})