TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallCarCategorySyncRequest req = new TmallCarCategorySyncRequest();
List<TmallCarCategorySyncRequest.CategoryBrandDto> list2 = new ArrayList<TmallCarCategorySyncRequest.CategoryBrandDto>();
TmallCarCategorySyncRequest.CategoryBrandDto obj3 = new TmallCarCategorySyncRequest.CategoryBrandDto();
list2.add(obj3);
obj3.setBrandName("abc");
obj3.setBrandType(1L);
obj3.setCreator("ddd");
obj3.setModifiedtime(StringUtils.parseDateTime("2019-08-17 11:23:03"));
obj3.setIsDeleted(0L);
obj3.setTmallCategoryId(11L);
obj3.setBrandId(11L);
obj3.setModifier("ddd");
obj3.setCreationtime(StringUtils.parseDateTime("2019-08-17 11:23:03"));
obj3.setTmallCategoryName("abc");
obj3.setId(1L);
req.setTmallCategoryBrandList(list2);
TmallCarCategorySyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallCarCategorySyncRequest req = new TmallCarCategorySyncRequest();
List<TmallCarCategorySyncRequest.CategoryBrandDtoDomain> list2 = new List<TmallCarCategorySyncRequest.CategoryBrandDtoDomain>();
TmallCarCategorySyncRequest.CategoryBrandDtoDomain obj3 = new TmallCarCategorySyncRequest.CategoryBrandDtoDomain();
list2.Add(obj3);
obj3.BrandName = "abc";
obj3.BrandType = 1L;
obj3.Creator = "ddd";
obj3.Modifiedtime = DateTime.Parse(2019-08-17 11:23:03");
obj3.IsDeleted = 0L;
obj3.TmallCategoryId = 11L;
obj3.BrandId = 11L;
obj3.Modifier = "ddd";
obj3.Creationtime = DateTime.Parse(2019-08-17 11:23:03");
obj3.TmallCategoryName = "abc";
obj3.Id = 1L;
req.TmallCategoryBrandList_ = list2;
TmallCarCategorySyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallCarCategorySyncRequest;
$tmall_category_brand_list = new CategoryBrandDto;
$tmall_category_brand_list->brand_name="abc";
$tmall_category_brand_list->brand_type="1";
$tmall_category_brand_list->creator="ddd";
$tmall_category_brand_list->modifiedtime="2019-08-17 11:23:03";
$tmall_category_brand_list->is_deleted="0";
$tmall_category_brand_list->tmall_category_id="11";
$tmall_category_brand_list->brand_id="11";
$tmall_category_brand_list->modifier="ddd";
$tmall_category_brand_list->creationtime="2019-08-17 11:23:03";
$tmall_category_brand_list->tmall_category_name="abc";
$tmall_category_brand_list->id="1";
$req->setTmallCategoryBrandList(json_encode($tmall_category_brand_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.category.sync' \
-d 'partner_id=apidoc' \
-d 'sign=C92400431EDDDC15F4C9687E7131144F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+23%3A09%3A38' \
-d 'v=2.0' \
-d 'tmall_category_brand_list=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallCarCategorySyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.tmall_category_brand_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.category.sync");
add_param(pRequest,"tmall_category_brand_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.category.sync', {
'tmall_category_brand_list':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})