David Torres > GOOGLE-ADWORDS-PERL-CLIENT-2.7.4 > Google::Ads::Common::AuthHandlerInterface

Download:
GOOGLE-ADWORDS-PERL-CLIENT-2.7.4.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: GOOGLE-ADWORDS-PERL-CLIENT-3.0.0

NAME ^

Google::Ads::Common::AuthHandlerInterface

DESCRIPTION ^

Interface to be implemented by concrete authorization handlers. Defines the necessary subroutines to build authorized request against a Google API.

METHODS ^

initialize

Initializes the handler with a given set of properties. Used to pass parameters such as: client ids, access tokens, etc.

Parameters

prepare_request

Constructs a HTTP::Request valid to send an authorized request to the API. Implementors will attach authorization headers to the request at this phase.

Parameters

is_auth_enabled

Method called to check if the authorization has already been setup, so the prepare_request method can be called.

Returns

True, if the authorization is in place and the class can prepare requests. False, otherwise.

LICENSE AND COPYRIGHT ^

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

     http://www.apache.org/licenses/LICENSE-2.0

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.

AUTHOR ^

David Torres <david.t at google.com>

REPOSITORY INFORMATION ^

 $Rev: $
 $LastChangedBy: $
 $Id: $
syntax highlighting: