Class GData::Auth::ClientLogin
In: lib/gdata/auth/clientlogin.rb
Parent: Object

This class implements ClientLogin signatures for Data API requests. It can be used with a GData::Client::GData object.

Methods

Attributes

account_type  [RW]  One of ‘HOSTED_OR_GOOGLE’, ‘GOOGLE’, or ‘HOSTED’. See documentation here: code.google.com/apis/accounts/docs/AuthForInstalledApps.html
auth_url  [RW]  The ClientLogin authentication handler
service  [RW]  The service name for the API you are working with
token  [RW]  The access token

Public Class methods

Initialize the class with the service name of an API that you wish to request a token for.

Public Instance methods

Retrieves a token for the given username and password. source identifies your application. login_token and login_captcha are used only if you are responding to a previously issued CAPTCHA challenge.

Creates an appropriate Authorization header on a GData::HTTP::Request object.

[Validate]