Six Apart Developer Center

Developer Center Home » Product Documentation » LiveJournal »

LJ.XMLRPC.editfriendgroups

Posted by Byrne Reese on March 3, 2006

Updates the list of the current user’s custom friends groups provided in the request.

Request Parameters

  • LiveJournal’s Common Request Parameters
  • groupmasks - A struct where the key of each element is a friend’s userid and the value is a string representing an unsigned 32-bit integer with bit 0 set (or the server will force it on anyway), bits 1-30 set for each group the friend belongs to, and bit 31 unset (reserved for future use). (optional)
  • set - A struct where the key of each element corresponds to the bit of a friend group and the value is of type FriendGroup. (optional)
  • delete - An array of integers where each integer is a number of a friend group to delete (which can be from 1-30, inclusive). The server will modify all old entries that allow access to that friend group, so a new friend group using that number won’t have access to old non-related entries, and unset the bit for that friend group on the groupmask of each friend, unless your client sends the friend’s new groupmask explicitly. (optional)

FriendGroup Type

A struct containing the keys:

  • name - Create or rename the friend group by sending this key. The value is the name of the group.
  • sort - This field should be sent to indicate the sorting order of this group. The value must be in the range of 0-255. The default is 50. (optional)
  • public - If this is “1”, then this group is marked as public. If public, other users can see the name of the group and the people that are in it. (optional)

Return Value

None.

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.