Moodle  2.2.1
http://www.collinsharper.com
Zend_Gdata_ClientLogin Class Reference

Static Public Member Functions

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

Data Fields

const CLIENTLOGIN_URI = 'https://www.google.com/accounts/ClientLogin'
const DEFAULT_SOURCE = 'Zend-ZendFramework'

Detailed Description

Definition at line 45 of file ClientLogin.php.


Member Function Documentation

static getHttpClient ( email,
password,
service = 'xapi',
client = null,
source = self::DEFAULT_SOURCE,
loginToken = null,
loginCaptcha = null,
loginUri = self::CLIENTLOGIN_URI,
accountType = 'HOSTED_OR_GOOGLE' 
) [static]

Set Google authentication credentials. 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:
string$email
string$password
string$service
Zend_Gdata_HttpClient$client
string$source
string$loginTokenThe token identifier as provided by the server.
string$loginCaptchaThe user's response to the CAPTCHA challenge.
string$accountTypeAn 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

Definition at line 81 of file ClientLogin.php.


Field Documentation

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

The Google client login URI

Definition at line 52 of file ClientLogin.php.

const DEFAULT_SOURCE = 'Zend-ZendFramework'

The default 'source' parameter to send to Google

Definition at line 58 of file ClientLogin.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations