gogol-blogger-0.0.1: Google Blogger SDK.

Copyright(c) 2015 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.

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.