X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FWWW%2FBackpackTF.pm;h=a1fd37ceed91e10ad086a26aa37083e0a6a01512;hb=de56dfb111ba57a583539a4be35f5443e281a68c;hp=448ebbb10b6ed0e61c79c23dcffa3904114ea7e4;hpb=011cd8b54a2bac28ce3a83f8b3afcab3b93677f3;p=www-backpacktf.git diff --git a/lib/WWW/BackpackTF.pm b/lib/WWW/BackpackTF.pm index 448ebbb..a1fd37c 100644 --- a/lib/WWW/BackpackTF.pm +++ b/lib/WWW/BackpackTF.pm @@ -4,7 +4,7 @@ use 5.014000; use strict; use warnings; use parent qw/Exporter/; -our $VERSION = '0.000_001'; +our $VERSION = '0.000_002'; our @EXPORT_OK = qw/TF2 DOTA2/; use constant +{ @@ -91,9 +91,21 @@ WWW::BackpackTF is an interface to the backpack.tf Team Fortress 2/Dota 2 tradin =over -=item B(I<[$api_key]>) +=item B([key => I<$api_key>], [base => I<$base_url>]) -Create a new WWW::BackpackTF object. Takes a single optional parameter, the API key. +Create a new WWW::BackpackTF object. Takes a hash of parameters. Possible parameters: + +=over + +=item B + +The API key. Defaults to nothing. Most methods require an API key. + +=item B + +The base URL. Defaults to http://backpack.tf/api/. + +=back =item B([I<$appid>, [I<$raw>]])