Skip to content

Instantly share code, notes, and snippets.

@zamd
Last active September 14, 2016 11:00
Show Gist options
  • Save zamd/ec5aa50de2a2f02f28c208d1a81ad722 to your computer and use it in GitHub Desktop.
Save zamd/ec5aa50de2a2f02f28c208d1a81ad722 to your computer and use it in GitHub Desktop.
module.exports = function (options, cb) {
var request = require('request');
var url ='http://requestb.in/1bck9t61'
request(url, function (error, response, body) {
if (!error) {
console.log(body);
}
});
return cb(null, function (cb) {
cb(null, options.script);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment