gogol-blogger-0.4.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.Get

Contents

Description

Get a post by ID.

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

Synopsis

REST Resource

type PostsGetResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> (QueryParam "fetchBody" Bool :> (QueryParam "fetchImages" Bool :> (QueryParam "maxComments" (Textual Word32) :> (QueryParam "view" PostsGetView :> (QueryParam "alt" AltJSON :> Get '[JSON] Post')))))))))) Source #

A resource alias for blogger.posts.get method which the PostsGet request conforms to.

Creating a Request

postsGet Source #

Creates a value of PostsGet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PostsGet Source #

Get a post by ID.

See: postsGet smart constructor.

Instances
Eq PostsGet Source # 
Instance details

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

Data PostsGet Source # 
Instance details

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

Methods

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

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

toConstr :: PostsGet -> Constr #

dataTypeOf :: PostsGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PostsGet Source # 
Instance details

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

Generic PostsGet Source # 
Instance details

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

Associated Types

type Rep PostsGet :: Type -> Type #

Methods

from :: PostsGet -> Rep PostsGet x #

to :: Rep PostsGet x -> PostsGet #

GoogleRequest PostsGet Source # 
Instance details

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

Associated Types

type Rs PostsGet :: Type #

type Scopes PostsGet :: [Symbol] #

type Rep PostsGet Source # 
Instance details

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

type Rep PostsGet = D1 (MetaData "PostsGet" "Network.Google.Resource.Blogger.Posts.Get" "gogol-blogger-0.4.0-J2l0mOXVNniBwK88dTMLog" False) (C1 (MetaCons "PostsGet'" PrefixI True) ((S1 (MetaSel (Just "_pggFetchBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: (S1 (MetaSel (Just "_pggFetchImages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_pggBlogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "_pggMaxComments") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Word32))) :*: (S1 (MetaSel (Just "_pggView") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PostsGetView)) :*: S1 (MetaSel (Just "_pggPostId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes PostsGet Source # 
Instance details

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

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

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

Request Lenses

pggFetchBody :: Lens' PostsGet Bool Source #

Whether the body content of the post is included (default: true). This should be set to false when the post bodies are not required, to help minimize traffic.

pggFetchImages :: Lens' PostsGet (Maybe Bool) Source #

Whether image URL metadata for each post is included (default: false).

pggBlogId :: Lens' PostsGet Text Source #

ID of the blog to fetch the post from.

pggMaxComments :: Lens' PostsGet (Maybe Word32) Source #

Maximum number of comments to pull back on a post.

pggView :: Lens' PostsGet (Maybe PostsGetView) Source #

Access level with which to view the returned result. Note that some fields require elevated access.

pggPostId :: Lens' PostsGet Text Source #

The ID of the post