klaviyo-subscribe

1.0.0 • Public • Published

klaviyo-subscribe npm

Tiny Klaviyo list subscribe utility.

Install

npm i klaviyo-subscribe --save

Usage

import subscribe from "klaviyo-subscribe";
 
const listId = "JFDd6y";
const email = "email@email.com";
 
subscribe(listId, email, {
  $first_name: "Eric"
  // any optional traits
}).then(response => {});

Sending Custom field data into a list:

import subscribe from "klaviyo-subscribe";
 
const listId = "JFDd6y";
const email = "email@email.com";
 
subscribe(listId, email, {
  $fields: ["Size", "Type"],
  Size: 10,
  Type: "US Mens"
}).then(response => {});

License

MIT License © Eric Bailey

Readme

Keywords

Package Sidebar

Install

npm i klaviyo-subscribe

Weekly Downloads

1,065

Version

1.0.0

License

MIT

Unpacked Size

6.94 kB

Total Files

8

Last publish

Collaborators

  • estrattonbailey
  • iamkevingreen