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 |
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.
See: Fitness Reference for fitness.users.dataSources.datasets.patch
.
Synopsis
- type UsersDataSourcesDataSetsPatchResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (Capture "dataSourceId" Text :> ("datasets" :> (Capture "datasetId" Text :> (QueryParam "currentTimeMillis" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DataSet :> Patch '[JSON] DataSet))))))))))
- usersDataSourcesDataSetsPatch :: Text -> DataSet -> Text -> Text -> UsersDataSourcesDataSetsPatch
- data UsersDataSourcesDataSetsPatch
- udsdspDataSourceId :: Lens' UsersDataSourcesDataSetsPatch Text
- udsdspPayload :: Lens' UsersDataSourcesDataSetsPatch DataSet
- udsdspUserId :: Lens' UsersDataSourcesDataSetsPatch Text
- udsdspDataSetId :: Lens' UsersDataSourcesDataSetsPatch Text
- udsdspCurrentTimeMillis :: Lens' UsersDataSourcesDataSetsPatch (Maybe Int64)
REST Resource
type UsersDataSourcesDataSetsPatchResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (Capture "dataSourceId" Text :> ("datasets" :> (Capture "datasetId" Text :> (QueryParam "currentTimeMillis" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DataSet :> Patch '[JSON] DataSet)))))))))) Source #
A resource alias for fitness.users.dataSources.datasets.patch
method which the
UsersDataSourcesDataSetsPatch
request conforms to.
Creating a Request
usersDataSourcesDataSetsPatch Source #
:: Text | |
-> DataSet | |
-> Text | |
-> Text | |
-> UsersDataSourcesDataSetsPatch |
Creates a value of UsersDataSourcesDataSetsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersDataSourcesDataSetsPatch Source #
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.
See: usersDataSourcesDataSetsPatch
smart constructor.
Instances
Request Lenses
udsdspDataSourceId :: Lens' UsersDataSourcesDataSetsPatch Text Source #
The data stream ID of the data source that created the dataset.
udsdspPayload :: Lens' UsersDataSourcesDataSetsPatch DataSet Source #
Multipart request metadata.
udsdspUserId :: Lens' UsersDataSourcesDataSetsPatch Text Source #
Patch a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.
udsdspDataSetId :: Lens' UsersDataSourcesDataSetsPatch Text Source #
Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers.
udsdspCurrentTimeMillis :: Lens' UsersDataSourcesDataSetsPatch (Maybe Int64) Source #
The client's current time in milliseconds since epoch. Note that the minStartTimeNs and maxEndTimeNs properties in the request body are in nanoseconds instead of milliseconds.