TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIcbuPhotobankListRequest req = new AlibabaIcbuPhotobankListRequest();
req.setExtraContextString("");
req.setCurrentPage(10L);
req.setGroupId("17593");
req.setLocationType("ALL_GROUP");
req.setPageSize(12L);
AlibabaIcbuPhotobankListResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIcbuPhotobankListRequest req = new AlibabaIcbuPhotobankListRequest();
req.ExtraContext = "";
req.CurrentPage = 10L;
req.GroupId = "17593";
req.LocationType = "ALL_GROUP";
req.PageSize = 12L;
AlibabaIcbuPhotobankListResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIcbuPhotobankListRequest;
$req->setExtraContext("");
$req->setCurrentPage("10");
$req->setGroupId("17593");
$req->setLocationType("ALL_GROUP");
$req->setPageSize("12");
$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=alibaba.icbu.photobank.list' \
-d 'partner_id=apidoc' \
-d 'session=5c1bbc23-03dd-4ab9-991b-1a43268ddbc3' \
-d 'sign=D6944EEEE22E0A10D0D42914F24F8618' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+22%3A24%3A32' \
-d 'v=2.0' \
-d 'current_page=10' \
-d 'extra_context=null' \
-d 'group_id=17593' \
-d 'location_type=ALL_GROUP' \
-d 'page_size=12'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIcbuPhotobankListRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.extra_context=""
req.current_page=10
req.group_id="17593"
req.location_type="ALL_GROUP"
req.page_size=12
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,"alibaba.icbu.photobank.list");
add_param(pRequest,"extra_context","");
add_param(pRequest,"current_page","10");
add_param(pRequest,"group_id","17593");
add_param(pRequest,"location_type","ALL_GROUP");
add_param(pRequest,"page_size","12");
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('alibaba.icbu.photobank.list', {
'extra_context':'',
'current_page':'10',
'group_id':'17593',
'location_type':'ALL_GROUP',
'page_size':'12'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})