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 |
Get a post by ID.
See: Blogger API Reference for blogger.posts.get
.
Synopsis
- type PostsGetResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> (QueryParam "fetchBody" Bool :> (QueryParam "fetchImages" Bool :> (QueryParam "maxComments" (Textual Word32) :> (QueryParam "view" PostsGetView :> (QueryParam "alt" AltJSON :> Get '[JSON] Post'))))))))))
- postsGet :: Text -> Text -> PostsGet
- data PostsGet
- pggFetchBody :: Lens' PostsGet Bool
- pggFetchImages :: Lens' PostsGet (Maybe Bool)
- pggBlogId :: Lens' PostsGet Text
- pggMaxComments :: Lens' PostsGet (Maybe Word32)
- pggView :: Lens' PostsGet (Maybe PostsGetView)
- pggPostId :: Lens' PostsGet Text
REST Resource
type PostsGetResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> (QueryParam "fetchBody" Bool :> (QueryParam "fetchImages" Bool :> (QueryParam "maxComments" (Textual Word32) :> (QueryParam "view" PostsGetView :> (QueryParam "alt" AltJSON :> Get '[JSON] Post')))))))))) Source #
A resource alias for blogger.posts.get
method which the
PostsGet
request conforms to.
Creating a Request
Creates a value of PostsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Get a post by ID.
See: postsGet
smart constructor.
Instances
Request Lenses
pggFetchBody :: Lens' PostsGet Bool Source #
Whether the body content of the post is included (default: true). This should be set to false when the post bodies are not required, to help minimize traffic.
pggFetchImages :: Lens' PostsGet (Maybe Bool) Source #
Whether image URL metadata for each post is included (default: false).
pggMaxComments :: Lens' PostsGet (Maybe Word32) Source #
Maximum number of comments to pull back on a post.