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 |
Publishes a draft post, optionally at the specific time of the given publishDate parameter.
See: Blogger API Reference for blogger.posts.publish
.
Synopsis
- type PostsPublishResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> ("publish" :> (QueryParam "publishDate" DateTime' :> (QueryParam "alt" AltJSON :> Post '[JSON] Post'))))))))
- postsPublish :: Text -> Text -> PostsPublish
- data PostsPublish
- pppPublishDate :: Lens' PostsPublish (Maybe UTCTime)
- pppBlogId :: Lens' PostsPublish Text
- pppPostId :: Lens' PostsPublish Text
REST Resource
type PostsPublishResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> ("publish" :> (QueryParam "publishDate" DateTime' :> (QueryParam "alt" AltJSON :> Post '[JSON] Post')))))))) Source #
A resource alias for blogger.posts.publish
method which the
PostsPublish
request conforms to.
Creating a Request
Creates a value of PostsPublish
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PostsPublish Source #
Publishes a draft post, optionally at the specific time of the given publishDate parameter.
See: postsPublish
smart constructor.
Instances
Request Lenses
pppPublishDate :: Lens' PostsPublish (Maybe UTCTime) Source #
Optional date and time to schedule the publishing of the Blog. If no publishDate parameter is given, the post is either published at the a previously saved schedule date (if present), or the current time. If a future date is given, the post will be scheduled to be published.