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 |
Lists sessions previously created.
See: Fitness Reference for fitness.users.sessions.list
.
- type UsersSessionsListResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("sessions" :> (QueryParam "startTime" Text :> (QueryParam "endTime" Text :> (QueryParam "pageToken" Text :> (QueryParam "includeDeleted" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] ListSessionsResponse)))))))))
- usersSessionsList :: Text -> UsersSessionsList
- data UsersSessionsList
- uslStartTime :: Lens' UsersSessionsList (Maybe Text)
- uslUserId :: Lens' UsersSessionsList Text
- uslEndTime :: Lens' UsersSessionsList (Maybe Text)
- uslPageToken :: Lens' UsersSessionsList (Maybe Text)
- uslIncludeDeleted :: Lens' UsersSessionsList (Maybe Bool)
REST Resource
type UsersSessionsListResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("sessions" :> (QueryParam "startTime" Text :> (QueryParam "endTime" Text :> (QueryParam "pageToken" Text :> (QueryParam "includeDeleted" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] ListSessionsResponse))))))))) Source #
A resource alias for fitness.users.sessions.list
method which the
UsersSessionsList
request conforms to.
Creating a Request
Creates a value of UsersSessionsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersSessionsList Source #
Lists sessions previously created.
See: usersSessionsList
smart constructor.
Request Lenses
uslStartTime :: Lens' UsersSessionsList (Maybe Text) Source #
An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response.
uslUserId :: Lens' UsersSessionsList Text Source #
List sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.
uslEndTime :: Lens' UsersSessionsList (Maybe Text) Source #
An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response.
uslPageToken :: Lens' UsersSessionsList (Maybe Text) Source #
The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.
uslIncludeDeleted :: Lens' UsersSessionsList (Maybe Bool) Source #
If true, deleted sessions will be returned. When set to true, sessions returned in this response will only have an ID and will not have any other fields.