TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSellerOrderListRequest req = new AlibabaSellerOrderListRequest();
AlibabaSellerOrderListRequest.TradeEcologyOrderListQuery obj1 = new AlibabaSellerOrderListRequest.TradeEcologyOrderListQuery();
obj1.setCreateDateFrom(StringUtils.parseDateTime("2018-10-30 00:00:00"));
obj1.setCreateDateTo(StringUtils.parseDateTime("2018-10-30 00:00:00"));
obj1.setOtherLoginId("ca1090886111");
obj1.setPageSize(10L);
obj1.setRole("seller");
obj1.setSalesManLoginId("cn1514584373mpdm");
obj1.setStartPage(0L);
obj1.setStatus("trade_success");
AlibabaSellerOrderListRequest.DateQuery obj2 = new AlibabaSellerOrderListRequest.DateQuery();
obj2.setDateStr("2018-10-30 00:00:00");
obj2.setTime(123456L);
obj1.setCreateDateStart(obj2);
AlibabaSellerOrderListRequest.DateQuery obj3 = new AlibabaSellerOrderListRequest.DateQuery();
obj3.setDateStr("2018-10-31 00:00:00");
obj3.setTime(123456L);
obj1.setCreateDateEnd(obj3);
AlibabaSellerOrderListRequest.DateQuery obj4 = new AlibabaSellerOrderListRequest.DateQuery();
obj4.setDateStr("2018-10-30 00:00:00");
obj4.setTime(123456L);
obj1.setModifiedDateStart(obj4);
AlibabaSellerOrderListRequest.DateQuery obj5 = new AlibabaSellerOrderListRequest.DateQuery();
obj5.setDateStr("2018-10-30 00:00:00");
obj5.setTime(123456L);
obj1.setModifiedDateEnd(obj5);
req.setParamTradeEcologyOrderListQuery(obj1);
AlibabaSellerOrderListResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaSellerOrderListRequest req = new AlibabaSellerOrderListRequest();
AlibabaSellerOrderListRequest.TradeEcologyOrderListQueryDomain obj1 = new AlibabaSellerOrderListRequest.TradeEcologyOrderListQueryDomain();
obj1.CreateDateFrom = DateTime.Parse(2018-10-30 00:00:00");
obj1.CreateDateTo = DateTime.Parse(2018-10-30 00:00:00");
obj1.OtherLoginId = "ca1090886111";
obj1.PageSize = 10L;
obj1.Role = "seller";
obj1.SalesManLoginId = "cn1514584373mpdm";
obj1.StartPage = 0L;
obj1.Status = "trade_success";
AlibabaSellerOrderListRequest.DateQueryDomain obj2 = new AlibabaSellerOrderListRequest.DateQueryDomain();
obj2.DateStr = "2018-10-30 00:00:00";
obj2.Time = 123456L;
obj1.CreateDateStart= obj2;
AlibabaSellerOrderListRequest.DateQueryDomain obj3 = new AlibabaSellerOrderListRequest.DateQueryDomain();
obj3.DateStr = "2018-10-31 00:00:00";
obj3.Time = 123456L;
obj1.CreateDateEnd= obj3;
AlibabaSellerOrderListRequest.DateQueryDomain obj4 = new AlibabaSellerOrderListRequest.DateQueryDomain();
obj4.DateStr = "2018-10-30 00:00:00";
obj4.Time = 123456L;
obj1.ModifiedDateStart= obj4;
AlibabaSellerOrderListRequest.DateQueryDomain obj5 = new AlibabaSellerOrderListRequest.DateQueryDomain();
obj5.DateStr = "2018-10-30 00:00:00";
obj5.Time = 123456L;
obj1.ModifiedDateEnd= obj5;
req.ParamTradeEcologyOrderListQuery_ = obj1;
AlibabaSellerOrderListResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaSellerOrderListRequest;
$param_trade_ecology_order_list_query = new TradeEcologyOrderListQuery;
$param_trade_ecology_order_list_query->create_date_from="2018-10-30 00:00:00";
$param_trade_ecology_order_list_query->create_date_to="2018-10-30 00:00:00";
$param_trade_ecology_order_list_query->other_login_id="ca1090886111";
$param_trade_ecology_order_list_query->page_size="10";
$param_trade_ecology_order_list_query->role="seller";
$param_trade_ecology_order_list_query->sales_man_login_id="cn1514584373mpdm";
$param_trade_ecology_order_list_query->start_page="0";
$param_trade_ecology_order_list_query->status="trade_success";
$create_date_start = new DateQuery;
$create_date_start->date_str="2018-10-30 00:00:00";
$create_date_start->time="123456";
$param_trade_ecology_order_list_query->create_date_start = $create_date_start;
$create_date_end = new DateQuery;
$create_date_end->date_str="2018-10-31 00:00:00";
$create_date_end->time="123456";
$param_trade_ecology_order_list_query->create_date_end = $create_date_end;
$modified_date_start = new DateQuery;
$modified_date_start->date_str="2018-10-30 00:00:00";
$modified_date_start->time="123456";
$param_trade_ecology_order_list_query->modified_date_start = $modified_date_start;
$modified_date_end = new DateQuery;
$modified_date_end->date_str="2018-10-30 00:00:00";
$modified_date_end->time="123456";
$param_trade_ecology_order_list_query->modified_date_end = $modified_date_end;
$req->setParamTradeEcologyOrderListQuery(json_encode($param_trade_ecology_order_list_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.seller.order.list' \
-d 'partner_id=apidoc' \
-d 'session=599165fc-9d10-4347-9572-62c458535f92' \
-d 'sign=FEA3A45E467C677BA836EF3DA63E5BB7' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-22+04%3A23%3A56' \
-d 'v=2.0' \
-d 'param_trade_ecology_order_list_query=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaSellerOrderListRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_trade_ecology_order_list_query=""
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.seller.order.list");
add_param(pRequest,"param_trade_ecology_order_list_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.seller.order.list', {
'param_trade_ecology_order_list_query':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})