求助:研究过淘宝客api的朋友进来看一下吧
taobao.taobaoke.items.get 淘宝客商品搜索查询接口
获取不到查询的结果,下载了官方的sdk,按照官方的示例写的,实在搞不懂哪里不对了,接触过淘宝api的朋友帮忙看一下吧,问题在哪里?
string url = "http://gw.api.taobao.com/router/rest";
string appkey = "21477***";
string appsecret = "D38AA7A958****************";
StringBuilder str = new StringBuilder();
ITopClient client = new DefaultTopClient(url, appkey, appsecret);
TaobaokeItemsGetRequest req = new TaobaokeItemsGetRequest();
req.Fields = "num_iid,title,nick,pic_url,price,click_url,commission,commission_rate,commission_num,commission_volume,shop_click_url,seller_credit_score,item_location,volume";
req.Keyword = "女装";
TaobaokeItemsGetResponse response = client.Execute(req);
for (int i = 0; i < response.TaobaokeItems.Count; i++)
{
str.AppendLine("<p>" + response.TaobaokeItems[i].Title + "</p>");
}
Response.Write(str.ToString());
}
[解决办法]
string appkey = "21477***";
string appsecret = "D38AA7A958****************";
可能是这个没达到级别吧。