README.md in gplus-1.0.0 vs README.md in gplus-1.0.1
- old
+ new
@@ -46,10 +46,10 @@
:redirect_uri => 'http://example.com/oauth/callback'
)
Generate an authorization URL, and use it in a view:
- @auth_url = @gplus.authorization_url
+ @auth_url = @gplus.authorize_url
=> https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri= ...
= link_to 'Authorize This App', @auth_url
After the user authorizes your app, they will be redirected to your `redirect_uri`. Use `params[:code]` to retrieve an OAuth token for the user, and store the `token`, `refresh_token` and `expires_at` for persistence: