gogol-admin-emailmigration-0.0.1: Google Email Migration API v2 SDK.

Copyright(c) 2015 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.EmailMigration.Mail.Insert

Contents

Description

Insert Mail into Google's Gmail backends

See: Email Migration API v2 Reference for emailMigration.mail.insert.

Synopsis

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

mailInsert Source

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:

Request Lenses

miPayload :: Lens' MailInsert MailItem Source

Multipart request metadata.

miUserKey :: Lens' MailInsert Text Source

The email or immutable id of the user