This sample will show you to easily read your contact list with the Nylas Node.js SDK.
CLIENT_ID=<YOUR_CLIENT_ID>
CLIENT_SECRET=<YOUR_CLIENT_SECRET>
ACCESS_TOKEN=<YOUR_ACCESS_TOKENT>
npm install
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