simont |
Tue 2011-03-15 11:09 |
Hmmm. I don't like to keep pestering you, and feel free to tell me to stop or redirect me to the proper support service, but since you've seemed enthusiastic about offering help so far...
I think I've set up my posting script and LJ crossposting properly now (though I'll know for sure the next time I make an actual post), but one thing I haven't got to work is the DW equivalent of the LJ "checkfriends" service. When I ask LJ if there's been an update on my friends page, I get this output from my polling script (which just formats the input and output parameters of the request as Python dictionaries):
Input: {'lastupdate': '2011-03-15 10:32:55', 'mode': 'checkfriends'} Output: {'lastupdate': '2011-03-15 10:32:55', 'interval': '120', 'success': 'OK', 'new': '0'}
But doing the same on Dreamwidth gets me this rather less helpful thing:
Input: {'lastupdate': '2011-03-15 10:32:55', 'mode': 'checkforupdates'} Output: {'lastupdate': '', 'interval': '36000', 'success': 'OK', 'new': '0'}
I've searched the Dreamwidth wiki and found the documentation for the method, which suggests to me that "lastupdate" should not be coming back as a blank string. (Admittedly I'm calling it via the LJ-style "flat" interface rather than the XML-RPC version, but it doesn't look as if that should affect anything more than the formatting of the wire data and the underlying set of fields ought to be the same either way.) Also, that poll interval is pretty unfriendly – I thought the purpose of this method was to give people an alternative to constantly reloading their friends/reading page, which it surely won't do if it demands you only call it once every ten hours.
So would you happen to know if this protocol feature is supposed to work on DW at the moment (or if it would start working if I got a paid account, perhaps), or failing that where else I might usefully look other than the docs I've found so far?
(I also couldn't find full documentation for the more sensible forms of challenge/response authentication. I can see the getchallenge request type, but I haven't found anything about how you encode a response given your challenge.) |
|