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 |
Returns metadata about the search performed, metadata about the custom search engine used for the search, and the search results. Uses a small set of url patterns.
See: CustomSearch API Reference for search.cse.siterestrict.list
.
Synopsis
- type CSESiterestrictListResource = "customsearch" :> ("v1" :> ("siterestrict" :> (QueryParam "q" Text :> (QueryParam "imgDominantColor" CSESiterestrictListImgDominantColor :> (QueryParam "siteSearchFilter" CSESiterestrictListSiteSearchFilter :> (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" CSESiterestrictListSearchType :> (QueryParam "lr" CSESiterestrictListLr :> (QueryParam "googlehost" Text :> (QueryParam "relatedSite" Text :> (QueryParam "hl" Text :> (QueryParam "sort" Text :> (QueryParam "siteSearch" Text :> (QueryParam "filter" CSESiterestrictListFilter :> (QueryParam "dateRestrict" Text :> (QueryParam "linkSite" Text :> (QueryParam "lowRange" Text :> (QueryParam "imgType" CSESiterestrictListImgType :> (QueryParam "gl" Text :> (QueryParam "cx" Text :> (QueryParam "imgColorType" CSESiterestrictListImgColorType :> (QueryParam "imgSize" CSESiterestrictListImgSize :> (QueryParam "exactTerms" Text :> (QueryParam "cr" Text :> (QueryParam "safe" CSESiterestrictListSafe :> (QueryParam "hq" Text :> (QueryParam "highRange" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Search))))))))))))))))))))))))))))))))))
- cSESiterestrictList :: Text -> CSESiterestrictList
- data CSESiterestrictList
- cseslImgDominantColor :: Lens' CSESiterestrictList (Maybe CSESiterestrictListImgDominantColor)
- cseslSiteSearchFilter :: Lens' CSESiterestrictList (Maybe CSESiterestrictListSiteSearchFilter)
- cseslC2coff :: Lens' CSESiterestrictList (Maybe Text)
- cseslOrTerms :: Lens' CSESiterestrictList (Maybe Text)
- cseslStart :: Lens' CSESiterestrictList (Maybe Word32)
- cseslRights :: Lens' CSESiterestrictList (Maybe Text)
- cseslExcludeTerms :: Lens' CSESiterestrictList (Maybe Text)
- cseslNum :: Lens' CSESiterestrictList Word32
- cseslFileType :: Lens' CSESiterestrictList (Maybe Text)
- cseslSearchType :: Lens' CSESiterestrictList (Maybe CSESiterestrictListSearchType)
- cseslLr :: Lens' CSESiterestrictList (Maybe CSESiterestrictListLr)
- cseslQ :: Lens' CSESiterestrictList Text
- cseslGooglehost :: Lens' CSESiterestrictList (Maybe Text)
- cseslRelatedSite :: Lens' CSESiterestrictList (Maybe Text)
- cseslHl :: Lens' CSESiterestrictList (Maybe Text)
- cseslSort :: Lens' CSESiterestrictList (Maybe Text)
- cseslSiteSearch :: Lens' CSESiterestrictList (Maybe Text)
- cseslFilter :: Lens' CSESiterestrictList (Maybe CSESiterestrictListFilter)
- cseslDateRestrict :: Lens' CSESiterestrictList (Maybe Text)
- cseslLinkSite :: Lens' CSESiterestrictList (Maybe Text)
- cseslLowRange :: Lens' CSESiterestrictList (Maybe Text)
- cseslImgType :: Lens' CSESiterestrictList (Maybe CSESiterestrictListImgType)
- cseslGl :: Lens' CSESiterestrictList (Maybe Text)
- cseslCx :: Lens' CSESiterestrictList (Maybe Text)
- cseslImgColorType :: Lens' CSESiterestrictList (Maybe CSESiterestrictListImgColorType)
- cseslImgSize :: Lens' CSESiterestrictList (Maybe CSESiterestrictListImgSize)
- cseslExactTerms :: Lens' CSESiterestrictList (Maybe Text)
- cseslCr :: Lens' CSESiterestrictList (Maybe Text)
- cseslSafe :: Lens' CSESiterestrictList CSESiterestrictListSafe
- cseslHq :: Lens' CSESiterestrictList (Maybe Text)
- cseslHighRange :: Lens' CSESiterestrictList (Maybe Text)
REST Resource
type CSESiterestrictListResource = "customsearch" :> ("v1" :> ("siterestrict" :> (QueryParam "q" Text :> (QueryParam "imgDominantColor" CSESiterestrictListImgDominantColor :> (QueryParam "siteSearchFilter" CSESiterestrictListSiteSearchFilter :> (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" CSESiterestrictListSearchType :> (QueryParam "lr" CSESiterestrictListLr :> (QueryParam "googlehost" Text :> (QueryParam "relatedSite" Text :> (QueryParam "hl" Text :> (QueryParam "sort" Text :> (QueryParam "siteSearch" Text :> (QueryParam "filter" CSESiterestrictListFilter :> (QueryParam "dateRestrict" Text :> (QueryParam "linkSite" Text :> (QueryParam "lowRange" Text :> (QueryParam "imgType" CSESiterestrictListImgType :> (QueryParam "gl" Text :> (QueryParam "cx" Text :> (QueryParam "imgColorType" CSESiterestrictListImgColorType :> (QueryParam "imgSize" CSESiterestrictListImgSize :> (QueryParam "exactTerms" Text :> (QueryParam "cr" Text :> (QueryParam "safe" CSESiterestrictListSafe :> (QueryParam "hq" Text :> (QueryParam "highRange" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Search)))))))))))))))))))))))))))))))))) Source #
A resource alias for search.cse.siterestrict.list
method which the
CSESiterestrictList
request conforms to.
Creating a Request
Creates a value of CSESiterestrictList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cseslImgDominantColor
cseslSiteSearchFilter
cseslC2coff
cseslOrTerms
cseslStart
cseslRights
cseslExcludeTerms
cseslNum
cseslFileType
cseslSearchType
cseslLr
cseslQ
cseslGooglehost
cseslRelatedSite
cseslHl
cseslSort
cseslSiteSearch
cseslFilter
cseslDateRestrict
cseslLinkSite
cseslLowRange
cseslImgType
cseslGl
cseslCx
cseslImgColorType
cseslImgSize
cseslExactTerms
cseslCr
cseslSafe
cseslHq
cseslHighRange
data CSESiterestrictList Source #
Returns metadata about the search performed, metadata about the custom search engine used for the search, and the search results. Uses a small set of url patterns.
See: cSESiterestrictList
smart constructor.
Instances
Request Lenses
cseslImgDominantColor :: Lens' CSESiterestrictList (Maybe CSESiterestrictListImgDominantColor) Source #
Returns images of a specific dominant color: red, orange, yellow, green, teal, blue, purple, pink, white, gray, black and brown.
cseslSiteSearchFilter :: Lens' CSESiterestrictList (Maybe CSESiterestrictListSiteSearchFilter) Source #
Controls whether to include or exclude results from the site named in the as_sitesearch parameter
cseslC2coff :: Lens' CSESiterestrictList (Maybe Text) Source #
Turns off the translation between zh-CN and zh-TW.
cseslOrTerms :: Lens' CSESiterestrictList (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
cseslStart :: Lens' CSESiterestrictList (Maybe Word32) Source #
The index of the first result to return
cseslRights :: Lens' CSESiterestrictList (Maybe Text) Source #
Filters based on licensing. Supported values include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, cc_nonderived and combinations of these.
cseslExcludeTerms :: Lens' CSESiterestrictList (Maybe Text) Source #
Identifies a word or phrase that should not appear in any documents in the search results
cseslFileType :: Lens' CSESiterestrictList (Maybe Text) Source #
Returns images of a specified type. Some of the allowed values are: bmp, gif, png, jpg, svg, pdf, ...
cseslSearchType :: Lens' CSESiterestrictList (Maybe CSESiterestrictListSearchType) Source #
Specifies the search type: image.
cseslLr :: Lens' CSESiterestrictList (Maybe CSESiterestrictListLr) Source #
The language restriction for the search results
cseslGooglehost :: Lens' CSESiterestrictList (Maybe Text) Source #
The local Google domain to use to perform the search.
cseslRelatedSite :: Lens' CSESiterestrictList (Maybe Text) Source #
Specifies that all search results should be pages that are related to the specified URL
cseslSort :: Lens' CSESiterestrictList (Maybe Text) Source #
The sort expression to apply to the results
cseslSiteSearch :: Lens' CSESiterestrictList (Maybe Text) Source #
Specifies all search results should be pages from a given site
cseslFilter :: Lens' CSESiterestrictList (Maybe CSESiterestrictListFilter) Source #
Controls turning on or off the duplicate content filter.
cseslDateRestrict :: Lens' CSESiterestrictList (Maybe Text) Source #
Specifies all search results are from a time period
cseslLinkSite :: Lens' CSESiterestrictList (Maybe Text) Source #
Specifies that all search results should contain a link to a particular URL
cseslLowRange :: Lens' CSESiterestrictList (Maybe Text) Source #
Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
cseslImgType :: Lens' CSESiterestrictList (Maybe CSESiterestrictListImgType) Source #
Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.
cseslCx :: Lens' CSESiterestrictList (Maybe Text) Source #
The custom search engine ID to scope this search query
cseslImgColorType :: Lens' CSESiterestrictList (Maybe CSESiterestrictListImgColorType) Source #
Returns black and white, grayscale, or color images: mono, gray, and color.
cseslImgSize :: Lens' CSESiterestrictList (Maybe CSESiterestrictListImgSize) Source #
Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge, xxlarge, and huge.
cseslExactTerms :: Lens' CSESiterestrictList (Maybe Text) Source #
Identifies a phrase that all documents in the search results must contain
cseslSafe :: Lens' CSESiterestrictList CSESiterestrictListSafe Source #
Search safety level
cseslHq :: Lens' CSESiterestrictList (Maybe Text) Source #
Appends the extra query terms to the query.
cseslHighRange :: Lens' CSESiterestrictList (Maybe Text) Source #
Creates a range in form as_nlo value..as_nhi value and attempts to append it to query