Built.io JS SDK
© Raw Engineering, Inc (www.raweng.com) 2013, Licensed under the MIT-LICENSE
A Javascript SDK for built.io service for node.js (0.6.x and up). Hides most of the complexity of creating, maintaining built.io objects and sessions.
For more information visit http://built.io and http://manage.built.io .
Features
- Works in Browsers as well as in Servers (NodeJS)
- Simple service wrapper that allows you to easily put together all built.io REST API libraries
- Easy to create Application User
- User management
- Create objects in built.io applications
- Update objects in buil.io applications
- Delete Objects in built.io applications
- File management
- Highly customise query to built.io
- BuiltModel to Backbone.Model conversion support
- Model binding for each built.io objects
- Promise on all REST calls
Example usage
var Built = require('built');
var application_api_key = 'YOUR APPLICATION API KEY' ;
var application_uid = 'YOUR APPLICATION UID' ;
Built.initialize(application_api_key, application_uid);
var query = new Built.Query('employee');
query.greaterThan('age', 30);
query.exec()
.success(function(data){
console.log(data);
})
.error(function(err){
console.log(err);
});
var employee = new Built.Object('employee');
employee.set({
name:'jack',
age:32
});
employee.set('gender', 'male');
employee.save()
.success(function(data){
})
.error(function(err){
});
npm install built --save