TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliautoTwoWheelActivationSyncRequest req = new AliautoTwoWheelActivationSyncRequest();
AliautoTwoWheelActivationSyncRequest.RiskInfoSyncRequest obj1 = new AliautoTwoWheelActivationSyncRequest.RiskInfoSyncRequest();
List<AliautoTwoWheelActivationSyncRequest.RiskInfoSyncDTO> list3 = new ArrayList<AliautoTwoWheelActivationSyncRequest.RiskInfoSyncDTO>();
AliautoTwoWheelActivationSyncRequest.RiskInfoSyncDTO obj4 = new AliautoTwoWheelActivationSyncRequest.RiskInfoSyncDTO();
list3.add(obj4);
obj4.setVinCodeCreateTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj4.setVinCode("123");
obj4.setBuyerPhone("13012345678");
obj4.setTcOrderId(3882527336184474047L);
obj4.setTcSubOrderId(3882527336184474048L);
obj4.setActivationStatus(0L);
obj4.setActivationTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj4.setBuyerName("王五");
obj4.setInvoiceStatus(0L);
obj4.setStoreName("文一西路店");
obj4.setStoreProvName("浙江省");
obj4.setStoreCityName("杭州市");
obj4.setStoreDistrictName("余杭区");
obj4.setStoreDetailAddress("文一西路969号");
obj1.setContents(list3);
req.setRiskInfoSyncRequest(obj1);
AliautoTwoWheelActivationSyncResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliautoTwoWheelActivationSyncRequest req = new AliautoTwoWheelActivationSyncRequest();
AliautoTwoWheelActivationSyncRequest.RiskInfoSyncRequestDomain obj1 = new AliautoTwoWheelActivationSyncRequest.RiskInfoSyncRequestDomain();
List<AliautoTwoWheelActivationSyncRequest.RiskInfoSyncDTODomain> list3 = new List<AliautoTwoWheelActivationSyncRequest.RiskInfoSyncDTODomain>();
AliautoTwoWheelActivationSyncRequest.RiskInfoSyncDTODomain obj4 = new AliautoTwoWheelActivationSyncRequest.RiskInfoSyncDTODomain();
list3.Add(obj4);
obj4.VinCodeCreateTime = DateTime.Parse(2000-01-01 00:00:00");
obj4.VinCode = "123";
obj4.BuyerPhone = "13012345678";
obj4.TcOrderId = 3882527336184474047L;
obj4.TcSubOrderId = 3882527336184474048L;
obj4.ActivationStatus = 0L;
obj4.ActivationTime = DateTime.Parse(2000-01-01 00:00:00");
obj4.BuyerName = "王五";
obj4.InvoiceStatus = 0L;
obj4.StoreName = "文一西路店";
obj4.StoreProvName = "浙江省";
obj4.StoreCityName = "杭州市";
obj4.StoreDistrictName = "余杭区";
obj4.StoreDetailAddress = "文一西路969号";
obj1.Contents= list3;
req.RiskInfoSyncRequest_ = obj1;
AliautoTwoWheelActivationSyncResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliautoTwoWheelActivationSyncRequest;
$risk_info_sync_request = new RiskInfoSyncRequest;
$contents = new RiskInfoSyncDTO;
$contents->vin_code_create_time="2000-01-01 00:00:00";
$contents->vin_code="123";
$contents->buyer_phone="13012345678";
$contents->tc_order_id="3882527336184474047";
$contents->tc_sub_order_id="3882527336184474048";
$contents->activation_status="0";
$contents->activation_time="2000-01-01 00:00:00";
$contents->buyer_name="王五";
$contents->invoice_status="0";
$contents->store_name="文一西路店";
$contents->store_prov_name="浙江省";
$contents->store_city_name="杭州市";
$contents->store_district_name="余杭区";
$contents->store_detail_address="文一西路969号";
$risk_info_sync_request->contents = $contents;
$req->setRiskInfoSyncRequest(json_encode($risk_info_sync_request));
$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.aliauto.two.wheel.activation.sync' \
-d 'partner_id=apidoc' \
-d 'session=300c28aa-1c28-45e7-9f25-98c2ba00af95' \
-d 'sign=D456670D3CBCE99C966DCB825DF1A8E2' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+22%3A36%3A02' \
-d 'v=2.0' \
-d 'risk_info_sync_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliautoTwoWheelActivationSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.risk_info_sync_request="数据结构示例JSON格式"
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.aliauto.two.wheel.activation.sync");
add_param(pRequest,"risk_info_sync_request","数据结构JSON示例");
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.aliauto.two.wheel.activation.sync', {
'risk_info_sync_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})