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 |
List the `ClaimReview` markup pages for a specific URL or for an organization.
See: Fact Check Tools API Reference for factchecktools.pages.list
.
Synopsis
- type PagesListResource = "v1alpha1" :> ("pages" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "offset" (Textual Int32) :> (QueryParam "access_token" Text :> (QueryParam "url" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "organization" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse))))))))))))
- pagesList :: PagesList
- data PagesList
- plXgafv :: Lens' PagesList (Maybe Xgafv)
- plUploadProtocol :: Lens' PagesList (Maybe Text)
- plOffSet :: Lens' PagesList (Maybe Int32)
- plAccessToken :: Lens' PagesList (Maybe Text)
- plURL :: Lens' PagesList (Maybe Text)
- plUploadType :: Lens' PagesList (Maybe Text)
- plPageToken :: Lens' PagesList (Maybe Text)
- plOrganization :: Lens' PagesList (Maybe Text)
- plPageSize :: Lens' PagesList (Maybe Int32)
- plCallback :: Lens' PagesList (Maybe Text)
REST Resource
type PagesListResource = "v1alpha1" :> ("pages" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "offset" (Textual Int32) :> (QueryParam "access_token" Text :> (QueryParam "url" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "organization" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse)))))))))))) Source #
A resource alias for factchecktools.pages.list
method which the
PagesList
request conforms to.
Creating a Request
pagesList :: PagesList Source #
Creates a value of PagesList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
List the `ClaimReview` markup pages for a specific URL or for an organization.
See: pagesList
smart constructor.
Instances
Request Lenses
plUploadProtocol :: Lens' PagesList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plOffSet :: Lens' PagesList (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, and if the request is not for a specific URL. For example, 0 means to return results starting from the first matching result, and 10 means to return from the 11th result.
plURL :: Lens' PagesList (Maybe Text) Source #
The URL from which to get `ClaimReview` markup. There will be at most one result. If markup is associated with a more canonical version of the URL provided, we will return that URL instead. Cannot be specified along with an organization.
plUploadType :: Lens' PagesList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plPageToken :: Lens' PagesList (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.
plOrganization :: Lens' PagesList (Maybe Text) Source #
The organization for which we want to fetch markups for. For instance, "site.com". Cannot be specified along with an URL.