{-# 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.People.ListByCircle
(
PeopleListByCircleResource
, peopleListByCircle
, PeopleListByCircle
, plbcCircleId
, plbcPageToken
, plbcMaxResults
) where
import Network.Google.PlusDomains.Types
import Network.Google.Prelude
type PeopleListByCircleResource =
"plusDomains" :>
"v1" :>
"circles" :>
Capture "circleId" Text :>
"people" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :> Get '[JSON] PeopleFeed
data PeopleListByCircle = PeopleListByCircle'
{ _plbcCircleId :: !Text
, _plbcPageToken :: !(Maybe Text)
, _plbcMaxResults :: !(Textual Word32)
} deriving (Eq,Show,Data,Typeable,Generic)
peopleListByCircle
:: Text
-> PeopleListByCircle
peopleListByCircle pPlbcCircleId_ =
PeopleListByCircle'
{ _plbcCircleId = pPlbcCircleId_
, _plbcPageToken = Nothing
, _plbcMaxResults = 20
}
plbcCircleId :: Lens' PeopleListByCircle Text
plbcCircleId
= lens _plbcCircleId (\ s a -> s{_plbcCircleId = a})
plbcPageToken :: Lens' PeopleListByCircle (Maybe Text)
plbcPageToken
= lens _plbcPageToken
(\ s a -> s{_plbcPageToken = a})
plbcMaxResults :: Lens' PeopleListByCircle Word32
plbcMaxResults
= lens _plbcMaxResults
(\ s a -> s{_plbcMaxResults = a})
. _Coerce
instance GoogleRequest PeopleListByCircle where
type Rs PeopleListByCircle = PeopleFeed
type Scopes PeopleListByCircle =
'["https://www.googleapis.com/auth/plus.circles.read",
"https://www.googleapis.com/auth/plus.login"]
requestClient PeopleListByCircle'{..}
= go _plbcCircleId _plbcPageToken
(Just _plbcMaxResults)
(Just AltJSON)
plusDomainsService
where go
= buildClient
(Proxy :: Proxy PeopleListByCircleResource)
mempty