WebService::Steam - A Perl interface to the Steam community data
use WebService::Steam; my $user = steam_user 'jraspass'; print $user->name, ' joined steam in ', $user->registered, ', has a rating of ', $user->rating, ', is from ', $user->location, ', and belongs to the following ', scalar( $user->groups ), ' groups: ', join( ', ', $user->groups );
Returns instance(s) of WebService::Steam::Group, can take any combination of group names and IDs.
In scalar context returns the first element of the array.
my $group = steam_group( 'valve' ); my $group = steam_group( 103582791429521412 ); my @groups = steam_group( 'valve', 103582791429521412 ); my @groups = steam_group( [ 'valve', 103582791429521412 ] );
Returns instance(s) of WebService::Steam::User, can take any combination of usernames and IDs.
my $user = steam_user( 'jraspass' ); my $user = steam_user( 76561198005755687 ); my @users = steam_user( 'jraspass', 76561198005755687 ); my @users = steam_user( [ 'jraspass', 76561198005755687 ] );
To install WebService::Steam, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Steam
CPAN shell
perl -MCPAN -e shell install WebService::Steam
For more information on module installation, please visit the detailed CPAN module installation guide.