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.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 # 
Data UsersDataSourcesList Source # 

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 # 
Generic UsersDataSourcesList Source # 
GoogleRequest UsersDataSourcesList Source # 
type Rep UsersDataSourcesList Source # 
type Rep UsersDataSourcesList = D1 (MetaData "UsersDataSourcesList" "Network.Google.Resource.Fitness.Users.DataSources.List" "gogol-fitness-0.3.0-2Qzh2b30wXo6G3QGQrC2gd" False) (C1 (MetaCons "UsersDataSourcesList'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_udslDataTypeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_udslUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes UsersDataSourcesList Source # 
type Scopes UsersDataSourcesList = (:) 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 UsersDataSourcesList Source # 

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.