QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
TmallCarLeaseSignstatusSynchronizeRequest req = new TmallCarLeaseSignstatusSynchronizeRequest();
req.setOrderId(1000003461011111014L);
TmallCarLeaseSignstatusSynchronizeRequest.Struct obj1 = new TmallCarLeaseSignstatusSynchronizeRequest.Struct();
obj1.setRestAmount("100000");
obj1.setMonthlyPay("10000");
obj1.setMonth("12");
obj1.setType("2");
req.setTypeDTO(obj1);
req.setStatus(1L);
req.setCityId(330100L);
req.setDistrictId(330102L);
TmallCarLeaseSignstatusSynchronizeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallCarLeaseSignstatusSynchronizeRequest req = new TmallCarLeaseSignstatusSynchronizeRequest();
req.OrderId = 1000003461011111014L;
TmallCarLeaseSignstatusSynchronizeRequest.StructDomain obj1 = new TmallCarLeaseSignstatusSynchronizeRequest.StructDomain();
obj1.RestAmount = "100000";
obj1.MonthlyPay = "10000";
obj1.Month = "12";
obj1.Type = "2";
req.TypeDTO_ = obj1;
req.Status = 1L;
req.CityId = 330100L;
req.DistrictId = 330102L;
TmallCarLeaseSignstatusSynchronizeResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallCarLeaseSignstatusSynchronizeRequest;
$req->setOrderId("1000003461011111014");
$typeDTO = new Struct;
$typeDTO->rest_amount="100000";
$typeDTO->monthly_pay="10000";
$typeDTO->month="12";
$typeDTO->type="2";
$req->setTypeDTO(json_encode($typeDTO));
$req->setStatus("1");
$req->setCityId("330100");
$req->setDistrictId("330102");
$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=qimen.tmall.car.lease.signstatus.synchronize' \
-d 'partner_id=apidoc' \
-d 'sign=A24116172C99568F0E5114B8BC1243EC' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+23%3A03%3A45' \
-d 'v=2.0' \
-d 'cityId=330100' \
-d 'districtId=330102' \
-d 'orderId=1000003461011111014' \
-d 'status=1' \
-d 'typeDTO=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.QimenTmallCarLeaseSignstatusSynchronizeRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.orderId=1000003461011111014
req.typeDTO="数据结构示例JSON格式"
req.status=1
req.cityId=330100
req.districtId=330102
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,"qimen.tmall.car.lease.signstatus.synchronize");
add_param(pRequest,"orderId","1000003461011111014");
add_param(pRequest,"typeDTO","数据结构JSON示例");
add_param(pRequest,"status","1");
add_param(pRequest,"cityId","330100");
add_param(pRequest,"districtId","330102");
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',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('qimen.tmall.car.lease.signstatus.synchronize', {
'orderId':'1000003461011111014',
'typeDTO':'数据结构JSON示例',
'status':'1',
'cityId':'330100',
'districtId':'330102'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})