eh-api-client
Advanced tools
Weekly downloads
Readme
var ClientFactory = require("eh-api-client");
var factory = new ClientFactory("http://someservice.com/v1"); // initialize new factory with root API url
var client = factory.getClient(50, "web"); // get client for userId = 50 and app = "web"
var client = factory.getClient(0, "web"); // you can pass 0/null/undefined/"" as first argument to initialize guest client
Emitted when request is done without any network error. Event data:
{
method,
url,
options,
statusCode
}
Emitted when network error has occured. Event data:
{
method,
url,
options,
err
}
FAQs
Node.js rest client
The npm package eh-api-client receives a total of 508 weekly downloads. As such, eh-api-client popularity was classified as not popular.
We found that eh-api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.