adi / tiktok-api-client
There is no license information available for the latest version (v2.0.0) of this package.
TikTok Shop API Client created use PHP
v2.0.0
2023-01-16 09:57 UTC
Requires
- guzzlehttp/guzzle: ^7.0
README
TikTok Shop API Client created use PHP
How To Install
composer require adi/tiktok-api-client
How To Use
$tiktokClient = new GeneralApiClient();
$tiktokConfig = new TiktokApiConfig();
$tiktokConfig->setAppKey($appKey);
$tiktokConfig->setAccessToken($accessToken);
$tiktokConfig->setShopId($shopId);
$tiktokConfig->setSecretKey($partnerSecret);
$baseUrl = $_ENV["TIKTOK_API_HOST"];
$apiPath = "/api/logistics/get_warehouse_list";
$params = array(
'app_key' => $appKey,
'access_token' => $accessToken,
'shop_id' => $shopId
);
$resultLocation = $tiktokClient->httpCallGet($baseUrl, $apiPath, $params, $tiktokConfig);