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.
Details AUTHSUB_REGISTER_FEED_URI = 'https://www.google.com/health/feeds/register/default'
Details CLIENTLOGIN_PROFILELIST_FEED_URI = 'https://www.google.com/health/feeds/profile/list'
URIs of the ClientLogin feeds.
Details CLIENTLOGIN_PROFILE_FEED_URI = 'https://www.google.com/health/feeds/profile/ui'
Details CLIENTLOGIN_REGISTER_FEED_URI = 'https://www.google.com/health/feeds/register/ui'
Details HEALTH_SERVICE_NAME = 'health'
Authentication service names for Google Health and the H9 Sandbox.
Details H9_SANDBOX_SERVICE_NAME = 'weaver'
Detailsstring $_profileID = 'null'Profile ID used for all API interactions. This can only be set when using ClientLogin for authentication.
Detailsbool $_useH9Sandbox = 'false'True if API calls should be made to the H9 developer sandbox at /h9 rather than /health
Details $namespaces = 'array'
Details__construct(
Zend_Http_Client $client
=
null, string $applicationId
=
MyCompany-MyApp-1.0, bool $useH9Sandbox
=
false
)
:
Create Zend_Gdata_Health object
DetailsgetHealthProfileEntry(
mixed $query
=
null
)
:
Zend_Gdata_Health_ProfileEntryRetrieve a profile entry object
DetailsgetHealthProfileFeed(
mixed $query
=
null
)
:
Zend_Gdata_Health_ProfileFeedRetrieve 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.
DetailsgetHealthProfileListFeed(
string $query
=
null
)
:
Zend_Gdata_FeedRetrieves the list of profiles associated with the user's ClientLogin credentials.
DetailsgetProfileID(
)
:
stringGets the id of the user's profile
DetailssendHealthNotice(
string $subject, string $body, string $bodyType
=
null, string $ccrXML
=
null
)
:
Zend_Gdata_Health_ProfileEntryPosts a new notice using the register feed. This function constructs the atom profile entry.
DetailssetProfileID(
string $id
)
:
Zend_Gdata_HealthSets which of the user's profiles will be used
Details