You might want to take a look at this tutorial
The Javascript method for calling a Spark function is shown there and is pretty simple to get going.
You might want to take a look at this tutorial
The Javascript method for calling a Spark function is shown there and is pretty simple to get going.