Last active
December 15, 2015 03:39
-
-
Save vadimdemedes/5195474 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
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