Copyright | (c) 2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Insert Mail into Google's Gmail backends
See: Email Migration API v2 Reference for emailMigration.mail.insert
.
- type MailInsertResource = ("email" :> ("v2" :> ("users" :> (Capture "userKey" Text :> ("mail" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` MailItem :> Post `[JSON]` ()))))))) :<|> ("upload" :> ("email" :> ("v2" :> ("users" :> (Capture "userKey" Text :> ("mail" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (MultipartRelated `[JSON]` MailItem RequestBody :> Post `[JSON]` ())))))))))
- mailInsert :: MailItem -> Text -> MailInsert
- data MailInsert
- miPayload :: Lens' MailInsert MailItem
- miUserKey :: Lens' MailInsert Text
REST Resource
type MailInsertResource = ("email" :> ("v2" :> ("users" :> (Capture "userKey" Text :> ("mail" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` MailItem :> Post `[JSON]` ()))))))) :<|> ("upload" :> ("email" :> ("v2" :> ("users" :> (Capture "userKey" Text :> ("mail" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (MultipartRelated `[JSON]` MailItem RequestBody :> Post `[JSON]` ()))))))))) Source
A resource alias for emailMigration.mail.insert
method which the
MailInsert
request conforms to.
Creating a Request
Creates a value of MailInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MailInsert Source
Insert Mail into Google's Gmail backends
See: mailInsert
smart constructor.
Eq MailInsert Source | |
Data MailInsert Source | |
Show MailInsert Source | |
Generic MailInsert Source | |
GoogleRequest MailInsert Source | |
GoogleRequest (MediaUpload MailInsert) Source | |
type Rep MailInsert Source | |
type Rs MailInsert = () Source | |
type Rs (MediaUpload MailInsert) = () Source |
Request Lenses
miPayload :: Lens' MailInsert MailItem Source
Multipart request metadata.
miUserKey :: Lens' MailInsert Text Source
The email or immutable id of the user