[wp-xmlrpc] An request for comments API: getRecentComments()

Marcelo Jedi marcelobarrosalmeida at gmail.com
Mon May 4 12:48:57 GMT 2009


HI Peter,

I will test it. Since documentation talked about "for a given post", I
didn't think it was possible. But code is showing that I can use
post_id = '' (http://core.trac.wordpress.org/browser/tags/2.7/xmlrpc.php#L1100)

Thanks a lot !

Marcelo

2009/5/4 Peter Westwood <peter.westwood at ftwr.co.uk>:
>
> On 2 May 2009, at 16:04, Marcelo Jedi wrote:
>
>> Hi !
>>
>> I would like to suggest a new method for comments API, something like:
>>
>> wp.getRecentComments(blog_id, username, password, offset)
>>
>> The idea is to retrieve recent comments, but ignoring post
>> information, all recent comments for a given blog could be retrieved
>> with this paged method (see offset at the end).
>>
>> Excuse me if this can be performed with other method. My understanding
>> is that getComments() has a different purpose.
>
> I believe this can already be achieved with a call getComments().
>
> If you don't specify post_id or set it 0 you should get the most recent
> comments I believe.
>
> I guess this hi-lights that the methods in xmlrpc.php could do with some
> more phpdoc.
>
> westi
> --
> Peter Westwood
> http://blog.ftwr.co.uk | http://westi.wordpress.com
> C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
>
> _______________________________________________
> wp-xmlrpc mailing list
> wp-xmlrpc at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-xmlrpc
>



-- 
-----------------------------------------------
..:: I see boring people ::..


More information about the wp-xmlrpc mailing list