问题
I am using the genres filter on Soundcloud API, the codes:
$tracks = $client->get('tracks', array('genres' => 'punk'));
It is working well and return all tracks which genre are punk, but when I try to change the codes:
$tracks = $client->get('tracks', array('genres' => 'rock'));
It can not return all tracks which genre are rock.
My question is: where can we find correct music genres from Soundcloud?
Maybe the Soundcloud API which should give us a method to get a list for common genres.
回答1:
Unfortunately, we do not offer a way of retrieving list of genres. You can look into discussions here.
Please test this link, it seems to work for me: http://api.soundcloud.com/tracks?genres=rock&client_id=YOUR_CLIENT_ID
If the problem is with particular SDK, please let us now so we could look into it.
来源:https://stackoverflow.com/questions/13285555/using-the-genres-filter-on-soundcloud-api