{-# 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.Comments.Get
(
CommentsGetResource
, commentsGet
, CommentsGet
, cgCommentId
) where
import Network.Google.Plus.Types
import Network.Google.Prelude
type CommentsGetResource =
"plus" :>
"v1" :>
"comments" :>
Capture "commentId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Comment
newtype CommentsGet = CommentsGet'
{ _cgCommentId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
commentsGet
:: Text
-> CommentsGet
commentsGet pCgCommentId_ =
CommentsGet'
{ _cgCommentId = pCgCommentId_
}
cgCommentId :: Lens' CommentsGet Text
cgCommentId
= lens _cgCommentId (\ s a -> s{_cgCommentId = a})
instance GoogleRequest CommentsGet where
type Rs CommentsGet = Comment
type Scopes CommentsGet =
'["https://www.googleapis.com/auth/plus.login",
"https://www.googleapis.com/auth/plus.me"]
requestClient CommentsGet'{..}
= go _cgCommentId (Just AltJSON) plusService
where go
= buildClient (Proxy :: Proxy CommentsGetResource)
mempty