secret
Created

  • Download Gist
get_client.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.