TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
JdsTradesStatisticsDiffRequest req = new JdsTradesStatisticsDiffRequest();
req.setDate(20140303L);
req.setPageNo(1L);
req.setPostStatus("T_WAIT_SELLER_SEND_GOODS");
req.setPreStatus("T_WAIT_BUYER_PAY");
JdsTradesStatisticsDiffResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
JdsTradesStatisticsDiffRequest req = new JdsTradesStatisticsDiffRequest();
req.Date = 20140303L;
req.PageNo = 1L;
req.PostStatus = "T_WAIT_SELLER_SEND_GOODS";
req.PreStatus = "T_WAIT_BUYER_PAY";
JdsTradesStatisticsDiffResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new JdsTradesStatisticsDiffRequest;
$req->setDate("20140303");
$req->setPageNo("1");
$req->setPostStatus("T_WAIT_SELLER_SEND_GOODS");
$req->setPreStatus("T_WAIT_BUYER_PAY");
$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=taobao.jds.trades.statistics.diff' \
-d 'partner_id=apidoc' \
-d 'session=08810db5-58a1-4561-9214-566f74505a4c' \
-d 'sign=744157F4CA2515013B3B7A9CA11757E2' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-12+08%3A36%3A12' \
-d 'v=2.0' \
-d 'date=20140303' \
-d 'page_no=1' \
-d 'post_status=T_WAIT_SELLER_SEND_GOODS' \
-d 'pre_status=T_WAIT_BUYER_PAY'
# -*- coding: utf-8 -*-
import top.api
req=top.api.JdsTradesStatisticsDiffRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.date=20140303
req.page_no=1
req.post_status="T_WAIT_SELLER_SEND_GOODS"
req.pre_status="T_WAIT_BUYER_PAY"
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,"taobao.jds.trades.statistics.diff");
add_param(pRequest,"date","20140303");
add_param(pRequest,"page_no","1");
add_param(pRequest,"post_status","T_WAIT_SELLER_SEND_GOODS");
add_param(pRequest,"pre_status","T_WAIT_BUYER_PAY");
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('taobao.jds.trades.statistics.diff', {
'date':'20140303',
'page_no':'1',
'post_status':'T_WAIT_SELLER_SEND_GOODS',
'pre_status':'T_WAIT_BUYER_PAY'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})