New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

customerio

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

customerio

A node api for customerio

  • 0.1.2
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

node-customerio

A client for Customer.io

Installation

npm install --save customerio

Usage

var customerio = require('customerio')('CUSTOMERIO_KEY', 'CUSTOMERIO_SECRET')
customerio.identify({userId: 5, email: 'foo@example.com'}[, callback])
customerio.track({userId: 5, name: 'signup'}[, callback])
customerio.delete({userId: 5})

Methods

  • identify
  • track
  • delete

Using Promises

This library's methods return Promises, so it can be nicely composed with your backend calls.

For example if using bookshelf

return User.forge({
    email: req.body.email
}).save().then(function(user) {
    return customerio.identify({
        userId: user.id,
        email: user.get('email')
    })
})

Reason

I tried the official client however, it throws on any error. This gets worse, as it will throw even if you don't pass it an options object or a callback

Keywords

FAQs

Package last updated on 12 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc