Class: GooglApi::ClientLogin

Inherits:
Object
  • Object
show all
Defined in:
lib/googl-api/client_login.rb

Class Method Summary collapse

Class Method Details

.authenticate(email, password) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/googl-api/client_login.rb', line 6

def authenticate(email, password)
   = GoogleClientLogin::GoogleAuth.new(:accountType => 'HOSTED_OR_GOOGLE', 
    :service => 'urlshortener', 
    :source => 'companyName-applicationName-versionID'
  )
  .authenticate(email, password)
  auth_token = .auth
end