PHP code example of cnf / shopee-php
1. Go to this page and download the library: Download cnf/shopee-php 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/ */
cnf / shopee-php example snippets
nt = new \Shopee\Client([
'secret' => SHOPEE_SECRET,
'partner_id' => SHOPEE_PARTNER_ID,
'shopid' => SHOPEE_SHOP_ID,
]);
$response = $client->item->getItemDetail(['item_id' => 1978]);
$parameters = (new \Shopee\Nodes\Item\Parameters\GetItemDetail())
->setItemId(1978);
$response = $client->item->getItemDetail($parameters);
$ composer