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

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

monitor web browser programmatically in Android? -

c# - Using multiple datasets in RDLC -