class Jm81auth::OAuth::Google
Constants
- ACCESS_TOKEN_URL
- DATA_URL
Public Instance Methods
get_access_token()
click to toggle source
# File lib/jm81auth/oauth/google.rb, line 7 def get_access_token response = client.post( ACCESS_TOKEN_URL, @params.merge(grant_type: 'authorization_code') ) JSON.parse(response.body)['access_token'] end