Skip to content

Instantly share code, notes, and snippets.

@edward
Forked from anonymous/gist:4300140
Created December 15, 2012 22:59
Show Gist options
  • Save edward/4300155 to your computer and use it in GitHub Desktop.
Save edward/4300155 to your computer and use it in GitHub Desktop.
client = OAuth2::Client.new(API_CLIENT, API_SECRET, {
:authorize_url => 'https://accounts.google.com/o/oauth2/auth',
:token_url => 'https://accounts.google.com/o/oauth2/token',
# Set options that get passed on to Faraday
:connection_opts => {:proxy => { :uri => 'http://127.0.0.1:8888'} },
:ssl => {:verify => false}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment