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