Post by haitaocms » Fri Oct 20, 2017 2:55 pm

tabao api,tmall api,jd,需要api接口的请联系我,Q2355569290
商品列表调用范例:
include("tao.class.php");
$Taoapi = new TaoClient();
$cfg_site_showmall =’Y’;
$parameters = array(
'cateid' => 16,
'keyword' =>’裙子’,
'start_price' =>10,
'end_price' => 1000,
'page' => 1,
'orderby' => ‘volume:desc’
);
$taodata = $Taoapi->getlist($parameters,$cfg_site_showmall);
print_r($taodata)

相关字段解释:
cateid 淘宝分类ID
keyword 搜索关键词
start_price 起始价格
end_price 结束价格
page 当前页码
pagesize 一页显示数量
orderby 排序


商品详细页调用范例:
include("tao.class.php");
$Taoapi = new TaoClient();
$id=’ 43572691651’;
$taodata = $Taoapi->itemview($id,’Y’);
print_r($taodata)
相关字段解释:
$id 淘宝商品ID

获取分类ID的子分类范例:
include("tao.class.php");
$Taoapi = new TaoClient();
$cid = 16;
$catarray = $Taoapi->getcate($cid, true);
print_r($catarray)

相关字段解释:
$cid 淘宝分类ID





注意事项:调用数据需要绑定IP地址,请提前联系我帮绑定IP地址!

Newbie

Posts

Joined
Fri Oct 20, 2017 2:26 pm
Who is online

Users browsing this forum: No registered users and 5 guests