This code sample will show you how to easily create a new calendar with the Nylas Node.js SDK.
- Node.js v16x
You will need the following values:
API KEY=""
GRANT_ID=""
Add the above value to a new .env
file:
$ touch .env
$ npm i nylas@beta dotenv
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
Click here to learn more about creating a calendar using Nylas.