Skip to content

Instantly share code, notes, and snippets.

@auchenberg
Created May 4, 2011 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save auchenberg/955099 to your computer and use it in GitHub Desktop.
Save auchenberg/955099 to your computer and use it in GitHub Desktop.
Test
require 'rubygems'
require 'sinatra'
require 'oauth2'
require 'json'
def new_client
OAuth2::Client.new('CLIENT ID', 'CLIENT SECRET', :site => 'https://github.com',
:authorize_path => '/login/oauth/authorize', :access_token_path => '/login/oauth/access_token')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment