- Install the required packages
npm install
- Run the project
npm start
-
In the Nylas dashboard, create a new application and set the hosted auth callback URL to
http://localhost:3000/oauth/exchange
-
env variables
NYLAS_CLIENT_ID=
NYLAS_API_KEY=
NYLAS_API_URI=https://api.us.nylas.com
-
Open your browser and go to
http://localhost:3000/nylas/auth
and log in and end user account -
After authenticating an end user account, you can visit the following URLs to get a feel for some of what you can do with the Nylas Calendar API.
http://localhost:3000/nylas/primary-calendar # Go here first to get the calendar ID
http://localhost:3000/nylas/list-events
http://localhost:3000/nylas/create-event