🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/gmail

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/gmail

Gmail integration — list/search messages, send email, manage labels, threads, and drafts via the Gmail REST API. Supports OAuth2 access tokens (easiest) or service-account with Domain-Wide Delegation.

latest
npmnpm
Version
0.3.0
Version published
Weekly downloads
11
-42.11%
Maintainers
4
Weekly downloads
 
Created
Source

@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

robinpath add @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.

License

MIT

Keywords

gmail

FAQs

Package last updated on 06 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts