为了已经通过辣味从Soundclouds API中删除 [英] Has order by hotness been removed from Soundclouds API

查看:134
本文介绍了为了已经通过辣味从Soundclouds API中删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过的辣味在一些教程的API的SoundCloud命令的能力。例如,在PHP以下内容:

I've seen the ability to order by hotness in some tutorials for the SoundCloud API. Eg the following in PHP:

// create a client object with your app credentials
$client = new Services_Soundcloud('APP KEY');

// find all sounds of buskers licensed under 'creative commons share alike'
$tracks = $client->get('tracks', array('genre' => json_encode($tag), 'limit' => '20', 'order' => 'hotness')); // array('q' => 'dubstep'));

$tracks=json_decode($tracks);

die(var_dump($tracks));

然而,这将返回轨道的0次列表,并没有在SoundClouds文档没有此排序提及:

However this returns a list of tracks with 0 plays and there is no mention of this sorting in SoundClouds documentation:

http://developers.soundcloud.com/docs/api/sdks#methods

推荐答案

是的,为了参数最近被删除。从2013年4月16日的API博客:

Yes, the order parameter has recently been removed. From the API blog on April 16th, 2013:

很快开始,GET请求到/跟踪端点将忽略创建日期的命令参数并默认排序。结果
  ...结果
  在此期间,仍然可以近似通过指定为了=辣味通过组合手动排序返回轨道<$ C $ pviously返回的结果集$ P $ C> favoritings_count 和 playback_count

Starting soon, GET requests to the /tracks endpoint will ignore the order parameter and default to ordering by creation date.
...
In the meantime, it is still possible to approximate the result sets previously returned by specifying order=hotness by manually sorting the returned tracks by a combination of favoritings_count and playback_count.

http://developers.soundcloud.com/blog/removing-hotness-param

这篇关于为了已经通过辣味从Soundclouds API中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆