Six Apart Developer Center

Developer Center Home » Product Documentation » LiveJournal »

LJ.XMLRPC.editfriends

Posted by Byrne Reese on March 3, 2006

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.

Sample Request

Sample Response

Perl Code Sample

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.