Created
August 1, 2013 21:53
-
-
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
This file contains hidden or 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 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