?

Log in

No account? Create an account
[editevents] - 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

lj_clients

[thelovebug]
[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:
mode=editevent&user=test&hpassword=[snip]&itemid=597219&event=blaharse&subject=automood+%26+backdate+test&security=public&usejournal=&prop_opt_backdated=0
This is the error I get:
errmsg
Client error: Can't edit post from requested journal
success
FAIL
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.
linkReply

Comments:
[User Picture]From: kimera
2003-02-07 04:25 pm (UTC)

I think...

mode, user, password, itemid, and event are the only required ones.

Use getevents or syncitems if you want a really, really easy means of getting the itemid.

I'll also point you here where I was having a similar problem. Maybe some of those answers will help.
(Reply) (Thread)
[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)
[User Picture]From: wolfieboy
2003-02-07 05:03 pm (UTC)
Think you could put the crossed out bit of what you're sending behind a cut tag?
(Reply) (Thread)
[User Picture]From: thelovebug
2003-02-07 05:06 pm (UTC)
Done.
(Reply) (Parent) (Thread)