gogol-blogger-0.2.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.List

Contents

Description

Retrieves a list of posts, possibly filtered.

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

Synopsis

REST Resource

type PostsListResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (QueryParams "status" PostsListStatus :> (QueryParam "orderBy" PostsListOrderBy :> (QueryParam "fetchImages" Bool :> (QueryParam "endDate" DateTime' :> (QueryParam "startDate" DateTime' :> (QueryParam "fetchBodies" Bool :> (QueryParam "view" PostsListView :> (QueryParam "labels" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] PostList))))))))))))))) Source #

A resource alias for blogger.posts.list method which the PostsList request conforms to.

Creating a Request

postsList Source #

Arguments

:: Text

pllBlogId

-> PostsList 

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

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

data PostsList Source #

Retrieves a list of posts, possibly filtered.

See: postsList smart constructor.

Instances

Eq PostsList Source # 
Data PostsList Source # 

Methods

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

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

toConstr :: PostsList -> Constr #

dataTypeOf :: PostsList -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PostsList Source # 
Generic PostsList Source # 

Associated Types

type Rep PostsList :: * -> * #

GoogleRequest PostsList Source # 

Associated Types

type Rs PostsList :: * #

type Scopes PostsList :: [Symbol] #

type Rep PostsList Source # 
type Rep PostsList = D1 (MetaData "PostsList" "Network.Google.Resource.Blogger.Posts.List" "gogol-blogger-0.2.0-JkhleV3Ti2CDOV1vbMUdS4" False) (C1 (MetaCons "PostsList'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pllStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PostsListStatus]))) (S1 (MetaSel (Just Symbol "_pllOrderBy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PostsListOrderBy))) ((:*:) (S1 (MetaSel (Just Symbol "_pllFetchImages") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_pllEndDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime'))) (S1 (MetaSel (Just Symbol "_pllBlogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pllStartDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime'))) ((:*:) (S1 (MetaSel (Just Symbol "_pllFetchBodies") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_pllView") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PostsListView))))) ((:*:) (S1 (MetaSel (Just Symbol "_pllLabels") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_pllPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pllMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Word32)))))))))
type Scopes PostsList Source # 
type Scopes PostsList = (:) Symbol "https://www.googleapis.com/auth/blogger" ((:) Symbol "https://www.googleapis.com/auth/blogger.readonly" ([] Symbol))
type Rs PostsList Source # 

Request Lenses

pllStatus :: Lens' PostsList [PostsListStatus] Source #

Statuses to include in the results.

pllFetchImages :: Lens' PostsList (Maybe Bool) Source #

Whether image URL metadata for each post is included.

pllEndDate :: Lens' PostsList (Maybe UTCTime) Source #

Latest post date to fetch, a date-time with RFC 3339 formatting.

pllBlogId :: Lens' PostsList Text Source #

ID of the blog to fetch posts from.

pllStartDate :: Lens' PostsList (Maybe UTCTime) Source #

Earliest post date to fetch, a date-time with RFC 3339 formatting.

pllFetchBodies :: Lens' PostsList Bool Source #

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

pllView :: Lens' PostsList (Maybe PostsListView) Source #

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

pllLabels :: Lens' PostsList (Maybe Text) Source #

Comma-separated list of labels to search for.

pllPageToken :: Lens' PostsList (Maybe Text) Source #

Continuation token if the request is paged.

pllMaxResults :: Lens' PostsList (Maybe Word32) Source #

Maximum number of posts to fetch.