Wowr is a Ruby library for accessing data in the World of Warcraft Armory. It provides an object-oriented interface to the XML data provided by the armory, giving access to items, characters, guilds and arena teams. It is designed for both single users and larger guild or portal sites for many users.
Install Wowr using RubyGems:
gem install wowr
Alternatively, check out the latest version from GIT:
git clone git://github.com/pwood/wowr.git
RubyDoc documentation contains further details of functions available.
The following sites use Wowr.
= Wowr(:character_name => 'Hesperus', :guild_name => 'Rawr', :realm => 'Trollbane', :locale => 'eu', # defaults to US :lang => 'fr_fr', # remove for locale default language :caching => false) # defaults to true # For all requests it's possible to specify the parameters similar to the # api constructor. By default it'll use whatever is specified in the API. # gets character with API default values default_char = api jim = api ("Jim", :realm => "Balnazzar", :lang => 'de_de', :caching => false) chars = api (:search => 'Cake') # Guild requests my_guild = api guilds = api ("Cake") # Items items = api ("Cake") item = api (33924) if item item do |reagent| puts reagent # Human-readable name aliased to to_s to simplify printing end end # Arena Teams arena_teams = api ("Lemon") arena_team = api ("Lemon", 2, :realm => "Darksorrow") # Guild Bank cookie = api ('myuser', 'mypass') api (cookie) api (cookie)api
Contact me with feedback or requests for features/changes to.
If you use Wowr in a project of yours, I would love to hear about it. It'd also be great if you could provide a link to this site. Feel free to use any of these icons.
Wowr is licensed under the CC-GNU GPL.
:lang => 'en_gb'.
:debug => trueparameter when creating the API will output interesting stuff to the standard out.
See the Wowr Rubyforge Page for the full version history.