Using the genres filter on Soundcloud API

扶醉桌前 提交于 2019-12-06 14:28:01

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!