murklins: white woman with elephant head (Default)
murklins ([personal profile] murklins) wrote in [site community profile] dw_dev2010-05-22 12:19 pm
Entry tags:

XML-RPC log time

A few days ago I asked some XML-RPC questions, one of which was about how to obtain the entry log time (the server-based creation time) through the protocol. It turns out there isn't a way!

The getevent call returns the eventtime parameter, which is the poster-specified datetime, not the log time. The syncitems call returns a list of all the items that have been created or updated for a user, along with the server time -- but once an item has been updated, it only returns the update time, and the create time cannot be obtained.

[personal profile] pauamma thought there would be value in returning the log time and the update time separately, and I agree, but suggested we get some opinions on that change here. So: thoughts?
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-05-23 11:51 am (UTC)(link)
Hm, I like the sound of that. I don't know the reasoning behind the original behavior, but while I can see the time of last edit being useful for RSS feeds, I don't think it's as useful for the protocol in general.

So, um, yeah, I think it would be useful to have the date that the entry was created.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

Re: Morning Rambling

[personal profile] afuna 2010-06-07 09:16 am (UTC)(link)
We haven't cut anything from the protocol *g* but I bet that LJ added it after we forked from them or something.

I'll let this sit a short while longer, and if no one objects, I'll do some poking to see if it's okay to have this in the protocol (:D)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

Re: Morning Rambling

[personal profile] afuna 2010-06-08 05:15 pm (UTC)(link)
Talked to [staff profile] mark, and he says that adding logtime to getevents is fine!

(Filing the bug as we speak)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-06-08 05:22 pm (UTC)(link)
http://bugs.dwscoalition.org/show_bug.cgi?id=2673

(And if no one grabs it soon, I'll take it *g*)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-06-08 06:18 pm (UTC)(link)
Ehehe, I guess we're a bit late? How did you manage without it anyway?
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-06-10 09:21 am (UTC)(link)
Hee, gotcha. I hope that this does help the next person who needs it then!