PHP code example of dungang / taobaoke-client
1. Go to this page and download the library: Download dungang/taobaoke-client 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/ */
dungang / taobaoke-client example snippets
$client = new Client('你的APP_KEY', '你的APP_SECRET');
try {
$data = $client->taobaoTbkItemInfoGet(array(
'num_iids' => '563889454088'
));
echo "最后执行的完整的URL:" . $client->getLastRequestUrl() . "\n";
echo "获取的数据:\n";
print_r($data);
} catch (Exception $e) {
echo $e->getMessage();
}