This directory contains examples of how to use the Nylas Calendar API with the Nylas Node.js SDK.
- event_with_notetaker.ts - A complete example showing how to create calendar events with Notetaker integration, retrieve events with their associated Notetakers, and update both events and Notetakers.
To run these examples, you'll need to:
-
Install dependencies from the examples directory:
cd examples npm install -
Copy the
.env.examplefile to.envif you haven't already and add your credentials:cp .env.example .env # Edit .env with your editor -
Edit the
.envfile to include:NYLAS_API_KEY- Your Nylas API keyNYLAS_API_URI(optional) - The Nylas API server URI (defaults to "https://api.us.nylas.com")NYLAS_GRANT_ID- The Grant ID to use for calendar operationsNYLAS_CALENDAR_ID- The Calendar ID to use for creating and updating events
-
Run the example:
# From the examples directory npm run calendars # Or directly with ts-node npx ts-node calendars/event_with_notetaker.ts
This example demonstrates:
- Creating an Event with a Notetaker: Creating a calendar event with an integrated Notetaker bot.
- Retrieving Event Notetaker: Finding the Notetaker associated with a specific event.
- Updating Event and Notetaker: Modifying both an event's details and its associated Notetaker settings.
For more information, see the Nylas API Documentation.