Giter Site home page Giter Site logo

persy-ai / nylas-nodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nylas/nylas-nodejs

0.0 0.0 0.0 3.59 MB

A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.

License: MIT License

JavaScript 56.86% CSS 0.66% HTML 1.70% TypeScript 40.56% Pug 0.21%

nylas-nodejs's Introduction

Nylas Node.js SDK

Travis build status

This is the GitHub repository for the Nylas Node SDK and 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

To run the Nylas Node SDK, you will first need to have Node and npm installed on your machine.

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

Alternatively, if you prefer to use Yarn, you can install the Nylas Node SDK with yarn add nylas

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

Every resource (i.e., messages, events, contacts) is accessed via an instance of Nylas. Before making any requests, be sure to call config and initialize the Nylas instance with your clientId and clientSecret. Then, call with and pass it your accessToken. The accessToken allows Nylas to make requests for a given account's resources.

const Nylas = require('nylas');

Nylas.config({
  clientId: CLIENT_ID,
  clientSecret: CLIENT_SECRET,
});

const nylas = Nylas.with(ACCESS_TOKEN);

Then, you can use Nylas to access information about a user's account:

nylas.threads.list({}).then(threads => {
  console.log(threads.length);
});

For more information about how to use the Nylas Node SDK, take a look at our quickstart guide.

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.

nylas-nodejs's People

Contributors

mrashed-dev avatar smrutherford avatar gerdie avatar jackiehluo avatar khamidou avatar singingwolfboy avatar annielcook avatar spang avatar ericyhwang avatar bengotow avatar trysound avatar jieunsharonkim avatar jylauril avatar pfista avatar tranced avatar myleslinder avatar dependabot[bot] avatar jstejada avatar l8on avatar slava-tre avatar brettgerry avatar kaleguy avatar kewitz avatar gregory avatar gm-polyakov avatar aaronddm avatar sdwvit avatar romainsimon avatar jebschiefer avatar grinich avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.