gogol-blogger-0.0.1: Google Blogger SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Blogger.Posts.Insert

Contents

Description

Add a post.

See: Blogger API Reference for blogger.posts.insert.

Synopsis

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

postsInsert Source

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:

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).

posBlogId :: Lens' PostsInsert Text Source

ID of the blog to add the post to.

posPayload :: Lens' PostsInsert Post' Source

Multipart request metadata.