Reputation: 813
I was looking into disqus api for most commented posts but it leads me to nowhere. Can somebody share with me how to get thread/posts ordered comment count? Something like this:
listPosts.json?orderby=comment_count&order=desc
Upvotes: 2
Views: 3655
Reputation: 91
I was dealing with the same issue and the answer is on:
http://disqus.com/api/docs/threads/listPopular/
You can set these parameters...and more...
$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);
Upvotes: 9
Reputation:
The Disqus API seems not to support this directly. But threads/list
has a posts
element for each response
.
Upvotes: 1