Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Retrieves a list of posts, possibly filtered.
See: Blogger API Reference for blogger.posts.list
.
Synopsis
- 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)))))))))))))))
- postsList :: Text -> PostsList
- data PostsList
- pllStatus :: Lens' PostsList [PostsListStatus]
- pllOrderBy :: Lens' PostsList PostsListOrderBy
- pllFetchImages :: Lens' PostsList (Maybe Bool)
- pllEndDate :: Lens' PostsList (Maybe UTCTime)
- pllBlogId :: Lens' PostsList Text
- pllStartDate :: Lens' PostsList (Maybe UTCTime)
- pllFetchBodies :: Lens' PostsList Bool
- pllView :: Lens' PostsList (Maybe PostsListView)
- pllLabels :: Lens' PostsList (Maybe Text)
- pllPageToken :: Lens' PostsList (Maybe Text)
- pllMaxResults :: Lens' PostsList (Maybe Word32)
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
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:
Retrieves a list of posts, possibly filtered.
See: postsList
smart constructor.
Instances
Request Lenses
pllOrderBy :: Lens' PostsList PostsListOrderBy Source #
Sort search 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.
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.