hanson/open-taobao-sdk

dev-master 2018-06-19 15:40 UTC

This package is not auto-updated.

Last update: 2024-12-22 06:55:01 UTC


README

淘宝开放平台SDK

安装

composer require hanson/open-taobao-sdk:dev-master -vvv

使用

<?php

include __DIR__.'/../vendor/autoload.php';

$taobao = new \Hanson\Taobao\Taobao(['key' => 'your-key', 'secret' => 'your-secret']);

// 使用如下
$taobao->request('method', $params);

// 例子
print_r($taobao->request('taobao.tbk.item.get', ['fields' => 'num_iid,title,pict_url,small_images,reserve_price,zk_final_price,user_type,provcity,item_url,seller_id,volume,nick', 'q' => '便利贴']));