views:

45

answers:

1
require 'rubygems'
require 'twitter'

httpauth = Twitter::HTTPAuth.new('myusername', 'mypassword')
client = Twitter::Base.new(httpauth)

It is throwing : uninitialized constant Twitter::HTTPAuth (NameError) i have "twitter" in my gem list, i dotn understand where is the problem

+1  A: 

The HTTPAuth is delete on Twitter, so there are no more Twitter::HTTPAuth class in twitter gem.

You need use the oauth authentication now on twitter.

shingara