gogol-factchecktools-0.5.0: Google Fact Check Tools SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.FactCheckTools.Claims.Search

Contents

Description

Search through fact-checked claims.

See: Fact Check Tools API Reference for factchecktools.claims.search.

Synopsis

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
Eq ClaimsSearch Source # 
Instance details

Defined in Network.Google.Resource.FactCheckTools.Claims.Search

Data ClaimsSearch Source # 
Instance details

Defined in Network.Google.Resource.FactCheckTools.Claims.Search

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ClaimsSearch -> c ClaimsSearch #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ClaimsSearch #

toConstr :: ClaimsSearch -> Constr #

dataTypeOf :: ClaimsSearch -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ClaimsSearch) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ClaimsSearch) #

gmapT :: (forall b. Data b => b -> b) -> ClaimsSearch -> ClaimsSearch #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ClaimsSearch -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ClaimsSearch -> r #

gmapQ :: (forall d. Data d => d -> u) -> ClaimsSearch -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ClaimsSearch -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ClaimsSearch -> m ClaimsSearch #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ClaimsSearch -> m ClaimsSearch #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ClaimsSearch -> m ClaimsSearch #

Show ClaimsSearch Source # 
Instance details

Defined in Network.Google.Resource.FactCheckTools.Claims.Search

Generic ClaimsSearch Source # 
Instance details

Defined in Network.Google.Resource.FactCheckTools.Claims.Search

Associated Types

type Rep ClaimsSearch :: Type -> Type #

GoogleRequest ClaimsSearch Source # 
Instance details

Defined in Network.Google.Resource.FactCheckTools.Claims.Search

Associated Types

type Rs ClaimsSearch :: Type #

type Scopes ClaimsSearch :: [Symbol] #

type Rep ClaimsSearch Source # 
Instance details

Defined in Network.Google.Resource.FactCheckTools.Claims.Search

type Rep ClaimsSearch = D1 (MetaData "ClaimsSearch" "Network.Google.Resource.FactCheckTools.Claims.Search" "gogol-factchecktools-0.5.0-94kj5p0RLtW5oVdIDKxFvW" False) (C1 (MetaCons "ClaimsSearch'" PrefixI True) (((S1 (MetaSel (Just "_csXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_csLanguageCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_csUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_csOffSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: (S1 (MetaSel (Just "_csMaxAgeDays") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_csAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_csUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_csReviewPublisherSiteFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_csQuery") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_csPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_csPageSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_csCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes ClaimsSearch Source # 
Instance details

Defined in Network.Google.Resource.FactCheckTools.Claims.Search

type Scopes ClaimsSearch = ([] :: [Symbol])
type Rs ClaimsSearch Source # 
Instance details

Defined in Network.Google.Resource.FactCheckTools.Claims.Search

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.

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.