Modules@robinpath/gmail
@robinpath/gmail
0.1.0PublicGmail module for RobinPath.
@robinpath/gmail
Gmail module for RobinPath.
Why use this module?
The gmail module lets you:
- List/search messages
- Get message details
- Send a plain text email
- Move message to trash
- Remove from trash
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/gmail
Quick Start
1. Set up credentials
gmail.setCredentials "your-credentials"
2. List/search messages
gmail.listMessages
Available Functions
| Function | Description |
|---|---|
gmail.setCredentials | Configure Gmail OAuth2 credentials. |
gmail.listMessages | List/search messages |
gmail.getMessage | Get message details |
gmail.sendEmail | Send a plain text email |
gmail.trashMessage | Move message to trash |
gmail.untrashMessage | Remove from trash |
gmail.deleteMessage | Permanently delete message |
gmail.modifyLabels | Add/remove labels |
gmail.markAsRead | Mark as read |
gmail.markAsUnread | Mark as unread |
gmail.listLabels | List all labels |
gmail.createLabel | Create a label |
gmail.createDraft | Create a draft |
gmail.listDrafts | List drafts |
gmail.sendDraft | Send a draft |
gmail.deleteDraft | Delete a draft |
gmail.getProfile | Get user profile |
Examples
List/search messages
gmail.listMessages
Get message details
gmail.getMessage
Send a plain text email
gmail.sendEmail
Integration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/gmail";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
gmail.setCredentials "your-credentials"
gmail.listMessages
`);
Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/google-sheets— Google Sheets module for complementary functionality@robinpath/google-calendar— Google Calendar module for complementary functionality@robinpath/google-contacts— Google Contacts module for complementary functionality@robinpath/google-forms— Google Forms module for complementary functionality@robinpath/outlook— Outlook module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.0 | latest | yesterday |
Related Modules
productivity
0
@robinpath/airtable
v0.1.1robinpath
Airtable module for RobinPath.
0 downloads
...
productivity
0
@robinpath/asana
v0.1.1robinpath
Asana module for RobinPath.
0 downloads
...
productivity
0
@robinpath/basecamp
v0.1.1robinpath
Basecamp module for RobinPath.
0 downloads
...
productivity
0
@robinpath/clickup
v0.1.1robinpath
ClickUp module for RobinPath.
0 downloads
...
Install
$ robinpath install @robinpath/gmail Version0.1.0
LicenseMIT
Unpacked Size5.0 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

