devicexx-sdk
v0.1.1
Published
sdk of device++ for node
Downloads
2
Readme
devicexx-sdk
sdk of device++ for node
Installation
$ npm install --save devicexx-sdk
Usage
var dxx = require('devicexx-sdk');
dxx.init({
baseUrl: 'http://api.devicexx.com:4567',
prefix: '/v1',
access_key: 'your-access-key',
access_secret: 'your-access-secret'
});
// register
var data = {
username: 'your-username',
password: 'your-password'
}
dxx.register(data, function(error, response, body) {
// do something after register
});
// token / bindingList / unbinding
// the same to up 'register'
License
MIT © Vankia IoT Inc.