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 |
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
- type UsersDataSourcesListResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (QueryParams "dataTypeName" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListDataSourcesResponse))))))
- usersDataSourcesList :: Text -> UsersDataSourcesList
- data UsersDataSourcesList
- udslDataTypeName :: Lens' UsersDataSourcesList [Text]
- udslUserId :: Lens' UsersDataSourcesList Text
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
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 # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.List (==) :: UsersDataSourcesList -> UsersDataSourcesList -> Bool # (/=) :: UsersDataSourcesList -> UsersDataSourcesList -> Bool # | |
Data UsersDataSourcesList Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.List 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 # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.List showsPrec :: Int -> UsersDataSourcesList -> ShowS # show :: UsersDataSourcesList -> String # showList :: [UsersDataSourcesList] -> ShowS # | |
Generic UsersDataSourcesList Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.List type Rep UsersDataSourcesList :: Type -> Type # from :: UsersDataSourcesList -> Rep UsersDataSourcesList x # to :: Rep UsersDataSourcesList x -> UsersDataSourcesList # | |
GoogleRequest UsersDataSourcesList Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.List type Rs UsersDataSourcesList :: Type # type Scopes UsersDataSourcesList :: [Symbol] # | |
type Rep UsersDataSourcesList Source # | |
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 # | |
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 # | |
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.