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... )
(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
(The comment has been removed)
Yeah...my javascript XMLRPC client was hanging when it got to the tag because it wasn't 'trained' to handle that. I had to add that and then pass the base64 encoding string a base64/utf-8 decoder to get out the HTML text. Its a total mystery what triggers the encoding.
Reply
That's just a guess, though. (It might not even still be happening; I haven't tested.)
Reply
LJ randomly encodes posts from RSS feeds like Flickr or even posts created using the web editor. There is no particular rhyme nor reason to it. UTF8 strings are also based64 encoded, but this is expected.
Reply
Reply
Leave a comment