{-# 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.Games.Applications.Played
(
ApplicationsPlayedResource
, applicationsPlayed
, ApplicationsPlayed
, apBuiltinGameId
) where
import Network.Google.Games.Types
import Network.Google.Prelude
type ApplicationsPlayedResource =
"games" :>
"v1" :>
"applications" :>
"played" :>
QueryParam "builtinGameId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
newtype ApplicationsPlayed =
ApplicationsPlayed'
{ _apBuiltinGameId :: Maybe Text
}
deriving (Eq, Show, Data, Typeable, Generic)
applicationsPlayed
:: ApplicationsPlayed
applicationsPlayed = ApplicationsPlayed' {_apBuiltinGameId = Nothing}
apBuiltinGameId :: Lens' ApplicationsPlayed (Maybe Text)
apBuiltinGameId
= lens _apBuiltinGameId
(\ s a -> s{_apBuiltinGameId = a})
instance GoogleRequest ApplicationsPlayed where
type Rs ApplicationsPlayed = ()
type Scopes ApplicationsPlayed =
'["https://www.googleapis.com/auth/games",
"https://www.googleapis.com/auth/plus.me"]
requestClient ApplicationsPlayed'{..}
= go _apBuiltinGameId (Just AltJSON) gamesService
where go
= buildClient
(Proxy :: Proxy ApplicationsPlayedResource)
mempty