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

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

Data PostsList Source # 
Instance details

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

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

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

Generic PostsList Source # 
Instance details

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

Associated Types

type Rep PostsList :: Type -> Type #

GoogleRequest PostsList Source # 
Instance details

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

Associated Types

type Rs PostsList :: Type #

type Scopes PostsList :: [Symbol] #

type Rep PostsList Source # 
Instance details

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

type Scopes PostsList Source # 
Instance details

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

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

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

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.