arcus.customer.io
A simple interface to the customer.io REST api originally created by Liam Don with a bug fix by Arcus Solutions.
Last updated 5 years ago by arcus .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install arcus.customer.io 
SYNC missed versions from official npm registry.

node-customer.io

This module provides a simple interface to the customer.io REST api, which is documented here: http://customer.io/docs/api/rest.html

Installation

npm install customer.io

Quick Start

// require the customer.io library
CustomerIO = require('customer.io')

// create an instance, passing your site id and API token
// (the details below are the correct length, but bogus)
cio = CustomerIO.init('e875a5078ea45334aa1e', 'ef4d25d4c2bae59b39ec')

// create a user with some initial properties
cio.identify('user_unique_id', 'liam@classdojo.com', {age: 26})

// update an existing user with new properties
cio.identify('user_unique_id', 'liam@classdojo.com', {age: 27, firstName: 'Liam'})

// track an event for a user, using the unique id you created them with
cio.track('user_unique_id', 'purchased', {price: 23.45})

Atribution and Thanks

Copyright © Liam Don 2012

Thanks to the folks at customer.io for their fine event-driven email service.

License

Released under the MIT license. See file called LICENSE for more details.

Current Tags

  • 0.0.4                                ...           latest (5 years ago)

2 Versions

  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |