shoop (mcfnord) wrote in lj_dev,
shoop
mcfnord
lj_dev

editfriends delete?

`I am trying to delete some friends using xml-rpc.

<methodcall>
  <methodname>LJ.XMLRPC.editfriends</methodName>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>username</name>
            <value>
              <string>ljfound</string>
            </value>
          </member>
          <member>
            <name>password</name>
            <value>
              <string>asdf</string>
            </value>
          </member>
          <member>
            <name>delete</name>
            <value>
              <array>
                <data>
                  <value>
                    <struct>
                      <member>
                        <name>username</name>
                        <value>
                          <string>mcfnord</string>
                        </value>
                      </member>
                    </struct>
                  </value>
                </data>
              </array>
            </value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodCall>


the response:

<methodresponse>
      <params>
        <param>
          <value>
            <struct />
          </value>
        </param>
      </params>
    </methodResponse>


Not a fault! Not... anything! The documentation is strange. "The value should just be 1." That does not sound right. The value should be a string which is a username, right?
Tags: client, client: friends, client: xmlrpc
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 

  • 9 comments