gogol-blogger-0.3.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.Publish

Contents

Description

Publishes a draft post, optionally at the specific time of the given publishDate parameter.

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

Synopsis

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

postsPublish Source #

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

Eq PostsPublish Source # 
Data PostsPublish Source # 

Methods

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

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

toConstr :: PostsPublish -> Constr #

dataTypeOf :: PostsPublish -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PostsPublish Source # 
Generic PostsPublish Source # 

Associated Types

type Rep PostsPublish :: * -> * #

GoogleRequest PostsPublish Source # 

Associated Types

type Rs PostsPublish :: * #

type Scopes PostsPublish :: [Symbol] #

type Rep PostsPublish Source # 
type Rep PostsPublish = D1 (MetaData "PostsPublish" "Network.Google.Resource.Blogger.Posts.Publish" "gogol-blogger-0.3.0-BS58SVsiFJLCdRODXPa5ak" False) (C1 (MetaCons "PostsPublish'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_pppPublishDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime'))) ((:*:) (S1 (MetaSel (Just Symbol "_pppBlogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_pppPostId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes PostsPublish Source # 
type Scopes PostsPublish = (:) Symbol "https://www.googleapis.com/auth/blogger" ([] Symbol)
type Rs PostsPublish Source # 

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.

pppBlogId :: Lens' PostsPublish Text Source #

The ID of the Blog.

pppPostId :: Lens' PostsPublish Text Source #

The ID of the Post.