?

Log in

No account? Create an account
itemID -> URL - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

itemID -> URL [Oct. 25th, 2006|09:40 pm]
LiveJournal Client Discussions
lj_clients
[ex_eugzol340]
Please advice on how to get event URL if itemID is got.

Thanks :)
linkReply

Comments:
[User Picture]From: vanbeast
2006-10-25 01:55 pm (UTC)
(jitemid * 256) + anum


You should have both of those bits of info.
(Reply) (Thread)
From: ex_eugzol340
2006-10-25 02:01 pm (UTC)
I'd known that formula. The thing is that I really hasn't anum and can't obtain it :( Are there really no ways to get URL without anum?
(Reply) (Parent) (Thread)
[User Picture]From: vanbeast
2006-10-25 02:05 pm (UTC)
You should be able to get it. How are you fetching events?
(Reply) (Parent) (Thread)
From: ex_eugzol340
2006-10-25 02:17 pm (UTC)
Initial conditions is that I have itemID's from the external program. I want to obtain corresponding URL's for them.

getevents method of flat protocol is seemed not to return anum value. I could't imagine another way to obtain any specific information about concrete event.
(Reply) (Parent) (Thread)
[User Picture]From: ralesk
2006-10-25 02:32 pm (UTC)

Heh, anum isn’t documented in postevent, but at least there it’s returned, as well as the full URL — I guess this isn’t the case in getevents?

(Reply) (Parent) (Thread)
From: ex_eugzol340
2006-10-25 02:47 pm (UTC)
Hm, you're right. "event_n_url" is returned =) I'm starting to hate all this undocumented features =)
(Reply) (Parent) (Thread)
[User Picture]From: ralesk
2006-10-25 02:49 pm (UTC)

Come on, it wouldn’t be fun without challenge like this :D

(Reply) (Parent) (Thread)
From: ex_eugzol340
2006-10-25 02:52 pm (UTC)
Oh yes =) I've got an idea to make some kind of flat "console" to explore this protocol. Documentation as I see is totally outdated =)
(Reply) (Parent) (Thread)
[User Picture]From: vanbeast
2006-10-25 04:07 pm (UTC)
That would be pretty cool :)

Alternately, you could switch to xmlrpc, which is at least better documented.
(Reply) (Parent) (Thread)