Skip to content

nylas-samples/node-track-email-open-rates

Repository files navigation

node-code-sample-starter

This sample repo will show you how to track email open rates with the Nylas Node.js SDK.

Setup

System dependencies

  • Node.js v16.x

Gather environment variables

You'll need the following values:

ACCESS_TOKEN = ""
CLIENT_ID = ""
CLIENT_SECRET = ""

Add the above values to a .env file:

Install dependencies

$ npm i

Usage

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]

Learn more

Visit our Nylas Node.js SDK documentation to learn more.

About

Start tracking email open rates with the Nylas Node.js SDK!

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published