Copyright | (c) 2015-2016 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 |
Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message.
See: Gmail API Reference for gmail.users.messages.import
.
Synopsis
- type UsersMessagesImportResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("import" :> (QueryParam "processForCalendar" Bool :> (QueryParam "deleted" Bool :> (QueryParam "neverMarkSpam" Bool :> (QueryParam "internalDateSource" UsersMessagesImportInternalDateSource :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Message :> Post '[JSON] Message)))))))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("import" :> (QueryParam "processForCalendar" Bool :> (QueryParam "deleted" Bool :> (QueryParam "neverMarkSpam" Bool :> (QueryParam "internalDateSource" UsersMessagesImportInternalDateSource :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Message :> Post '[JSON] Message))))))))))))))
- usersMessagesImport :: Message -> UsersMessagesImport
- data UsersMessagesImport
- umiPayload :: Lens' UsersMessagesImport Message
- umiUserId :: Lens' UsersMessagesImport Text
- umiProcessForCalendar :: Lens' UsersMessagesImport Bool
- umiDeleted :: Lens' UsersMessagesImport Bool
- umiNeverMarkSpam :: Lens' UsersMessagesImport Bool
- umiInternalDateSource :: Lens' UsersMessagesImport UsersMessagesImportInternalDateSource
REST Resource
type UsersMessagesImportResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("import" :> (QueryParam "processForCalendar" Bool :> (QueryParam "deleted" Bool :> (QueryParam "neverMarkSpam" Bool :> (QueryParam "internalDateSource" UsersMessagesImportInternalDateSource :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Message :> Post '[JSON] Message)))))))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("import" :> (QueryParam "processForCalendar" Bool :> (QueryParam "deleted" Bool :> (QueryParam "neverMarkSpam" Bool :> (QueryParam "internalDateSource" UsersMessagesImportInternalDateSource :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Message :> Post '[JSON] Message)))))))))))))) Source #
A resource alias for gmail.users.messages.import
method which the
UsersMessagesImport
request conforms to.
Creating a Request
Creates a value of UsersMessagesImport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersMessagesImport Source #
Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message.
See: usersMessagesImport
smart constructor.
Instances
Request Lenses
umiPayload :: Lens' UsersMessagesImport Message Source #
Multipart request metadata.
umiUserId :: Lens' UsersMessagesImport Text Source #
The user's email address. The special value me can be used to indicate the authenticated user.
umiProcessForCalendar :: Lens' UsersMessagesImport Bool Source #
Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user.
umiDeleted :: Lens' UsersMessagesImport Bool Source #
Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts.
umiNeverMarkSpam :: Lens' UsersMessagesImport Bool Source #
Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.
umiInternalDateSource :: Lens' UsersMessagesImport UsersMessagesImportInternalDateSource Source #
Source for Gmail's internal date of the message.