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 |
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
.
- 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" AltMedia :> (MultipartRelated `[JSON]` Message RequestBody :> Post `[JSON]` Message))))))))))))))
- usersMessagesImport :: Message -> Text -> 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" AltMedia :> (MultipartRelated `[JSON]` Message RequestBody :> Post `[JSON]` Message)))))))))))))) Source
A resource alias for gmail.users.messages.import
method which the
UsersMessagesImport
request conforms to.
Creating a Request
:: Message | |
-> Text | |
-> UsersMessagesImport |
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.
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 Apps Vault to a Vault administrator. Only used for Google Apps for Work 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.