TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripTravelNormalvisaUpdatepersonstautsRequest req = new AlitripTravelNormalvisaUpdatepersonstautsRequest();
List<AlitripTravelNormalvisaUpdatepersonstautsRequest.NormalVisaUpdateUnit> list2 = new ArrayList<AlitripTravelNormalvisaUpdatepersonstautsRequest.NormalVisaUpdateUnit>();
AlitripTravelNormalvisaUpdatepersonstautsRequest.NormalVisaUpdateUnit obj3 = new AlitripTravelNormalvisaUpdatepersonstautsRequest.NormalVisaUpdateUnit();
list2.add(obj3);
obj3.setBookTime("2015-01-01");
obj3.setRemark("remark");
obj3.setStatus(1010L);
obj3.setPostNumber("12345676");
obj3.setBizOrderId(123456L);
obj3.setPersonVisaId(123L);
obj3.setBookPlace("place");
obj3.setPostCompanyCode("SF");
obj3.setPostCompanyName("顺丰快递");
req.setNormalVisaUpdateUnitList(list2);
req.setBizOrderId(1234456L);
AlitripTravelNormalvisaUpdatepersonstautsResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripTravelNormalvisaUpdatepersonstautsRequest req = new AlitripTravelNormalvisaUpdatepersonstautsRequest();
List<AlitripTravelNormalvisaUpdatepersonstautsRequest.NormalVisaUpdateUnitDomain> list2 = new List<AlitripTravelNormalvisaUpdatepersonstautsRequest.NormalVisaUpdateUnitDomain>();
AlitripTravelNormalvisaUpdatepersonstautsRequest.NormalVisaUpdateUnitDomain obj3 = new AlitripTravelNormalvisaUpdatepersonstautsRequest.NormalVisaUpdateUnitDomain();
list2.Add(obj3);
obj3.BookTime = "2015-01-01";
obj3.Remark = "remark";
obj3.Status = 1010L;
obj3.PostNumber = "12345676";
obj3.BizOrderId = 123456L;
obj3.PersonVisaId = 123L;
obj3.BookPlace = "place";
obj3.PostCompanyCode = "SF";
obj3.PostCompanyName = "顺丰快递";
req.NormalVisaUpdateUnitList_ = list2;
req.BizOrderId = 1234456L;
AlitripTravelNormalvisaUpdatepersonstautsResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripTravelNormalvisaUpdatepersonstautsRequest;
$normal_visa_update_unit_list = new NormalVisaUpdateUnit;
$normal_visa_update_unit_list->book_time="2015-01-01";
$normal_visa_update_unit_list->remark="remark";
$normal_visa_update_unit_list->status="1010";
$normal_visa_update_unit_list->post_number="12345676";
$normal_visa_update_unit_list->biz_order_id="123456";
$normal_visa_update_unit_list->person_visa_id="123";
$normal_visa_update_unit_list->book_place="place";
$normal_visa_update_unit_list->post_company_code="SF";
$normal_visa_update_unit_list->post_company_name="顺丰快递";
$req->setNormalVisaUpdateUnitList(json_encode($normal_visa_update_unit_list));
$req->setBizOrderId("1234456");
$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.travel.normalvisa.updatepersonstauts' \
-d 'partner_id=apidoc' \
-d 'session=2c60fef6-8194-4792-b504-0482a4775b1a' \
-d 'sign=C50C1924248E57E914E7D823AF374B0F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-07+06%3A24%3A04' \
-d 'v=2.0' \
-d 'biz_order_id=1234456' \
-d 'normal_visa_update_unit_list=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripTravelNormalvisaUpdatepersonstautsRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.normal_visa_update_unit_list=""
req.biz_order_id=1234456
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.travel.normalvisa.updatepersonstauts");
add_param(pRequest,"normal_visa_update_unit_list","数据结构JSON示例");
add_param(pRequest,"biz_order_id","1234456");
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.travel.normalvisa.updatepersonstauts', {
'normal_visa_update_unit_list':'数据结构JSON示例',
'biz_order_id':'1234456'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})