{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Webmasters.Sites.List
(
SitesListResource
, sitesList
, SitesList
) where
import Network.Google.Prelude
import Network.Google.WebmasterTools.Types
type SitesListResource =
"webmasters" :>
"v3" :>
"sites" :>
QueryParam "alt" AltJSON :>
Get '[JSON] SitesListResponse
data SitesList =
SitesList'
deriving (Eq,Show,Data,Typeable,Generic)
sitesList
:: SitesList
sitesList = SitesList'
instance GoogleRequest SitesList where
type Rs SitesList = SitesListResponse
type Scopes SitesList =
'["https://www.googleapis.com/auth/webmasters",
"https://www.googleapis.com/auth/webmasters.readonly"]
requestClient SitesList'{}
= go (Just AltJSON) webmasterToolsService
where go
= buildClient (Proxy :: Proxy SitesListResource)
mempty