class Fitness extends Service (View source)

Service definition for Fitness (v1).

The Fitness API for managing users' fitness tracking data.

For more information about this service, see the API Documentation

Constants

FITNESS_ACTIVITY_READ

Use Google Fit to see and store your physical activity data.

FITNESS_ACTIVITY_WRITE

Add to your Google Fit physical activity data.

FITNESS_BLOOD_GLUCOSE_READ

See info about your blood glucose in Google Fit. I consent to Google sharing my blood glucose information with this app.

.

FITNESS_BLOOD_GLUCOSE_WRITE

Add info about your blood glucose to Google Fit. I consent to Google using my blood glucose information with this app.

.

FITNESS_BLOOD_PRESSURE_READ

See info about your blood pressure in Google Fit. I consent to Google sharing my blood pressure information with this app.

.

FITNESS_BLOOD_PRESSURE_WRITE

Add info about your blood pressure in Google Fit. I consent to Google using my blood pressure information with this app.

.

FITNESS_BODY_READ

See info about your body measurements in Google Fit.

FITNESS_BODY_WRITE

Add info about your body measurements to Google Fit.

FITNESS_BODY_TEMPERATURE_READ

See info about your body temperature in Google Fit. I consent to Google sharing my body temperature information with this app.

.

FITNESS_BODY_TEMPERATURE_WRITE

Add to info about your body temperature in Google Fit. I consent to Google using my body temperature information with this app.

.

FITNESS_HEART_RATE_READ

See your heart rate data in Google Fit. I consent to Google sharing my heart rate information with this app.

.

FITNESS_HEART_RATE_WRITE

Add to your heart rate data in Google Fit. I consent to Google using my heart rate information with this app.

.

FITNESS_LOCATION_READ

See your Google Fit speed and distance data.

FITNESS_LOCATION_WRITE

Add to your Google Fit location data.

FITNESS_NUTRITION_READ

See info about your nutrition in Google Fit.

FITNESS_NUTRITION_WRITE

Add to info about your nutrition in Google Fit.

FITNESS_OXYGEN_SATURATION_READ

See info about your oxygen saturation in Google Fit. I consent to Google sharing my oxygen saturation information with this app.

.

FITNESS_OXYGEN_SATURATION_WRITE

Add info about your oxygen saturation in Google Fit. I consent to Google using my oxygen saturation information with this app.

.

FITNESS_REPRODUCTIVE_HEALTH_READ

See info about your reproductive health in Google Fit. I consent to Google sharing my reproductive health information with this app.

.

FITNESS_REPRODUCTIVE_HEALTH_WRITE

Add info about your reproductive health in Google Fit. I consent to Google using my reproductive health information with this app.

.

FITNESS_SLEEP_READ

See your sleep data in Google Fit. I consent to Google sharing my sleep information with this app.

.

FITNESS_SLEEP_WRITE

Add to your sleep data in Google Fit. I consent to Google using my sleep information with this app.

.

Properties

$users_dataSources
$users_dataSources_dataPointChanges
$users_dataSources_datasets
$users_dataset
$users_sessions
$rootUrlTemplate

Methods

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Fitness service.

Details

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Fitness service.

Parameters

Client|array $clientOrConfig

The client used to deliver requests, or a config array to pass to a new Client instance.

string $rootUrl

The root URL used for requests to the service.