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.FactCheckTools.Claims.Search
Description
Search through fact-checked claims.
See: Fact Check Tools API Reference for factchecktools.claims.search
.
Synopsis
- type ClaimsSearchResource = "v1alpha1" :> ("claims:search" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "offset" (Textual Int32) :> (QueryParam "maxAgeDays" (Textual Int32) :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "reviewPublisherSiteFilter" Text :> (QueryParam "query" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse))))))))))))))
- claimsSearch :: ClaimsSearch
- data ClaimsSearch
- csXgafv :: Lens' ClaimsSearch (Maybe Xgafv)
- csLanguageCode :: Lens' ClaimsSearch (Maybe Text)
- csUploadProtocol :: Lens' ClaimsSearch (Maybe Text)
- csOffSet :: Lens' ClaimsSearch (Maybe Int32)
- csMaxAgeDays :: Lens' ClaimsSearch (Maybe Int32)
- csAccessToken :: Lens' ClaimsSearch (Maybe Text)
- csUploadType :: Lens' ClaimsSearch (Maybe Text)
- csReviewPublisherSiteFilter :: Lens' ClaimsSearch (Maybe Text)
- csQuery :: Lens' ClaimsSearch (Maybe Text)
- csPageToken :: Lens' ClaimsSearch (Maybe Text)
- csPageSize :: Lens' ClaimsSearch (Maybe Int32)
- csCallback :: Lens' ClaimsSearch (Maybe Text)
REST Resource
type ClaimsSearchResource = "v1alpha1" :> ("claims:search" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "offset" (Textual Int32) :> (QueryParam "maxAgeDays" (Textual Int32) :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "reviewPublisherSiteFilter" Text :> (QueryParam "query" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse)))))))))))))) Source #
A resource alias for factchecktools.claims.search
method which the
ClaimsSearch
request conforms to.
Creating a Request
claimsSearch :: ClaimsSearch Source #
Creates a value of ClaimsSearch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ClaimsSearch Source #
Search through fact-checked claims.
See: claimsSearch
smart constructor.
Instances
Request Lenses
csLanguageCode :: Lens' ClaimsSearch (Maybe Text) Source #
The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to restrict results by language, though we do not currently consider the region.
csUploadProtocol :: Lens' ClaimsSearch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
csOffSet :: Lens' ClaimsSearch (Maybe Int32) Source #
An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if `page_token` is unset. For example, 0 means to return results starting from the first matching result, and 10 means to return from the 11th result.
csMaxAgeDays :: Lens' ClaimsSearch (Maybe Int32) Source #
The maximum age of the returned search results, in days. Age is determined by either claim date or review date, whichever is newer.
csAccessToken :: Lens' ClaimsSearch (Maybe Text) Source #
OAuth access token.
csUploadType :: Lens' ClaimsSearch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
csReviewPublisherSiteFilter :: Lens' ClaimsSearch (Maybe Text) Source #
The review publisher site to filter results by, e.g. nytimes.com.
csQuery :: Lens' ClaimsSearch (Maybe Text) Source #
Textual query string. Required unless `review_publisher_site_filter` is specified.
csPageToken :: Lens' ClaimsSearch (Maybe Text) Source #
The pagination token. You may provide the `next_page_token` returned from a previous List request, if any, in order to get the next page. All other fields must have the same values as in the previous request.
csPageSize :: Lens' ClaimsSearch (Maybe Int32) Source #
The pagination size. We will return up to that many results. Defaults to 10 if not set.
csCallback :: Lens' ClaimsSearch (Maybe Text) Source #
JSONP