{-# 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.Calendar.Colors.Get
(
ColorsGetResource
, colorsGet
, ColorsGet
) where
import Network.Google.AppsCalendar.Types
import Network.Google.Prelude
type ColorsGetResource =
"calendar" :>
"v3" :>
"colors" :>
QueryParam "alt" AltJSON :> Get '[JSON] Colors
data ColorsGet =
ColorsGet'
deriving (Eq,Show,Data,Typeable,Generic)
colorsGet
:: ColorsGet
colorsGet = ColorsGet'
instance GoogleRequest ColorsGet where
type Rs ColorsGet = Colors
type Scopes ColorsGet =
'["https://www.googleapis.com/auth/calendar",
"https://www.googleapis.com/auth/calendar.readonly"]
requestClient ColorsGet'{}
= go (Just AltJSON) appsCalendarService
where go
= buildClient (Proxy :: Proxy ColorsGetResource)
mempty