This is a Shopee Partner API Client for PHP.
Execute the following command to get the package:
$ composer config repositories.phongphanmage/shopee-php vcs https://github.com/phongphanmage/shopee-php.git
$ composer require phongphanmage/shopee-php
Create an instance of the Shopee client, then use to access the Shopee Partner API.
<?php
require_once __DIR__ . '/vendor/autoload.php';
$client = new \Shopee\Client([
'secret' => SHOPEE_SECRET,
'partner_id' => SHOPEE_PARTNER_ID,
'shopid' => SHOPEE_SHOP_ID,
]);
$response = $client->item->getItemDetail(['item_id' => 1978]);
Alternatively, you can also use the parameter model within request.
$parameters = (new \Shopee\Nodes\Item\Parameters\GetItemDetail())
->setItemId(1978);
$response = $client->item->getItemDetail($parameters);
See the LICENSE file for license rights and limitations (BSD 3-Clause).