?

Log in

No account? Create an account
Response to "postevent" - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

Response to "postevent" [Sep. 10th, 2006|07:53 pm]
LiveJournal Client Discussions
lj_clients
[ex_eugzol340]
Hi all!

My client receives response to "postevent" flat-request:

anum = 203
itemid = 1
url = http://***.livejournal.com/459.html
success = OK

I wonder to know what does "anum" parameter stand for. And does "itemid" really useless, as said in documentation.

Thanks in advance :)
linkReply

Comments:
[User Picture]From: gaal
2006-09-10 04:41 pm (UTC)
IIRC, the unique ID of an entry == 256 * itemid + anum. But this is not guaranteed to remain (or even still be!) the case, so if you have obtained the ID of an entry by other means, use that when you wish to do something with it (say, getevents).
(Reply) (Thread)
[User Picture]From: gaal
2006-09-10 04:44 pm (UTC)
(FWIW, 256*1 + 203 indeed == 459.)
(Reply) (Parent) (Thread)
From: ex_eugzol340
2006-09-10 05:07 pm (UTC)
And so does the number in the hyperlink is guaranteed to be that unique number?
(Reply) (Parent) (Thread)
[User Picture]From: gaal
2006-09-10 05:50 pm (UTC)
The URL is guaranteed to bring a browser to the entry, but I don't think the protocol is guaranteed to keep honoring that number you extract from the URL (or indeed, continue to supply a URL of that particular form forever).

Zilla is down so I can't make sure, but there's a bug about this issue there.
(Reply) (Parent) (Thread)
From: ex_eugzol340
2006-09-10 10:25 pm (UTC)
Ok, thanks =)
(Reply) (Parent) (Thread)