TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripAgentFlightSellRefundListRequest req = new AlitripAgentFlightSellRefundListRequest();
AlitripAgentFlightSellRefundListRequest.RefundListRequestDto obj1 = new AlitripAgentFlightSellRefundListRequest.RefundListRequestDto();
obj1.setEndApplyTime(StringUtils.parseDateTime("2020-12-20 11:11:11"));
obj1.setBeginApplyTime(StringUtils.parseDateTime("2020-12-20 11:11:11"));
obj1.setPage(1L);
obj1.setStatus(1L);
obj1.setAgentIds(new Long[] { 123,456 };
);
obj1.setOrderItemType(2L);
req.setParam(obj1);
AlitripAgentFlightSellRefundListResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripAgentFlightSellRefundListRequest req = new AlitripAgentFlightSellRefundListRequest();
AlitripAgentFlightSellRefundListRequest.RefundListRequestDtoDomain obj1 = new AlitripAgentFlightSellRefundListRequest.RefundListRequestDtoDomain();
obj1.EndApplyTime = DateTime.Parse(2020-12-20 11:11:11");
obj1.BeginApplyTime = DateTime.Parse(2020-12-20 11:11:11");
obj1.Page = 1L;
obj1.Status = 1L;
obj1.AgentIds = new long[] { 123,456 };
;
obj1.OrderItemType = 2L;
req.Param_ = obj1;
AlitripAgentFlightSellRefundListResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripAgentFlightSellRefundListRequest;
$param = new RefundListRequestDto;
$param->end_apply_time="2020-12-20 11:11:11";
$param->begin_apply_time="2020-12-20 11:11:11";
$param->page="1";
$param->status="1";
$param->agent_ids="[123,456]";
$param->order_item_type="2";
$req->setParam(json_encode($param));
$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.agent.flight.sell.refund.list' \
-d 'partner_id=apidoc' \
-d 'session=94e2acc8-521d-4b31-b91c-108b7e08bb69' \
-d 'sign=8CA145AC590D2CAC2C6575C8C15EB32B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+17%3A19%3A43' \
-d 'v=2.0' \
-d 'param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripAgentFlightSellRefundListRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param=""
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.agent.flight.sell.refund.list");
add_param(pRequest,"param","数据结构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('alitrip.agent.flight.sell.refund.list', {
'param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})