ISPAPI-APICONNECTOR
This module is a connector library for the insanely fast 1API backend API.
For further informations visit our homepage http://1api.net and do not hesitate to contact us.
Installation
$ npm install ispapi-apiconnector
Usage
var apiconnector = require('ispapi-connector')
, api = apiconnector.Client()
, c;
api.setRemoteAddr("1.2.3.4:80");
api.login("test.user", "test.passw0rd", "1234");
api.connect("https://coreapi.1API.net/api/call.cgi");
c = api.createConnection({
COMMAND : "StatusUser"
});
c.once("response", function(r){
console.dir(r.as_hash());
});
c.on("error", function(e){
console.log(e.message);
});
c.request();
FAQ
Nothing added yet.
License
MIT