PHP code example of wish-cloud / open-taobao-sdk

1. Go to this page and download the library: Download wish-cloud/open-taobao-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wish-cloud / open-taobao-sdk example snippets


$client = new \WishCloud\OpenTaobao\Client(['key' => 'your-key', 'secret' => 'your-secret','debug'=>false]);
$taobao->request('API接口名称', $params);
$client->request('taobao.tbk.item.get', ['fields' => 'title,cid,pic_url,num,price', 'page_no' => 1]));