gogol-gmail-0.3.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.Drafts.Send

Contents

Description

Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.

See: Gmail API Reference for gmail.users.drafts.send.

Synopsis

REST Resource

type UsersDraftsSendResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> ("send" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Draft :> Post '[JSON] Message)))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> ("send" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Draft :> Post '[JSON] Message)))))))))) Source #

A resource alias for gmail.users.drafts.send method which the UsersDraftsSend request conforms to.

Creating a Request

usersDraftsSend Source #

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

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

data UsersDraftsSend Source #

Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.

See: usersDraftsSend smart constructor.

Instances

Eq UsersDraftsSend Source # 
Data UsersDraftsSend Source # 

Methods

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

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

toConstr :: UsersDraftsSend -> Constr #

dataTypeOf :: UsersDraftsSend -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersDraftsSend Source # 
Generic UsersDraftsSend Source # 
GoogleRequest UsersDraftsSend Source # 
GoogleRequest (MediaUpload UsersDraftsSend) Source # 
type Rep UsersDraftsSend Source # 
type Rep UsersDraftsSend = D1 (MetaData "UsersDraftsSend" "Network.Google.Resource.Gmail.Users.Drafts.Send" "gogol-gmail-0.3.0-LsjK5jY5aBO3wn73Gztk4i" False) (C1 (MetaCons "UsersDraftsSend'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_udsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Draft)) (S1 (MetaSel (Just Symbol "_udsUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes UsersDraftsSend Source # 
type Scopes UsersDraftsSend = (:) Symbol "https://mail.google.com/" ((:) Symbol "https://www.googleapis.com/auth/gmail.compose" ((:) Symbol "https://www.googleapis.com/auth/gmail.modify" ([] Symbol)))
type Rs UsersDraftsSend Source # 
type Scopes (MediaUpload UsersDraftsSend) Source # 
type Rs (MediaUpload UsersDraftsSend) Source # 

Request Lenses

udsPayload :: Lens' UsersDraftsSend Draft Source #

Multipart request metadata.

udsUserId :: Lens' UsersDraftsSend Text Source #

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