Scott Francis Baker (muerte) wrote in lj_dev,
Scott Francis Baker
muerte
lj_dev

I've been thinking some more about the protocol to use and I came up with this. I'd make a request

user=username&password=password&lastsync=01-01-2001&offset=0

Or something like that, then the server can return the following

records
250
remainingrecords
750
user
username

and then it would return the data as follows

123456-eventtime
2001-01-01 00:29:00
123456-logtime
2001-01-01 00:28:14
123456-subject
Brad+is+cool
123456-event
Brad+is+smart
123456-security
public
123456-allowmask
0

Where 123456 would be whatever the itemid is. So the data essentially would be the itemid a hypen and then the key. You could just repeat this until you went through all 250 records. Once my client recieves the 250 records it will make another request with the new offset being where it left off. Etc. Is that going to be all the data we're going to need to return or did I leave something out?
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 

  • 7 comments