Some googling and testing revealed the following undocumented XML-RPC methods, which expose a number of nice functions from the client side.
All are in the LJ.XMLRPC namespace of course:
getfriendspage
sendmessage
setmessageread
getinbox
addcomments
These were gleaned from:
code.livejournal.org/trac/livejournal/browser/trunk/cgi-bin/ljprotocol.
(
Read more... )
Comments 18
Not sure what you mean there - that repository is the current, official one, and last commit to ljprotocol.pl was a few days ago.LJ support is useless.
Not useless, just geared toward end-user questions, not dev-type questions.Is there another way to contact LJ devs?
This comm. There's at least one LJ dev reading it, and some of the regulars (including me) can file bug reports.
Reply
(The comment has been removed)
@duskwuff: Yes getfriendspage is incredibly basic, but its better that screen scraping!
The method could easily be expanded to include other useful stuff.
Yes, the random base64 encoding is annoying. Its not clear to me exactly what is being encoded. Can you get anything usable out of decoding? Is it an image file?
Reply
(The comment has been removed)
Ooops...yeah. The xmlrpc client I use for testing was barfing on the base64 and returning some strange array of numbers, which I failed to see was not base64 :).
You're right, its just the raw HTML of the post body that gets encoded. Its a total mystery what triggers this.
I trolled through the code to see if I could see where the base64 is happening, but I couldn't find anything obvious.
Reply
Reply
Yeah...actually I am too. Developing a WebOS client that is. There is still some screen scraping required. For instance, while getfriendspage gets you the text of the posts and tells you the number of comments. You still have to scrap the mobile page of the post to get the text of the comments. Also, addcomments is restricted to paid users so its not a general method that can easily be used in an app. Add comments includes both authentation parameters and a 'poster' parameter. What I need to try is whether one can use the credentials of a paid account to call addcomments while posting a comment with 'poster'. So if the dev has a paid account maybe it will be a general mechanism. I doubt this will work because the system presumably uses the supplied credentials to determine which journals you are allowed to post to.
Reply
I found a way to reply to posts/comments without using the addcomments method by using an ECP hash.
Reply
Reply
I'd be happy to submit a patch if that would make it happen...
Thanks!
Reply
http://www.livejournal.com/contact/suggestion.bml
I don't know how fast it could be implemented even with a patch, because a) there's a bit of suggestions backlog due to me being technically on vacation, b) developer priority for reviewing and committing patches from external developers are low. I just checked in with andy in IRC, and he confirmed that through suggestions would be best as that's the formal route.
Reply
Thanks!
Reply
The suggestion: http://community.livejournal.com/suggestions/981061.html
Reply
Reply
Yeah, I'm parsing the rest of the responses, but reply_count isn't being returned...
Reply
Leave a comment