Skip to content

Instantly share code, notes, and snippets.

@vadimdemedes
Last active December 15, 2015 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vadimdemedes/5195474 to your computer and use it in GitHub Desktop.
Save vadimdemedes/5195474 to your computer and use it in GitHub Desktop.
var albums = new Chute.API.Albums({ oauth_token: 'OAUTH_TOKEN' });
albums.fetch({ success: function(){
_(albums.models).forEach(function(album){
// album is an instance of Chute.API.Album
});
}, error: function(){
// something wrong happened
}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment