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...