The senseapi.js uses the module pattern to create a SenseApi object that handles communication with the SenseIoT API, much the same way jquery creates a jquery object just by including jquery.js.
- It stores session information in its internal state.
- It offers a function call for every API call.
To get started just:
- Include senseapi.js in your code and use it!
For more information, see the documentation. Also, see the test_senseapi.js file for example code.