gogol-blogger-0.1.0: Google Blogger SDK.

Copyright(c) 2015-2016 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:

data PostsInsert Source #

Add a post.

See: postsInsert smart constructor.

Instances

Eq PostsInsert Source # 
Data PostsInsert Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PostsInsert -> c PostsInsert #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PostsInsert #

toConstr :: PostsInsert -> Constr #

dataTypeOf :: PostsInsert -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PostsInsert) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PostsInsert) #

gmapT :: (forall b. Data b => b -> b) -> PostsInsert -> PostsInsert #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PostsInsert -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PostsInsert -> r #

gmapQ :: (forall d. Data d => d -> u) -> PostsInsert -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PostsInsert -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PostsInsert -> m PostsInsert #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PostsInsert -> m PostsInsert #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PostsInsert -> m PostsInsert #

Show PostsInsert Source # 
Generic PostsInsert Source # 

Associated Types

type Rep PostsInsert :: * -> * #

GoogleRequest PostsInsert Source # 

Associated Types

type Rs PostsInsert :: * #

type Scopes PostsInsert :: [Symbol] #

type Rep PostsInsert Source # 
type Rep PostsInsert = D1 (MetaData "PostsInsert" "Network.Google.Resource.Blogger.Posts.Insert" "gogol-blogger-0.1.0-BO8GjbI5Esh5jlPppORYc1" False) (C1 (MetaCons "PostsInsert'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_posFetchBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_posIsDraft") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_posFetchImages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_posBlogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_posPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Post'))))))
type Scopes PostsInsert Source # 
type Scopes PostsInsert = (:) Symbol "https://www.googleapis.com/auth/blogger" ([] Symbol)
type Rs PostsInsert Source # 

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.