TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallLuxuryStageItemQueryRequest req = new TmallLuxuryStageItemQueryRequest();
req.setModifyDateEnd(StringUtils.parseDateTime("2021-12-31 12:33:33"));
req.setItemIds(L);
req.setOuterIds("123,234");
req.setTitle("戒指");
req.setItemId(123456L);
req.setModifyDateBegin(StringUtils.parseDateTime("2021-12-30 12:33:33"));
req.setOuterId("52340");
TmallLuxuryStageItemQueryRequest.PageDTO obj1 = new TmallLuxuryStageItemQueryRequest.PageDTO();
obj1.setPageSize(20L);
obj1.setCurrentPage(1L);
req.setPage(obj1);
req.setStatus("normal");
req.setIsPresale(1L);
TmallLuxuryStageItemQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallLuxuryStageItemQueryRequest req = new TmallLuxuryStageItemQueryRequest();
req.ModifyDateEnd = DateTime.Parse("2021-12-31 12:33:33");
req.ItemIds = L;
req.OuterIds = "123,234";
req.Title = "戒指";
req.ItemId = 123456L;
req.ModifyDateBegin = DateTime.Parse("2021-12-30 12:33:33");
req.OuterId = "52340";
TmallLuxuryStageItemQueryRequest.PageDTODomain obj1 = new TmallLuxuryStageItemQueryRequest.PageDTODomain();
obj1.PageSize = 20L;
obj1.CurrentPage = 1L;
req.Page_ = obj1;
req.Status = "normal";
req.IsPresale = 1L;
TmallLuxuryStageItemQueryResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallLuxuryStageItemQueryRequest;
$req->setModifyDateEnd("2021-12-31 12:33:33");
$req->setItemIds("");
$req->setOuterIds("123,234");
$req->setTitle("戒指");
$req->setItemId("123456");
$req->setModifyDateBegin("2021-12-30 12:33:33");
$req->setOuterId("52340");
$page = new PageDTO;
$page->page_size="20";
$page->current_page="1";
$req->setPage(json_encode($page));
$req->setStatus("normal");
$req->setIsPresale("1");
$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.luxury.stage.item.query' \
-d 'partner_id=apidoc' \
-d 'session=ed90e8c3-d18e-4e3a-927b-ac9dc103ed2d' \
-d 'sign=32329E09084DECCF1D5385AF4D75CE01' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-28+02%3A24%3A32' \
-d 'v=2.0' \
-d 'is_presale=1' \
-d 'item_id=123456' \
-d 'item_ids=null' \
-d 'modify_date_begin=2021-12-30+12%3A33%3A33' \
-d 'modify_date_end=2021-12-31+12%3A33%3A33' \
-d 'outer_id=52340' \
-d 'outer_ids=123%2C234' \
-d 'page=null' \
-d 'status=normal' \
-d 'title=%E6%88%92%E6%8C%87'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallLuxuryStageItemQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.modify_date_end="2021-12-31 12:33:33"
req.item_ids="数据结构示例JSON格式"
req.outer_ids="123,234"
req.title="戒指"
req.item_id=123456
req.modify_date_begin="2021-12-30 12:33:33"
req.outer_id="52340"
req.page="数据结构示例JSON格式"
req.status="normal"
req.is_presale=1
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.luxury.stage.item.query");
add_param(pRequest,"modify_date_end","2021-12-31 12:33:33");
add_param(pRequest,"item_ids","");
add_param(pRequest,"outer_ids","123,234");
add_param(pRequest,"title","戒指");
add_param(pRequest,"item_id","123456");
add_param(pRequest,"modify_date_begin","2021-12-30 12:33:33");
add_param(pRequest,"outer_id","52340");
add_param(pRequest,"page","数据结构JSON示例");
add_param(pRequest,"status","normal");
add_param(pRequest,"is_presale","1");
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.luxury.stage.item.query', {
'modify_date_end':'2021-12-31 12:33:33',
'item_ids':'',
'outer_ids':'123,234',
'title':'戒指',
'item_id':'123456',
'modify_date_begin':'2021-12-30 12:33:33',
'outer_id':'52340',
'page':'数据结构JSON示例',
'status':'normal',
'is_presale':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})