
Using the OAuth token you generated in the last step, you can create a URL that you can go to authorize your application. Step 2 - Create and go to the authenticate URL For this endpoint, you will need to use OAuth 1.0a.Īfter you make the request you will get back a response that looks similar to the one below: You can use a REST Client such as Insomnia or Postman to make a POST request to the request token endpoint. A helpful forum post also explains how to authenticate on behalf of a bot account. To authenticate a new account, you can use a pin-based OAuth flow. You can apply for access from your main handle and authenticate on behalf of your account. You can learn more about getting started with the Twitter API in the getting started section of our documentation. To use v1.1 endpoints, you will need elevated access, which you can apply for from the developer portal.Įach Project contains an App, with which you can generate the credentials required to use the Twitter API. Once you have a developer account, you will need to create a Project in the developer portal. Additionally, you will want to set up the bio of your bot to say it’s a bot and who built it.Ī #TwitterBot that Tweets cat facts by on behalf of your botīefore you can use the Twitter API v2, you will need a developer account.


You will also want to set your bot’s profile picture and background image. The account for your bot should be a unique handle that describes your bot’s purpose. First, you will need to create a new account for your bot.
