gogol-fitness-0.3.0: Google Fitness SDK.

Copyright(c) 2015-2016 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:

data UsersSessionsList Source #

Lists sessions previously created.

See: usersSessionsList smart constructor.

Instances

Eq UsersSessionsList Source # 
Data UsersSessionsList Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UsersSessionsList -> c UsersSessionsList #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UsersSessionsList #

toConstr :: UsersSessionsList -> Constr #

dataTypeOf :: UsersSessionsList -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UsersSessionsList) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UsersSessionsList) #

gmapT :: (forall b. Data b => b -> b) -> UsersSessionsList -> UsersSessionsList #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UsersSessionsList -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UsersSessionsList -> r #

gmapQ :: (forall d. Data d => d -> u) -> UsersSessionsList -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UsersSessionsList -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UsersSessionsList -> m UsersSessionsList #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UsersSessionsList -> m UsersSessionsList #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UsersSessionsList -> m UsersSessionsList #

Show UsersSessionsList Source # 
Generic UsersSessionsList Source # 
GoogleRequest UsersSessionsList Source # 
type Rep UsersSessionsList Source # 
type Rep UsersSessionsList = D1 (MetaData "UsersSessionsList" "Network.Google.Resource.Fitness.Users.Sessions.List" "gogol-fitness-0.3.0-2Qzh2b30wXo6G3QGQrC2gd" False) (C1 (MetaCons "UsersSessionsList'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_uslStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_uslUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_uslEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_uslPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_uslIncludeDeleted") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))))
type Scopes UsersSessionsList Source # 
type Scopes UsersSessionsList = (:) Symbol "https://www.googleapis.com/auth/fitness.activity.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.activity.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.blood_glucose.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.blood_glucose.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.blood_pressure.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.blood_pressure.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.body.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.body.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.body_temperature.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.body_temperature.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.location.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.location.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.nutrition.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.nutrition.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.oxygen_saturation.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.oxygen_saturation.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.reproductive_health.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.reproductive_health.write" ([] Symbol))))))))))))))))))
type Rs UsersSessionsList Source # 

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.