UsersDataSourcesDatasets
class UsersDataSourcesDatasets extends Resource (View source)
The "datasets" collection of methods.
Typical usage is:
$fitnessService = new Google\Service\Fitness(...);
$datasets = $fitnessService->users_dataSources_datasets;
Methods
Performs an inclusive delete of all data points whose start and end times have any overlap with the time range specified by the dataset ID. For most data types, the entire data point will be deleted. For data types where the time span represents a consistent value (such as com.google.activity.segment), and a data point straddles either end point of the dataset, only the overlapping portion of the data point will be deleted.
Returns a dataset containing all data points whose start and end times overlap with the specified range of the dataset minimum start time and maximum end time. Specifically, any data point whose start time is less than or equal to the dataset end time and whose end time is greater than or equal to the dataset start time. (datasets.get)
Details
delete(string $userId, string $dataSourceId, string $datasetId, array $optParams = [])
Performs an inclusive delete of all data points whose start and end times have any overlap with the time range specified by the dataset ID. For most data types, the entire data point will be deleted. For data types where the time span represents a consistent value (such as com.google.activity.segment), and a data point straddles either end point of the dataset, only the overlapping portion of the data point will be deleted.
(datasets.delete)
Dataset
get(string $userId, string $dataSourceId, string $datasetId, array $optParams = [])
Returns a dataset containing all data points whose start and end times overlap with the specified range of the dataset minimum start time and maximum end time. Specifically, any data point whose start time is less than or equal to the dataset end time and whose end time is greater than or equal to the dataset start time. (datasets.get)
Dataset
patch(string $userId, string $dataSourceId, string $datasetId, Dataset $postBody, array $optParams = [])
Adds data points to a dataset. The dataset need not be previously created.
All points within the given dataset will be returned with subsquent calls to retrieve this dataset. Data points can belong to more than one dataset. This method does not use patch semantics: the data points provided are merely inserted, with no existing data replaced. (datasets.patch)