{-# 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.GamesConfiguration.LeaderboardConfigurations.Get
(
LeaderboardConfigurationsGetResource
, leaderboardConfigurationsGet
, LeaderboardConfigurationsGet
, lcgLeaderboardId
) where
import Network.Google.GamesConfiguration.Types
import Network.Google.Prelude
type LeaderboardConfigurationsGetResource =
"games" :>
"v1configuration" :>
"leaderboards" :>
Capture "leaderboardId" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] LeaderboardConfiguration
newtype LeaderboardConfigurationsGet = LeaderboardConfigurationsGet'
{ _lcgLeaderboardId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
leaderboardConfigurationsGet
:: Text
-> LeaderboardConfigurationsGet
leaderboardConfigurationsGet pLcgLeaderboardId_ =
LeaderboardConfigurationsGet'
{ _lcgLeaderboardId = pLcgLeaderboardId_
}
lcgLeaderboardId :: Lens' LeaderboardConfigurationsGet Text
lcgLeaderboardId
= lens _lcgLeaderboardId
(\ s a -> s{_lcgLeaderboardId = a})
instance GoogleRequest LeaderboardConfigurationsGet
where
type Rs LeaderboardConfigurationsGet =
LeaderboardConfiguration
type Scopes LeaderboardConfigurationsGet =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient LeaderboardConfigurationsGet'{..}
= go _lcgLeaderboardId (Just AltJSON)
gamesConfigurationService
where go
= buildClient
(Proxy :: Proxy LeaderboardConfigurationsGetResource)
mempty