Sha256: 0f4067551504fe751408ec6d5e92efca516b64a19984046f7c27b9399c2c69cb

Contents?: true

Size: 435 Bytes

Versions: 6

Compression:

Stored size: 435 Bytes

Contents

/* Copyright 2016 The Cocktail Experience, S.L. */

module.exports = {
  call: function(request, conf, chistaco, callback) {
    request(
      {
        url: conf.url,
        method: 'POST',
        json: {
          chistaco: chistaco
        }
      },
      function (err, response, body) {
        if(err) {
          callback(null, body);
        } else {
          callback(err, response.statusCode);
        }
      });
  }
}

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
tck-lambdas-0.3.0 lib/tck/lambdas/chistacojs/post_chistaco.js
tck-lambdas-0.3.0 lib/tck/lambdas/chistacojs/source/post_chistaco.js
tck-lambdas-0.2.0 lib/tck/lambdas/chistacojs/post_chistaco.js
tck-lambdas-0.2.0 lib/tck/lambdas/chistacojs/source/post_chistaco.js
tck-lambdas-0.1.6 lib/tck/lambdas/chistacojs/post_chistaco.js
tck-lambdas-0.1.6 lib/tck/lambdas/chistacojs/source/post_chistaco.js