TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAliautoCarprofileSyncRequest req = new TmallAliautoCarprofileSyncRequest();
TmallAliautoCarprofileSyncRequest.UserCarProfileDTO obj1 = new TmallAliautoCarprofileSyncRequest.UserCarProfileDTO();
obj1.setCarLicense("浙A8B7Y1");
obj1.setAcid(50006718L);
obj1.setChannelProfileId("1");
obj1.setMileage(100L);
obj1.setEngineNo("10001");
obj1.setRegTime("2010-01-01 00:00:00");
obj1.setGmtModified(StringUtils.parseDateTime("2010-01-01 00:00:00"));
obj1.setIssueTime("2010-01-01 00:00:00");
obj1.setCarVin("1");
obj1.setGmtCreate(StringUtils.parseDateTime("2010-01-01 00:00:00"));
obj1.setOperateType(1L);
obj1.setCarProfileId(1L);
req.setList(obj1);
req.setChannelId("1");
req.setChannelType(1L);
req.setPhone("1370000000");
req.setDataSource("XKZ");
TmallAliautoCarprofileSyncResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallAliautoCarprofileSyncRequest req = new TmallAliautoCarprofileSyncRequest();
TmallAliautoCarprofileSyncRequest.UserCarProfileDTODomain obj1 = new TmallAliautoCarprofileSyncRequest.UserCarProfileDTODomain();
obj1.CarLicense = "浙A8B7Y1";
obj1.Acid = 50006718L;
obj1.ChannelProfileId = "1";
obj1.Mileage = 100L;
obj1.EngineNo = "10001";
obj1.RegTime = "2010-01-01 00:00:00";
obj1.GmtModified = DateTime.Parse(2010-01-01 00:00:00");
obj1.IssueTime = "2010-01-01 00:00:00";
obj1.CarVin = "1";
obj1.GmtCreate = DateTime.Parse(2010-01-01 00:00:00");
obj1.OperateType = 1L;
obj1.CarProfileId = 1L;
req.List_ = obj1;
req.ChannelId = "1";
req.ChannelType = 1L;
req.Phone = "1370000000";
req.DataSource = "XKZ";
TmallAliautoCarprofileSyncResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallAliautoCarprofileSyncRequest;
$list = new UserCarProfileDTO;
$list->car_license="浙A8B7Y1";
$list->acid="50006718";
$list->channel_profile_id="1";
$list->mileage="100";
$list->engine_no="10001";
$list->reg_time="2010-01-01 00:00:00";
$list->gmt_modified="2010-01-01 00:00:00";
$list->issue_time="2010-01-01 00:00:00";
$list->car_vin="1";
$list->gmt_create="2010-01-01 00:00:00";
$list->operate_type="1";
$list->car_profile_id="1";
$req->setList(json_encode($list));
$req->setChannelId("1");
$req->setChannelType("1");
$req->setPhone("1370000000");
$req->setDataSource("XKZ");
$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=tmall.aliauto.carprofile.sync' \
-d 'partner_id=apidoc' \
-d 'session=528aaf52-b369-4e37-930b-666a7e4caac6' \
-d 'sign=7807194837FDB7123D8C9F4EBC7CDE20' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-31+00%3A30%3A01' \
-d 'v=2.0' \
-d 'channel_id=1' \
-d 'channel_type=1' \
-d 'data_source=XKZ' \
-d 'list=list' \
-d 'phone=1370000000'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallAliautoCarprofileSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.list="list"
req.channel_id="1"
req.channel_type=1
req.phone="1370000000"
req.data_source="XKZ"
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,"tmall.aliauto.carprofile.sync");
add_param(pRequest,"list","数据结构JSON示例");
add_param(pRequest,"channel_id","1");
add_param(pRequest,"channel_type","1");
add_param(pRequest,"phone","1370000000");
add_param(pRequest,"data_source","XKZ");
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('tmall.aliauto.carprofile.sync', {
'list':'数据结构JSON示例',
'channel_id':'1',
'channel_type':'1',
'phone':'1370000000',
'data_source':'XKZ'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})