NodeJS module to allow use of BackAnd Apis
JavaScript
Pull request Compare This branch is 35 commits ahead of paulshorey:master.
Latest commit 57b684b Jan 23, 2017 @relly relly 0.1.7
Permalink
Failed to load latest commit information.
.idea
anotherVersion fix require syntax in README example Feb 4, 2016
test
.gitignore
README.md
app.js
backand.js
example.js
package.json

README.md

Node.Js sdk for Backand

NodeJS module to allow use of BackAnd Apis

Allow users to perform authentification and simple action over Backand

Instructions

npm install

Example

var BackandSdk = require("backandsdk/backand");
var backand = new BackandSdk();

// anonymous authetication
backand.anoymousAuth('08fd510a-4b52-43fa-938f-f2c841bd3106')
    .then(function(){
        backand.get('/1/objects/todo?pageSize=1&pageNumber=1').then(function(data){
            console.log('anoymousAuth Data: ',data);
        });
    });


// authentication with user and password
backand.auth({ username:'test@angular2.com', password:'angular2', appname:'angular2' })
    .then(function(){
        backand.get('/1/objects/todo?pageSize=1&pageNumber=1').then(function(data){
            console.log('auth Data: ',data);
        });
    });