{-# 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.Mirror.Contacts.Get
(
ContactsGetResource
, contactsGet
, ContactsGet
, cgId
) where
import Network.Google.Mirror.Types
import Network.Google.Prelude
type ContactsGetResource =
"mirror" :>
"v1" :>
"contacts" :>
Capture "id" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Contact
newtype ContactsGet = ContactsGet'
{ _cgId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
contactsGet
:: Text
-> ContactsGet
contactsGet pCgId_ =
ContactsGet'
{ _cgId = pCgId_
}
cgId :: Lens' ContactsGet Text
cgId = lens _cgId (\ s a -> s{_cgId = a})
instance GoogleRequest ContactsGet where
type Rs ContactsGet = Contact
type Scopes ContactsGet =
'["https://www.googleapis.com/auth/glass.timeline"]
requestClient ContactsGet'{..}
= go _cgId (Just AltJSON) mirrorService
where go
= buildClient (Proxy :: Proxy ContactsGetResource)
mempty