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 |
Gets a summary of the abusive experience rating of a site.
See: Abusive Experience Report API Reference for abusiveexperiencereport.sites.get
.
Synopsis
- type SitesGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] SiteSummaryResponse)))))))
- sitesGet :: Text -> SitesGet
- data SitesGet
- sgXgafv :: Lens' SitesGet (Maybe Xgafv)
- sgUploadProtocol :: Lens' SitesGet (Maybe Text)
- sgAccessToken :: Lens' SitesGet (Maybe Text)
- sgUploadType :: Lens' SitesGet (Maybe Text)
- sgName :: Lens' SitesGet Text
- sgCallback :: Lens' SitesGet (Maybe Text)
REST Resource
type SitesGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] SiteSummaryResponse))))))) Source #
A resource alias for abusiveexperiencereport.sites.get
method which the
SitesGet
request conforms to.
Creating a Request
Creates a value of SitesGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Gets a summary of the abusive experience rating of a site.
See: sitesGet
smart constructor.
Instances
Request Lenses
sgUploadProtocol :: Lens' SitesGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sgUploadType :: Lens' SitesGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sgName :: Lens' SitesGet Text Source #
The required site name. This is the site property whose abusive experiences have been reviewed, and it must be URL-encoded. For example, sites/https%3A%2F%2Fwww.google.com. The server will return an error of BAD_REQUEST if this field is not filled in. Note that if the site property is not yet verified in Search Console, the reportUrl field returned by the API will lead to the verification page, prompting the user to go through that process before they can gain access to the Abusive Experience Report.