Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@ahmdrefat /get_client.rb secret
Created

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
Something went wrong with that request. Please try again.