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.
Service class for interacting with the Google Health Data API
AUTHSUB_PROFILE_FEED_URI = 'https://www.google.com/health/feeds/profile/default'
URIs of the AuthSub/OAuth feeds.
AUTHSUB_REGISTER_FEED_URI = 'https://www.google.com/health/feeds/register/default'
CLIENTLOGIN_PROFILELIST_FEED_URI = 'https://www.google.com/health/feeds/profile/list'
URIs of the ClientLogin feeds.
CLIENTLOGIN_PROFILE_FEED_URI = 'https://www.google.com/health/feeds/profile/ui'
CLIENTLOGIN_REGISTER_FEED_URI = 'https://www.google.com/health/feeds/register/ui'
HEALTH_SERVICE_NAME = 'health'
Authentication service names for Google Health and the H9 Sandbox.
H9_SANDBOX_SERVICE_NAME = 'weaver'
string $_profileID = 'null'
Profile ID used for all API interactions. This can only be set when using ClientLogin for authentication.
bool $_useH9Sandbox = 'false'
True if API calls should be made to the H9 developer sandbox at /h9 rather than /health
$namespaces = 'array'
__construct(
Zend_Http_Client $client
=
null, string $applicationId
=
MyCompany-MyApp-1.0, bool $useH9Sandbox
=
false
)
:
Create Zend_Gdata_Health object
getHealthProfileEntry(
mixed $query
=
null
)
:
Zend_Gdata_Health_ProfileEntry
Retrieve a profile entry object
getHealthProfileFeed(
mixed $query
=
null
)
:
Zend_Gdata_Health_ProfileFeed
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.
getHealthProfileListFeed(
string $query
=
null
)
:
Zend_Gdata_Feed
Retrieves the list of profiles associated with the user's ClientLogin credentials.
getProfileID(
)
:
string
Gets the id of the user's profile
sendHealthNotice(
string $subject, string $body, string $bodyType
=
null, string $ccrXML
=
null
)
:
Zend_Gdata_Health_ProfileEntry
Posts a new notice using the register feed. This function constructs the atom profile entry.
setProfileID(
string $id
)
:
Zend_Gdata_Health
Sets which of the user's profiles will be used