Log in

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

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

[editevents] [Feb. 8th, 2003|12:17 am]
LiveJournal Client Discussions


[mood |frustratedfrustrated]
[music |Matt Redman - Hallelujah Song]

Can someone please confirm for me which keys are REQUIRED in the editevent protocol mode.

Can I also make the assumption that any OPTIONAL key will retain its value if not specified in the editevent mode.

Basically, I'm posting an entry using postevent, and then doing an editevent with the itemid as (itemid * 256) + anum returned from the postevent mode.

I'm sending:
This is the error I get:
Client error: Can't edit post from requested journal
Any thoughts?

Update: Thanks for the help on this one, I've worked out that the itemid required is the raw one generated by postevent before applying anum. Oh, and time and date appear to be required for editevent, contrary to the documentation.

[User Picture]From: thelovebug
2003-02-07 04:35 pm (UTC)

Re: I think...

Thanks for your quick reply...

The problem with that, is that I already know which event I want to modify, which is the last event that this particular user posted. If two people post at the same time, I could end up modifying the wrong entry.

That is why I want to edit the entry using the itemid returned by the postevent mode.

I mean, isn't it logical for postevent and editevent to use the same itemid? :-P
(Reply) (Parent) (Thread)