grahams (grahams) wrote in lj_dev,
grahams
grahams
lj_dev

XML-RPC Problems?

Error could certainly exist between keyboard and chair on this one, and if it is, I apologize for spamming lj-dev, but I am really lost on this one. First off, I am by far no XML-RPC wizard, but I am working on a new LJ client, and I figured that I would learn XML-RPC while I was at it. When I use the XML-RPC interface to LJ to issue the login command, I get one of two error messages:
  • Server returned unexpected status 500
  • XML-RPC Fault: (202) Client error: Too Many arguments
Is the problem LJ or me?
var xmlrpc = Components.classes["@mozilla.org/xml-rpc/client;1"].createInstance();
xmlrpc.QueryInterface(Components.interfaces.nsIXmlRpcClient);

xmlrpc.init("http://www.livejournal.com/interface/xmlrpc");

xmlrpc.asyncCall(Listener, null, "LJ.XMLRPC.login", ["username=test","password=test","clientversion=XUL-LizardJibba-0.1","getmoods=0"],4);
Even if you don't know XPConnect, this should be fairly self-explanatory...
Subscribe

  • cl-journal livejournal client

    Hey everyone, I'd like to present a livejournal client that I wrote to fulfill my needs but maybe there are other people that can find it…

  • 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…

  • 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 

  • 10 comments

  • cl-journal livejournal client

    Hey everyone, I'd like to present a livejournal client that I wrote to fulfill my needs but maybe there are other people that can find it…

  • 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…