0.0.6 • Published 9 years ago
kawba-callout v0.0.6
A simple module to make http and https callouts.
Examples
Get Example:
var callout = require("kawba-callout");
var callBack = function (error, response, body) {
console.dir(body);
};
callout.http.get("host.co.uk", "/example", "?id=1&code=2", callBack);
Post Example:
var callout = require("kawba-callout");
var callBack = function (error, response, body) {
console.dir(body);
};
callout.http.post("host.co.uk", "/example", requestPayload, callBack);
HTTP or HTTPS?
To switch between http and https just specify the corrosponding protocol in the when accessing
callout.*http/https*.*method*