Skip to content

Instantly share code, notes, and snippets.

Created December 15, 2012 22:58
Show Gist options
  • Select an option

  • Save anonymous/4300140 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/4300140 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Dec 15, 2012.
    8 changes: 8 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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}
    })