TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
BusOrderScheduleinfoUpdateRequest req = new BusOrderScheduleinfoUpdateRequest();
BusOrderScheduleinfoUpdateRequest.AgentScheduleInfoRQ obj1 = new BusOrderScheduleinfoUpdateRequest.AgentScheduleInfoRQ();
obj1.setAgentId(2209055037537L);
obj1.setAgentOrderId("754001");
obj1.setMotorcycleType("商务车");
obj1.setLicensePlatNumber("测·123456");
obj1.setDriverPhone("18888888888");
obj1.setDriverName("张三");
obj1.setAppKey("无");
obj1.setDepDate("2024-04-19");
req.setAgentScheduleInfoRq(obj1);
BusOrderScheduleinfoUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
BusOrderScheduleinfoUpdateRequest req = new BusOrderScheduleinfoUpdateRequest();
BusOrderScheduleinfoUpdateRequest.AgentScheduleInfoRQDomain obj1 = new BusOrderScheduleinfoUpdateRequest.AgentScheduleInfoRQDomain();
obj1.AgentId = 2209055037537L;
obj1.AgentOrderId = "754001";
obj1.MotorcycleType = "商务车";
obj1.LicensePlatNumber = "测·123456";
obj1.DriverPhone = "18888888888";
obj1.DriverName = "张三";
obj1.AppKey = "无";
obj1.DepDate = "2024-04-19";
req.AgentScheduleInfoRq_ = obj1;
BusOrderScheduleinfoUpdateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new BusOrderScheduleinfoUpdateRequest;
$agent_schedule_info_rq = new AgentScheduleInfoRQ;
$agent_schedule_info_rq->agent_id="2209055037537";
$agent_schedule_info_rq->agent_order_id="754001";
$agent_schedule_info_rq->motorcycle_type="商务车";
$agent_schedule_info_rq->license_plat_number="测·123456";
$agent_schedule_info_rq->driver_phone="18888888888";
$agent_schedule_info_rq->driver_name="张三";
$agent_schedule_info_rq->app_key="无";
$agent_schedule_info_rq->dep_date="2024-04-19";
$req->setAgentScheduleInfoRq(json_encode($agent_schedule_info_rq));
$resp = $c->execute($req);
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.bus.order.scheduleinfo.update' \
-d 'partner_id=apidoc' \
-d 'sign=2591598F552E9EADCEBDC0F0DFEA4AFC' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+18%3A22%3A26' \
-d 'v=2.0' \
-d 'agent_schedule_info_rq=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.BusOrderScheduleinfoUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.agent_schedule_info_rq="数据结构示例JSON格式"
try:
resp= req.getResponse()
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.bus.order.scheduleinfo.update");
add_param(pRequest,"agent_schedule_info_rq","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
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.bus.order.scheduleinfo.update', {
'agent_schedule_info_rq':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})