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 |
Retrieve a Post by Path.
See: Blogger API Reference for blogger.posts.getByPath
.
Synopsis
- type PostsGetByPathResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> ("bypath" :> (QueryParam "path" Text :> (QueryParam "maxComments" (Textual Word32) :> (QueryParam "view" PostsGetByPathView :> (QueryParam "alt" AltJSON :> Get '[JSON] Post')))))))))
- postsGetByPath :: Text -> Text -> PostsGetByPath
- data PostsGetByPath
- pgbpPath :: Lens' PostsGetByPath Text
- pgbpBlogId :: Lens' PostsGetByPath Text
- pgbpMaxComments :: Lens' PostsGetByPath (Maybe Word32)
- pgbpView :: Lens' PostsGetByPath (Maybe PostsGetByPathView)
REST Resource
type PostsGetByPathResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> ("bypath" :> (QueryParam "path" Text :> (QueryParam "maxComments" (Textual Word32) :> (QueryParam "view" PostsGetByPathView :> (QueryParam "alt" AltJSON :> Get '[JSON] Post'))))))))) Source #
A resource alias for blogger.posts.getByPath
method which the
PostsGetByPath
request conforms to.
Creating a Request
Creates a value of PostsGetByPath
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PostsGetByPath Source #
Retrieve a Post by Path.
See: postsGetByPath
smart constructor.
Instances
Request Lenses
pgbpBlogId :: Lens' PostsGetByPath Text Source #
ID of the blog to fetch the post from.
pgbpMaxComments :: Lens' PostsGetByPath (Maybe Word32) Source #
Maximum number of comments to pull back on a post.
pgbpView :: Lens' PostsGetByPath (Maybe PostsGetByPathView) Source #
Access level with which to view the returned result. Note that some fields require elevated access.