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) {
});
Singleton Usage
var change_tip = require('changetip').getInstance();
change_tip.init({api_key:{YOUR_KEY_HERE});
change_tip.send_tip(uniqueId, sender, receiver, channel, meta).then(function(result) {
});
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