This forum is now read-only. Please use our new forums at discuss.codecademy.com.

How to use APIs with JavaScript Forum

View Course

60 points
16e3d14469a45e414bd6cc1882550508?s=140&d=retro
Submitted by
Caspert
over 2 years ago

How to get access to the tracklist of a playlist album with Soundcloud API?

How can I GET the tracklist of a playlist with the Soundcloud API?
I followed the tutorial at CA, but that exercise was to get only one track.

Know I use the following to get all my playlists:

SC.get('/users/' + USER + '/playlists', function(playlists) {
$(playlists).each(function(index, playlist) {

            $('#playlist').append($('<li></li>').html(playlist.title));
            //$('#cover').append($('<li></li>').css('background-image', "url('" + track.artwork_url + "')");
            $("#cover").append('<div><img src="' + playlist.artwork_url.replace('-large', '-t500x500') + '"></div>');

        });
    });

0 votes

permalink

This subforum is for YouTube. Try in the soundcloud subforum
Good luck, pal!

53 points
55a5100976b8fef7d9000694_476415583
Submitted by
Chris Vornsowski
about 2 years ago