How to add yourself to your own Twitter list

It seems Twitter got rid of the handy-dandy dropdown that lets you add yourself to lists. Now, wherever my name appears on Twitter, there are zero operations I can perform on myself.

So, what to do? Sign up for a Twitter application of course! Make sure to set Application Type to “Client” and Default Access type to “Read & Write.” Put dummy values for Application Name, Description (at least 10 characters), and Application Website.

Once you have an application, copy down the Consumer key and Consumer secret. Then, click on My Access Token and copy the Access Token and Access Token Secret.

Now, you can interact with the Twitter API. I like to use the Twitter gem in Ruby for this. If you have Ruby and Rubygems installed, just sudo gem install twitter and then run the following script, substituting values where necessary: