TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PaimaiPmpCategoryPropertiesGetRequest req = new PaimaiPmpCategoryPropertiesGetRequest();
PaimaiPmpCategoryPropertiesGetRequest.TopCategoryPropRequest obj1 = new PaimaiPmpCategoryPropertiesGetRequest.TopCategoryPropRequest();
obj1.setCategoryId(124852006L);
obj1.setPropertyId(139248429L);
obj1.setValueId(3L);
obj1.setQueryType("xxxxx");
obj1.setPageNo(10L);
obj1.setPageSize(10L);
obj1.setQ("xxxxx");
req.setTopCategoryPropRequest(obj1);
PaimaiPmpCategoryPropertiesGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
PaimaiPmpCategoryPropertiesGetRequest req = new PaimaiPmpCategoryPropertiesGetRequest();
PaimaiPmpCategoryPropertiesGetRequest.TopCategoryPropRequestDomain obj1 = new PaimaiPmpCategoryPropertiesGetRequest.TopCategoryPropRequestDomain();
obj1.CategoryId = 124852006L;
obj1.PropertyId = 139248429L;
obj1.ValueId = 3L;
obj1.QueryType = "xxxxx";
obj1.PageNo = 10L;
obj1.PageSize = 10L;
obj1.Q = "xxxxx";
req.TopCategoryPropRequest_ = obj1;
PaimaiPmpCategoryPropertiesGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new PaimaiPmpCategoryPropertiesGetRequest;
$top_category_prop_request = new TopCategoryPropRequest;
$top_category_prop_request->category_id="124852006";
$top_category_prop_request->property_id="139248429";
$top_category_prop_request->value_id="3";
$top_category_prop_request->query_type="xxxxx";
$top_category_prop_request->page_no="10";
$top_category_prop_request->page_size="10";
$top_category_prop_request->q="xxxxx";
$req->setTopCategoryPropRequest(json_encode($top_category_prop_request));
$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=taobao.paimai.pmp.category.properties.get' \
-d 'partner_id=apidoc' \
-d 'session=cf5f5cd8-3c69-4971-b37f-1cc937bfc7b8' \
-d 'sign=561286EEFFA5AAA5D8275458F54789CD' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-08-25+02%3A37%3A48' \
-d 'v=2.0' \
-d 'top_category_prop_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.PaimaiPmpCategoryPropertiesGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.top_category_prop_request="数据结构示例JSON格式"
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,"taobao.paimai.pmp.category.properties.get");
add_param(pRequest,"top_category_prop_request","数据结构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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.paimai.pmp.category.properties.get', {
'top_category_prop_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})