Google::Ads::Common::AuthTokenHandler implements most of the methods required to request AuthTokens using the ClientLogin protocol, see https://developers.google.com/accounts/docs/AuthForInstalledApps for more information about the protocol.
Each of these attributes can be set via the constructor as a hash. Alternatively, there is a get_ and set_ method associated with each attribute for retrieving or setting them dynamically.
The email of the account to authorization against.
The password to use for authorization.
Endpoint of the authorization server.
Auth token either manually set or generated.
time in which the token was issued if it was requested by this class.
Initializes the handler with properties such as the email and password to use for generating AuthTokens.
True, if a valid AuthToken is available or can be generated to use within API requests.
Forces refreshing the auth token using the credentials set in the handler.
Calls the authorization server to generate a new AuthToken. Sets the generated AuthToken in the auth_token property as well as the issued_in property. A captcha token and code can be passed to this method to handle captcha challenges
Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
David Torres <david.t at google.com>
$Rev: $ $LastChangedBy: $ $Id: $