gogol-fitness-0.0.1: Google Fitness SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Fitness.Users.DataSources.Update

Contents

Description

Updates a given data source. It is an error to modify the data source's data stream ID, data type, type, stream name or device information apart from the device version. Changing these fields would require a new unique data stream ID and separate data source. Data sources are identified by their data stream ID.

See: Fitness Reference for fitness.users.dataSources.update.

Synopsis

REST Resource

type UsersDataSourcesUpdateResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (Capture "dataSourceId" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` DataSource :> Put `[JSON]` DataSource))))))) Source

A resource alias for fitness.users.dataSources.update method which the UsersDataSourcesUpdate request conforms to.

Creating a Request

usersDataSourcesUpdate Source

Creates a value of UsersDataSourcesUpdate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UsersDataSourcesUpdate Source

Updates a given data source. It is an error to modify the data source's data stream ID, data type, type, stream name or device information apart from the device version. Changing these fields would require a new unique data stream ID and separate data source. Data sources are identified by their data stream ID.

See: usersDataSourcesUpdate smart constructor.

Request Lenses

udsuDataSourceId :: Lens' UsersDataSourcesUpdate Text Source

The data stream ID of the data source to update.

udsuUserId :: Lens' UsersDataSourcesUpdate Text Source

Update the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.