TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliautoRiskInfoTmallYcServiceSyncRequest req = new AliautoRiskInfoTmallYcServiceSyncRequest();
AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncRequest obj1 = new AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncRequest();
List<AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncDTO> list3 = new ArrayList<AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncDTO>();
AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncDTO obj4 = new AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncDTO();
list3.add(obj4);
obj4.setServiceCode("123,456,789");
obj4.setInstallType(0L);
obj4.setBuyerPhone("13012345678");
obj4.setTcOrderId(3882527336184474047L);
obj4.setTcSubOrderId(3882527336184474048L);
obj4.setCarLicenseNum("浙AA12345");
obj4.setServiceUseTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj4.setBuyerName("王五");
obj4.setWorkOrderSubmitTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj1.setContents(list3);
req.setRiskInfoSyncRequest(obj1);
AliautoRiskInfoTmallYcServiceSyncResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliautoRiskInfoTmallYcServiceSyncRequest req = new AliautoRiskInfoTmallYcServiceSyncRequest();
AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncRequestDomain obj1 = new AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncRequestDomain();
List<AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncDTODomain> list3 = new List<AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncDTODomain>();
AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncDTODomain obj4 = new AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncDTODomain();
list3.Add(obj4);
obj4.ServiceCode = "123,456,789";
obj4.InstallType = 0L;
obj4.BuyerPhone = "13012345678";
obj4.TcOrderId = 3882527336184474047L;
obj4.TcSubOrderId = 3882527336184474048L;
obj4.CarLicenseNum = "浙AA12345";
obj4.ServiceUseTime = DateTime.Parse(2000-01-01 00:00:00");
obj4.BuyerName = "王五";
obj4.WorkOrderSubmitTime = DateTime.Parse(2000-01-01 00:00:00");
obj1.Contents= list3;
req.RiskInfoSyncRequest_ = obj1;
AliautoRiskInfoTmallYcServiceSyncResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliautoRiskInfoTmallYcServiceSyncRequest;
$risk_info_sync_request = new RiskInfoSyncRequest;
$contents = new RiskInfoSyncDTO;
$contents->service_code="123,456,789";
$contents->install_type="0";
$contents->buyer_phone="13012345678";
$contents->tc_order_id="3882527336184474047";
$contents->tc_sub_order_id="3882527336184474048";
$contents->car_license_num="浙AA12345";
$contents->service_use_time="2000-01-01 00:00:00";
$contents->buyer_name="王五";
$contents->work_order_submit_time="2000-01-01 00:00:00";
$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.risk.info.tmall.yc.service.sync' \
-d 'partner_id=apidoc' \
-d 'session=74210c74-7241-4d40-83e4-7a65d70d4346' \
-d 'sign=904CE8FF4615F09EE62C5525996C8F63' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-05+20%3A28%3A18' \
-d 'v=2.0' \
-d 'risk_info_sync_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliautoRiskInfoTmallYcServiceSyncRequest(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.risk.info.tmall.yc.service.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.risk.info.tmall.yc.service.sync', {
'risk_info_sync_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})