Module: Google::Profile

Defined in:
lib/TheresNoBox/google.rb

Class Method Summary collapse

Class Method Details

.getProfile(token) ⇒ Object



61
62
63
# File 'lib/TheresNoBox/google.rb', line 61

def self.getProfile(token)
  return JSON.parse(RestClient.get "https://www.googleapis.com/oauth2/v1/userinfo?access_token=#{token}")
end