TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaBaichuanCtgContentGetRequest req = new AlibabaBaichuanCtgContentGetRequest();
req.setDeliveryId("uc");
req.setPageSize(5L);
req.setCurrentPage(0L);
req.setResId("1");
req.setDate("20161118");
AlibabaBaichuanCtgContentGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaBaichuanCtgContentGetRequest req = new AlibabaBaichuanCtgContentGetRequest();
req.DeliveryId = "uc";
req.PageSize = 5L;
req.CurrentPage = 0L;
req.ResId = "1";
req.Date = "20161118";
AlibabaBaichuanCtgContentGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaBaichuanCtgContentGetRequest;
$req->setDeliveryId("uc");
$req->setPageSize("5");
$req->setCurrentPage("0");
$req->setResId("1");
$req->setDate("20161118");
$resp = $c->execute($req);
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=alibaba.baichuan.ctg.content.get' \
-d 'partner_id=apidoc' \
-d 'sign=EC3776CF1BDDC6A604A4D7C9A7B9E58E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-05+18%3A04%3A06' \
-d 'v=2.0' \
-d 'current_page=0' \
-d 'date=20161118' \
-d 'delivery_id=uc' \
-d 'page_size=5' \
-d 'res_id=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaBaichuanCtgContentGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.delivery_id="uc"
req.page_size=5
req.current_page=0
req.res_id="1"
req.date="20161118"
try:
resp= req.getResponse()
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,"alibaba.baichuan.ctg.content.get");
add_param(pRequest,"delivery_id","uc");
add_param(pRequest,"page_size","5");
add_param(pRequest,"current_page","0");
add_param(pRequest,"res_id","1");
add_param(pRequest,"date","20161118");
pResponse = top_execute(pClient,pRequest,NULL);
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('alibaba.baichuan.ctg.content.get', {
'delivery_id':'uc',
'page_size':'5',
'current_page':'0',
'res_id':'1',
'date':'20161118'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})