0.0.1 • Published 7 years ago

keymetrics.js v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Keymetrics.js

High level wrapper around kmjs-core to easily build custom interfaces.

Hello World

const Keymetrics = require('keymetrics.js');

// No need to declare client_id (wrapped inside the lib)
var keymetrics = new Keymetrics();

var bucket = null;

keymetrics.bucket.retrieveAll()
  .then((buckets) => {

    bucket = keymetrics.subscribe({
      public_id   : buckets[0].public_id,
      aggregation : 'method1'
    });

    // Bucket now contains all bucket API methods + auto aggregation
  })