Skip to content

Instantly share code, notes, and snippets.

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 manuelmeurer/562238 to your computer and use it in GitHub Desktop.
Save manuelmeurer/562238 to your computer and use it in GitHub Desktop.
# old
httpauth = Twitter::HTTPAuth.new(username, password)
base = Twitter::Base.new(httpauth)
# new
oauth = Twitter::OAuth.new(consumer_token, consumer_secret)
oauth.authorize_from_access(access_token, access_secret)
base = Twitter::Base.new(oauth)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment