Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.Google.Resource.Fitness.Users.DataSources.Create
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
- type UsersDataSourcesCreateResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DataSource :> Post '[JSON] DataSource))))))
- usersDataSourcesCreate :: DataSource -> Text -> UsersDataSourcesCreate
- data UsersDataSourcesCreate
- udscPayload :: Lens' UsersDataSourcesCreate DataSource
- udscUserId :: Lens' UsersDataSourcesCreate Text
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 #
Arguments
:: DataSource | |
-> Text | |
-> UsersDataSourcesCreate |
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.
Instances
Request Lenses
udscPayload :: Lens' UsersDataSourcesCreate DataSource Source #
Multipart request metadata.
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.