WWW::BackpackTF::User - Class representing user profile information
my $user = $bp->get_users($user_id); say 'Steam ID: ', $user->steamid; say 'Name: ', $user->name; say 'Reputation: ', $user->reputation; say 'Part of backpack.tf Steam Group: ', ($user->group ? 'YES' : 'NO'); say 'Positive trust ratings: ', $user->positive; say 'Negative trust ratings: ', $user->negative; say 'Scammer (according to steamrep.com): ', ($user->scammer ? 'YES' : 'NO'); say 'Banned from backpack.tf: ', ($user->banned_backpack ? 'YES' : 'NO'); say 'Economy banned: ', ($user->banned_economy ? 'YES' : 'NO'); say 'Community banned: ', ($user->banned_community ? 'YES' : 'NO'); say 'VAC banned: ', ($user->banned_vac ? 'YES' : 'NO'); say 'Banned on any of the previous: ', ($user->banned ? 'YES' : 'NO'); say 'Unread notifications: ', $user->notifications; say 'Value of TF2 backpack: ', $user->value(WWW::BackpackTF::TF2); say 'Value of Dota 2 backpack: ', $user->value(WWW::BackpackTF::DOTA2); say 'Last TF2 backpack update: ', $user->update(WWW::BackpackTF::TF2); say 'Last Dota 2 backpack update: ', $user->update(WWW::BackpackTF::DOTA2);
WWW::BackpackTF::User is a class representing user profile information.
Returns this user's Steam ID.
Returns this user's persona name.
Returns this user's backpack.tf reputation.
Returns true if this user is part of the backpack.tf Steam group.
Returns the number of positive trust ratings this user has.
Returns the number of negative trust ratings this user has.
Returns true if this user is a scammer according to http://steamrep.com/
Returns true if this user is banned from backpack.tf.
Returns true if this user is economy banned.
Returns true if this user is community banned.
Returns true if this user is banned by Valve Anti-Cheat.
Returns true if any of the banned_* methods returns true.
Returns the number of unread notifications this user has.
Returns the total value of this user's backpack for the specified game, in the lowest currency. game defaults to WWW::BackpackTF::TF2.
WWW::BackpackTF::TF2
Returns the UNIX timestamp of this user's last backpack update for the specified game. game defaults to WWW::BackpackTF::TF2
http://backpack.tf/api/users
Marius Gavrilescu, <marius@ieval.ro>
Copyright (C) 2014-2017 by Marius Gavrilescu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.2 or, at your option, any later version of Perl 5 you may have available.
To install WWW::BackpackTF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::BackpackTF
CPAN shell
perl -MCPAN -e shell install WWW::BackpackTF
For more information on module installation, please visit the detailed CPAN module installation guide.