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