comment related methods added to XMLRPC API

Feb 09, 2011 14:43

Some more undocumented functions added to the XMLRPC API ( Read more... )

client, client: comments, client: xmlrpc

Leave a comment

Comments 6

gregstoll February 10 2011, 17:05:48 UTC
Hey, good catch! This sure beats trying to parse the HTML page (what LJ for WebOS does now)...

Reply

jfelectron February 10 2011, 17:20:15 UTC

Fyi...the only way to get userpics for the comments is to set the extras variable in the request, but this results in an error:

Undefined subroutine: LJ::can_manage at /home/lj/cgi-bin/ljprotocol.pl line 418

I let them know, but who know when it will be fixed.

Another API that was extended is getevents, which now seems to allow getting posts for any journal you have access to:

http://code.livejournal.org/trac/livejournal/changeset/18194/trunk/cgi-bin/ljprotocol.pl

Reply

gregstoll February 10 2011, 17:25:01 UTC
Woohoo getevents! Tried to implement this by screen scraping and failed miserably. New features here I come!

Reply

jfelectron February 11 2011, 00:31:16 UTC
Hahah, yeah. Now we just have wade through all the req parameters that are needed and optional to see what they do. getcomments has a number of parameters for controlling how threads are returned (how deep to traverse, whether to return them as a list or threaded...etc). If you want any info on these let me know and I can elaborate. For a number of them you have to wade through the functions called in Talk.pm to figure out what they do.

Reply


pauamma May 12 2011, 16:50:51 UTC
Hey, dunno of you've had any time to work on it since, but is there any chance you could post a more detailed description of what they do, with an eye toward eventual inclusion into the client-server section of the LJ wiki?

Reply


Leave a comment

Up