WWW::BF2Player is a Perl module that can fetch information about game servers from BF2Player.com
SYNOPSIS
# example 1
use WWW::BF2Player;
my $bfp = WWW::BF2Player->new; # omitted UserId, must set it per-request
my $player = $bfp->getPlayer( UserId => '5307', PlayerId => '64246757' ); # userId specified per-request
# example 2
use WWW::BF2Player;
my $bfp = WWW::BF2Player->new( UserId => '5307' ); # set a default UserId, can omit UserId per-request
my $player = $bfp->getPlayer( PlayerId => '64246757' ); # use the default UserId
First, you must have an account (free) at BF2Player.com to make use of this module. Second, you must create and populate a buddy list on their site. You can only use this module to ask for information about players in your buddy list. This is a restriction on their part to prevent you from asking information for too many players. I guess to prevent you from competing and wasting their resources. Understandable, I suppose.
new
my $gm = WWW::BF2Player->new; # no options or defaults specified
my $gm = WWW::BF2Player->new( UserId => '5307' ); # default to a certain UserId
You can specify several options in the constructor.
my $gm = WWW::BF2Player->new(
Expires => 300,
UserId => '5307',
CacheFile => 'my_player_cache.xml',
DebugLog => 'my_debug_log.txt',
DebugLevel => 3,
);
Product's homepage
Requirements:
· Perl