Log in

No account? Create an account
login.bml - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

login.bml [Oct. 25th, 2004|05:31 pm]
LiveJournal Client Discussions


For my client, I need (among other things) to be able to read protected post in other journal than mine (i.e. friend of mine made a specific friend-only post visible to me, I want to read it using client). I could not find corresponding XML-RPC method, so I've decided to use simple HTTP.
I did not want to reuse IE/Mozilla browser components, and started simple python script. I found that login.bml sends (md5(chal + md5(password)) as response, username in clear and empty password. So far so good. But I always get "user not found" error, which, I think, returned when there is a spelling error in username. I checked the headers and could not find whats wrong.
Can somebody help me ?

Update: resolved. API supports reading from shared journals. Good enough, at least for now.

[User Picture]From: vanbeast
2004-10-25 10:25 pm (UTC)
To expand upon what Mark said above, the protocol equivalent of login.bml is sessiongenerate.

That said, it sounds to me like what you're trying to do is basically implement a web browser? You want to be able to view a friends journal while logged in...

You may be better off using an RSS aggregator that supports digest authentication, then simply viewing the friends RSS feed with auth enabled. That'll allow you to show protected posts.
(Reply) (Thread)
From: snej
2004-10-26 12:07 am (UTC)
"it sounds to me like what you're trying to do is basically implement a web browser"

There are advantages to having a special-purpose client for displaying posts. I've done some work along those lines myself. That's not the same as a browser for much the same reason that Outlook (or Apple Mail or Eudora) is not the same as Yahoo Mail.

Using RSS/Atom is probably the best that can be done given the current state of LiveJournal. It's not a real solution, though, as you lose all the LJ-specific metadata like mood/music/usericon/protection.
(Reply) (Parent) (Thread)