index.js
function MicroserviceClient(settings) {
  var self = this;
  self.settings = settings;
  self.get = bind(self.get, self);
  self.post = bind(self.post, self);
  self.put = bind(self.put, self);
  self.delete = bind(self.delete, self);
  self.search = bind(self.search, self);
  self._request = bind(self._request, self);
}
function MicroserviceClient(settings) {
  var self = this;
  self.settings = settings;
  self.get = bind(self.get, self);
  self.post = bind(self.post, self);
  self.put = bind(self.put, self);
  self.delete = bind(self.delete, self);
  self.search = bind(self.search, self);
  self._request = bind(self._request, self);
}
function MicroserviceClient ( settings ) { var self = this ; self . settings = settings ; self . get = bind ( self . get , self ) ; self . post = bind ( self . post , self ) ; self . put = bind ( self . put , self ) ; self . delete = bind ( self . delete , self ) ; self . search = bind ( self . search , self ) ; self . _request = bind ( self . _request , self ) ; }
Constructor of MicroserviceClientClient object.
.
settings.URL = process.env.SELF_URL;
settings.secureKey = process.env.SECURE_KEY;
settings.accessToken = if microservice-auth used, accessToken can be set here.
Constructor of MicroserviceClientClient object . . settings . URL = process . env . SELF_URL ; settings . secureKey = process . env . SECURE_KEY ; settings . accessToken = if microservice - auth used accessToken can be set here .