| 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.Search.CSE.List
Description
Returns metadata about the search performed, metadata about the custom search engine used for the search, and the search results.
See: CustomSearch API Reference for search.cse.list.
Synopsis
- type CSEListResource = "customsearch" :> ("v1" :> (QueryParam "q" Text :> (QueryParam "imgDominantColor" CSEListImgDominantColor :> (QueryParam "siteSearchFilter" CSEListSiteSearchFilter :> (QueryParam "c2coff" Text :> (QueryParam "orTerms" Text :> (QueryParam "start" (Textual Word32) :> (QueryParam "rights" Text :> (QueryParam "excludeTerms" Text :> (QueryParam "num" (Textual Word32) :> (QueryParam "fileType" Text :> (QueryParam "searchType" CSEListSearchType :> (QueryParam "lr" CSEListLr :> (QueryParam "googlehost" Text :> (QueryParam "relatedSite" Text :> (QueryParam "hl" Text :> (QueryParam "sort" Text :> (QueryParam "siteSearch" Text :> (QueryParam "filter" CSEListFilter :> (QueryParam "dateRestrict" Text :> (QueryParam "linkSite" Text :> (QueryParam "lowRange" Text :> (QueryParam "imgType" CSEListImgType :> (QueryParam "gl" Text :> (QueryParam "cx" Text :> (QueryParam "imgColorType" CSEListImgColorType :> (QueryParam "imgSize" CSEListImgSize :> (QueryParam "exactTerms" Text :> (QueryParam "cr" Text :> (QueryParam "safe" CSEListSafe :> (QueryParam "hq" Text :> (QueryParam "highRange" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Search)))))))))))))))))))))))))))))))))
- cSEList :: Text -> CSEList
- data CSEList
- cselImgDominantColor :: Lens' CSEList (Maybe CSEListImgDominantColor)
- cselSiteSearchFilter :: Lens' CSEList (Maybe CSEListSiteSearchFilter)
- cselC2coff :: Lens' CSEList (Maybe Text)
- cselOrTerms :: Lens' CSEList (Maybe Text)
- cselStart :: Lens' CSEList (Maybe Word32)
- cselRights :: Lens' CSEList (Maybe Text)
- cselExcludeTerms :: Lens' CSEList (Maybe Text)
- cselNum :: Lens' CSEList Word32
- cselFileType :: Lens' CSEList (Maybe Text)
- cselSearchType :: Lens' CSEList (Maybe CSEListSearchType)
- cselLr :: Lens' CSEList (Maybe CSEListLr)
- cselQ :: Lens' CSEList Text
- cselGooglehost :: Lens' CSEList (Maybe Text)
- cselRelatedSite :: Lens' CSEList (Maybe Text)
- cselHl :: Lens' CSEList (Maybe Text)
- cselSort :: Lens' CSEList (Maybe Text)
- cselSiteSearch :: Lens' CSEList (Maybe Text)
- cselFilter :: Lens' CSEList (Maybe CSEListFilter)
- cselDateRestrict :: Lens' CSEList (Maybe Text)
- cselLinkSite :: Lens' CSEList (Maybe Text)
- cselLowRange :: Lens' CSEList (Maybe Text)
- cselImgType :: Lens' CSEList (Maybe CSEListImgType)
- cselGl :: Lens' CSEList (Maybe Text)
- cselCx :: Lens' CSEList (Maybe Text)
- cselImgColorType :: Lens' CSEList (Maybe CSEListImgColorType)
- cselImgSize :: Lens' CSEList (Maybe CSEListImgSize)
- cselExactTerms :: Lens' CSEList (Maybe Text)
- cselCr :: Lens' CSEList (Maybe Text)
- cselSafe :: Lens' CSEList CSEListSafe
- cselHq :: Lens' CSEList (Maybe Text)
- cselHighRange :: Lens' CSEList (Maybe Text)
REST Resource
type CSEListResource = "customsearch" :> ("v1" :> (QueryParam "q" Text :> (QueryParam "imgDominantColor" CSEListImgDominantColor :> (QueryParam "siteSearchFilter" CSEListSiteSearchFilter :> (QueryParam "c2coff" Text :> (QueryParam "orTerms" Text :> (QueryParam "start" (Textual Word32) :> (QueryParam "rights" Text :> (QueryParam "excludeTerms" Text :> (QueryParam "num" (Textual Word32) :> (QueryParam "fileType" Text :> (QueryParam "searchType" CSEListSearchType :> (QueryParam "lr" CSEListLr :> (QueryParam "googlehost" Text :> (QueryParam "relatedSite" Text :> (QueryParam "hl" Text :> (QueryParam "sort" Text :> (QueryParam "siteSearch" Text :> (QueryParam "filter" CSEListFilter :> (QueryParam "dateRestrict" Text :> (QueryParam "linkSite" Text :> (QueryParam "lowRange" Text :> (QueryParam "imgType" CSEListImgType :> (QueryParam "gl" Text :> (QueryParam "cx" Text :> (QueryParam "imgColorType" CSEListImgColorType :> (QueryParam "imgSize" CSEListImgSize :> (QueryParam "exactTerms" Text :> (QueryParam "cr" Text :> (QueryParam "safe" CSEListSafe :> (QueryParam "hq" Text :> (QueryParam "highRange" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Search))))))))))))))))))))))))))))))))) Source #
A resource alias for search.cse.list method which the
CSEList request conforms to.
Creating a Request
Creates a value of CSEList with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cselImgDominantColorcselSiteSearchFiltercselC2coffcselOrTermscselStartcselRightscselExcludeTermscselNumcselFileTypecselSearchTypecselLrcselQcselGooglehostcselRelatedSitecselHlcselSortcselSiteSearchcselFiltercselDateRestrictcselLinkSitecselLowRangecselImgTypecselGlcselCxcselImgColorTypecselImgSizecselExactTermscselCrcselSafecselHqcselHighRange
Returns metadata about the search performed, metadata about the custom search engine used for the search, and the search results.
See: cSEList smart constructor.
Instances
Request Lenses
cselImgDominantColor :: Lens' CSEList (Maybe CSEListImgDominantColor) Source #
Returns images of a specific dominant color: red, orange, yellow, green, teal, blue, purple, pink, white, gray, black and brown.
cselSiteSearchFilter :: Lens' CSEList (Maybe CSEListSiteSearchFilter) Source #
Controls whether to include or exclude results from the site named in the as_sitesearch parameter
cselOrTerms :: Lens' CSEList (Maybe Text) Source #
Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms
cselRights :: Lens' CSEList (Maybe Text) Source #
Filters based on licensing. Supported values include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, cc_nonderived and combinations of these.
cselExcludeTerms :: Lens' CSEList (Maybe Text) Source #
Identifies a word or phrase that should not appear in any documents in the search results
cselFileType :: Lens' CSEList (Maybe Text) Source #
Returns images of a specified type. Some of the allowed values are: bmp, gif, png, jpg, svg, pdf, ...
cselSearchType :: Lens' CSEList (Maybe CSEListSearchType) Source #
Specifies the search type: image.
cselGooglehost :: Lens' CSEList (Maybe Text) Source #
The local Google domain to use to perform the search.
cselRelatedSite :: Lens' CSEList (Maybe Text) Source #
Specifies that all search results should be pages that are related to the specified URL
cselSiteSearch :: Lens' CSEList (Maybe Text) Source #
Specifies all search results should be pages from a given site
cselFilter :: Lens' CSEList (Maybe CSEListFilter) Source #
Controls turning on or off the duplicate content filter.
cselDateRestrict :: Lens' CSEList (Maybe Text) Source #
Specifies all search results are from a time period
cselLinkSite :: Lens' CSEList (Maybe Text) Source #
Specifies that all search results should contain a link to a particular URL
cselLowRange :: Lens' CSEList (Maybe Text) Source #
Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
cselImgType :: Lens' CSEList (Maybe CSEListImgType) Source #
Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.
cselImgColorType :: Lens' CSEList (Maybe CSEListImgColorType) Source #
Returns black and white, grayscale, or color images: mono, gray, and color.
cselImgSize :: Lens' CSEList (Maybe CSEListImgSize) Source #
Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge, xxlarge, and huge.