Class: GooglApi::ClientLogin
- Inherits:
-
Object
- Object
- GooglApi::ClientLogin
- 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) login_service = GoogleClientLogin::GoogleAuth.new(:accountType => 'HOSTED_OR_GOOGLE', :service => 'urlshortener', :source => 'companyName-applicationName-versionID' ) login_service.authenticate(email, password) auth_token = login_service.auth end |