TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripSellerRefundorderlistFetchRequest req = new AlitripSellerRefundorderlistFetchRequest();
req.setEndDate(StringUtils.parseDateTime("2015-11-03 17:42:43"));
req.setStartDate(StringUtils.parseDateTime("2015-11-03 17:42:43"));
req.setStatus(8L);
AlitripSellerRefundorderlistFetchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripSellerRefundorderlistFetchRequest req = new AlitripSellerRefundorderlistFetchRequest();
req.EndDate = DateTime.Parse("2015-11-03 17:42:43");
req.StartDate = DateTime.Parse("2015-11-03 17:42:43");
req.Status = 8L;
AlitripSellerRefundorderlistFetchResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripSellerRefundorderlistFetchRequest;
$req->setEndDate("2015-11-03 17:42:43");
$req->setStartDate("2015-11-03 17:42:43");
$req->setStatus("8");
$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.alitrip.seller.refundorderlist.fetch' \
-d 'partner_id=apidoc' \
-d 'session=7df68c22-d657-4ac0-9dd0-04040e2c65b7' \
-d 'sign=8A7A5B528010A2D3F1E0D534EC6C71A7' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-03+08%3A08%3A57' \
-d 'v=2.0' \
-d 'end_date=2015-11-03+17%3A42%3A43' \
-d 'start_date=2015-11-03+17%3A42%3A43' \
-d 'status=8'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripSellerRefundorderlistFetchRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.end_date="2015-11-03 17:42:43"
req.start_date="2015-11-03 17:42:43"
req.status=8
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.alitrip.seller.refundorderlist.fetch");
add_param(pRequest,"end_date","2015-11-03 17:42:43");
add_param(pRequest,"start_date","2015-11-03 17:42:43");
add_param(pRequest,"status","8");
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.alitrip.seller.refundorderlist.fetch', {
'end_date':'2015-11-03 17:42:43',
'start_date':'2015-11-03 17:42:43',
'status':'8'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})