1. Go to https://dev.twitter.com, and sign in with your name and password.
  2. Navigate to https://dev.twitter.com/apps/new.
  3. Enter name, description, website, and a callback URL. In my code the callback URL will always be set from the code – I have no idea if this setting is important in that case. However, there must be some entry.
  4. Agree to the rules of the road. After all, this is Twitter country, where you are just a mere peasant.
  5. Enter captcha to prove you are a peasant and not an agent of a higher power.
  6. Repeat step 6, until you get the captcha right.
  7. Twitter will now redirect you to https://dev.twitter.com/apps/NNNN/show, where you can review and edit more application details. It is probably a good idea to write down that URL.
  8. The OAuth level is currently set to “Read-only”. This is ok for some applications – if you just need to identify a user of fetch some information from a user or from his/her timeline. If you want to be more active you need “Read and Write” access or even “Read, Write and Access direct messages”. You change this on the “Settings” tab.
  9. Back to the “Details” tab.
  10. If you want to use this “application” with a script you still need an access token. This will allow the script to interact with Twitter on behalf of your user account. Create this access token by clicking on “Create my access token.” on the bottom of the screen.
  11. Now scribble down Consumer key, Consumer secret, Access token and Access token secret.

Note: a thing is not called “secret” by accident; it is called so to keep it secret.