ennnnny / tbk
简约优雅的淘宝客SDK
Installs: 14 319
Dependents: 1
Suggesters: 0
Security: 0
Stars: 288
Watchers: 17
Forks: 85
Open Issues: 0
Requires
- php: >=5.6.0
- ext-json: *
- pimple/pimple: ^3.0
README
可能是最优雅、简易的淘宝客SDK
安装
composer require ennnnny/tbk
使用
<?php use ETaobao\Factory; $config = [ 'appkey' => '', 'secretKey' => '', 'format' => 'json', 'session' => '',//授权接口(sc类的接口)需要带上 'sandbox' => false, ]; $app = Factory::Tbk($config); $param = [ 'fields' => 'num_iid,title,pict_url,small_images,reserve_price,zk_final_price,user_type,provcity,item_url,seller_id,volume,nick', 'q' => '蚊香' ]; $res = $app->item->get($param); print_r($res);
说明文档
支持
- 官方API文档: https://open.taobao.com/api.htm?docId=24517&docType=2
- 淘宝客订单API: https://open.taobao.com/api.htm?docId=43328&docType=2
- composer: https://getcomposer.org/
License
MIT