Javascript / NodeJS

var obj = new CB.CloudObject('TableName'); obj.set('ColumnName', "AnyData"); obj.save({ success : function(obj){ console.log(obj.id); },error : function(error){ console.log(error); } });

var query = new CB.CloudQuery('Table'); query.search("dog"); query.find({ success : function(list){ // returns two CloudObjects of fields having string 'dog' }, error : function(error){ //Error } });

//Start Listening CB.CloudNotification.on('ChannelName',function(data){ //data can be anything you publish to a channel. Can be a string, number, object etc. }}); //Publish CB.CloudNotification.publish('ChannelName','data');

var user = new CB.CloudUser(); user.set('username','my_username'); user.set('password', 'my_solid_password'); user.set('email', 'email@sample.com'); user.signUp({ success: function(user) { //Registration successfull }, error: function(error) { //Error in user registration. } });