Tuesday, July 12, 2011

Twitter OAuth authentication in Ruby

The hardest part of building this Twitter bot was getting it authenticated via OAuth. This is partly because the Ruby twitter gem is really easy to use. But this is mostly because the documentation and blog posts talking about authentication that I found were all incomplete or out of date. Therefore, I would like to present: how to connect to a Twitter account in Ruby, as of July 2011.