需要使用包装器从soundcloud API调用简单请求


Need to call simple request from soundcloud API using the wrapper

我正在使用主声云包装器(https://github.com/mptre/php-soundcloud)尝试将我的帐户上的曲目拉到我的网站上。我让整个过程都很好,但只是访问了一个查询(我的用户名已经更改,没有那么唯一,所以我需要更改查询)。所以我需要要求的正是"https://api.soundcloud.com/users/isound604/tracks.json"如果你检查API控制台,你会看到它返回我的轨迹

我的问题是我不知道如何用包装器发出这个请求。我以前用过:

$string = $soundcloud->get('tracks', array('q' => 'beatmanshan', 'order' => 'created_at'));

但新的请求似乎在该功能中不起作用。有人能阐明这个问题吗?请提前感谢!如果你需要更多信息,请告诉我。

您是否已经使用api验证了ok?检查

$my_details = json_decode($soundcloud->get('me'));

应返回您的账户详细信息

如果是,你试过吗

$string = $soundcloud->get('users/isound604/tracks', array('order' => 'created_at'));