Skip to content

Instantly share code, notes, and snippets.

@sgnl
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgnl/11304124 to your computer and use it in GitHub Desktop.
Save sgnl/11304124 to your computer and use it in GitHub Desktop.
node-restify-usergrid
var usergrid = require('usergrid');
/* Usergrid */
var client = new usergrid.client({
orgName:'lupin',
appName:'sandbox',
logging: true, //optional - turn on logging, off by default
});
var options = {
method:'GET',
endpoint:'items'
};
client.request(options, function (err, data) {
if (err) {
//error - GET failed
} else {
console.log( data );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment