Skip to content

Instantly share code, notes, and snippets.

@jimkang
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimkang/34d16247b40097d8cace to your computer and use it in GitHub Desktop.
Save jimkang/34d16247b40097d8cace to your computer and use it in GitHub Desktop.
How to get Twitter API tokens for your bot or app
  1. Sign up for a new Twitter account. They'll ask for a phone number, and unfortunately, as of 5/12/2015, I think you have to provide one to get API keys. Add phone number

  2. Go to https://apps.twitter.com to create a new app. Create new app

  3. Fill out the form for creating a new app. App form

  4. Go to the Keys and Access Tokens tab, which will have your consumer key and secret. Copy them somewhere so that you can use them in your app. Hit Create My Access Token. Keys and Access Tokens tab

  5. Copy the access token key and secret for your app. Access token

  6. After that, you probably want to go back to your Twitter settings and delete your phone from it.

Twitter settings

@_hartsick pointed out that you can also just create one app and have multiple bots share it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment