From: Marius Gavrilescu Date: Sat, 21 Jun 2014 23:18:48 +0000 (+0300) Subject: Update constructor documentation X-Git-Tag: 0.000_002~2 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=1115e95d6466b1d684cdfb72fdd1e510ca09e228;p=www-backpacktf.git Update constructor documentation --- diff --git a/lib/WWW/BackpackTF.pm b/lib/WWW/BackpackTF.pm index 448ebbb..6f4535a 100644 --- a/lib/WWW/BackpackTF.pm +++ b/lib/WWW/BackpackTF.pm @@ -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>]])