Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created August 1, 2013 21:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niraj-shah/6135702 to your computer and use it in GitHub Desktop.
Save niraj-shah/6135702 to your computer and use it in GitHub Desktop.
Script to get username and email addresses from a Parse website using the JavaScript SDK
var query = new Parse.Query('User');
query.find({
success: function(results) {
// cycle through the results
for ( x in results ) {
// print out the usernames and email addresses
console.log( results[x].attributes.username + ' ' + results[x].attributes.email );
}
},
error: function(myObject, error) {
// Error occured
console.log( error );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment