* The Google Health API lets you view and manage health and fitness metrics and * measurement data.
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class GoogleHealthAPI extends \Google\Service { /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; /** See your Google Health activity and fitness data. */ const GOOGLEHEALTH_ACTIVITY_AND_FITNESS_READONLY = "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly"; /** See your Google Health health metrics and measurement data. */ const GOOGLEHEALTH_HEALTH_METRICS_AND_MEASUREMENTS_READONLY = "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly"; /** See exercise GPS location data in Google Health. */ const GOOGLEHEALTH_LOCATION_READONLY = "https://www.googleapis.com/auth/googlehealth.location.readonly"; /** See your Google Health profile data. */ const GOOGLEHEALTH_PROFILE_READONLY = "https://www.googleapis.com/auth/googlehealth.profile.readonly"; /** See your Google Health settings. */ const GOOGLEHEALTH_SETTINGS_READONLY = "https://www.googleapis.com/auth/googlehealth.settings.readonly"; /** See your Google Health sleep data. */ const GOOGLEHEALTH_SLEEP_READONLY = "https://www.googleapis.com/auth/googlehealth.sleep.readonly"; public $projects_subscribers; public $users; public $users_dataTypes_dataPoints; public $rootUrlTemplate; /** * Constructs the internal representation of the GoogleHealthAPI service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://health.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://health.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v4'; $this->serviceName = 'health'; $this->projects_subscribers = new GoogleHealthAPI\Resource\ProjectsSubscribers( $this, $this->serviceName, 'subscribers', [ 'methods' => [ 'create' => [ 'path' => 'v4/{+parent}/subscribers', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'subscriberId' => [ 'location' => 'query', 'type' => 'string', ], ], ],'delete' => [ 'path' => 'v4/{+name}', 'httpMethod' => 'DELETE', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'force' => [ 'location' => 'query', 'type' => 'boolean', ], ], ],'list' => [ 'path' => 'v4/{+parent}/subscribers', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ],'patch' => [ 'path' => 'v4/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->users = new GoogleHealthAPI\Resource\Users( $this, $this->serviceName, 'users', [ 'methods' => [ 'getIdentity' => [ 'path' => 'v4/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'getProfile' => [ 'path' => 'v4/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'getSettings' => [ 'path' => 'v4/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'updateProfile' => [ 'path' => 'v4/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ],'updateSettings' => [ 'path' => 'v4/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->users_dataTypes_dataPoints = new GoogleHealthAPI\Resource\UsersDataTypesDataPoints( $this, $this->serviceName, 'dataPoints', [ 'methods' => [ 'batchDelete' => [ 'path' => 'v4/{+parent}/dataPoints:batchDelete', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'create' => [ 'path' => 'v4/{+parent}/dataPoints', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'dailyRollUp' => [ 'path' => 'v4/{+parent}/dataPoints:dailyRollUp', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'exportExerciseTcx' => [ 'path' => 'v4/{+name}:exportExerciseTcx', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'partialData' => [ 'location' => 'query', 'type' => 'boolean', ], ], ],'get' => [ 'path' => 'v4/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v4/{+parent}/dataPoints', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'filter' => [ 'location' => 'query', 'type' => 'string', ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ],'patch' => [ 'path' => 'v4/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'reconcile' => [ 'path' => 'v4/{+parent}/dataPoints:reconcile', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'dataSourceFamily' => [ 'location' => 'query', 'type' => 'string', ], 'filter' => [ 'location' => 'query', 'type' => 'string', ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ],'rollUp' => [ 'path' => 'v4/{+parent}/dataPoints:rollUp', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleHealthAPI::class, 'Google_Service_GoogleHealthAPI');