0.0.6 • Published 9 years ago

kawba-callout v0.0.6

Weekly downloads
21
License
-
Repository
-
Last release
9 years ago

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*
0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago