Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Reading contacts with Node SDK

This sample will show you to easily read your contact list with the Nylas Node.js SDK.


Instructions

In the root folder, create a .env file with your nylas configuration as follow:

CLIENT_ID=<YOUR_CLIENT_ID>
CLIENT_SECRET=<YOUR_CLIENT_SECRET>
ACCESS_TOKEN=<YOUR_ACCESS_TOKENT>

Install dependencies

npm install

Usage

npm start

You will get the following output in the terminal:

Name:   | Emails: {"type":"","email":"test-account-3@nylas.app"} | ID: bx1qgot2d5r6s2gvf4zcwlztu
Name:   | Emails: {"type":"","email":"test-account-1@nylas.app"} | ID: e7csp5az9pmbao73iju08jyy1
Name:   | Emails: {"type":"","email":"test-account-2@nylas.app"} | ID: cgebl9qkj7sqoqvdm5ctc83d