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

This package is auto-updated.

Last update: 2024-09-16 13:43:09 UTC


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