Brad Fitzpatrick (bradfitz) wrote in lj_dev,
Brad Fitzpatrick
bradfitz
lj_dev

MyLJ: ljsync-0.1

The server totally supports syncronization now. There's a new getevents selecttype of "syncitems" which returns some of the newest "L-" items that the "syncitems" mode returns. Both the "getevents" mode w/ syncitems selecttype and the "syncitems" mode take an optional "lastsync" date parameter. This all needs to be documented --- I'll try and do it tomorrow.

However, for now here's a working prototype sync client: ljsync-0.1.pl

It currently has no storage abstraction, is extremely verbose in its output, and could probably be cleaned up a helluva lot ... but it works.

This should give people something to work off of.

One thing it needs to do is maintain some indexes (even if they're text based), so another application can somewhat-quickly find all journal entries on a given day, or count how many journal entries are on each day... currently a PHP interface or whatever would need to open and read each file. (for simplicity, each journal entry is stored in a separate file ... that may or may not be the final text-based file format)

Give it a try.

Update: piman is going to hack on it and clean it up.
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 6 comments