TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallCarCarefreeStatusSyncRequest req = new TmallCarCarefreeStatusSyncRequest();
TmallCarCarefreeStatusSyncRequest.CarefreeStatusSyncReq obj1 = new TmallCarCarefreeStatusSyncRequest.CarefreeStatusSyncReq();
obj1.setInsuranceCode("31312121");
obj1.setInvoiceUpload(1L);
obj1.setBizId(422212121222L);
obj1.setClaimSubmit(1L);
obj1.setInsuranceStatus("1");
req.setParam0(obj1);
TmallCarCarefreeStatusSyncResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallCarCarefreeStatusSyncRequest req = new TmallCarCarefreeStatusSyncRequest();
TmallCarCarefreeStatusSyncRequest.CarefreeStatusSyncReqDomain obj1 = new TmallCarCarefreeStatusSyncRequest.CarefreeStatusSyncReqDomain();
obj1.InsuranceCode = "31312121";
obj1.InvoiceUpload = 1L;
obj1.BizId = 422212121222L;
obj1.ClaimSubmit = 1L;
obj1.InsuranceStatus = "1";
req.Param0_ = obj1;
TmallCarCarefreeStatusSyncResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallCarCarefreeStatusSyncRequest;
$param0 = new CarefreeStatusSyncReq;
$param0->insurance_code="31312121";
$param0->invoice_upload="1";
$param0->biz_id="422212121222";
$param0->claim_submit="1";
$param0->insurance_status="1";
$req->setParam0(json_encode($param0));
$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.car.carefree.status.sync' \
-d 'partner_id=apidoc' \
-d 'session=56f911d5-3f3b-4246-8591-bfdebae7992f' \
-d 'sign=30AA61F386D48899A4FD8D2F5C50735C' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-12+03%3A19%3A54' \
-d 'v=2.0' \
-d 'param0=%7B%7D'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallCarCarefreeStatusSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param0="{}"
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.car.carefree.status.sync");
add_param(pRequest,"param0","数据结构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('tmall.car.carefree.status.sync', {
'param0':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})