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.Threads.Get

Contents

Description

Gets the specified thread.

See: Gmail API Reference for gmail.users.threads.get.

Synopsis

REST Resource

type UsersThreadsGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("threads" :> (Capture "id" Text :> (QueryParam "format" UsersThreadsGetFormat :> (QueryParams "metadataHeaders" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Thread)))))))) Source #

A resource alias for gmail.users.threads.get method which the UsersThreadsGet request conforms to.

Creating a Request

usersThreadsGet Source #

Arguments

:: Text

utgId

-> UsersThreadsGet 

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

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

data UsersThreadsGet Source #

Gets the specified thread.

See: usersThreadsGet smart constructor.

Instances

Eq UsersThreadsGet Source # 
Data UsersThreadsGet Source # 

Methods

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

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

toConstr :: UsersThreadsGet -> Constr #

dataTypeOf :: UsersThreadsGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersThreadsGet Source # 
Generic UsersThreadsGet Source # 
GoogleRequest UsersThreadsGet Source # 
type Rep UsersThreadsGet Source # 
type Rep UsersThreadsGet = D1 (MetaData "UsersThreadsGet" "Network.Google.Resource.Gmail.Users.Threads.Get" "gogol-gmail-0.2.0-E4i4RtGKYej4RON8UGqMJ5" False) (C1 (MetaCons "UsersThreadsGet'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_utgFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UsersThreadsGetFormat)) (S1 (MetaSel (Just Symbol "_utgUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_utgId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_utgMetadataHeaders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))))))
type Scopes UsersThreadsGet Source # 
type Scopes UsersThreadsGet = (:) Symbol "https://mail.google.com/" ((:) 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 UsersThreadsGet Source # 

Request Lenses

utgFormat :: Lens' UsersThreadsGet UsersThreadsGetFormat Source #

The format to return the messages in.

utgUserId :: Lens' UsersThreadsGet Text Source #

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

utgId :: Lens' UsersThreadsGet Text Source #

The ID of the thread to retrieve.

utgMetadataHeaders :: Lens' UsersThreadsGet [Text] Source #

When given and format is METADATA, only include headers specified.