tim (kumokasumi) wrote in lj_clients,
tim
kumokasumi
lj_clients

  • Mood:

XML-RPC checkfriends silliness

The XML-RPC interface doesn't seem to be sending back a "lastupdate" member in the struct returned from LJ.XMLRPC.checkfriends, which would seem to rather limit the method's usefulness, heh. I think the server's broken; it used to send it back and I don't know why it isn't now.

Here's what it looks like, with the xmlrpclib.py in debug mode:

<?xml version='1.0'?>
<methodCall>
<methodName>LJ.XMLRPC.checkfriends</methodName>
<params>
<param>
<value><struct>
<member>
<name>username</name><value><string>letoii</string></value>
</member>
<member>
<name>lastupdate</name><value><string></string></value>
</member>
<member>
<name>password</name><value><string>(sanitized for my protection.)</string></value>
</member>
<member>
<name>ver</name><value><int>1</int></value>
</member>
</struct></value>
</param>
</params>
</methodCall>

And the response:
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member><name>new</name><value><int>0</int></value></member>
<member><name>interval</name><value><int>36000</int></value></member>
</struct>
</value>
</param>
</params>
</methodResponse>

The code definitely used to work; I first noticed it failing this week, but I hadn't used it for a while.
Anybody know what's going on? It almost looks like I'm getting the "no!-naughty-client!" response mentioned in the docs, but it does this even if I go days between running it.
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 11 comments