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 |
Update a post.
See: Blogger API Reference for blogger.posts.update
.
Synopsis
- type PostsUpdateResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> (QueryParam "fetchBody" Bool :> (QueryParam "fetchImages" Bool :> (QueryParam "maxComments" (Textual Word32) :> (QueryParam "revert" Bool :> (QueryParam "publish" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Post' :> Put '[JSON] Post'))))))))))))
- postsUpdate :: Text -> Post' -> Text -> PostsUpdate
- data PostsUpdate
- puFetchBody :: Lens' PostsUpdate Bool
- puFetchImages :: Lens' PostsUpdate (Maybe Bool)
- puBlogId :: Lens' PostsUpdate Text
- puPayload :: Lens' PostsUpdate Post'
- puMaxComments :: Lens' PostsUpdate (Maybe Word32)
- puRevert :: Lens' PostsUpdate (Maybe Bool)
- puPostId :: Lens' PostsUpdate Text
- puPublish :: Lens' PostsUpdate (Maybe Bool)
REST Resource
type PostsUpdateResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> (QueryParam "fetchBody" Bool :> (QueryParam "fetchImages" Bool :> (QueryParam "maxComments" (Textual Word32) :> (QueryParam "revert" Bool :> (QueryParam "publish" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Post' :> Put '[JSON] Post')))))))))))) Source #
A resource alias for blogger.posts.update
method which the
PostsUpdate
request conforms to.
Creating a Request
Creates a value of PostsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PostsUpdate Source #
Update a post.
See: postsUpdate
smart constructor.
Instances
Request Lenses
puFetchBody :: Lens' PostsUpdate Bool Source #
Whether the body content of the post is included with the result (default: true).
puFetchImages :: Lens' PostsUpdate (Maybe Bool) Source #
Whether image URL metadata for each post is included in the returned result (default: false).
puMaxComments :: Lens' PostsUpdate (Maybe Word32) Source #
Maximum number of comments to retrieve with the returned post.