TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripAslanIeAgentRefundQuerylistRequest req = new AlitripAslanIeAgentRefundQuerylistRequest();
req.setAgentId(4632L);
req.setCreateEndTime(StringUtils.parseDateTime("2018-06-09 00:00:00"));
req.setCreateStartTime(StringUtils.parseDateTime("2018-06-08 00:00:00"));
req.setPageIndex(1L);
req.setPageSize(20L);
req.setRefundOrderId(100001L);
req.setRefundStatus(1L);
AlitripAslanIeAgentRefundQuerylistResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripAslanIeAgentRefundQuerylistRequest req = new AlitripAslanIeAgentRefundQuerylistRequest();
req.AgentId = 4632L;
req.CreateEndTime = DateTime.Parse("2018-06-09 00:00:00");
req.CreateStartTime = DateTime.Parse("2018-06-08 00:00:00");
req.PageIndex = 1L;
req.PageSize = 20L;
req.RefundOrderId = 100001L;
req.RefundStatus = 1L;
AlitripAslanIeAgentRefundQuerylistResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripAslanIeAgentRefundQuerylistRequest;
$req->setAgentId("4632");
$req->setCreateEndTime("2018-06-09 00:00:00");
$req->setCreateStartTime("2018-06-08 00:00:00");
$req->setPageIndex("1");
$req->setPageSize("20");
$req->setRefundOrderId("100001");
$req->setRefundStatus("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=alitrip.aslan.ie.agent.refund.querylist' \
-d 'partner_id=apidoc' \
-d 'session=b5b65ff3-1f19-49de-9b38-fa31f8b06824' \
-d 'sign=61F2FD1C200F375A195BFEB91CA536A2' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-23+17%3A51%3A16' \
-d 'v=2.0' \
-d 'agent_id=4632' \
-d 'create_end_time=2018-06-09+00%3A00%3A00' \
-d 'create_start_time=2018-06-08+00%3A00%3A00' \
-d 'page_index=1' \
-d 'page_size=20' \
-d 'refund_order_id=100001' \
-d 'refund_status=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripAslanIeAgentRefundQuerylistRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.agent_id=4632
req.create_end_time="2018-06-09 00:00:00"
req.create_start_time="2018-06-08 00:00:00"
req.page_index=1
req.page_size=20
req.refund_order_id=100001
req.refund_status=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,"alitrip.aslan.ie.agent.refund.querylist");
add_param(pRequest,"agent_id","4632");
add_param(pRequest,"create_end_time","2018-06-09 00:00:00");
add_param(pRequest,"create_start_time","2018-06-08 00:00:00");
add_param(pRequest,"page_index","1");
add_param(pRequest,"page_size","20");
add_param(pRequest,"refund_order_id","100001");
add_param(pRequest,"refund_status","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('alitrip.aslan.ie.agent.refund.querylist', {
'agent_id':'4632',
'create_end_time':'2018-06-09 00:00:00',
'create_start_time':'2018-06-08 00:00:00',
'page_index':'1',
'page_size':'20',
'refund_order_id':'100001',
'refund_status':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})