NAME

WWW::BackpackTF - interface to the backpack.tf trading service

SYNOPSIS

use WWW::BackpackTF;
my $api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
my $user_id = <STDIN>;
my $bp = WWW::BackpackTF->new($api_key);
my $user = $bp->get_users($user_id);
print 'This user is named ', $user->name, ' and has ', $user->notifications, ' unread notification(s)';

DESCRIPTION

WWW::BackpackTF is an interface to the backpack.tf Team Fortress 2/Dota 2 trading service.

The only call implemented so far is IGetUsers.

METHODS

new([$api_key])

Create a new WWW::BackpackTF object. Takes a single optional parameter, the API key.

get_users(@users)

Get profile information for a list of users. Takes any number of 64-bit Steam IDs as arguments and returns a list of WWW::BackpackTF::User objects. This method does not require an API key.

EXPORTS

None by default.

TF2

Constant (440) representing Team Fortress 2.

DOTA2

Constant (570) representing Dota 2.

SEE ALSO

http://backpack.tf/, http://backpack.tf/api

AUTHOR

Marius Gavrilescu, <marius@ieval.ro>

COPYRIGHT AND LICENSE

Copyright (C) 2014 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.