ljfound added you, and was not able to un-add you using XML-RPC. The robot is crying!
That XML-RPC above shows this response:
Thank you for telling me this is the proper response to a successful delete command. However, the deletes have not succeeded. Deleting myself could be a problem here? Cry, cry, cry. Do you use this command successfully?
delete---->Array not delete---->Array of StructsjfelectronDecember 31 2010, 18:06:38 UTC
I do use the method successfully. I can add and delete myself and anyone else without issue. I don't pass a struct to delete, simply an array of user names. In other words, the main parameters struct has a key 'delete' with a value that is simply an array of usernames that you want to delete. I would have caught this last night, but I didn't actually look at your XML :/.
Why did I use raw XML? I thought I could wing it! I've embedded this in PHP that now works nicely. One lesson: If I'm not using an XML-RPC library, at least look for a validator I can use!
I have extended your paid account a small measure so others might benefit from your awesomeness.
Comments 9
Reply
LJ.XMLRPC.editfriends
username
ljfound
password
asdf
delete
username
jfelectron
username
ljfound
username
mcfnord
ljfound added you, and was not able to un-add you using XML-RPC. The robot is crying!
That XML-RPC above shows this response:
Thank you for telling me this is the proper response to a successful delete command. However, the deletes have not succeeded. Deleting myself could be a problem here? Cry, cry, cry. Do you use this command successfully?
Reply
I do use the method successfully. I can add and delete myself and anyone else without issue. I don't pass a struct to delete, simply an array of user names. In other words, the main parameters struct has a key 'delete' with a value that is simply an array of usernames that you want to delete. I would have caught this last night, but I didn't actually look at your XML :/.
Reply
Could you paste code that works?
Because this doesn't work:
( ... )
Reply
That's not correct syntax for an XMLRPC array
see http://www.xmlrpc.com/spec.
Check this against above, I'm just writing this on the fly. I use a Java XMLRPC client, but I know there are clients available for many languages.
delete
mcfnord
jfelectron
Reply
Ahh...LJ strips all tags. It ignores
and . Here you go:
http://pastebin.com/Bwbq5jDF
Reply
delete
jfelectron
mcnfnord
ljfound
And it works!
Why did I use raw XML? I thought I could wing it! I've embedded this in PHP that now works nicely. One lesson: If I'm not using an XML-RPC library, at least look for a validator I can use!
I have extended your paid account a small measure so others might benefit from your awesomeness.
Reply
Reply
Leave a comment