!!! Moved to https://github.com/ibcom/mydigitalstructure-learn
Node.js example app using the mydigitalstucture npm module.
Check out app-1.0.0.js
for code example (with comments) and settings.json
to update the username & password used to authenicate for the mydigitalstructrue.cloud methods.
Initialise:
var mydigitalstructure = require('mydigitalstructure');
Controller methods:
mydigitalstructure.add({name:, note:, code:});
mydigitalstructure.invoke(name, parameters for controller, data for controller);
Local data storage methods:
mydigitalstructure.set({scope:, context:, name:, value:});
mydigitalstructure.get({scope:, context:, name:});
Cloud data storage methods:
mydigitalstructure.cloud.save({object:, data:, callback:});
mydigitalstructure.cloud.retrieve({object:, data:, callback:});
mydigitalstructure.cloud.invoke({object:, data:, callback:});