?

Log in

No account? Create an account
postevent doesn't seem to return the right itemid - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

postevent doesn't seem to return the right itemid [Jan. 6th, 2003|12:55 pm]
LiveJournal Client Discussions

lj_clients

[fieldsnyc]
I'm writing a php class to post events from another system. I can post just fine, but the returned itemid is always "14", which prevents linking back to the new post. Anyone know why this is?
linkReply

Comments:
[User Picture]From: benzado
2003-01-06 03:13 pm (UTC)
The itemid returned isn't the same as itemid used on the website. postevent will also return a value called "anum". The web-itemid = itemid << 8 + anum. (Or web-itemid = itemid * 256 + anum if you can't shift bits.)

If it really is always "14" no matter what, you've got some other problem.
(Reply) (Thread)
[User Picture]From: fieldsnyc
2003-01-06 04:40 pm (UTC)
No, that seems to work just fine. Is that equation documented somewhere that I missed?
(Reply) (Parent) (Thread)
[User Picture]From: benzado
2003-01-06 04:50 pm (UTC)
It's not in the protocol documentation, but it comes up about once a month in this community.

This is why LJ needs a search engine.
(Reply) (Parent) (Thread)
[User Picture]From: fieldsnyc
2003-01-06 07:22 pm (UTC)
Or at least someone to update the protocol docs with something other than "I don't see why this is useful".
(Reply) (Parent) (Thread)