Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 810 Bytes

File metadata and controls

42 lines (30 loc) · 810 Bytes

node-create-calender

This code sample will show you how to easily create a new calendar with the Nylas Node.js SDK.

Setup

System dependences

  • Node.js v16x

Create environment variables

You will need the following values:

API KEY=""
GRANT_ID=""

Add the above value to a new .env file:

$ touch  .env 

Install dependencies

$ npm i nylas@beta dotenv

Usage

Run the script using the node command:

$ node index.js

When the calendar is successfully created, you will get the following output in your terminal:

Your new calendar was successfully created ♡ Nylas

Learn More

Click here to learn more about creating a calendar using Nylas.