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

XML-RPC questions

It's been a long time since I worked much with the LJ XML-RPC interface, and I'm not really up to date on how the DW interface differs, but I'm trying to make a one-off migrationy script to download all of a community's entry URLs and their associated DW tags and add them to a Delicious account as tagged links -- basically create a tagged Delicious index of the entire comm. I have a couple of questions about the information that is returned by a call to getevents.

1. Is there any way at all to get the system-recorded UTC post time of an entry? The eventtime value is the user-specified post date and time, not the date and time actually recorded by the system when the entry was created. I feel like this should be an easy value to get hold of, but I just can't see where.

2. For entries that were imported to DW from another journaling site, the poster value returned by getevents is that of an OpenID account, and looks like ext_110540 or similar. Is there any easy way of mapping it to the offsite user's name & journal system, like the way it gets displayed within Dreamwidth? The only way I can think of doing it is looking up each one's profile page like so: http://ext-110540.dreamwidth.org/profile

And then scraping the string I want out of the page's html. So, possible, but not really ideal.

Thanks for any answers you can provide!
exor674: Computer Science is my girlfriend (Default)

[personal profile] exor674 2010-05-18 01:03 am (UTC)(link)
1. There seems to be no way to get that through the protocol -- I coulda sworn there was too, but it's not exposed.

2. http://ext-110540.dreamwidth.org/data/edges, 'displayed_name' is generally the offsite username + journal system ( well, it's the identity URL, but yes ) -- note that that *can* be changed, but by default, it's what you need.
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2010-05-18 04:36 pm (UTC)(link)
http://www.livejournal.com/doc/server/ljp.csp.xml-rpc.syncitems.html - I think that returns the logtime, not the event time.
exor674: Computer Science is my girlfriend (Default)

[personal profile] exor674 2010-05-18 06:08 pm (UTC)(link)
Oh, there! But that might not be the logtime of the entry, it could be the update time, not the posted time.
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2010-05-18 10:31 pm (UTC)(link)
True.
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2010-05-19 11:31 am (UTC)(link)
Fair enough. But it may be a good idea to return log time (server-based creation time) and update time separately. What do you think?
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2010-05-19 05:14 pm (UTC)(link)
Can you post a top-level entry asking for opinions on that change? There may be subtleties of client protocol backward compatibility (or usability) that may bear on the spec (or suitability) of that change, and the more eyes on it, the better.