-
-
Save ahmdrefat/9a9a43223d68d397025e 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 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