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.Sessions.List
Description
Lists sessions previously created.
See: Fitness Reference for fitness.users.sessions.list
.
Synopsis
- 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
Arguments
:: Text | |
-> UsersSessionsList |
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 # | |
Defined in Network.Google.Resource.Fitness.Users.Sessions.List Methods (==) :: UsersSessionsList -> UsersSessionsList -> Bool # (/=) :: UsersSessionsList -> UsersSessionsList -> Bool # | |
Data UsersSessionsList Source # | |
Defined in Network.Google.Resource.Fitness.Users.Sessions.List 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 # | |
Defined in Network.Google.Resource.Fitness.Users.Sessions.List Methods showsPrec :: Int -> UsersSessionsList -> ShowS # show :: UsersSessionsList -> String # showList :: [UsersSessionsList] -> ShowS # | |
Generic UsersSessionsList Source # | |
Defined in Network.Google.Resource.Fitness.Users.Sessions.List Associated Types type Rep UsersSessionsList :: Type -> Type # Methods from :: UsersSessionsList -> Rep UsersSessionsList x # to :: Rep UsersSessionsList x -> UsersSessionsList # | |
GoogleRequest UsersSessionsList Source # | |
Defined in Network.Google.Resource.Fitness.Users.Sessions.List Methods requestClient :: UsersSessionsList -> GClient (Rs UsersSessionsList) # | |
type Rep UsersSessionsList Source # | |
Defined in Network.Google.Resource.Fitness.Users.Sessions.List type Rep UsersSessionsList = D1 (MetaData "UsersSessionsList" "Network.Google.Resource.Fitness.Users.Sessions.List" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "UsersSessionsList'" PrefixI True) ((S1 (MetaSel (Just "_uslStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uslUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_uslEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_uslPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uslIncludeDeleted") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))) | |
type Scopes UsersSessionsList Source # | |
Defined in Network.Google.Resource.Fitness.Users.Sessions.List type Scopes UsersSessionsList = "https://www.googleapis.com/auth/fitness.activity.read" ': ("https://www.googleapis.com/auth/fitness.activity.write" ': ("https://www.googleapis.com/auth/fitness.blood_glucose.read" ': ("https://www.googleapis.com/auth/fitness.blood_glucose.write" ': ("https://www.googleapis.com/auth/fitness.blood_pressure.read" ': ("https://www.googleapis.com/auth/fitness.blood_pressure.write" ': ("https://www.googleapis.com/auth/fitness.body.read" ': ("https://www.googleapis.com/auth/fitness.body.write" ': ("https://www.googleapis.com/auth/fitness.body_temperature.read" ': ("https://www.googleapis.com/auth/fitness.body_temperature.write" ': ("https://www.googleapis.com/auth/fitness.location.read" ': ("https://www.googleapis.com/auth/fitness.location.write" ': ("https://www.googleapis.com/auth/fitness.nutrition.read" ': ("https://www.googleapis.com/auth/fitness.nutrition.write" ': ("https://www.googleapis.com/auth/fitness.oxygen_saturation.read" ': ("https://www.googleapis.com/auth/fitness.oxygen_saturation.write" ': ("https://www.googleapis.com/auth/fitness.reproductive_health.read" ': ("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 for incremental syncing. To get the next batch of changes, set this parameter to the value of nextPageToken from the previous response. This token is treated as a timestamp (in millis since epoch). If specified, the API returns sessions modified since this time. The page token is ignored if either start or end time is specified. If none of start time, end time, and the page token is specified, sessions modified in the last 7 days are returned.
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.