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
Post a Comment