2
我正在研究disqus api的大多数评论文章,但它导致我无处。 有人可以与我分享如何获得线程/职位订购评论数?类似这样的:如何在disqus中获得大多数评论文章?
listPosts.json?orderby=comment_count&order=desc
我正在研究disqus api的大多数评论文章,但它导致我无处。 有人可以与我分享如何获得线程/职位订购评论数?类似这样的:如何在disqus中获得大多数评论文章?
listPosts.json?orderby=comment_count&order=desc
Disqus API似乎不直接支持这一点。但是threads/list
对于每个response
都有一个posts
元素。
我正在处理同样的问题,答案是:
http://disqus.com/api/docs/threads/listPopular/
您可以设置这些参数...更多...
$api_key = 'your_public_key';
$interval = '90d';
$forum = 'your_website_shortname';
$limit = 5;
$url_call = "http://disqus.com/api/3.0/threads/listPopular.json?api_key=" .
$api_key . "&forum=" . $forum . "&interval=" .
$interval . "&limit=" . $limit;
$get_contents = file_get_contents($url_call);
$call = json_decode($get_contents);
得到它的感谢。我使用http://disqus.com/api/docs/threads/listPopular/ – claire 2012-07-26 07:36:12