TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripIeAgentRefundNewGetlistRequest req = new AlitripIeAgentRefundNewGetlistRequest();
AlitripIeAgentRefundNewGetlistRequest.RefundOrderQueryListRq obj1 = new AlitripIeAgentRefundNewGetlistRequest.RefundOrderQueryListRq();
obj1.setAgentId(1514L);
obj1.setCreateEndTime(StringUtils.parseDateTime("2018-05-11 11:48:21"));
obj1.setCreateStartTime(StringUtils.parseDateTime("2018-04-11 11:48:21"));
obj1.setPageIndex(1L);
obj1.setPageSize(50L);
obj1.setRefundStatus(7L);
obj1.setOrderId(112233L);
req.setParamRefundOrderQueryListRq(obj1);
AlitripIeAgentRefundNewGetlistResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripIeAgentRefundNewGetlistRequest req = new AlitripIeAgentRefundNewGetlistRequest();
AlitripIeAgentRefundNewGetlistRequest.RefundOrderQueryListRqDomain obj1 = new AlitripIeAgentRefundNewGetlistRequest.RefundOrderQueryListRqDomain();
obj1.AgentId = 1514L;
obj1.CreateEndTime = DateTime.Parse(2018-05-11 11:48:21");
obj1.CreateStartTime = DateTime.Parse(2018-04-11 11:48:21");
obj1.PageIndex = 1L;
obj1.PageSize = 50L;
obj1.RefundStatus = 7L;
obj1.OrderId = 112233L;
req.ParamRefundOrderQueryListRq_ = obj1;
AlitripIeAgentRefundNewGetlistResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripIeAgentRefundNewGetlistRequest;
$param_refund_order_query_list_rq = new RefundOrderQueryListRq;
$param_refund_order_query_list_rq->agent_id="1514";
$param_refund_order_query_list_rq->create_end_time="2018-05-11 11:48:21";
$param_refund_order_query_list_rq->create_start_time="2018-04-11 11:48:21";
$param_refund_order_query_list_rq->page_index="1";
$param_refund_order_query_list_rq->page_size="50";
$param_refund_order_query_list_rq->refund_status="7";
$param_refund_order_query_list_rq->order_id="112233";
$req->setParamRefundOrderQueryListRq(json_encode($param_refund_order_query_list_rq));
$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.new.getlist' \
-d 'partner_id=apidoc' \
-d 'session=3d8a9136-83a7-468a-aa23-2ed77141e359' \
-d 'sign=7ECA298F214531A86FA8A777D69D53B5' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-23+17%3A57%3A05' \
-d 'v=2.0' \
-d 'param_refund_order_query_list_rq=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripIeAgentRefundNewGetlistRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_refund_order_query_list_rq=""
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.new.getlist");
add_param(pRequest,"param_refund_order_query_list_rq","数据结构JSON示例");
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.new.getlist', {
'param_refund_order_query_list_rq':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})