TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UniversalbpNewInsightCatsworddataGetRequest req = new UniversalbpNewInsightCatsworddataGetRequest();
UniversalbpNewInsightCatsworddataGetRequest.TopServiceContext obj1 = new UniversalbpNewInsightCatsworddataGetRequest.TopServiceContext();
obj1.setBizCode("xxxxx");
obj1.setLoginType(1L);
obj1.setMemberId(12345L);
obj1.setExt("{}");
req.setTopServiceContext(obj1);
UniversalbpNewInsightCatsworddataGetRequest.CatsWordDataQueryVO obj2 = new UniversalbpNewInsightCatsworddataGetRequest.CatsWordDataQueryVO();
List<UniversalbpNewInsightCatsworddataGetRequest.WordCategoryVO> list4 = new ArrayList<UniversalbpNewInsightCatsworddataGetRequest.WordCategoryVO>();
UniversalbpNewInsightCatsworddataGetRequest.WordCategoryVO obj5 = new UniversalbpNewInsightCatsworddataGetRequest.WordCategoryVO();
list4.add(obj5);
obj5.setCateId(50010850L);
obj5.setWord("裙子");
obj2.setWordCategoryList(list4);
obj2.setStartTime("2026-01-01");
obj2.setEndTime("2026-02-01");
req.setCatsWordDataQueryVO(obj2);
UniversalbpNewInsightCatsworddataGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
UniversalbpNewInsightCatsworddataGetRequest req = new UniversalbpNewInsightCatsworddataGetRequest();
UniversalbpNewInsightCatsworddataGetRequest.TopServiceContextDomain obj1 = new UniversalbpNewInsightCatsworddataGetRequest.TopServiceContextDomain();
obj1.BizCode = "xxxxx";
obj1.LoginType = 1L;
obj1.MemberId = 12345L;
obj1.Ext = "{}";
req.TopServiceContext_ = obj1;
UniversalbpNewInsightCatsworddataGetRequest.CatsWordDataQueryVODomain obj2 = new UniversalbpNewInsightCatsworddataGetRequest.CatsWordDataQueryVODomain();
List<UniversalbpNewInsightCatsworddataGetRequest.WordCategoryVODomain> list4 = new List<UniversalbpNewInsightCatsworddataGetRequest.WordCategoryVODomain>();
UniversalbpNewInsightCatsworddataGetRequest.WordCategoryVODomain obj5 = new UniversalbpNewInsightCatsworddataGetRequest.WordCategoryVODomain();
list4.Add(obj5);
obj5.CateId = 50010850L;
obj5.Word = "裙子";
obj2.WordCategoryList= list4;
obj2.StartTime = "2026-01-01";
obj2.EndTime = "2026-02-01";
req.CatsWordDataQueryVO_ = obj2;
UniversalbpNewInsightCatsworddataGetResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new UniversalbpNewInsightCatsworddataGetRequest;
$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));
$cats_word_data_query_v_o = new CatsWordDataQueryVO;
$word_category_list = new WordCategoryVO;
$word_category_list->cate_id="50010850";
$word_category_list->word="裙子";
$cats_word_data_query_v_o->word_category_list = $word_category_list;
$cats_word_data_query_v_o->start_time="2026-01-01";
$cats_word_data_query_v_o->end_time="2026-02-01";
$req->setCatsWordDataQueryVO(json_encode($cats_word_data_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.insight.catsworddata.get' \
-d 'partner_id=apidoc' \
-d 'session=a03cee66-694a-4239-83b4-4dd465fd2e94' \
-d 'sign=AAB360B5937581222FAFCB23BC65A618' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-05-17+21%3A36%3A21' \
-d 'v=2.0' \
-d 'cats_word_data_query_v_o=null' \
-d 'top_service_context=TopServiceContext'
# -*- coding: utf-8 -*-
import top.api
req=top.api.UniversalbpNewInsightCatsworddataGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.top_service_context="TopServiceContext"
req.cats_word_data_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.insight.catsworddata.get");
add_param(pRequest,"top_service_context","数据结构JSON示例");
add_param(pRequest,"cats_word_data_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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.universalbp.new.insight.catsworddata.get', {
'top_service_context':'数据结构JSON示例',
'cats_word_data_query_v_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})