Last active
August 29, 2015 14:00
-
-
Save sgnl/11304124 to your computer and use it in GitHub Desktop.
node-restify-usergrid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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