Class to facilitate Google's "Account Authentication for Installed Applications" also known as "ClientLogin".

see
category Zend
package Zend_Gdata
subpackage Gdata
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Set Google authentication credentials.

getHttpClient(string $email, string $password, string $service = 'xapi', \Zend_Gdata_HttpClient $client = null, string $source = self::DEFAULT_SOURCE, string $loginToken = null, string $loginCaptcha = null, $loginUri = self::CLIENTLOGIN_URI, string $accountType = 'HOSTED_OR_GOOGLE') : \Zend_Gdata_HttpClient
Static

Must be done before trying to do any Google Data operations that require authentication. For example, viewing private data, or posting or deleting entries.

Parameters

$email

string

$password

string

$service

string

$client

\Zend_Gdata_HttpClient

$source

string

$loginToken

string

The token identifier as provided by the server.

$loginCaptcha

string

The user's response to the CAPTCHA challenge.

$loginUri

$accountType

string

An optional string to identify whether the account to be authenticated is a google or a hosted account. Defaults to 'HOSTED_OR_GOOGLE'. See: http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html#Request

Exceptions

\Zend_Gdata_App_AuthException
\Zend_Gdata_App_HttpException
\Zend_Gdata_App_CaptchaRequiredException

Returns

\Zend_Gdata_HttpClient

 Constants

 

The Google client login URI

CLIENTLOGIN_URI = 'https://www.google.com/accounts/ClientLogin' 
 

The default 'source' parameter to send to Google

DEFAULT_SOURCE = 'Zend-ZendFramework'