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 |
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
Must be done before trying to do any Google Data operations that require authentication. For example, viewing private data, or posting or deleting entries.
string
string
string
\Zend_Gdata_HttpClient
string
string
The token identifier as provided by the server.
string
The user's response to the CAPTCHA challenge.
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
\Zend_Gdata_App_AuthException |
|
---|---|
\Zend_Gdata_App_HttpException |
|
\Zend_Gdata_App_CaptchaRequiredException |
\Zend_Gdata_HttpClient
CLIENTLOGIN_URI = 'https://www.google.com/accounts/ClientLogin'
DEFAULT_SOURCE = 'Zend-ZendFramework'