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

  • SessionGenerate and ljloggedin

    Are there any information after release 86 and changes in cookies scheme to use sessiongenerate? It returns ljsession key, but this key is not enough…

  • Retrieving comments

    Hi, Is there a way to retrieve a list of comments made by user XXX (which may or may be not the currently logged in user) in the journals of users…

  • Community posts and comments

    Hi! How can I download a community posts with comments when 1) I'm the community moderator 2) I'm not the community moderator ? Thank you

  • 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