TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
ShangouTradesSoldGetRequest req = new ShangouTradesSoldGetRequest();
req.setPageNo(1L);
req.setPageSize(20L);
req.setStartCreated(StringUtils.parseDateTime("2000-01-01 00:00:00"));
req.setEndCreated(StringUtils.parseDateTime("2000-01-01 23:59:59"));
req.setStatus("WAIT_SELLER_SEND_GOODS");
req.setBuyerNick("zhangsan");
req.setBuyerOpenId("AAHm5d-EAAeGwJedwSHpg8bT");
ShangouTradesSoldGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
ShangouTradesSoldGetRequest req = new ShangouTradesSoldGetRequest();
req.PageNo = 1L;
req.PageSize = 20L;
req.StartCreated = DateTime.Parse("2000-01-01 00:00:00");
req.EndCreated = DateTime.Parse("2000-01-01 23:59:59");
req.Status = "WAIT_SELLER_SEND_GOODS";
req.BuyerNick = "zhangsan";
req.BuyerOpenId = "AAHm5d-EAAeGwJedwSHpg8bT";
ShangouTradesSoldGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new ShangouTradesSoldGetRequest;
$req->setPageNo("1");
$req->setPageSize("20");
$req->setStartCreated("2000-01-01 00:00:00");
$req->setEndCreated("2000-01-01 23:59:59");
$req->setStatus("WAIT_SELLER_SEND_GOODS");
$req->setBuyerNick("zhangsan");
$req->setBuyerOpenId("AAHm5d-EAAeGwJedwSHpg8bT");
$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.shangou.trades.sold.get' \
-d 'partner_id=apidoc' \
-d 'session=d9d95002-fd66-4221-a3eb-4d7d9e300fe7' \
-d 'sign=1458CC1C11E6DA16EF04A1BF5EB600C8' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-09-02+04%3A43%3A55' \
-d 'v=2.0' \
-d 'buyer_nick=zhangsan' \
-d 'buyer_open_id=AAHm5d-EAAeGwJedwSHpg8bT' \
-d 'end_created=2000-01-01+23%3A59%3A59' \
-d 'page_no=1' \
-d 'page_size=20' \
-d 'start_created=2000-01-01+00%3A00%3A00' \
-d 'status=WAIT_SELLER_SEND_GOODS'
# -*- coding: utf-8 -*-
import top.api
req=top.api.ShangouTradesSoldGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.page_no=1
req.page_size=20
req.start_created="2000-01-01 00:00:00"
req.end_created="2000-01-01 23:59:59"
req.status="WAIT_SELLER_SEND_GOODS"
req.buyer_nick="zhangsan"
req.buyer_open_id="AAHm5d-EAAeGwJedwSHpg8bT"
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.shangou.trades.sold.get");
add_param(pRequest,"page_no","1");
add_param(pRequest,"page_size","20");
add_param(pRequest,"start_created","2000-01-01 00:00:00");
add_param(pRequest,"end_created","2000-01-01 23:59:59");
add_param(pRequest,"status","WAIT_SELLER_SEND_GOODS");
add_param(pRequest,"buyer_nick","zhangsan");
add_param(pRequest,"buyer_open_id","AAHm5d-EAAeGwJedwSHpg8bT");
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.shangou.trades.sold.get', {
'page_no':'1',
'page_size':'20',
'start_created':'2000-01-01 00:00:00',
'end_created':'2000-01-01 23:59:59',
'status':'WAIT_SELLER_SEND_GOODS',
'buyer_nick':'zhangsan',
'buyer_open_id':'AAHm5d-EAAeGwJedwSHpg8bT'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})