scuelo-api-client
v1.0.0
Published
this is a client to consume the rest api of scuelo with a node program
Downloads
3
Readme
scuelo-api-client
this is a client to consume the rest api of scuelo with a node program
Install
$ npm install --save scuelo-api-client
Usage
var scueloAPI = require('scuelo-api-client');
var settings = {
login: 'myLogin',
password 'myPassword',
env: 'dev'
};
scueloAPI.init(settings);
after init you can use like that :
var statistic = require('scuelo-api-client').Statistic;
statistic.topTenProfile(function(err, data) {
if(err) {
//do something with error
} else {
//data is a JSON object
//do something with data
console.log(data);
}
});