# Call REST API directly from browser

**URL:** <https://community.particle.io/t/call-rest-api-directly-from-browser/908>\
**Category:** uncategorized\
**Created:** [December 22, 2013, 5:02am UTC](https://community.particle.io/t/call-rest-api-directly-from-browser/908 "2013-12-22T05:02:17Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![bko](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bko/32/20704_2.png) [@bko](https://community.particle.io/u/bko)\
**Post date:** [October 13, 2014, 5:00pm UTC](https://community.particle.io/t/call-rest-api-directly-from-browser/908/23 "2014-10-13T17:00:18Z")

</div>

You might want to take a look at this tutorial

> **[Tutorial: Spark Variable and Function on One Web Page](https://community.particle.io/t/tutorial-spark-variable-and-function-on-one-web-page/4181)**
>
> Let’s say you have a Spark core with both a Spark variable and a Spark function. In my case, I have the world’s simplest servo control sketch, using the nice miniature servo in the Spark Maker Kit. Using these parts, we will build a servo that you...

The Javascript method for calling a Spark function is shown there and is pretty simple to get going.

---

_[View the full topic](https://community.particle.io/t/call-rest-api-directly-from-browser/908)._
