Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

nylas-samples/node-scheduler-create

Repository files navigation

node-scheduler-create

This sample will show you how to add a new scheduling page using the Nylas Node SDK


Setup

System Dependencies

  • Node.js v16.x

Gather environment variables

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

Install dependencies

$ npm i

Usage

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/...

Get support

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:


Learn more

Visit our Nylas Node SDK documentation to learn more

About

Create a scheduler using the Node SDK

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published