Sha256: cf07f9d2bfa58bd2979209c6032c0bab45af7db665f0153bf9e62441b9e405f1
Contents?: true
Size: 587 Bytes
Versions: 10
Compression:
Stored size: 587 Bytes
Contents
/* Copyright 2016 The Cocktail Experience, S.L. */ module.exports = { call: function(request, conf, chistaco, callback) { var post_params = conf.aditional_params; post_params[ conf.chistaco_param_name ] = chistaco; console.log("POST " + conf.post_url); console.log(post_params); request( { url: conf.post_url, method: 'POST', json: post_params }, function (err, response, body) { if(err) { callback(null, body); } else { callback(err, response.statusCode); } }); } }
Version data entries
10 entries across 10 versions & 1 rubygems