0.1.2 • Published 10 years ago
changetip v0.1.2
ChangeTip API for NodeJS
Enables easy communication with the ChangeTip API via NodeJS. Allows for sending and retrieving tip information
Installation
npm install changetip
Instance Usage
var ChangeTip = require('changetip'),
change_tip = new ChangeTip({api_key:{YOUR_KEY_HERE});
change_tip.send_tip(uniqueId, sender, receiver, channel, meta).then(function(result) {
//Results here from transaction
});
Singleton Usage
var change_tip = require('changetip').getInstance();
//Only needed once
change_tip.init({api_key:{YOUR_KEY_HERE});
change_tip.send_tip(uniqueId, sender, receiver, channel, meta).then(function(result) {
//Results here from transaction
});
API Development
Clone repo locally
git clone https://github.com/changecoin/changetip-javascript.git
Install Node Modules
npm install
Generating Docs
npm run docs
Running Unit Tests
To run Unit Tests:
npm run test