Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.13 KB

README.md

File metadata and controls

50 lines (41 loc) · 1.13 KB

tiktokjs

A Tiktok client library for NodeJS that connects through the TikTok Web browser app

Installation

npm install tiktokjs

How to run the script

Kindly set you environment variables from the .env.test file.

cp .env.test .env

Replace the CLIENT and PASSWORD variables in the .env file with your credentials and run the following command:

ts-node src/test.ts

Usage

import { TikTokClient } from './client';
const dotenv = require('dotenv');
dotenv.config();
const { CLIENT, PASSWORD } = process.env;

(async () => {
    const clientId = CLIENT;
    const client = new TikTokClient();
    await client.authenticate(CLIENT, PASSWORD);
})();

TODO

  • Complete Authentication
  • Browser Pooling for multiple sessions
  • Workers for multiple sessions and re-use sessions
  • Complete Session Management
  • Complete Session Finalization
  • Complete Session Refresh
  • Complete Session Deletion & Cleanup
  • Add upload function
  • Add native post schedule function
  • Add download function
  • Add get function
  • Add delete function
  • Add search function