This sample repo will show you how to track email open rates with the Nylas Node.js SDK.
- Node.js v16.x
You'll need the following values:
ACCESS_TOKEN = ""
CLIENT_ID = ""
CLIENT_SECRET = ""
Add the above values to a .env
file:
$ npm i
Run the script using following commands:
$ npm run build
$ node build/index.js
When you run the script, you'll get account information output in your terminal:
Email: xyz@gmail.com on [2/15/2023], Subject: With Love, from Nylas, Status: [Unopened]
Email: xyz@nylas.com on [2/15/2023], Subject: With Love, from Nylas, Status: [Opened]
Visit our Nylas Node.js SDK documentation to learn more.