A Sinatra web application that provides the basic functionality to authenticate via OAuth 2 with Google's API
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
views
Gemfile
Gemfile.lock
README.markdown
app.rb
config.ru

README.markdown

GMail OAuth2 Sinatra

  • It should be known that GMail is currently not supported with OAuth2 as far as I can tell.

A small working example of interacting with the Google API using OAuth and Sinatra

Pre Reqs

Head to https://code.google.com/apis/console/, from the left menu select API Access and create a Client ID

Run It!

To get this puppy running you just need to:

bundle install

then

G_API_CLIENT=<your_client_id> G_API_SECRET=<your_secret> rackup

and then head over to http://localhost:9292 and click the 'Auth' link