Skip to content

Instantly share code, notes, and snippets.

@maraigue
maraigue / xauth-twitter.rb
Created February 14, 2010 16:41
Requesting OAuth access token without browser, only with Twitter user name and password (so-called xAuth), by Ruby
#!/usr/bin/env ruby
# *** Important notification ***
# As xAuth is officially supported, we have to register
# your application needing xAuth, via e-mail.
# If not registered, 401 error will be returned.
# http://apiwiki.twitter.com/Twitter-REST-API-Method:-oauth-access_token-for-xAuth
#
# (*** 重要な告知 ***
# xAuthが公式にサポートされたのに伴い、xAuthの必要なアプリケーションは