淘宝客自写SDK调用说明

一、获取订单 https://open.taobao.com/api.htm?docId=43328&docType=2&scopeId=16175

$taobao=new Taobao('00','0000000000000');
//'end_time','start_time'
$arr['method']='taobao.tbk.order.details.get';
$arr['start_time']='2019-07-31 16:00:22';
$arr['end_time']='2019-07-31 16:20:22';
$result=$taobao->get($arr);

 二、生成淘口令

$arr['method']='taobao.tbk.tpwd.create';
$arr['text']='bjjlt';
$arr['url']='https://uland.taobao.com/';
$result=$taobao->get($arr);

 三、淘宝客-公用-淘宝客商品详情查询(简版) https://open.taobao.com/api.htm?docId=24518&docType=2

$arr['method']='taobao.tbk.item.info.get';
$arr['num_iids']='598714086600';
$arr['platform']=1; //链接形式:1:PC,2:无线,默认:1
$result=$taobao->get($arr);

 

posted @ 2019-07-31 18:59  A18  阅读(656)  评论(0编辑  收藏  举报