2012-07-25 67 views

回答

1

Disqus API似乎不直接支持这一点。但是threads/list对于每个response都有一个posts元素。

+1

得到它的感谢。我使用http://disqus.com/api/docs/threads/listPopular/ – claire 2012-07-26 07:36:12

9

我正在处理同样的问题,答案是:

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);