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.Sessions.List

Contents

Description

Lists sessions previously created.

See: Fitness Reference for fitness.users.sessions.list.

Synopsis

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

usersSessionsList Source

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:

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.