service_bus

1.0.2 • Public • Published

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();

Package Sidebar

Install

npm i service_bus

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

  • geniusescode