Skip to content

Instantly share code, notes, and snippets.

@ahmdrefat
Created November 12, 2012 13:31
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 ahmdrefat/9a9a43223d68d397025e to your computer and use it in GitHub Desktop.
Save ahmdrefat/9a9a43223d68d397025e to your computer and use it in GitHub Desktop.
def get_client
Twitter.configure do |config|
config.consumer_key = "rfoURDvnXa4eKoypFRmJVA"
config.consumer_secret = "u6Vm5CDHmiOfT7UmJRS7tRJeITQrKXKs7M97in46PGo"
end
Twitter::Client.new(
:oauth_token => TwitterOauthSetting.find_by_user_id(current_user.id).atoken,
:oauth_token_secret => TwitterOauthSetting.find_by_user_id(current_user.id).asecret
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment