7.6.1 • Published 2 months ago

nylas v7.6.1

Weekly downloads
5,712
License
MIT
Repository
github
Last release
2 months ago

Nylas Node.js SDK

npm codecov

This is the GitHub repository for the Nylas Node SDK. This repo is primarily for anyone who wants to make contributions to the SDK, or install it from source. If you are looking to use Node to access the Nylas Email, Calendar, or Contacts API you should refer to our official Node SDK Quickstart Guide.

The Nylas Communications Platform provides REST APIs for Email, Calendar, and Contacts, and the Node SDK is the quickest way to build your integration using JavaScript.

Here are some resources to help you get started:

⚙️ Install

Note: The Nylas Node SDK requires Node.js v16 or later.

Set up using npm

To run the Nylas Node SDK, first install Node and npm on your machine.

Then, head to the nearest command line and run the following: npm install nylas

Alternatively, you can use Yarn to install the Nylas Node SDK by running the yarn add nylas command.

Build from source

To install this package from source, clone this repo and run npm install from inside the project directory.

git clone https://github.com/nylas/nylas-nodejs.git
cd nylas-nodejs
npm install

⚡️ Usage

To use this SDK, you must first get a free Nylas account.

Then, follow the Quickstart guide to set up your first app and get your API keys.

For code examples that demonstrate how to use this SDK, take a look at our Node repos in the Nylas Samples collection.

🚀 Making Your First Request

You access Nylas resources (messages, calendars, events, contacts) through an instance of Nylas. The Nylas object must be initialized with your Nylas API key, and you can provide other additional configurations such as the Nylas API url and the timeout.

import Nylas from "nylas";

const nylas = new Nylas({
  apiKey: "NYLAS_API_KEY",
});

Once initialized you can use the object to make requests for a given account's resources, for example to list all the calendars for a given account:

nylas.calendars.list({ identifier: "GRANT_ID" }).then(calendars => {
  console.log(calendars);
});

📚 Documentation

Nylas maintains a reference guide for the Node SDK to help you get familiar with the available methods and classes.

✨ Upgrading from 6.x

See UPGRADE.md for instructions on upgrading from 6.x to 7.x.

Note: The Node SDK v7.x is not compatible with the Nylas API earlier than v3-beta.

💙 Contributing

Please refer to Contributing for information about how to make contributions to this project. We welcome questions, bug reports, and pull requests.

📝 License

This project is licensed under the terms of the MIT license. Please refer to LICENSE for the full terms.

7.6.1

2 months ago

7.6.0

2 months ago

7.5.2

5 months ago

7.5.1

6 months ago

7.5.0

7 months ago

7.4.0

8 months ago

7.3.0

8 months ago

7.2.1

10 months ago

7.2.0

10 months ago

7.1.0

10 months ago

6.11.1

11 months ago

7.0.0

11 months ago

7.0.0-beta.5

11 months ago

7.0.0-beta.4

12 months ago

6.11.0

1 year ago

7.0.0-beta.3

1 year ago

7.0.0-beta.2

1 year ago

7.0.0-beta.1

1 year ago

6.8.0

2 years ago

6.10.0

2 years ago

6.7.0

2 years ago

6.9.0

2 years ago

6.6.1

2 years ago

6.6.0

2 years ago

6.5.1

2 years ago

7.0.0-beta.0

2 years ago

6.5.0

2 years ago

7.0.0-canary.0

3 years ago

7.0.0-canary.1

3 years ago

7.0.0-canary.2

3 years ago

7.0.0-canary.3

2 years ago

6.4.2

3 years ago

7.0.0-canary.4

2 years ago

6.4.1

3 years ago

6.3.2

3 years ago

6.3.1

3 years ago

6.4.0

3 years ago

6.3.0

3 years ago

6.2.1

3 years ago

6.2.2

3 years ago

6.1.0

3 years ago

6.2.0-canary.0

3 years ago

6.0.0

3 years ago

6.2.0

3 years ago

5.10.4

3 years ago

5.10.3

3 years ago

5.10.2

3 years ago

6.0.0-canary.1

3 years ago

6.0.0-canary.2

3 years ago

5.10.1

3 years ago

5.10.0

3 years ago

6.0.0-canary.0

3 years ago

5.9.0

3 years ago

5.8.0

3 years ago

5.7.0

3 years ago

5.6.0

3 years ago

5.5.1

4 years ago

5.5.0

4 years ago

5.4.0

4 years ago

5.3.3

4 years ago

5.3.2

4 years ago

5.3.1

4 years ago

5.3.0

4 years ago

5.2.0

4 years ago

5.1.0

5 years ago

5.0.0

5 years ago

4.10.1

5 years ago

4.10.0

5 years ago

4.9.0

5 years ago

4.8.0

5 years ago

4.7.1

5 years ago

4.7.0

5 years ago

4.6.2

5 years ago

4.6.1

5 years ago

4.6.0

6 years ago

4.5.0

6 years ago

4.4.0

6 years ago

4.3.0

6 years ago

4.2.3

6 years ago

4.2.2

7 years ago

4.2.1

7 years ago

4.2.0

7 years ago

4.1.0

7 years ago

4.0.0

7 years ago

3.1.1

7 years ago

3.1.0

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

8 years ago

2.2.0

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

10 years ago