Log in

No account? Create an account
LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

Q: LJ.XMLRPC.postevent [Feb. 7th, 2003|09:37 pm]
LiveJournal Client Discussions


[mood |thoughtfulthoughtful]

Can't understand, how to calculate public item ID to make URL of just posted event. The "anum" parameter in return value of LJ-server doesn't contain number which I can use in URL as itemid= after posting, it contains some another digits. What is this digits and how can I calculate ID to make an URL?

[User Picture]From: benzado
2003-02-07 12:02 pm (UTC)
webitemid = (itemid << 8) + anum


webitemid = (itemid * 256) + anum
(Reply) (Thread)
[User Picture]From: v_melnik
2003-02-07 12:15 pm (UTC)
Thank you very much!
(Reply) (Parent) (Thread)
[User Picture]From: jerronimo
2003-02-10 08:02 pm (UTC)
where was this documented? (I'm curious...)
(Reply) (Parent) (Thread)
[User Picture]From: benzado
2003-02-10 08:55 pm (UTC)
I don't think it ever has been. I found out when somebody asked in this community a long time ago.

It really should be added to the documentation. (I suppose I should submit a patch or something, instead of just repeating that in various places.)
(Reply) (Parent) (Thread)