A lightweight Twitter Authenticator server for quickly obtaining API keys
A lightweight Twitter Authenticator server for quickly obtaining API keys
A lot of bot authors just make a new developer account for each bot. This is impractical if orchestrating multiple bots in conjunction with one another.
Your bot army awaits! Let’s walk through it.
You will need just a couple things:
npm install
.env
file in the repository and fill in your application consumer keys like so:
TWITTER_APP_CONSUMER_KEY=your_key_here
TWITTER_APP_CONSUMER_SECRET=your_secret_here
REMEMBER: Never check your keys into git! You can get your keys from https://developer.twitter.com/.
http://localhost:8080/sessions/callback
Make sure you’ve completed the steps in Instance Setup. You’re now ready to authenticate some bots!
npm start
localhost:8080
/home
route will display the keys for your currently logged in Twitter account./
and hit ‘Reset Session’ before repeating the process with a new bot.Questions? Go ahead and open an issue!
Happy automating!
Major thanks go to Juan González for the original OAuth implementation in Express. This tool ports his work to Koa and adds a basic interface, documentation, and security recommendations.
Here’s the original gist this was based on: https://gist.github.com/JuanJo4/e408d9349b403523aeb00f262900e768