Log in

No account? Create an account
March 28th, 2002 - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

March 28th, 2002

xmlrpc interface? [Mar. 28th, 2002|03:24 am]
LiveJournal Client Discussions


[mood |confusedconfused]
[music |Red Red Groovy - The Fabric of Space]

I noticed while browsing around in the code that there is an xmlrpc interface available. Since I'd like to write a client that can determine a users (mine actually) communities whether they are friends or not, I thought this might be very useful so that I could get the full structure of getfriends back rather than just the flat interface.

I tried accessing it with:
my $cli = RPC::XML::Client->new('http://www.livejournal.com/interface/xmlrpc');
my $struct = RPC::XML::struct->new({ user => RPC::XML::string->new('wolfieboy'),
hpassword => RPC::XML::string->new(md5_hex('elided'))
my $req = RPC::XML::request->new('LJ.Protocol.getfriends', $struct);

but when I did so, I recieved:
Denied access to method (getfriends) in class (LJ::Protocol) at /usr/share/perl5/SOAP/Lite.pm line 2113.

So, what am I doing wrong here? I've done very little xml-rpc programming, so I could easily be making a variety of errors.
Then again, it's possible that access to the xmlrpc interface is restricted but I think the former is more likely.
link8 comments|post comment

[ viewing | March 28th, 2002 ]
[ go | Previous Day|Next Day ]