2012-07-25 69 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);