This sample will show you how to add a new scheduling page using the Nylas Node SDK
- Node.js v16.x
You'll need the following values:
CLIENT_ID = ""
CLIENT_SECRET = ""
ACCESS_TOKEN = ""
ACCOUNT_ID = ""
SCHEDULER_NAME = ""
SCHEDULER_SLUG = ""
AVAILABILITY_CALENDAR_ID = ""
BOOKING_CALENDAR_ID = ""
Add the above values to a new .env
file:
$ touch .env # Then add your env variables
$ npm i
Run the script using the node
command:
$ node scheduler.js
When your message is successfully sent, you'll get the following output in your terminal:
Scheduler page was created successfully at https://schedule.nylas.com/...
If you found a bug or want to suggest a new [feature/use case/sample], please file an issue.
If you have questions, comments, or need help with code, we're here to help:
- Email us at [email protected]
Visit our Nylas Node SDK documentation to learn more