gl-api-request-helper
v0.0.1
Published
GL API Request Helper
Downloads
5
Readme
GL Api Request Helper For GL APIs
config
var ApiRequestHelper = require("gl-api-request-helper");
var api = new ApiRequestHelper({
host: 'apiHost',
port: '80',
path: '/api/'
});
making a call
var params = {
a: 1,
b: 2,
c: {d: 3}
};
api.request("method-name", params, function(err, res) {
console.log(err, res);
});