You are here

function Disqus::get_num_posts in Disqus 7

Count a number of comments in articles.

Parameters

$thread_ids: an array of thread IDs belonging to the given forum.

Return value

A hash having thread_ids as keys and 2-element arrays as values.

File

./disqus.php, line 120
Provides the Disqus PHP API.

Class

Disqus
The Disqus PHP API.

Code

function get_num_posts(array $thread_ids = array()) {
  $thread_ids = implode(',', $thread_ids);
  return $this
    ->call('get_num_posts', array(
    'thread_ids' => $thread_ids,
  ));
}