Shopee PHP Client
This is a Shopee PHP Client, currently supported for API V2 in ShopeeOpenPlatform
Composer Install
composer require haistar/shopee-php-sdk
Usage
$shopeeClient = new ShopApiClient();
$apiConfig = new ShopeeApiConfig();
$apiConfig->setPartnerId((int) $_ENV["SHOPEE_PARTNER_ID"]);
$apiConfig->setShopId((int) $_ENV["SHOPEE_SHOP_ID"]);
$apiConfig->setAccessToken($_ENV["SHOPEE_ACCESS_TOKEN"]);
$apiConfig->setSecretKey($_ENV["SHOPEE_SECRET_KEY"]);
$baseUrl = "https://partner.test-stable.shopeemobile.com";
$apiPath = "/api/v2/product/get_item_list";
$params = array();
$productList = $shopeeClient->httpCallGet($baseUrl, $apiPath, $params, $apiConfig);
Running Test
composer test
For running all tests