gogol-gmail-0.2.0: Google Gmail SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Gmail.Users.GetProFile

Contents

Description

Gets the current user's Gmail profile.

See: Gmail API Reference for gmail.users.getProfile.

Synopsis

REST Resource

type UsersGetProFileResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("profile" :> (QueryParam "alt" AltJSON :> Get '[JSON] ProFile))))) Source #

A resource alias for gmail.users.getProfile method which the UsersGetProFile request conforms to.

Creating a Request

usersGetProFile :: UsersGetProFile Source #

Creates a value of UsersGetProFile with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UsersGetProFile Source #

Gets the current user's Gmail profile.

See: usersGetProFile smart constructor.

Instances

Eq UsersGetProFile Source # 
Data UsersGetProFile Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UsersGetProFile -> c UsersGetProFile #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UsersGetProFile #

toConstr :: UsersGetProFile -> Constr #

dataTypeOf :: UsersGetProFile -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UsersGetProFile) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UsersGetProFile) #

gmapT :: (forall b. Data b => b -> b) -> UsersGetProFile -> UsersGetProFile #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UsersGetProFile -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UsersGetProFile -> r #

gmapQ :: (forall d. Data d => d -> u) -> UsersGetProFile -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UsersGetProFile -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UsersGetProFile -> m UsersGetProFile #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UsersGetProFile -> m UsersGetProFile #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UsersGetProFile -> m UsersGetProFile #

Show UsersGetProFile Source # 
Generic UsersGetProFile Source # 
GoogleRequest UsersGetProFile Source # 
type Rep UsersGetProFile Source # 
type Rep UsersGetProFile = D1 (MetaData "UsersGetProFile" "Network.Google.Resource.Gmail.Users.GetProFile" "gogol-gmail-0.2.0-E4i4RtGKYej4RON8UGqMJ5" True) (C1 (MetaCons "UsersGetProFile'" PrefixI True) (S1 (MetaSel (Just Symbol "_ugpfUserId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Scopes UsersGetProFile Source # 
type Scopes UsersGetProFile = (:) Symbol "https://mail.google.com/" ((:) Symbol "https://www.googleapis.com/auth/gmail.compose" ((:) Symbol "https://www.googleapis.com/auth/gmail.metadata" ((:) Symbol "https://www.googleapis.com/auth/gmail.modify" ((:) Symbol "https://www.googleapis.com/auth/gmail.readonly" ([] Symbol)))))
type Rs UsersGetProFile Source # 

Request Lenses

ugpfUserId :: Lens' UsersGetProFile Text Source #

The user's email address. The special value me can be used to indicate the authenticated user.