需要使用包装器从 soundcloud API 调用简单请求
我正在使用主 soundcloud 包装器(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'));
但新的请求似乎在该功能中不起作用。有人可以阐明这个问题吗?请提前感谢您!如果您需要更多信息,请告诉我。
I am using the main soundcloud wrapper (https://github.com/mptre/php-soundcloud) to try and pull the tracks off my account onto my website. I had the whole thing working great but just by accessing a query (my username has changed and isn't as unique, so i need to change the query). So what I need to request is exactly this "https://api.soundcloud.com/users/isound604/tracks.json" and if you check in the API console you will see it returns my tracks.
My problem is that i don't know how to make this request with the wrapper. I used to use:
$string = $soundcloud->get('tracks', array('q' => 'beatmanshan', 'order' => 'created_at'));
but the new request doesn't seem to work in that function. Can anybody shed any light on this issue? Please and thank you in advance! Let me know if you need any more info.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您已经使用 api 进行了身份验证吗?检查
是否应该返回您的帐户详细信息
如果是这样您是否尝试过
Have you already authenticated ok using the api? To check
Should return your account details
If so have you tried