Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@getclarify/nylas-mirror
Advanced tools
A mirror for a NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.
An unofficial fork of the Nylas Node.js SDK that fixes timeout errors.
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:
Note: The Nylas Node SDK requires Node.js v16 or later.
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.
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
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.
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);
});
Nylas maintains a reference guide for the Node SDK to help you get familiar with the available methods and classes.
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.
Please refer to Contributing for information about how to make contributions to this project. We welcome questions, bug reports, and pull requests.
This project is licensed under the terms of the MIT license. Please refer to LICENSE for the full terms.
FAQs
A mirror for a NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.
We found that @getclarify/nylas-mirror demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.