Stored Procedures
Stored procedures are function-like interfaces that extend the functionality of the connector beyond simple SELECT/INSERT/UPDATE/DELETE operations with Gmail.
Stored procedures accept a list of parameters, perform their intended function, and then return any relevant response data from Gmail, along with an indication of whether the procedure succeeded or failed.
CData Python Connector for Gmail Stored Procedures
| Name | Description |
| DownloadAttachments | Downloads attachments of an email. |
| GetAutoForwarding | Gets the auto-forwarding setting for the specified account. |
| GetImap | Query IMAP settings. |
| GetLanguage | Language settings for an account. These settings correspond to the 'Language settings' feature in the web interface. |
| GetOAuthAccessToken | Obtains the OAuth access token to be used for authentication with various Google services. |
| GetOAuthAuthorizationURL | Obtains the OAuth authorization URL used for authentication with various Google services. |
| GetPop | Query POP settings. |
| GetUserProfile | Gets the current user's Gmail profile. |
| GetVacations | Gets vacation responder settings. |
| ImportMessage | Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. This method doesn't perform SPF checks, so it might not work for some spam messages, such as those attempting to perform domain spoofing. This method does not send a message. |
| RefreshOAuthAccessToken | Obtains the OAuth access token to be used for authentication with various Google services. |
| ReplyToMailMessage | Reply to a mail message. |
| SendDraft | Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers. |
| SendMailMessage | Sends a message to the specified recipient. |
| SetDefaultSendAsAliasSmimeConfig | Sets the default S/MIME config for the specified send-as alias. |
| StartNotifications | Set up or update a push notification watch on the given user mailbox. |
| StopNotifications | Stop receiving push notifications for the given user mailbox. |
| TrashMessage | Moves the specified message to the trash. |
| UntrashMessage | Removes the specified message from the trash. |
| UpdateAutoForwarding | Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled. |
| UpdateImap | Updates IMAP settings. |
| UpdateLanguage | Update language settings. If successful, the return object contains the displayLanguage that was saved for the user, which may differ from the value passed into the request. This is because the requested displayLanguage may not be directly supported by Gmail but have a close variant that is, and so the variant may be chosen and saved instead. |
| UpdateMessageLabels | Update message labels by either adding or removing labels to messages. |
| UpdatePop | Updates POP settings. |
| UpdateVacations | Updates vacation responder settings. |
| VerifySendAs | Sends a verification email to the specified send-as alias address. The verification status must be pending. This method is only available to service account clients that have been delegated domain-wide authority. |