GithubHelp home page GithubHelp logo

bbn / node-customer.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liamdon/node-customer.io

0.0 2.0 0.0 149 KB

A simple interface to the customer.io REST api

License: MIT License

JavaScript 1.54% CoffeeScript 98.46%

node-customer.io's Introduction

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', '[email protected]', {age: 26})

// update an existing user with new properties
cio.identify('user_unique_id', '[email protected]', {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.

node-customer.io's People

Contributors

liamdon avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.