## Zend_Gdata_Health

Description

Service class for interacting with the Google Health Data API

- copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- link: http://code.google.com/apis/health
- license: New BSD License

Located in /Gdata/Health.php (line 60)

    Zend_Gdata_App
       |
       --Zend_Gdata
          |
          --Zend_Gdata_Health

Class Constant Summary
AUTHSUB_PROFILE_FEED_URI = 'https://www.google.com/health/feeds/profile/default'
AUTHSUB_REGISTER_FEED_URI = 'https://www.google.com/health/feeds/register/default'
CLIENTLOGIN_PROFILELIST_FEED_URI = 'https://www.google.com/health/feeds/profile/list'
CLIENTLOGIN_PROFILE_FEED_URI = 'https://www.google.com/health/feeds/profile/ui'
CLIENTLOGIN_REGISTER_FEED_URI = 'https://www.google.com/health/feeds/register/ui'
H9_SANDBOX_SERVICE_NAME = 'weaver'
HEALTH_SERVICE_NAME = 'health'
Variable Summary
static mixed $namespaces
Method Summary
Zend_Gdata_Health __construct ([Zend_Http_Client $client = null], [string $applicationId = 'MyCompany-MyApp-1.0'], [bool $useH9Sandbox = false])
Zend_Gdata_Health_ProfileEntry getHealthProfileEntry ([mixed $query = null])
Zend_Gdata_Health_ProfileFeed getHealthProfileFeed ([mixed $query = null])
Zend_Gdata_Feed getHealthProfileListFeed ([string $query = null])
string getProfileID ()
Zend_Gdata_Health_ProfileEntry sendHealthNotice (string $subject, string $body, [string $bodyType = null], [string $ccrXML = null])
Zend_Gdata_Health setProfileID (string $id)
Variables
static mixed $namespaces = array('ccr' => 'urn:astm-org:CCR',
'batch' => 'http://schemas.google.com/gdata/batch',
'h9m' => 'http://schemas.google.com/health/metadata',
'gAcl' => 'http://schemas.google.com/acl/2007',
'gd' => 'http://schemas.google.com/g/2005') (line 102)

- access: public

Redefinition of:

Zend_Gdata::$namespaces
  Namespaces used for Gdata data

#### Inherited Variables

Inherited from Zend_Gdata

> Zend_Gdata::$_defaultPostUri
> Zend_Gdata::$_httpClient
> Zend_Gdata::$_registeredPackages
> Zend_Gdata::$_staticHttpClient

Inherited from Zend_Gdata_App

> Zend_Gdata_App::$_gzipEnabled
> Zend_Gdata_App::$_httpMethodOverride
> Zend_Gdata_App::$_majorProtocolVersion
> Zend_Gdata_App::$_maxRedirects
> Zend_Gdata_App::$_minorProtocolVersion
> Zend_Gdata_App::$_useObjectMapping
> Zend_Gdata_App::$_verboseExceptionMessages

Methods
Constructor __construct (line 119)

Create Zend_Gdata_Health object

- access: public

Zend_Gdata_Health __construct ([Zend_Http_Client $client = null], [string $applicationId = 'MyCompany-MyApp-1.0'], [bool $useH9Sandbox = false])

- Zend_Http_Client $client: (optional) The HTTP client to use when when communicating with the Google Health servers.
- string $applicationId: The identity of the application in the form of Company-AppName-Version
- bool $useH9Sandbox: True if the H9 Developer's Sandbox should be used instead of production Google Health.

Redefinition of:

Zend_Gdata::__construct()
  Create Gdata object

getHealthProfileEntry (line 221)

Retrieve a profile entry object

- access: public

Zend_Gdata_Health_ProfileEntry getHealthProfileEntry ([mixed $query = null])

- mixed $query: The query for the feed, as a URL or Query

getHealthProfileFeed (line 187)

Retrieve a user's profile as a feed object. If ClientLogin is used, the profile associated with $this->_profileID is returned, otherwise the profile associated with the AuthSub token is read.

- access: public

Zend_Gdata_Health_ProfileFeed getHealthProfileFeed ([mixed $query = null])

- mixed $query: The query for the feed, as a URL or Query

getHealthProfileListFeed (line 155)

Retrieves the list of profiles associated with the user's ClientLogin credentials.

- access: public

Zend_Gdata_Feed getHealthProfileListFeed ([string $query = null])

- string $query: The query of the feed as a URL or Query object

getProfileID (line 132)

Gets the id of the user's profile

- return: The profile id
- access: public

string getProfileID ()
sendHealthNotice (line 246)

Posts a new notice using the register feed. This function constructs the atom profile entry.

- access: public

Zend_Gdata_Health_ProfileEntry sendHealthNotice (string $subject, string $body, [string $bodyType = null], [string $ccrXML = null])

- string $subject: The subject line of the notice
- string $body: The message body of the notice
- string $bodyType: The (optional) type of message body (text, xhtml, html, etc.)
- string $ccrXML: The (optional) CCR to add to the user's profile

setProfileID (line 143)

Sets which of the user's profiles will be used

- return: Provides a fluent interface
- access: public

Zend_Gdata_Health setProfileID (string $id)

- string $id: The profile ID

#### Inherited Methods

Inherited From Zend_Gdata

> Zend_Gdata::__construct()
> Zend_Gdata::getEntry()
> Zend_Gdata::getFeed()
> Zend_Gdata::import()
> Zend_Gdata::isAuthenticated()
> Zend_Gdata::performHttpRequest()

Inherited From Zend_Gdata_App

> Zend_Gdata_App::__construct()
> Zend_Gdata_App::delete()
> Zend_Gdata_App::enableRequestDebugLogging()
> Zend_Gdata_App::generateIfMatchHeaderData()
> Zend_Gdata_App::get()
> Zend_Gdata_App::getEntry()
> Zend_Gdata_App::getFeed()
> Zend_Gdata_App::getGzipEnabled()
> Zend_Gdata_App::getHttpClient()
> Zend_Gdata_App::getHttpMethodOverride()
> Zend_Gdata_App::getMajorProtocolVersion()
> Zend_Gdata_App::getMaxRedirects()
> Zend_Gdata_App::getMinorProtocolVersion()
> Zend_Gdata_App::getNextFeed()
> Zend_Gdata_App::getPreviousFeed()
> Zend_Gdata_App::getStaticHttpClient()
> Zend_Gdata_App::getVerboseExceptionMessages()
> Zend_Gdata_App::import()
> Zend_Gdata_App::importFile()
> Zend_Gdata_App::importString()
> Zend_Gdata_App::importUrl()
> Zend_Gdata_App::insertEntry()
> Zend_Gdata_App::performHttpRequest()
> Zend_Gdata_App::post()
> Zend_Gdata_App::prepareRequest()
> Zend_Gdata_App::put()
> Zend_Gdata_App::registerPackage()
> Zend_Gdata_App::retrieveAllEntriesForFeed()
> Zend_Gdata_App::setGzipEnabled()
> Zend_Gdata_App::setHttpClient()
> Zend_Gdata_App::setHttpMethodOverride()
> Zend_Gdata_App::setMajorProtocolVersion()
> Zend_Gdata_App::setMaxRedirects()
> Zend_Gdata_App::setMinorProtocolVersion()
> Zend_Gdata_App::setStaticHttpClient()
> Zend_Gdata_App::setVerboseExceptionMessages()
> Zend_Gdata_App::updateEntry()
> Zend_Gdata_App::useObjectMapping()
> Zend_Gdata_App::usingObjectMapping()
> Zend_Gdata_App::__call()

Class Constants
AUTHSUB_PROFILE_FEED_URI =
'https://www.google.com/health/feeds/profile/default' (line 65)

URIs of the AuthSub/OAuth feeds.

AUTHSUB_REGISTER_FEED_URI =
'https://www.google.com/health/feeds/register/default' (line 67)
CLIENTLOGIN_PROFILELIST_FEED_URI =
'https://www.google.com/health/feeds/profile/list' (line 73)

URIs of the ClientLogin feeds.

CLIENTLOGIN_PROFILE_FEED_URI =
'https://www.google.com/health/feeds/profile/ui' (line 75)
CLIENTLOGIN_REGISTER_FEED_URI =
'https://www.google.com/health/feeds/register/ui' (line 77)
H9_SANDBOX_SERVICE_NAME = 'weaver' (line 84)
HEALTH_SERVICE_NAME = 'health' (line 83)

Authentication service names for Google Health and the H9 Sandbox.

#### Inherited Constants

Inherited from Zend_Gdata

> Zend_Gdata::AUTH_SERVICE_NAME

Inherited from Zend_Gdata_App

> Zend_Gdata_App::DEFAULT_MAJOR_PROTOCOL_VERSION
> Zend_Gdata_App::DEFAULT_MINOR_PROTOCOL_VERSION

Documentation generated on Tue, 26 Oct 2010 20:08:48 +0400 by phpDocumentor 1.4.2