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

  • 302: lj_dev

    In the interests of consolidating all LiveJournal development-related discussion, we're going to be closing down this community. The same…

  • Plain text to LJ

    I have an old blog from xanga that's in html/plain text and I want to move it over here. Which client would be the best to do this? I also want to…

  • ljKlient 0.2.0 Preview Release 1

    Today marks another milestone in the development of ljKlient — as the first preview of the 0.2 series is released.  Please go to the project…

  • 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