TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressPostproductRedefiningEditproductcategoryattributesRequest req = new AliexpressPostproductRedefiningEditproductcategoryattributesRequest();
req.setProductId(1706468951L);
List<AliexpressPostproductRedefiningEditproductcategoryattributesRequest.AeopAeProductProperty> list2 = new ArrayList<AliexpressPostproductRedefiningEditproductcategoryattributesRequest.AeopAeProductProperty>();
AliexpressPostproductRedefiningEditproductcategoryattributesRequest.AeopAeProductProperty obj3 = new AliexpressPostproductRedefiningEditproductcategoryattributesRequest.AeopAeProductProperty();
list2.add(obj3);
obj3.setAttrName("0");
obj3.setAttrNameId(0L);
obj3.setAttrValue("0");
obj3.setAttrValueEnd("0");
obj3.setAttrValueStart("0");
obj3.setAttrValueUnit("0");
obj3.setAttrValueId(0L);
req.setProductCategoryAttributes(list2);
AliexpressPostproductRedefiningEditproductcategoryattributesResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliexpressPostproductRedefiningEditproductcategoryattributesRequest req = new AliexpressPostproductRedefiningEditproductcategoryattributesRequest();
req.ProductId = 1706468951L;
List<AliexpressPostproductRedefiningEditproductcategoryattributesRequest.AeopAeProductPropertyDomain> list2 = new List<AliexpressPostproductRedefiningEditproductcategoryattributesRequest.AeopAeProductPropertyDomain>();
AliexpressPostproductRedefiningEditproductcategoryattributesRequest.AeopAeProductPropertyDomain obj3 = new AliexpressPostproductRedefiningEditproductcategoryattributesRequest.AeopAeProductPropertyDomain();
list2.Add(obj3);
obj3.AttrName = "0";
obj3.AttrNameId = 0L;
obj3.AttrValue = "0";
obj3.AttrValueEnd = "0";
obj3.AttrValueStart = "0";
obj3.AttrValueUnit = "0";
obj3.AttrValueId = 0L;
req.ProductCategoryAttributes_ = list2;
AliexpressPostproductRedefiningEditproductcategoryattributesResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliexpressPostproductRedefiningEditproductcategoryattributesRequest;
$req->setProductId("1706468951");
$product_category_attributes = new AeopAeProductProperty;
$product_category_attributes->attr_name="0";
$product_category_attributes->attr_name_id="0";
$product_category_attributes->attr_value="0";
$product_category_attributes->attr_value_end="0";
$product_category_attributes->attr_value_start="0";
$product_category_attributes->attr_value_unit="0";
$product_category_attributes->attr_value_id="0";
$req->setProductCategoryAttributes(json_encode($product_category_attributes));
$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=aliexpress.postproduct.redefining.editproductcategoryattributes' \
-d 'partner_id=apidoc' \
-d 'session=d32da836-66a2-48bd-86b9-70baf696f62c' \
-d 'sign=28B6951348F03FDD6D80BCA6AC93D485' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+18%3A59%3A12' \
-d 'v=2.0' \
-d 'product_category_attributes=null' \
-d 'product_id=1706468951'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliexpressPostproductRedefiningEditproductcategoryattributesRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.product_id=1706468951
req.product_category_attributes=""
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,"aliexpress.postproduct.redefining.editproductcategoryattributes");
add_param(pRequest,"product_id","1706468951");
add_param(pRequest,"product_category_attributes","数据结构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('aliexpress.postproduct.redefining.editproductcategoryattributes', {
'product_id':'1706468951',
'product_category_attributes':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})