Modules@robinpath/gmail

@robinpath/gmail

0.1.0Public

Gmail module for RobinPath.

@robinpath/gmail

Gmail module for RobinPath.

Category Functions Auth License

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

FunctionDescription
gmail.setCredentialsConfigure Gmail OAuth2 credentials.
gmail.listMessagesList/search messages
gmail.getMessageGet message details
gmail.sendEmailSend a plain text email
gmail.trashMessageMove message to trash
gmail.untrashMessageRemove from trash
gmail.deleteMessagePermanently delete message
gmail.modifyLabelsAdd/remove labels
gmail.markAsReadMark as read
gmail.markAsUnreadMark as unread
gmail.listLabelsList all labels
gmail.createLabelCreate a label
gmail.createDraftCreate a draft
gmail.listDraftsList drafts
gmail.sendDraftSend a draft
gmail.deleteDraftDelete a draft
gmail.getProfileGet 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

License

MIT

Versions (1)

VersionTagPublished
0.1.0latestyesterday
Install
$ robinpath install @robinpath/gmail
Version0.1.0
LicenseMIT
Unpacked Size5.0 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

productivity