huaiguoguo/yii2-taobao-sdk

taobao-sdk-PHP-auto_1457166217151-20170221

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 2

Open Issues: 0

Type:yii2-extension

1.02 2017-03-06 15:28 UTC

This package is not auto-updated.

Last update: 2024-10-12 20:44:12 UTC


README

####yii2-taobao-sdk

####taobao-sdk-PHP-auto_1457166217151-20170221

####安装方法 composer require huaiguoguo/yii2-taobao-sdk:dev-master

####简单的使用方法

use yii\taobao\top\request\TbkItemGetRequest;
use yii\taobao\top\TopClient;

$client            = new TopClient();
$appkey    = Yii::$app->params['taobao']['phpdx']['appkey'];
$appsecret = Yii::$app->params['taobao']['phpdx']['appsecret'];
$client->appkey    = $appkey;
$client->secretKey = $appsecret;
$client->format    = 'json';
$req = new TbkItemGetRequest;
$req->setFields("num_iid,title,pict_url,small_images,reserve_price,zk_final_price,user_type,provcity,item_url,seller_id,volume,nick");
$req->setQ("女装");
$req->setCat("16,18");
$resp = $client->execute($req);
$str =  json_decode( json_encode( $resp),true);
print_r(  json_encode($str) );

####更多使用方法请参考 http://open.taobao.com/docs/api_list.htm 相关文档

####Yii2更多学习请加群: 70324424

####Yii2社区: http://www.phpdx.cn