PHP code example of wxm / taobao-sdk
1. Go to this page and download the library: Download wxm/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/ */
wxm / taobao-sdk example snippets
use Taobao\Application;
$taobao = new Application('app_key', 'secret_key');
// 例如 taobao.tbk.item.info.get, 其他接口同理
$taobao->tbk->item->info->get(521383533703);
// 需要用户授权的接口,例如 taobao.tbk.sc.material.optional
$taobao->withSession('session')->tbk->sc->material->optional('洗衣粉', 'site_id', 'adzone_id');