WebService::LiveJournal::FriendGroup - LiveJournal friend group class
version 0.07
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:
$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;
This class represents a friend group on the LiveJournal server. Friend groups can be used to restrict the readability of events.
The name of the group.
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.
The mask used to compute the usemask when setting the access control on the event. Normally you should not need to use this directly.
WebService::LiveJournal,
Graham Ollis <plicease@cpan.org>
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.
To install WebService::LiveJournal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::LiveJournal
CPAN shell
perl -MCPAN -e shell install WebService::LiveJournal
For more information on module installation, please visit the detailed CPAN module installation guide.