@bilalyasin1616/tiktok-shop-api
v1.1.3
Published
Before integrating TikTok Shop API SDK into your project and making your first API call with the SDK, you must [create a test seller account](https://partner.tiktokshop.com/docv2/page/6789f75a38b3f103167690dc) and [generate a test access token](https://pa
Readme
Node.js SDK
Prerequisites
Before integrating TikTok Shop API SDK into your project and making your first API call with the SDK, you must create a test seller account and generate a test access token.
Integrate Node.js SDK
Online version of this document: [https://partner.tiktokshop.com/docv2/page/67c83e0799a75104986ae498](Tiktok Shop API SDK)
Initialize API request instance
import { ClientConfiguration, TikTokShopNodeApiClient,AccessTokenTool } from ".";
ClientConfiguration.globalConfig.app_key = "XXXXXXXXX";
ClientConfiguration.globalConfig.app_secret =
"XXXXXXXXX";
const access_token = "XXXXXXXXX"
const client = new TikTokShopNodeApiClient({
config: {
sandbox: false,
},
}); Make API Requests and Access API Response
const main = async () => {
const result = await client.api.ProductV202502Api.ProductsSearchPost(1,access_token,'application/json',undefined,undefined);
console.log('resp data := ',JSON.stringify(result.body, null, 2));
};
main(); 