TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UniversalbpStdcategoryFindcategoryconditionRequest req = new UniversalbpStdcategoryFindcategoryconditionRequest();
UniversalbpStdcategoryFindcategoryconditionRequest.TopServiceContext obj1 = new UniversalbpStdcategoryFindcategoryconditionRequest.TopServiceContext();
obj1.setBizCode("xxxxx");
req.setTopServiceContext(obj1);
UniversalbpStdcategoryFindcategoryconditionRequest.StdCategoryQueryVo obj2 = new UniversalbpStdcategoryFindcategoryconditionRequest.StdCategoryQueryVo();
obj2.setMaterialIdList(new Long[] { 714894818852, 714901906337, 715106275342, 714813770503, 714707465203 };
);
obj2.setPromotionType("item");
obj2.setParentCatLevel(0L);
req.setStdCategoryQueryVO(obj2);
UniversalbpStdcategoryFindcategoryconditionResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
UniversalbpStdcategoryFindcategoryconditionRequest req = new UniversalbpStdcategoryFindcategoryconditionRequest();
UniversalbpStdcategoryFindcategoryconditionRequest.TopServiceContextDomain obj1 = new UniversalbpStdcategoryFindcategoryconditionRequest.TopServiceContextDomain();
obj1.BizCode = "xxxxx";
req.TopServiceContext_ = obj1;
UniversalbpStdcategoryFindcategoryconditionRequest.StdCategoryQueryVoDomain obj2 = new UniversalbpStdcategoryFindcategoryconditionRequest.StdCategoryQueryVoDomain();
obj2.MaterialIdList = new long[] { 714894818852, 714901906337, 715106275342, 714813770503, 714707465203 };
;
obj2.PromotionType = "item";
obj2.ParentCatLevel = 0L;
req.StdCategoryQueryVO_ = obj2;
UniversalbpStdcategoryFindcategoryconditionResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new UniversalbpStdcategoryFindcategoryconditionRequest;
$top_service_context = new TopServiceContext;
$top_service_context->biz_code="xxxxx";
$req->setTopServiceContext(json_encode($top_service_context));
$std_category_query_v_o = new StdCategoryQueryVo;
$std_category_query_v_o->material_id_list="[714894818852, 714901906337, 715106275342, 714813770503, 714707465203]";
$std_category_query_v_o->promotion_type="item";
$std_category_query_v_o->parent_cat_level="0";
$req->setStdCategoryQueryVO(json_encode($std_category_query_v_o));
$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.universalbp.stdcategory.findcategorycondition' \
-d 'partner_id=apidoc' \
-d 'session=666e4c9e-fb75-4694-b941-02c88702408c' \
-d 'sign=CC73286C1C47BA1405A3CE432B24842F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-27+23%3A03%3A31' \
-d 'v=2.0' \
-d 'std_category_query_v_o=null' \
-d 'top_service_context=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.UniversalbpStdcategoryFindcategoryconditionRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.top_service_context="数据结构示例JSON格式"
req.std_category_query_v_o="数据结构示例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.universalbp.stdcategory.findcategorycondition");
add_param(pRequest,"top_service_context","数据结构JSON示例");
add_param(pRequest,"std_category_query_v_o","数据结构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('taobao.universalbp.stdcategory.findcategorycondition', {
'top_service_context':'数据结构JSON示例',
'std_category_query_v_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})