Torin/Darren WhoEver (wolfieboy) wrote in lj_clients,
Torin/Darren WhoEver
wolfieboy
lj_clients

  • Mood:
  • Music:

xmlrpc interface?

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.
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 8 comments