NAME

WebService::LiveJournal::FriendGroup - (Deprecated) LiveJournal friend group class

VERSION

version 0.09

SYNOPSIS

use WebService::LiveJournal;
my $client = WebService::LiveJournal->new(
  username => $user,
  password => $pass,
);

foreach my $group (@{ $client->get_friend_groups })
{
  # $group isa WS::LJ::FriendGroup
  ...
}

Allow only members of groups "group1" and "group2" to read an event specified by $itemid:

use WebService::LiveJournal;
my $client = WebService::LiveJournal->new(
  username => $user,
  password => $pass,
);

my(@groups) = grep { $_->name =~ /^group[12]$/ } @{ $client->get_friend_groups };

my $event = $client->get_event($itemid);
$event->set_access('group', @groups);
$event->update;

DESCRIPTION

NOTE: This distribution is deprecated. It uses the outmoded XML-RPC protocol. LiveJournal has also been compromised. I recommend using DreamWidth instead (https://www.dreamwidth.org/) which is in keeping with the original philosophy LiveJournal regarding advertising.

This class represents a friend group on the LiveJournal server. Friend groups can be used to restrict the readability of events.

ATTRIBUTES

name

The name of the group.

id

The LiveJournal internal id for the friend groups. Friend groups are unique to a user, not to the server itself, so to get a unique key you must combine the user and the friend group id.

public

sortorder

mask

The mask used to compute the usemask when setting the access control on the event. Normally you should not need to use this directly.

SEE ALSO

WebService::LiveJournal,

AUTHOR

Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.