Soundcloud API get tracks by userid

This fiddle demonstrates the retrieval of tracks of a specific user by the user's soundcloud id (user_id)

HTML

<script src="//connect.soundcloud.com/sdk.js"></script>
<script src=""></script>
<body>
    <ol id="track-list"></ol>
</body>

JavaScript

SC.initialize({
      client_id: "f399a773daac35fb3bb628182b4c9d64",
      
  });

/**
Once that's done you are all set and ready to call the SoundCloud API. 
**/



/**
Call to the SoundCloud API. 
Retrieves list of tracks, and displays a list with links to the tracks showing 'tracktitle' and 'track duration'
**/

  var userId = 6300766;

  SC.get('/users/'+userId+'/favorites', {
  user_id: userId,
      limit: 100
  }, function (tracks) {

      var tmp = '';
      
    for (var i = 0; i < tracks.length; i++) {

      //tmp = '<iframe width="100%" height=80px" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=' + tracks[i].permalink_url + '&color=%23255bf1&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false&show_teaser=false&visual=false&buying=false&single_active=true"></iframe>';
      
      tmp = tracks[i].permalink_url ;
      
      
          $("<li/>").html(tmp).appendTo("#track-list");
      }

  });