1.0.9 • Published 3 years ago

@minta/tiktok v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Tiktok API

currently this npm supports only creative plugin redirect url for creative partner of Tiktok This npm will contain soon all most tiktok business api and ads api (marketing api)

creative plugin redirect url

note: you must be an official partner of tiktok in order to use the redirect url.

how to use:

import Tiktok, { ITiktokCreativePluginData, ItiktokAction } from "@minta/tiktok";

const tiktokData: ITiktokCreativePluginData = {
                storeId: "62f8f407a9ada32d8ce1dd77",
                actionType: ItiktokAction.creativePlugin,
                timezone: "America/New_York",
                storeName: "coatzy",
                currency: "USD",
                websiteURL: "http://coatzy.com",
                domain: "http://coatzy.com",
                countryCode: "US",
                downloadURLS: ["https://campaigns.withminta.com/2938/0000/kz8302p9usl77n362641q1mc9t1l73g821g3j2.mp4"],
                businessPlatform: "your_predefine_business_platform_agreed_with_tiktok",
                keyForHmac: "your_predefine_key_agreed_with_tiktok",
                phoneNumber: "+97254444444",
                email: "hello@koatzy.com",
                env: "prod",
                closeMethod: "redirect_inside_tiktok",
                isTest: true,
                locale: "EN",
                industryId: "290401"
            };
            const tiktok = new Tiktok();
            // Act
            const url = await tiktok.handle(tiktokData);

the response url is a url which open a tiktok dialog for authentication, then choose ads account then upload media to the chosen ads account.

1.0.2

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago