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.Create

Contents

Description

Creates a new data source that is unique across all data sources belonging to this user. The data stream ID field can be omitted and will be generated by the server with the correct format. The data stream ID is an ordered combination of some fields from the data source. In addition to the data source fields reflected into the data source ID, the developer project number that is authenticated when creating the data source is included. This developer project number is obfuscated when read by any other developer reading public data types.

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

Synopsis

REST Resource

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

A resource alias for fitness.users.dataSources.create method which the UsersDataSourcesCreate request conforms to.

Creating a Request

usersDataSourcesCreate Source

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

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

data UsersDataSourcesCreate Source

Creates a new data source that is unique across all data sources belonging to this user. The data stream ID field can be omitted and will be generated by the server with the correct format. The data stream ID is an ordered combination of some fields from the data source. In addition to the data source fields reflected into the data source ID, the developer project number that is authenticated when creating the data source is included. This developer project number is obfuscated when read by any other developer reading public data types.

See: usersDataSourcesCreate smart constructor.

Request Lenses

udscUserId :: Lens' UsersDataSourcesCreate Text Source

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