gogol-blogger-0.5.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 # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Insert

Data PostsInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Insert

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 # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Insert

Generic PostsInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Insert

Associated Types

type Rep PostsInsert :: Type -> Type #

GoogleRequest PostsInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Insert

Associated Types

type Rs PostsInsert :: Type #

type Scopes PostsInsert :: [Symbol] #

type Rep PostsInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Insert

type Rep PostsInsert = D1 (MetaData "PostsInsert" "Network.Google.Resource.Blogger.Posts.Insert" "gogol-blogger-0.5.0-6GknSBad0hKHBhFcp0Hgye" False) (C1 (MetaCons "PostsInsert'" PrefixI True) ((S1 (MetaSel (Just "_posFetchBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_posIsDraft") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_posFetchImages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_posBlogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_posPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Post')))))
type Scopes PostsInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Insert

type Scopes PostsInsert = "https://www.googleapis.com/auth/blogger" ': ([] :: [Symbol])
type Rs PostsInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Insert

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.