GW2Base is a gem that wraps the official Guild Wars 2 API and provides an easy way for Ruby applications to access the data that it provides.
Add this line to your application's Gemfile:
gem 'gw2base', :github => 'illianthe/gw2base'
And then execute:
$ bundle
GW2Base follows much of the conventions set by the ArenaNet developers at https://forum-en.guildwars2.com/forum/community/api/API-Documentation. It provides access to the API through various methods defined in GW2Data.
GW2Data.events(world_id = "", map_id = "", event_id = "")
GW2Data.event_names(lang = "en")
GW2Data.map_names(lang = "en")
GW2Data.world_names(lang = "en")
GW2Data.matches
GW2Data.match_details(match_id)
GW2Data.objective_names(lang = "en")
GW2Data.items
GW2Data.item_details(item_id, lang = "en")
GW2Data.recipes
GW2Data.recipe_details(recipe_id)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request