?

Log in

No account? Create an account
how can I retrieve all of a user's interests, possibly edit some or… - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

[Mar. 27th, 2002|01:51 am]
LiveJournal Client Discussions

lj_clients

[sameer]
how can I retrieve all of a user's interests, possibly edit some or all of them and send the updated information back to lj? this, from the perspective of a feature in a client.
linkReply

Comments:
[User Picture]From: tydel
2002-03-26 11:12 pm (UTC)
If you read the docs, you'd know that's not possible. You cannot edit interests through the existing protocol.
(Reply) (Thread)
[User Picture]From: lordandrei
2002-03-26 11:21 pm (UTC)

Well....

Of course, the hacky way around it is to try to parse
http://www.livejournal.com/userinfo.bml?user=

But this is undocumented, unwise, and very likely to break if the PTB decide to change the format of that page. Other than that....the official protocol....as mentioned.... doesn't allow for it...yet.

That having been said, "Code as thou wilt shall be the whole of your app ;)"
(Reply) (Parent) (Thread)
From: evan
2002-03-27 01:11 am (UTC)

Re: Well....

As always, I'd say it's a waste of effort to parse HTML when you could use the same programming effort to extend the LiveJournal protocol.
(Reply) (Parent) (Thread)
(Deleted comment)
From: evan
2002-03-27 09:51 am (UTC)

Re: Well....

Yeah. I don't really expect anyone to follow through with it. :P

It's just so *wrong* to parse HTML, especially because we change it at a whim. Brad is adamant about never breaking old links (one we publish a URL, it'll continue to work indefinitely) but we're not going to support HTML parsing by giving the same guarantee about document structure.
(Reply) (Parent) (Thread)
[User Picture]From: lordandrei
2002-03-27 05:01 am (UTC)

Extending the LJ Protocol (wasRe: Well....)

Is there a good link for understanding the process to extend the protocol?

Thanks
(Reply) (Parent) (Thread)
From: evan
2002-03-27 09:53 am (UTC)

Re: Extending the LJ Protocol (wasRe: Well....)

http://cvs.livejournal.org , and check out ljprotocol.pl under livejournal/cgi-bin/. The way the original HTML-based page works can be deduced by looking at the source of the original page.
(Reply) (Parent) (Thread)