Klaviyo-metrics node is a module to integrate Klaviyo's Metrics API easily in a NodeJS environment.
NPM:
$ npm install klaviyo-metrics-node
1- Include the library
const KlaviyoMetricsClient = require("klaviyo-metrics-node");
2- Create a new instance of the client
const kc = new KlaviyoMetricsClient("PRIVATE_API_KEY");
3- Get what you want from the Metrics API
klaviyo-node is inspired by the python sdk provided by the official company maintaining Klaviyo. It is intended to simplify the process for nodejs developers and give them a tool to use when integrating with Klaviyo.