service_bus
v1.0.2
Published
simple way to call restfull api
Downloads
6
Readme
Installation
package.json
{
"dependencies": {
"service_bus":"*"
}
}
$ npm install
## use it
```js
var service_bus = require("service_bus");
function request_service() {
var end_point = {
host: "localhost",
port: "443",
path: "/api/edit_something",
method: "PUT",
headers: {
"Content-Type": "application/json"
},
is_ssl: true
};
service_bus.call(end_point, {"phone_number":"985001011", "user_id": "2"}, function (error, result) {
if (!error) {
console.log(result);
}
else {
console.log(error);
}
});
}
request_service();