O'Reilly logo

Building Bots with Node.js by Madan Bhintade, Eduardo Freitas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

 Creating a Twitter app

The first and foremost step in creating a Twitter bot is to actually create a Twitter application. The bot is just a designation we'll be using, but in reality it's really a Twitter application behind the scenes that is able to interact with the Twitter API.

In order to be able to interact with the Twitter API, it is necessary to have a registered Twitter account. Go to the Twitter web page and sign up if you don't have an account. If you have one, sign in.

Once you are signed in, navigate to https://apps.twitter.com/ . This is where we will register our Twitter application. You'll then see the Twitter Application Management welcome page which has a button to create a new application.

To create the Twitter bot, click on the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required