The Love Bug (thelovebug) wrote in lj_clients,
The Love Bug
thelovebug
lj_clients

  • Mood:
  • Music:

[editevents]

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.
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 4 comments