INDEX

JavaScript API

The JavaScript API encapsulates the JSON-RPC API into an easy to use JavaScript classes. The classes are intended to be used in applications, spacelets or web pages or in all of them.

The classes are loaded in Node.js programs from the /var/lib/spaceify/code directory.

For example the SpaceifyApplication class.

var spaceify = require("/var/lib/spaceify/code/spaceifyapplication.js");

For web pages the classes are minified into a one spaceify.api.js file.

<script spe_src="js/spaceify.api.js"></script>
Close
copyright © Spaceify.org 2014