TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkShopGetRequest req = new TbkShopGetRequest();
req.setEndAuctionCount(200L);
req.setEndCommissionRate(123L);
req.setEndCredit(20L);
req.setEndTotalAction(100L);
req.setFields("user_id,shop_title,shop_type,seller_nick,pict_url,shop_url");
req.setIsTmall(false);
req.setPageNo(1L);
req.setPageSize(20L);
req.setPlatform(1L);
req.setQ("女装");
req.setSort("commission_rate_des");
req.setStartAuctionCount(123L);
req.setStartCommissionRate(2000L);
req.setStartCredit(1L);
req.setStartTotalAction(1L);
TbkShopGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkShopGetRequest req = new TbkShopGetRequest();
req.EndAuctionCount = 200L;
req.EndCommissionRate = 123L;
req.EndCredit = 20L;
req.EndTotalAction = 100L;
req.Fields = "user_id,shop_title,shop_type,seller_nick,pict_url,shop_url";
req.IsTmall = false;
req.PageNo = 1L;
req.PageSize = 20L;
req.Platform = 1L;
req.Q = "女装";
req.Sort = "commission_rate_des";
req.StartAuctionCount = 123L;
req.StartCommissionRate = 2000L;
req.StartCredit = 1L;
req.StartTotalAction = 1L;
TbkShopGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkShopGetRequest;
$req->setEndAuctionCount("200");
$req->setEndCommissionRate("123");
$req->setEndCredit("20");
$req->setEndTotalAction("100");
$req->setFields("user_id,shop_title,shop_type,seller_nick,pict_url,shop_url");
$req->setIsTmall("false");
$req->setPageNo("1");
$req->setPageSize("20");
$req->setPlatform("1");
$req->setQ("女装");
$req->setSort("commission_rate_des");
$req->setStartAuctionCount("123");
$req->setStartCommissionRate("2000");
$req->setStartCredit("1");
$req->setStartTotalAction("1");
$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=taobao.tbk.shop.get' \
-d 'partner_id=apidoc' \
-d 'sign=F05C8F7EB69F1471D732BD2921FAA98A' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-01-16+01%3A06%3A31' \
-d 'v=2.0' \
-d 'end_auction_count=200' \
-d 'end_commission_rate=123' \
-d 'end_credit=20' \
-d 'end_total_action=100' \
-d 'fields=user_id%2Cshop_title%2Cshop_type%2Cseller_nick%2Cpict_url%2Cshop_url' \
-d 'is_tmall=false' \
-d 'page_no=1' \
-d 'page_size=20' \
-d 'platform=1' \
-d 'q=%E5%A5%B3%E8%A3%85' \
-d 'sort=commission_rate_des' \
-d 'start_auction_count=123' \
-d 'start_commission_rate=2000' \
-d 'start_credit=1' \
-d 'start_total_action=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkShopGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.end_auction_count=200
req.end_commission_rate=123
req.end_credit=20
req.end_total_action=100
req.fields="user_id,shop_title,shop_type,seller_nick,pict_url,shop_url"
req.is_tmall=false
req.page_no=1
req.page_size=20
req.platform=1
req.q="女装"
req.sort="commission_rate_des"
req.start_auction_count=123
req.start_commission_rate=2000
req.start_credit=1
req.start_total_action=1
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,"taobao.tbk.shop.get");
add_param(pRequest,"end_auction_count","200");
add_param(pRequest,"end_commission_rate","123");
add_param(pRequest,"end_credit","20");
add_param(pRequest,"end_total_action","100");
add_param(pRequest,"fields","user_id,shop_title,shop_type,seller_nick,pict_url,shop_url");
add_param(pRequest,"is_tmall","false");
add_param(pRequest,"page_no","1");
add_param(pRequest,"page_size","20");
add_param(pRequest,"platform","1");
add_param(pRequest,"q","女装");
add_param(pRequest,"sort","commission_rate_des");
add_param(pRequest,"start_auction_count","123");
add_param(pRequest,"start_commission_rate","2000");
add_param(pRequest,"start_credit","1");
add_param(pRequest,"start_total_action","1");
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('taobao.tbk.shop.get', {
'end_auction_count':'200',
'end_commission_rate':'123',
'end_credit':'20',
'end_total_action':'100',
'fields':'user_id,shop_title,shop_type,seller_nick,pict_url,shop_url',
'is_tmall':'false',
'page_no':'1',
'page_size':'20',
'platform':'1',
'q':'女装',
'sort':'commission_rate_des',
'start_auction_count':'123',
'start_commission_rate':'2000',
'start_credit':'1',
'start_total_action':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})