Modules@robinpath/google-calendar

@robinpath/google-calendar

0.1.0Public

Google Calendar module for RobinPath.

@robinpath/google-calendar

Google Calendar module for RobinPath.

Category Functions Auth License

Why use this module?

The google-calendar module lets you:

  • List events from a calendar.
  • Get a single event by ID.
  • Create a new calendar event.
  • Update an existing event.
  • Delete a calendar event.

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/google-calendar

Quick Start

1. Set up credentials

googleCalendar.setCredentials "ya29.xxx"

2. List events from a calendar.

googleCalendar.listEvents "primary" {"timeMin":"2025-01-01T00:00:00Z","maxResults":10}

Available Functions

FunctionDescription
google-calendar.setCredentialsSet the OAuth2 access token for Google Calendar API.
google-calendar.listEventsList events from a calendar.
google-calendar.getEventGet a single event by ID.
google-calendar.createEventCreate a new calendar event.
google-calendar.updateEventUpdate an existing event.
google-calendar.deleteEventDelete a calendar event.
google-calendar.listCalendarsList all calendars for the authenticated user.
google-calendar.createCalendarCreate a new calendar.
google-calendar.quickAddCreate an event from a natural-language text string.
google-calendar.freeBusyCheck free/busy status for calendars.

Examples

List events from a calendar.

googleCalendar.listEvents "primary" {"timeMin":"2025-01-01T00:00:00Z","maxResults":10}

Get a single event by ID.

googleCalendar.getEvent "primary" "event-id"

Create a new calendar event.

googleCalendar.createEvent "primary" {"summary":"Meeting","start":{"dateTime":"2025-06-01T10:00:00Z"},"end":{"dateTime":"2025-06-01T11:00:00Z"}}

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/google-calendar";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  googleCalendar.setCredentials "ya29.xxx"
  googleCalendar.listEvents "primary" {"timeMin":"2025-01-01T00:00:00Z","maxResults":10}
`);

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/google-calendar
Version0.1.0
LicenseMIT
Unpacked Size5.3 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

productivity