[go: up one dir, main page]

built

1.3.2 • Public • Published

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); // init built SDK using application_api_key and application_uid
 
 
var query = new Built.Query('employee'/*class_uid*/); // create new built Query Object
query.greaterThan('age', 30); // add query 
query.exec(/* execute query */)
.success(function(data){
    console.log(data);
})
.error(function(err){
    console.log(err);
});
 
 
var employee = new Built.Object('employee'/*class_uid*/); 
employee.set({ /* set attributes in newly created object */
    name:'jack',
    age:32
});
employee.set('gender', 'male'); // set attribute using key, value type
employee.save()
.success(function(data){
    /* object saved */
})
.error(function(err){
    /* oops error */
});
 
npm install built --save

Readme

Keywords

none

Package Sidebar

Install

npm i built

Homepage

built.io

Weekly Downloads

246

Version

1.3.2

License

none

Last publish

Collaborators

  • pradeepmishra