GithubHelp home page GithubHelp logo

yii2-taobao-sdk's Introduction

####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

yii2-taobao-sdk's People

Contributors

v-joy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.