gogol-fitness-0.4.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.DataSources.List

Contents

Description

Lists all data sources that are visible to the developer, using the OAuth scopes provided. The list is not exhaustive; the user may have private data sources that are only visible to other developers, or calls using other scopes.

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

Synopsis

REST Resource

type UsersDataSourcesListResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (QueryParams "dataTypeName" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListDataSourcesResponse)))))) Source #

A resource alias for fitness.users.dataSources.list method which the UsersDataSourcesList request conforms to.

Creating a Request

usersDataSourcesList Source #

Creates a value of UsersDataSourcesList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UsersDataSourcesList Source #

Lists all data sources that are visible to the developer, using the OAuth scopes provided. The list is not exhaustive; the user may have private data sources that are only visible to other developers, or calls using other scopes.

See: usersDataSourcesList smart constructor.

Instances
Eq UsersDataSourcesList Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.List

Data UsersDataSourcesList Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.List

Methods

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

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

toConstr :: UsersDataSourcesList -> Constr #

dataTypeOf :: UsersDataSourcesList -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersDataSourcesList Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.List

Generic UsersDataSourcesList Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.List

Associated Types

type Rep UsersDataSourcesList :: Type -> Type #

GoogleRequest UsersDataSourcesList Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.List

Associated Types

type Rs UsersDataSourcesList :: Type #

type Scopes UsersDataSourcesList :: [Symbol] #

type Rep UsersDataSourcesList Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.List

type Rep UsersDataSourcesList = D1 (MetaData "UsersDataSourcesList" "Network.Google.Resource.Fitness.Users.DataSources.List" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "UsersDataSourcesList'" PrefixI True) (S1 (MetaSel (Just "_udslDataTypeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_udslUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes UsersDataSourcesList Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.List

type Scopes UsersDataSourcesList = "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 UsersDataSourcesList Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.List

Request Lenses

udslDataTypeName :: Lens' UsersDataSourcesList [Text] Source #

The names of data types to include in the list. If not specified, all data sources will be returned.

udslUserId :: Lens' UsersDataSourcesList Text Source #

List data sources for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.