ennnnny/tbk

简约优雅的淘宝客SDK

Maintainers

Details

github.com/ennnnny/tbk

Source

Issues

Installs: 14 319

Dependents: 1

Suggesters: 0

Security: 0

Stars: 288

Watchers: 17

Forks: 85

Open Issues: 0

v0.4.2 2020-07-18 16:10 UTC

This package is auto-updated.

Last update: 2024-10-19 01:34:57 UTC


README

Latest Stable Version Total Downloads php>=5.6 License

可能是最优雅、简易的淘宝客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);

说明文档

支持

License

MIT