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
.
- 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.
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.