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 |
Retrieves a list of blogs, possibly filtered.
See: Blogger API Reference for blogger.blogs.listByUser
.
Synopsis
- type BlogsListByUserResource = "blogger" :> ("v3" :> ("users" :> (Capture "userId" Text :> ("blogs" :> (QueryParams "status" BlogsListByUserStatus :> (QueryParam "fetchUserInfo" Bool :> (QueryParams "role" BlogsListByUserRole :> (QueryParam "view" BlogsListByUserView :> (QueryParam "alt" AltJSON :> Get '[JSON] BlogList)))))))))
- blogsListByUser :: Text -> BlogsListByUser
- data BlogsListByUser
- blbuStatus :: Lens' BlogsListByUser [BlogsListByUserStatus]
- blbuFetchUserInfo :: Lens' BlogsListByUser (Maybe Bool)
- blbuUserId :: Lens' BlogsListByUser Text
- blbuRole :: Lens' BlogsListByUser [BlogsListByUserRole]
- blbuView :: Lens' BlogsListByUser (Maybe BlogsListByUserView)
REST Resource
type BlogsListByUserResource = "blogger" :> ("v3" :> ("users" :> (Capture "userId" Text :> ("blogs" :> (QueryParams "status" BlogsListByUserStatus :> (QueryParam "fetchUserInfo" Bool :> (QueryParams "role" BlogsListByUserRole :> (QueryParam "view" BlogsListByUserView :> (QueryParam "alt" AltJSON :> Get '[JSON] BlogList))))))))) Source #
A resource alias for blogger.blogs.listByUser
method which the
BlogsListByUser
request conforms to.
Creating a Request
Creates a value of BlogsListByUser
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BlogsListByUser Source #
Retrieves a list of blogs, possibly filtered.
See: blogsListByUser
smart constructor.
Instances
Request Lenses
blbuStatus :: Lens' BlogsListByUser [BlogsListByUserStatus] Source #
Blog statuses to include in the result (default: Live blogs only). Note that ADMIN access is required to view deleted blogs.
blbuFetchUserInfo :: Lens' BlogsListByUser (Maybe Bool) Source #
Whether the response is a list of blogs with per-user information instead of just blogs.
blbuUserId :: Lens' BlogsListByUser Text Source #
ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier.
blbuRole :: Lens' BlogsListByUser [BlogsListByUserRole] Source #
User access types for blogs to include in the results, e.g. AUTHOR will return blogs where the user has author level access. If no roles are specified, defaults to ADMIN and AUTHOR roles.
blbuView :: Lens' BlogsListByUser (Maybe BlogsListByUserView) Source #
Access level with which to view the blogs. Note that some fields require elevated access.