Call REST API directly from browser

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.

2 Likes