gogol-gmail-0.4.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.Messages.Send

Contents

Description

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

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

Synopsis

REST Resource

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

A resource alias for gmail.users.messages.send method which the UsersMessagesSend request conforms to.

Creating a Request

usersMessagesSend Source #

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

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

data UsersMessagesSend Source #

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

See: usersMessagesSend smart constructor.

Instances
Eq UsersMessagesSend Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Send

Data UsersMessagesSend Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Send

Methods

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

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

toConstr :: UsersMessagesSend -> Constr #

dataTypeOf :: UsersMessagesSend -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersMessagesSend Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Send

Generic UsersMessagesSend Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Send

Associated Types

type Rep UsersMessagesSend :: Type -> Type #

GoogleRequest UsersMessagesSend Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Send

Associated Types

type Rs UsersMessagesSend :: Type #

type Scopes UsersMessagesSend :: [Symbol] #

GoogleRequest (MediaUpload UsersMessagesSend) Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Send

type Rep UsersMessagesSend Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Send

type Rep UsersMessagesSend = D1 (MetaData "UsersMessagesSend" "Network.Google.Resource.Gmail.Users.Messages.Send" "gogol-gmail-0.4.0-EDJmLuxza63I9QV4rXNgT4" False) (C1 (MetaCons "UsersMessagesSend'" PrefixI True) (S1 (MetaSel (Just "_umsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Message) :*: S1 (MetaSel (Just "_umsUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes UsersMessagesSend Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Send

type Scopes UsersMessagesSend = "https://mail.google.com/" ': ("https://www.googleapis.com/auth/gmail.compose" ': ("https://www.googleapis.com/auth/gmail.modify" ': ("https://www.googleapis.com/auth/gmail.send" ': ([] :: [Symbol]))))
type Rs UsersMessagesSend Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Send

type Scopes (MediaUpload UsersMessagesSend) Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Send

type Rs (MediaUpload UsersMessagesSend) Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Send

Request Lenses

umsPayload :: Lens' UsersMessagesSend Message Source #

Multipart request metadata.

umsUserId :: Lens' UsersMessagesSend Text Source #

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