| 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 |
Network.Google.Resource.Blogger.Posts.Search
Description
Search for a post.
See: Blogger API Reference for blogger.posts.search.
Synopsis
- type PostsSearchResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> ("search" :> (QueryParam "q" Text :> (QueryParam "orderBy" PostsSearchOrderBy :> (QueryParam "fetchBodies" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] PostList)))))))))
- postsSearch :: Text -> Text -> PostsSearch
- data PostsSearch
- psOrderBy :: Lens' PostsSearch PostsSearchOrderBy
- psBlogId :: Lens' PostsSearch Text
- psQ :: Lens' PostsSearch Text
- psFetchBodies :: Lens' PostsSearch Bool
REST Resource
type PostsSearchResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> ("search" :> (QueryParam "q" Text :> (QueryParam "orderBy" PostsSearchOrderBy :> (QueryParam "fetchBodies" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] PostList))))))))) Source #
A resource alias for blogger.posts.search method which the
PostsSearch request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> PostsSearch |
Creates a value of PostsSearch with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PostsSearch Source #
Search for a post.
See: postsSearch smart constructor.
Instances
Request Lenses
psOrderBy :: Lens' PostsSearch PostsSearchOrderBy Source #
Sort search results
psFetchBodies :: Lens' PostsSearch 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.