TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFlightChangeOrderCreatewithsolutionRequest req = new AlitripFlightChangeOrderCreatewithsolutionRequest();
AlitripFlightChangeOrderCreatewithsolutionRequest.ChangeOrderCreateWithSolutionRequest obj1 = new AlitripFlightChangeOrderCreatewithsolutionRequest.ChangeOrderCreateWithSolutionRequest();
obj1.setContactMobileNumber("18310000000");
obj1.setChangeReasonType(0L);
obj1.setOrderId(3865460347907L);
List<AlitripFlightChangeOrderCreatewithsolutionRequest.ChangePassengerParam> list3 = new ArrayList<AlitripFlightChangeOrderCreatewithsolutionRequest.ChangePassengerParam>();
AlitripFlightChangeOrderCreatewithsolutionRequest.ChangePassengerParam obj4 = new AlitripFlightChangeOrderCreatewithsolutionRequest.ChangePassengerParam();
list3.add(obj4);
obj4.setPassengerName("王五");
obj4.setCredentialNo("412020101010101010");
obj1.setChangePassengerParams(list3);
obj1.setSolutionId("4f9c10ae2db547ed9077f8b5102db21d_0&&&d1a9d7c286284041ae9650f6485a34d2");
req.setChangeOrderCreateWithSolutionRequest(obj1);
AlitripFlightChangeOrderCreatewithsolutionResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripFlightChangeOrderCreatewithsolutionRequest req = new AlitripFlightChangeOrderCreatewithsolutionRequest();
AlitripFlightChangeOrderCreatewithsolutionRequest.ChangeOrderCreateWithSolutionRequestDomain obj1 = new AlitripFlightChangeOrderCreatewithsolutionRequest.ChangeOrderCreateWithSolutionRequestDomain();
obj1.ContactMobileNumber = "18310000000";
obj1.ChangeReasonType = 0L;
obj1.OrderId = 3865460347907L;
List<AlitripFlightChangeOrderCreatewithsolutionRequest.ChangePassengerParamDomain> list3 = new List<AlitripFlightChangeOrderCreatewithsolutionRequest.ChangePassengerParamDomain>();
AlitripFlightChangeOrderCreatewithsolutionRequest.ChangePassengerParamDomain obj4 = new AlitripFlightChangeOrderCreatewithsolutionRequest.ChangePassengerParamDomain();
list3.Add(obj4);
obj4.PassengerName = "王五";
obj4.CredentialNo = "412020101010101010";
obj1.ChangePassengerParams= list3;
obj1.SolutionId = "4f9c10ae2db547ed9077f8b5102db21d_0&&&d1a9d7c286284041ae9650f6485a34d2";
req.ChangeOrderCreateWithSolutionRequest_ = obj1;
AlitripFlightChangeOrderCreatewithsolutionResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripFlightChangeOrderCreatewithsolutionRequest;
$change_order_create_with_solution_request = new ChangeOrderCreateWithSolutionRequest;
$change_order_create_with_solution_request->contact_mobile_number="18310000000";
$change_order_create_with_solution_request->change_reason_type="0";
$change_order_create_with_solution_request->order_id="3865460347907";
$change_passenger_params = new ChangePassengerParam;
$change_passenger_params->passenger_name="王五";
$change_passenger_params->credential_no="412020101010101010";
$change_order_create_with_solution_request->change_passenger_params = $change_passenger_params;
$change_order_create_with_solution_request->solution_id="4f9c10ae2db547ed9077f8b5102db21d_0&&&d1a9d7c286284041ae9650f6485a34d2";
$req->setChangeOrderCreateWithSolutionRequest(json_encode($change_order_create_with_solution_request));
$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.flight.change.order.createwithsolution' \
-d 'partner_id=apidoc' \
-d 'session=b0b91152-8da3-4493-8fbc-45077a6dd1d0' \
-d 'sign=7497017A088A8ABFCDAC70C8B2A69806' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-30+13%3A00%3A58' \
-d 'v=2.0' \
-d 'change_order_create_with_solution_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripFlightChangeOrderCreatewithsolutionRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.change_order_create_with_solution_request="数据结构示例JSON格式"
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.flight.change.order.createwithsolution");
add_param(pRequest,"change_order_create_with_solution_request","数据结构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.flight.change.order.createwithsolution', {
'change_order_create_with_solution_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})