shiki/kaiseki — pull request #24 by rosswaycaster (2014-10-18 05:13:18+00:00)
Title: Added a function to run cloud code.

#### cloudRun (functionName, data, callback)

This will send a POST request to a cloud code function with the `data` that you pass and return what your cloud code function sends back to `body`.

var data = {
name: 'Ross'
};

kaiseki. cloudRun('HelloWorld', data, function(err, res, body, success) {
console.log('The cloud code function returned: ', body);
});