Looking to retrieve a list of users followed by a particular user. Not sure what I'm doing wrong here but any help would be much appreciated. My code in jsfiddle:http://jsfiddle.net/jchan11/3dbvagz5/
var followingsList = [];//array to store users you follow
var USER = "the_chanman";
SC.get("/users/"+USER+"/followings",{limit:10}, function(users){
for(var i = 0; i < users.length; i++){
//store users in followsList array
followingsList.push(users[i].username);
}
});
Lookslike you need to use the id instead of the username.
I have changed your fiddle to that, its displaying the followers:
http://jsfiddle.net/iambnz/gp9gbfba/
You may want to have a look on the resolve endpoint to still use the username as input.
https://developers.soundcloud.com/docs/api/reference#resolve
EDIT:
I have changed the fiddle that you just need to enter the username. not fancy but hope it will help you a bit:
http://jsfiddle.net/iambnz/vvp6vnbm/