淘宝客【公用】物料信息查询申请,淘宝客商品查询 taobao.tbk.item.get 迁移api

最近淘客网站的详细页面无法打开,查看了AIP发现,原来API将下线

“淘宝客基础API,权限包功能已根据具体API功能拆分了权限包,当前权限包内的API将下线迁移,具体请看详细说明:https://tbk.bbs.taobao.com/detail.html?postId=9239853”

以前获取API已经失效,下面代码已经无法使用;

$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkItemGetRequest;
$req->setFields("num_iid,title,pict_url,small_images,reserve_price,zk_final_price,user_type,provcity,item_url,seller_id,volume,nick");
$resp = $c->execute($req);

 

代替API “taobao.tbk.item.info.get”,先从淘宝客API后天申请“淘宝客【公用】物料信息查询”API

淘客API

 

申请理由字数不能少于100字

API

申请成功后,可调用API,使用方法如下


$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkItemInfoGetRequest;
$req->setNumIids("123,456");
$req->setPlatform("1");
$req->setIp("11.22.33.43");
$resp = $c->execute($req);

相关信息获取成功


{"tbk_item_info_get_response":
{"results":
{"n_tbk_item":
[{
"cat_leaf_name":"常规洗衣液",
"cat_name":"洗护清洁剂\/卫生巾\/纸\/香薰",
"item_url":"https:\/\/detail.tmall.com\/item.htm?id=584719927828",
"material_lib_type":"1,2","nick":"萃植轩旗舰店",
"num_iid":584719927828,
"pict_url":"https:\/\/img.alicdn.com\/bao\/uploaded\/i2\/2905295108\/O1CN01umdLwJ1nbVeyCDE4P_!!0-item_pic.jpg",
"provcity":"福建 福州",
"reserve_price":"79.9",
"seller_id":2905295108,
"small_images":{"string":["https:\/\/img.alicdn.com\/i1\/2905295108\/O1CN01Bcl3Fk1nbVeeUFLBH_!!2905295108.jpg","https:\/\/img.alicdn.com\/i3\/2905295108\/O1CN01wWEfZJ1nbVedXWhj0_!!2905295108.jpg","https:\/\/img.alicdn.com\/i3\/2905295108\/O1CN01NQTJGk1nbVegWxLS2_!!2905295108.jpg","https:\/\/img.alicdn.com\/i3\/2905295108\/O1CN01Du3PbJ1nbVegWz9kj_!!2905295108.jpg"]},
"title":"萃植轩洗衣液瓶装家庭装促销组合装批发包邮手洗机洗内衣内裤留香",
"user_type":1,"volume":131795,"zk_final_price":"9.9"
}]},
"request_id":"6jxv9b2qqo04"}};


网站功能恢复正常