This sample will show you to easily read your email with the Nylas Node.js SDK.
- Node.js v16.x
You'll need the following values:
ACCESS_TOKEN = ""
CLIENT_ID = ""
CLIENT_SECRET = ""
RECIPIENT_ADDRESS = ""
Add the above values to a new .env
file:
$ touch .env # Then add your env variables
$ npm i
Run the script using the node
command:
$ node index.js
When your messages are successfully read, you'll get the following output in your terminal for a few emails:
[4/7/YYYY] Here's an email subject
[4/6/YYYY] Another subject
Visit our Nylas Node.js SDK documentation to learn more.