Created
December 13, 2009 02:17
-
-
Save ivey/255214 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def twitter_oauth_client | |
oauth = Twitter::OAuth.new(TwitterAuth.consumer.key,TwitterAuth.consumer.secret) | |
def oauth.setup_from_twitter_auth(at,as,t) | |
@atoken = at | |
@asecret = as | |
@access_token = t | |
end | |
oauth.setup_from_twitter_auth access_token, access_secret, token | |
Twitter::Base.new(oauth) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment