TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAliautoMemberCarprofileTmyangcheImportRequest req = new TmallAliautoMemberCarprofileTmyangcheImportRequest();
TmallAliautoMemberCarprofileTmyangcheImportRequest.OutCarProfileImportDTO obj1 = new TmallAliautoMemberCarprofileTmyangcheImportRequest.OutCarProfileImportDTO();
obj1.setType("queryCallback");
obj1.setAcid(500001111L);
obj1.setCarLicense("xxxxxxxxx");
obj1.setEngineNo("xxxxxxxxx");
obj1.setCarVin("xxxxxxxxx");
obj1.setRegTime("2020-12-21");
obj1.setBrandModel("奇瑞SQR7152T199轿车");
obj1.setUseCharacter("非营运");
obj1.setOwner(true);
obj1.setUserId("AAHyBmloAHgxVLShbatMXyzm");
req.setCarProfileDto(obj1);
TmallAliautoMemberCarprofileTmyangcheImportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallAliautoMemberCarprofileTmyangcheImportRequest req = new TmallAliautoMemberCarprofileTmyangcheImportRequest();
TmallAliautoMemberCarprofileTmyangcheImportRequest.OutCarProfileImportDTODomain obj1 = new TmallAliautoMemberCarprofileTmyangcheImportRequest.OutCarProfileImportDTODomain();
obj1.Type = "queryCallback";
obj1.Acid = 500001111L;
obj1.CarLicense = "xxxxxxxxx";
obj1.EngineNo = "xxxxxxxxx";
obj1.CarVin = "xxxxxxxxx";
obj1.RegTime = "2020-12-21";
obj1.BrandModel = "奇瑞SQR7152T199轿车";
obj1.UseCharacter = "非营运";
obj1.Owner = true;
obj1.UserId = "AAHyBmloAHgxVLShbatMXyzm";
req.CarProfileDto_ = obj1;
TmallAliautoMemberCarprofileTmyangcheImportResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallAliautoMemberCarprofileTmyangcheImportRequest;
$car_profile_dto = new OutCarProfileImportDTO;
$car_profile_dto->type="queryCallback";
$car_profile_dto->acid="500001111";
$car_profile_dto->car_license="xxxxxxxxx";
$car_profile_dto->engine_no="xxxxxxxxx";
$car_profile_dto->car_vin="xxxxxxxxx";
$car_profile_dto->reg_time="2020-12-21";
$car_profile_dto->brand_model="奇瑞SQR7152T199轿车";
$car_profile_dto->use_character="非营运";
$car_profile_dto->owner="true";
$car_profile_dto->user_id="AAHyBmloAHgxVLShbatMXyzm";
$req->setCarProfileDto(json_encode($car_profile_dto));
$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.aliauto.member.carprofile.tmyangche.import' \
-d 'partner_id=apidoc' \
-d 'sign=9CEEA579AAB3C1B351A5B007053EE317' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-02+10%3A18%3A15' \
-d 'v=2.0' \
-d 'car_profile_dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallAliautoMemberCarprofileTmyangcheImportRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.car_profile_dto="数据结构示例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,"tmall.aliauto.member.carprofile.tmyangche.import");
add_param(pRequest,"car_profile_dto","数据结构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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('tmall.aliauto.member.carprofile.tmyangche.import', {
'car_profile_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})