File indexing completed on 2024-12-22 05:36:46
0001 <?php 0002 0003 /** 0004 * Zend Framework 0005 * 0006 * LICENSE 0007 * 0008 * This source file is subject to the new BSD license that is bundled 0009 * with this package in the file LICENSE.txt. 0010 * It is also available through the world-wide-web at this URL: 0011 * http://framework.zend.com/license/new-bsd 0012 * If you did not receive a copy of the license and are unable to 0013 * obtain it through the world-wide-web, please send an email 0014 * to license@zend.com so we can send you a copy immediately. 0015 * 0016 * @category Zend 0017 * @package Zend_Gdata 0018 * @subpackage Health 0019 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0020 * @license http://framework.zend.com/license/new-bsd New BSD License 0021 * @version $Id$ 0022 */ 0023 0024 /** 0025 * @see Zend_Exception 0026 */ 0027 // require_once 'Zend/Exception.php'; 0028 0029 /** 0030 * @see Zend_Gdata 0031 */ 0032 // require_once 'Zend/Gdata.php'; 0033 0034 /** 0035 * Service class for interacting with the Google Health Data API 0036 * 0037 * @link http://code.google.com/apis/health 0038 * 0039 * @category Zend 0040 * @package Zend_Gdata 0041 * @subpackage Health 0042 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0043 * @license http://framework.zend.com/license/new-bsd New BSD License 0044 */ 0045 class Zend_Gdata_Health extends Zend_Gdata 0046 { 0047 /** 0048 * URIs of the AuthSub/OAuth feeds. 0049 */ 0050 const AUTHSUB_PROFILE_FEED_URI = 0051 'https://www.google.com/health/feeds/profile/default'; 0052 const AUTHSUB_REGISTER_FEED_URI = 0053 'https://www.google.com/health/feeds/register/default'; 0054 0055 /** 0056 * URIs of the ClientLogin feeds. 0057 */ 0058 const CLIENTLOGIN_PROFILELIST_FEED_URI = 0059 'https://www.google.com/health/feeds/profile/list'; 0060 const CLIENTLOGIN_PROFILE_FEED_URI = 0061 'https://www.google.com/health/feeds/profile/ui'; 0062 const CLIENTLOGIN_REGISTER_FEED_URI = 0063 'https://www.google.com/health/feeds/register/ui'; 0064 0065 /** 0066 * Authentication service names for Google Health and the H9 Sandbox. 0067 */ 0068 const HEALTH_SERVICE_NAME = 'health'; 0069 const H9_SANDBOX_SERVICE_NAME = 'weaver'; 0070 0071 /** 0072 * Create Zend_Gdata_Health object 0073 * 0074 * @param Zend_Http_Client $client (optional) The HTTP client to use when 0075 * when communicating with the Google Health servers. 0076 * @param string $applicationId The identity of the application in the form 0077 * of Company-AppName-Version 0078 * @param bool $useH9Sandbox True if the H9 Developer's Sandbox should be 0079 * used instead of production Google Health. 0080 */ 0081 public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0', $useH9Sandbox = false) 0082 { 0083 throw new Zend_Exception( 0084 'Google Health API has been discontinued by Google and was removed' 0085 . ' from Zend Framework in 1.12.0. For more information see: ' 0086 . 'http://googleblog.blogspot.ca/2011/06/update-on-google-health-and-google.html' 0087 ); 0088 } 0089 }