public class Fitness.Users.DataSources extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Fitness.Users.DataSources.Create |
class |
Fitness.Users.DataSources.DataPointChanges
The "dataPointChanges" collection of methods.
|
class |
Fitness.Users.DataSources.Datasets
The "datasets" collection of methods.
|
class |
Fitness.Users.DataSources.Delete |
class |
Fitness.Users.DataSources.Get |
class |
Fitness.Users.DataSources.List |
class |
Fitness.Users.DataSources.Update |
| Constructor and Description |
|---|
DataSources() |
| Modifier and Type | Method and Description |
|---|---|
Fitness.Users.DataSources.Create |
create(String userId,
DataSource content)
Creates a new data source that is unique across all data sources belonging to this user.
|
Fitness.Users.DataSources.DataPointChanges |
dataPointChanges()
An accessor for creating requests from the DataPointChanges collection.
|
Fitness.Users.DataSources.Datasets |
datasets()
An accessor for creating requests from the Datasets collection.
|
Fitness.Users.DataSources.Delete |
delete(String userId,
String dataSourceId)
Deletes the specified data source.
|
Fitness.Users.DataSources.Get |
get(String userId,
String dataSourceId)
Returns the specified data source.
|
Fitness.Users.DataSources.List |
list(String userId)
Lists all data sources that are visible to the developer, using the OAuth scopes provided.
|
Fitness.Users.DataSources.Update |
update(String userId,
String dataSourceId,
DataSource content)
Updates the specified data source.
|
public Fitness.Users.DataSources.Create create(String userId, DataSource content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.userId - Create the data source for the person identified. Use me to indicate the authenticated user. Only me
is supported at this time.content - the DataSourceIOExceptionpublic Fitness.Users.DataSources.Delete delete(String userId, String dataSourceId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.userId - Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me
is supported at this time.dataSourceId - The data stream ID of the data source to delete.IOExceptionpublic Fitness.Users.DataSources.Get get(String userId, String dataSourceId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.userId - Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me
is supported at this time.dataSourceId - The data stream ID of the data source to retrieve.IOExceptionpublic Fitness.Users.DataSources.List list(String userId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.userId - List data sources for the person identified. Use me to indicate the authenticated user. Only me is
supported at this time.IOExceptionpublic Fitness.Users.DataSources.Update update(String userId, String dataSourceId, DataSource content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.userId - Update the data source for the person identified. Use me to indicate the authenticated user. Only me
is supported at this time.dataSourceId - The data stream ID of the data source to update.content - the DataSourceIOExceptionpublic Fitness.Users.DataSources.DataPointChanges dataPointChanges()
The typical use is:
Fitness fitness = new Fitness(...);Fitness.DataPointChanges.List request = fitness.dataPointChanges().list(parameters ...)
public Fitness.Users.DataSources.Datasets datasets()
The typical use is:
Fitness fitness = new Fitness(...);Fitness.Datasets.List request = fitness.datasets().list(parameters ...)
Copyright © 2011–2022 Google. All rights reserved.