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 |
Add a post.
See: Blogger API Reference for blogger.posts.insert
.
Synopsis
- type PostsInsertResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (QueryParam "fetchBody" Bool :> (QueryParam "isDraft" Bool :> (QueryParam "fetchImages" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Post' :> Post '[JSON] Post')))))))))
- postsInsert :: Text -> Post' -> PostsInsert
- data PostsInsert
- posFetchBody :: Lens' PostsInsert Bool
- posIsDraft :: Lens' PostsInsert (Maybe Bool)
- posFetchImages :: Lens' PostsInsert (Maybe Bool)
- posBlogId :: Lens' PostsInsert Text
- posPayload :: Lens' PostsInsert Post'
REST Resource
type PostsInsertResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (QueryParam "fetchBody" Bool :> (QueryParam "isDraft" Bool :> (QueryParam "fetchImages" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Post' :> Post '[JSON] Post'))))))))) Source #
A resource alias for blogger.posts.insert
method which the
PostsInsert
request conforms to.
Creating a Request
Creates a value of PostsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PostsInsert Source #
Add a post.
See: postsInsert
smart constructor.
Instances
Request Lenses
posFetchBody :: Lens' PostsInsert Bool Source #
Whether the body content of the post is included with the result (default: true).
posIsDraft :: Lens' PostsInsert (Maybe Bool) Source #
Whether to create the post as a draft (default: false).
posFetchImages :: Lens' PostsInsert (Maybe Bool) Source #
Whether image URL metadata for each post is included in the returned result (default: false).
posPayload :: Lens' PostsInsert Post' Source #
Multipart request metadata.