Proxy in ruby gem "twitter_oauth" -
my test environment ruby (sinatra + twitter_oauth) project behind proxy.
in documentation, read how use twitter_oauth gem proxy. there author says:
first need authorize twitter user via oauth directly via twitter api (this part cannot proxied)
but unfortunately, on step receive proxy error when testing locally.
is there possibility proxy this?
client = twitteroauth::client.new( :consumer_key => 'your_app_consumer_key', :consumer_secret => 'youra_app_consumer_secret' ) request_token = client.request_token(:oauth_callback => 'your_callback_url')
thanks in advance!!
no, oauth can skipped if check local environment wrapped around authentication:
def localhost client = "test" request_token = "me" def webhost client = twitteroauth::client.new( :consumer_key => 'your_app_consumer_key', :consumer_secret => 'youra_app_consumer_secret' ) request_token = client.request_token(:oauth_callback => 'your_callback_url')
Comments
Post a Comment