TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallCarXcarSynchronizeCarLineDataRequest req = new TmallCarXcarSynchronizeCarLineDataRequest();
TmallCarXcarSynchronizeCarLineDataRequest.XCarSysLineDto obj1 = new TmallCarXcarSynchronizeCarLineDataRequest.XCarSysLineDto();
obj1.setBrandPid(1234L);
obj1.setBrandVid(1234L);
obj1.setCarLineMaxDecline("最高降幅8万");
obj1.setLinePid(1234L);
obj1.setLineRank("12/120");
obj1.setLineVid(1234L);
obj1.setLocalRefPriceRange("1.2万-2.2万");
obj1.setManuGuiPriceRange("1.2万-2.2万");
obj1.setPic("\"www.picurl.com\"");
obj1.setStatus(1L);
obj1.setYearCuring("1.2万-2.2万");
req.setParamXCarSysLineDTO(obj1);
TmallCarXcarSynchronizeCarLineDataResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallCarXcarSynchronizeCarLineDataRequest req = new TmallCarXcarSynchronizeCarLineDataRequest();
TmallCarXcarSynchronizeCarLineDataRequest.XCarSysLineDtoDomain obj1 = new TmallCarXcarSynchronizeCarLineDataRequest.XCarSysLineDtoDomain();
obj1.BrandPid = 1234L;
obj1.BrandVid = 1234L;
obj1.CarLineMaxDecline = "最高降幅8万";
obj1.LinePid = 1234L;
obj1.LineRank = "12/120";
obj1.LineVid = 1234L;
obj1.LocalRefPriceRange = "1.2万-2.2万";
obj1.ManuGuiPriceRange = "1.2万-2.2万";
obj1.Pic = "\"www.picurl.com\"";
obj1.Status = 1L;
obj1.YearCuring = "1.2万-2.2万";
req.ParamXCarSysLineDTO_ = obj1;
TmallCarXcarSynchronizeCarLineDataResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallCarXcarSynchronizeCarLineDataRequest;
$param_x_car_sys_line_d_t_o = new XCarSysLineDto;
$param_x_car_sys_line_d_t_o->brand_pid="1234";
$param_x_car_sys_line_d_t_o->brand_vid="1234";
$param_x_car_sys_line_d_t_o->car_line_max_decline="最高降幅8万";
$param_x_car_sys_line_d_t_o->line_pid="1234";
$param_x_car_sys_line_d_t_o->line_rank="12/120";
$param_x_car_sys_line_d_t_o->line_vid="1234";
$param_x_car_sys_line_d_t_o->local_ref_price_range="1.2万-2.2万";
$param_x_car_sys_line_d_t_o->manu_gui_price_range="1.2万-2.2万";
$param_x_car_sys_line_d_t_o->pic="\"www.picurl.com\"";
$param_x_car_sys_line_d_t_o->status="1";
$param_x_car_sys_line_d_t_o->year_curing="1.2万-2.2万";
$req->setParamXCarSysLineDTO(json_encode($param_x_car_sys_line_d_t_o));
$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=tmall.car.xcar.synchronize.car.line.data' \
-d 'partner_id=apidoc' \
-d 'sign=FAC9F56BAA86AF67185932EE21887D14' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+22%3A44%3A26' \
-d 'v=2.0' \
-d 'param_x_car_sys_line_d_t_o=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallCarXcarSynchronizeCarLineDataRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_x_car_sys_line_d_t_o=""
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,"tmall.car.xcar.synchronize.car.line.data");
add_param(pRequest,"param_x_car_sys_line_d_t_o","数据结构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('tmall.car.xcar.synchronize.car.line.data', {
'param_x_car_sys_line_d_t_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})