TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UniversalbpNewStdcategoryFindcategoryconditionRequest req = new UniversalbpNewStdcategoryFindcategoryconditionRequest();
UniversalbpNewStdcategoryFindcategoryconditionRequest.TopServiceContext obj1 = new UniversalbpNewStdcategoryFindcategoryconditionRequest.TopServiceContext();
obj1.setBizCode("xxxxx");
obj1.setLoginType(1L);
obj1.setMemberId(12345L);
obj1.setExt("{}");
req.setTopServiceContext(obj1);
UniversalbpNewStdcategoryFindcategoryconditionRequest.StdCategoryQueryVO obj2 = new UniversalbpNewStdcategoryFindcategoryconditionRequest.StdCategoryQueryVO();
obj2.setMaterialIdList(new Long[] { 714894818852, 714901906337, 715106275342, 714813770503, 714707465203 };
);
obj2.setPromotionType("item");
obj2.setParentCatLevel(0L);
req.setStdCategoryQueryVO(obj2);
UniversalbpNewStdcategoryFindcategoryconditionResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
UniversalbpNewStdcategoryFindcategoryconditionRequest req = new UniversalbpNewStdcategoryFindcategoryconditionRequest();
UniversalbpNewStdcategoryFindcategoryconditionRequest.TopServiceContextDomain obj1 = new UniversalbpNewStdcategoryFindcategoryconditionRequest.TopServiceContextDomain();
obj1.BizCode = "xxxxx";
obj1.LoginType = 1L;
obj1.MemberId = 12345L;
obj1.Ext = "{}";
req.TopServiceContext_ = obj1;
UniversalbpNewStdcategoryFindcategoryconditionRequest.StdCategoryQueryVODomain obj2 = new UniversalbpNewStdcategoryFindcategoryconditionRequest.StdCategoryQueryVODomain();
obj2.MaterialIdList = new long[] { 714894818852, 714901906337, 715106275342, 714813770503, 714707465203 };
;
obj2.PromotionType = "item";
obj2.ParentCatLevel = 0L;
req.StdCategoryQueryVO_ = obj2;
UniversalbpNewStdcategoryFindcategoryconditionResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new UniversalbpNewStdcategoryFindcategoryconditionRequest;
$top_service_context = new TopServiceContext;
$top_service_context->biz_code="xxxxx";
$top_service_context->login_type="1";
$top_service_context->member_id="12345";
$top_service_context->ext="{}";
$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.new.stdcategory.findcategorycondition' \
-d 'partner_id=apidoc' \
-d 'session=20e7d84d-94d8-4a9e-8ce4-b5e5a05a8819' \
-d 'sign=187AFA7084783AFB8D8026509CC38F80' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+15%3A25%3A40' \
-d 'v=2.0' \
-d 'std_category_query_v_o=null' \
-d 'top_service_context=TopServiceContext'
# -*- coding: utf-8 -*-
import top.api
req=top.api.UniversalbpNewStdcategoryFindcategoryconditionRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.top_service_context="TopServiceContext"
req.std_category_query_v_o=""
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.new.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.new.stdcategory.findcategorycondition', {
'top_service_context':'数据结构JSON示例',
'std_category_query_v_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})