|
Moodle
2.2.1
http://www.collinsharper.com
|
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' |
Definition at line 45 of file ClientLogin.php.
| 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.
| string | ||
| string | $password | |
| string | $service | |
| Zend_Gdata_HttpClient | $client | |
| string | $source | |
| string | $loginToken | The token identifier as provided by the server. |
| string | $loginCaptcha | The user's response to the CAPTCHA challenge. |
| string | $accountType | 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 |
Definition at line 81 of file ClientLogin.php.
| 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.