LJ.XMLRPC.editfriends
Adds, edits and/or deletes friends from your LiveJournal friends list.
Request Parameters
- LiveJournal’s Common Request Parameters
- delete - An array of LiveJournal usernames to remove from the user’s friend list. It is not an error to delete an already non-existant friend. The value should just be 1. (optional)
- add - An array of struct of type Friend representing the friends to add.
Friend Type
A struct containing the keys:
- username - A username of a friend to remove.
- fgcolor - Sets the text color of the friend being added. This value is a HTML-style hex-triplet, and must either be of the form #rrggbb or not sent at all. By default, the value assumed is #000000, black.
- bgcolor - Sets the background color of the friend being added. This value is a HTML-style hex-triplet, and must either be of the form #rrggbb or not sent at all. By default, the value assumed is #FFFFFF, white.
- groupmask - Sets this user’s groupmask. Only use this in clients if you’ve very recently loaded the friend groups. If your client has been loaded on the end user’s desktop for days and you haven’t loaded friend groups since it started, they may be inaccurate if they’ve modified their friend groups through the website or another client. In general, don’t use this key unless you know what you’re doing.
Return Values
- added - An array of struct of type AddedFriend representing the list of user that were successfully added.
AddedFriend Type
- username - The username of the friend that was added.
- fullname - The full name of the friend that was added.
