{-# 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.PlusDomains.Activities.Get
(
ActivitiesGetResource
, activitiesGet
, ActivitiesGet
, agActivityId
) where
import Network.Google.PlusDomains.Types
import Network.Google.Prelude
type ActivitiesGetResource =
"plusDomains" :>
"v1" :>
"activities" :>
Capture "activityId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Activity
newtype ActivitiesGet = ActivitiesGet'
{ _agActivityId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
activitiesGet
:: Text
-> ActivitiesGet
activitiesGet pAgActivityId_ =
ActivitiesGet'
{ _agActivityId = pAgActivityId_
}
agActivityId :: Lens' ActivitiesGet Text
agActivityId
= lens _agActivityId (\ s a -> s{_agActivityId = a})
instance GoogleRequest ActivitiesGet where
type Rs ActivitiesGet = Activity
type Scopes ActivitiesGet =
'["https://www.googleapis.com/auth/plus.login",
"https://www.googleapis.com/auth/plus.me",
"https://www.googleapis.com/auth/plus.stream.read"]
requestClient ActivitiesGet'{..}
= go _agActivityId (Just AltJSON) plusDomainsService
where go
= buildClient (Proxy :: Proxy ActivitiesGetResource)
mempty