Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (44 sloc) 1.85 KB

πŸ“Œ index / 🐣 twbot / πŸ“š api

πŸ•Ή Get started

Install npm package and run sample if you want to start using this api.

Example (with flow login)

const config = require ("./config");
const Bot = require("@socialmanagertools/twbot");
let bot = new Bot(config);

(async () => {
	await bot.start();

	let api = await bot.api();

	let response = await api.login.flow();

	if (response.status) {
		response = await api.twofa.flow();
	}

	if (response.status) {
		// Here you are logged...
		// Calls your personal api flow here, example:
		//
		// await api.goto.profile("ptkdev");
		// response = await api.read.user_username("profile");
		// console.log(response.username);
	}

	await bot.stop();
})();

πŸ“Ž API Index

Twitter api manual:

🎁 Support: Donate

πŸ’« License

  • Documentation and Contributions have CC BY 4.0 License
  • Images and Logos have CC BY-NC 4.0 License
  • Code Snippets/Examples have MIT License
Copyleft (c) 2018-2019 Patryk RzucidΕ‚o (@PTKDev) <support@ptkdev.io>
You can’t perform that action at this time.