TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripIeAgentRefundSearchRequest req = new AlitripIeAgentRefundSearchRequest();
req.setCreateStartTime(StringUtils.parseDateTime("2015-01-13 21:15:59"));
req.setCreateEndTime(StringUtils.parseDateTime("2015-01-13 21:15:59"));
req.setRefundStatus(1L);
req.setPageIndex(1L);
req.setPageSize(40L);
req.setAgentId(6033L);
AlitripIeAgentRefundSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripIeAgentRefundSearchRequest req = new AlitripIeAgentRefundSearchRequest();
req.CreateStartTime = DateTime.Parse("2015-01-13 21:15:59");
req.CreateEndTime = DateTime.Parse("2015-01-13 21:15:59");
req.RefundStatus = 1L;
req.PageIndex = 1L;
req.PageSize = 40L;
req.AgentId = 6033L;
AlitripIeAgentRefundSearchResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripIeAgentRefundSearchRequest;
$req->setCreateStartTime("2015-01-13 21:15:59");
$req->setCreateEndTime("2015-01-13 21:15:59");
$req->setRefundStatus("1");
$req->setPageIndex("1");
$req->setPageSize("40");
$req->setAgentId("6033");
$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.ie.agent.refund.search' \
-d 'partner_id=apidoc' \
-d 'session=15184f0d-25a0-412a-bd00-6dc88c62a3c3' \
-d 'sign=D2E60AA2071E1B882DF8D27ADBBEB737' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-21+21%3A58%3A58' \
-d 'v=2.0' \
-d 'agent_id=6033' \
-d 'create_end_time=2015-01-13+21%3A15%3A59' \
-d 'create_start_time=2015-01-13+21%3A15%3A59' \
-d 'page_index=1' \
-d 'page_size=40' \
-d 'refund_status=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripIeAgentRefundSearchRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.create_start_time="2015-01-13 21:15:59"
req.create_end_time="2015-01-13 21:15:59"
req.refund_status=1
req.page_index=1
req.page_size=40
req.agent_id=6033
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.ie.agent.refund.search");
add_param(pRequest,"create_start_time","2015-01-13 21:15:59");
add_param(pRequest,"create_end_time","2015-01-13 21:15:59");
add_param(pRequest,"refund_status","1");
add_param(pRequest,"page_index","1");
add_param(pRequest,"page_size","40");
add_param(pRequest,"agent_id","6033");
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.ie.agent.refund.search', {
'create_start_time':'2015-01-13 21:15:59',
'create_end_time':'2015-01-13 21:15:59',
'refund_status':'1',
'page_index':'1',
'page_size':'40',
'agent_id':'6033'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})