ajax - Soundcloud likes/favorites -


i trying load soundcloud likes (used favorites), not getting results ajax query.

this url trying load: http://soundcloud.com/gazebo-fm/likes

function soundcloudtrackdata(linkurl) {     var url = soundcloudapiurl(linkurl, soundcloudapikey);      $.ajax({         url: url,         datatype: 'jsonp',         cache: false     }).done(function( data ) {         console.log(data);     }).fail(function(jqxhr, textstatus, errorthrown) {         alert('soundcloud process error: ' + jqxhr.responsetext);     });  }  function soundcloudapiurl(url, soundcloudapikey) {     var usesandbox = false;     var domain = usesandbox ? 'sandbox-soundcloud.com' : 'soundcloud.com'     return (/api\./.test(url) ? url + '?' : 'http://api.' + domain +'/resolve?url=' + url + '&') + 'format=json&consumer_key=' + apikey +'&callback=?'; }; 

change url http://soundcloud.com/gazebo-fm/favorites

/likes used in new soundcloud's api, not yet documented.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -