TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallCarUpkeepPeriodSyncRequest req = new TmallCarUpkeepPeriodSyncRequest();
List<TmallCarUpkeepPeriodSyncRequest.UpkeepPeriodDto> list2 = new ArrayList<TmallCarUpkeepPeriodSyncRequest.UpkeepPeriodDto>();
TmallCarUpkeepPeriodSyncRequest.UpkeepPeriodDto obj3 = new TmallCarUpkeepPeriodSyncRequest.UpkeepPeriodDto();
list2.add(obj3);
obj3.setFirstUpkeepTime(1L);
obj3.setCreator("zyt");
obj3.setModifier("zyt");
obj3.setSecondUpkeepTime(1L);
obj3.setAcId(22L);
obj3.setUpkeepTime(2L);
obj3.setModifiedtime(StringUtils.parseDateTime("2020-05-27 16:53:44"));
obj3.setIsDeleted(1L);
obj3.setUpkeepCode("242");
obj3.setFirstUpkeepMileage(2L);
obj3.setUpkeepMileage(3L);
obj3.setId(4L);
obj3.setSecondUpkeepMileage(3L);
obj3.setCreationtime(StringUtils.parseDateTime("2020-05-27 16:53:44"));
req.setUpkeepPeriodDTOList(list2);
TmallCarUpkeepPeriodSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallCarUpkeepPeriodSyncRequest req = new TmallCarUpkeepPeriodSyncRequest();
List<TmallCarUpkeepPeriodSyncRequest.UpkeepPeriodDtoDomain> list2 = new List<TmallCarUpkeepPeriodSyncRequest.UpkeepPeriodDtoDomain>();
TmallCarUpkeepPeriodSyncRequest.UpkeepPeriodDtoDomain obj3 = new TmallCarUpkeepPeriodSyncRequest.UpkeepPeriodDtoDomain();
list2.Add(obj3);
obj3.FirstUpkeepTime = 1L;
obj3.Creator = "zyt";
obj3.Modifier = "zyt";
obj3.SecondUpkeepTime = 1L;
obj3.AcId = 22L;
obj3.UpkeepTime = 2L;
obj3.Modifiedtime = DateTime.Parse(2020-05-27 16:53:44");
obj3.IsDeleted = 1L;
obj3.UpkeepCode = "242";
obj3.FirstUpkeepMileage = 2L;
obj3.UpkeepMileage = 3L;
obj3.Id = 4L;
obj3.SecondUpkeepMileage = 3L;
obj3.Creationtime = DateTime.Parse(2020-05-27 16:53:44");
req.UpkeepPeriodDTOList_ = list2;
TmallCarUpkeepPeriodSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallCarUpkeepPeriodSyncRequest;
$upkeep_period_d_t_o_list = new UpkeepPeriodDto;
$upkeep_period_d_t_o_list->first_upkeep_time="1";
$upkeep_period_d_t_o_list->creator="zyt";
$upkeep_period_d_t_o_list->modifier="zyt";
$upkeep_period_d_t_o_list->second_upkeep_time="1";
$upkeep_period_d_t_o_list->ac_id="22";
$upkeep_period_d_t_o_list->upkeep_time="2";
$upkeep_period_d_t_o_list->modifiedtime="2020-05-27 16:53:44";
$upkeep_period_d_t_o_list->is_deleted="1";
$upkeep_period_d_t_o_list->upkeep_code="242";
$upkeep_period_d_t_o_list->first_upkeep_mileage="2";
$upkeep_period_d_t_o_list->upkeep_mileage="3";
$upkeep_period_d_t_o_list->id="4";
$upkeep_period_d_t_o_list->second_upkeep_mileage="3";
$upkeep_period_d_t_o_list->creationtime="2020-05-27 16:53:44";
$req->setUpkeepPeriodDTOList(json_encode($upkeep_period_d_t_o_list));
$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.car.upkeep.period.sync' \
-d 'partner_id=apidoc' \
-d 'sign=CA80A1C5A1984B611237CCABAC14B3C2' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+22%3A58%3A08' \
-d 'v=2.0' \
-d 'upkeep_period_d_t_o_list=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallCarUpkeepPeriodSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.upkeep_period_d_t_o_list=""
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.car.upkeep.period.sync");
add_param(pRequest,"upkeep_period_d_t_o_list","数据结构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',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('tmall.car.upkeep.period.sync', {
'upkeep_period_d_t_o_list':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})