Gdata/ClientLogin.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Gdata  
Subpackage
Gdata  
Version
$Id: ClientLogin.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Gdata_ClientLogin

Package: Zend\Gdata\Gdata
Class to facilitate Google's "Account Authentication for Installed Applications" also known as "ClientLogin".
See
\global\http://code.google.com/apis/accounts/AuthForInstalledApps.html  
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  CLIENTLOGIN_URI = 'https://www.google.com/accounts/ClientLogin'
The Google client login URI
>VConstant  DEFAULT_SOURCE = 'Zend-ZendFramework'
The default 'source' parameter to send to Google

Methods

methodpublicgetHttpClient(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

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
NameTypeDescription
$emailstring
$passwordstring
$servicestring
$client\Zend_Gdata_HttpClient
$sourcestring
$loginTokenstring

The token identifier as provided by the server.

$loginCaptchastring

The user's response to the CAPTCHA challenge.

$loginUri
$accountTypestring

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

Returns
TypeDescription
\Zend_Gdata_HttpClient
Throws
ExceptionDescription
\Zend_Gdata_App_AuthException
\Zend_Gdata_App_HttpException
\Zend_Gdata_App_CaptchaRequiredException
Documentation was generated by phpDocumentor 2.0.0a12.