Created
March 12, 2011 20:13
-
-
Save reiddraper/867516 to your computer and use it in GitHub Desktop.
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
// get the resultset object | |
// this is a synchronous call, that doesn't | |
// hit the network yet | |
var results = artist.biographies(); | |
// call a function for each result | |
results.forEach(30, function(bio) { | |
console.log(bio.title); | |
}); | |
// get an array of results | |
results.get(10, function(all_results) { | |
for (result in all_results) { | |
console.log(bio.title); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment