[wp-trac] [WordPress Trac] #5463: New XML-RPC method:
wp.getCommentCount
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 13 16:01:21 GMT 2007
#5463: New XML-RPC method: wp.getCommentCount
-------------------------+--------------------------------------------------
Reporter: josephscott | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.4
Component: XML-RPC | Version:
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
This ticket supersedes #5341
The new wp.getCommentCount method provides the number of comments that
have been approved, are awaiting moderation and have been marked as spam.
An optional post_id can be provided that will limit the comment numbers to
just that post.
Example call to get comment count for entire blog:
{{{
wp.getCommentCount(blog_id, username, password)
}}}
Example call to get comment count for one post:
{{{
wp.getCommentCount(blog_id, username, password, post_id)
}}}
Example struct that is returned:
{{{
{
"approved" = 1;
"awaiting_moderation" = 7;
"spam" = 369;
}
}}}
I've contacted the author of the [http://www.howtogeek.com/howto/the-geek-
blog/how-to-geek-software-wordpress-comment-moderation-notifier/ WordPress
Comment Moderation Notifier] and he's fine with adjusting his app to match
our API.
--
Ticket URL: <http://trac.wordpress.org/ticket/5463>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list