?

Log in

No account? Create an account
June 16th, 2008 - LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

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

June 16th, 2008

editfriends XML-RPC issue. [Jun. 16th, 2008|03:43 am]
LiveJournal Development
lj_dev
[professormass]
[Tags|, , , ]
[mood |annoyedannoyed]

Hi!

I'm trying to get my PHP-based XML-RPC client update friends' lists using the editfriends method, but I'm getting an odd response. Here's my PHP code:




require('Configuration/Configuration.php');
require($FunctionRoot . 'xmlrpc.php');

// LJ XML-RPC Variables
$add = array();
$add['username'] = 'user_to_be_friended';
$add['fgcolor'] = '#00688B';
XMLRPC_prepare($add,'struct');

$array = array();
$array['username'] = 'professormass';
$array['password'] = 'my_password';
$array['add'] = $add;

XMLRPC_prepare($array,'struct');

$result = XMLRPC_request('www.livejournal.com','/interface/xmlrpc','LJ.XMLRPC.editfriends', array($array));




I get this response:



Application failed during request deserialization: wrong element 'username'



Virtually the exact same code works for using the postevent method. Anybody have any clues on this one?
link1 comment|post comment

navigation
[ viewing | June 16th, 2008 ]
[ go | Previous Day|Next Day ]