Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Node.js client for Unmagnify
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
package.json
readme.md

readme.md

Overview

This is a very simple Node.js client for Unmagnify. At the moment it supports updating your sequences, but not creating new sequences, etc. (feel free to fork and add! :)

Installation

npm install unmagnify

Usage

Create a client, with configuration:

var unmagnify = require('unmagnify');

var client = unmagnify.create({
  token: '<your token here>'
});

client
  .registerSequence('users', '<sequence id>')
  .registerSequence('sales', '<sequence id>');

and then update your plots using their registered names:

client.plot('users', 280675, [callback]);

(callback is an optional function which taking an err argument, which will be called when the plot has completed)

Enjoy!

Something went wrong with that request. Please try again.