Skip to content

prayogadhi/tiktokshop-api-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unofficial Tiktok Shop API Client build in PHP

How To Install

composer require adi/tiktokshop-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);

About

Unofficial Tiktok Shop Api Client build in PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%