0.1.1 • Published 10 years ago

baremetrics-import v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

baremetrics-import

An import module for Baremetrics, which at the current state has no official import functionality.

Usage

  var baremetrics = require('./index.js')('my@username.biz', 'some-password');
  var moment = require('moment');

  var data = {
    // Description needs to be unique
    description: 'Some unique description for this transaction.',
    // The amount of customers for this payment
    customers: 12,
    // The total amount of this payment
    amount: 12,
    // The amount of months this payment covers
    months: 1,
    // If not recurrent, it will not show in the MRR
    recurrent: true,
    // The date of the transaction, time is not necessary
    created: moment().format()
  };

  baremetrics.import(data, function(err) {
    // Do something with the error
  });

TO DO

  • Add commenting
  • Add tests
  • Add funcionality to import more than one transaction
0.1.1

10 years ago