Skip to content

prayogadhi/tiktok-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tiktok-api-client

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);