{-# 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.Plus.Activities.Get
(
ActivitiesGetResource
, activitiesGet
, ActivitiesGet
, agActivityId
) where
import Network.Google.Plus.Types
import Network.Google.Prelude
type ActivitiesGetResource =
"plus" :>
"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"]
requestClient ActivitiesGet'{..}
= go _agActivityId (Just AltJSON) plusService
where go
= buildClient (Proxy :: Proxy ActivitiesGetResource)
mempty