Skip to content

parix/gw2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Guild Wars 2 API Gem

Gem Version Code Climate Build Status Coverage Status

A Ruby interface for accessing the Guild Wars 2 API.

Installation

gem install gw2

Dynamic Event API

Get all dynamic events

GW2::Event.all

Get all dynamic events from a specific world

GW2::Event.where(world_id: 1013)

Get all dynamic events from a specific map

GW2::Event.where(map_id: 39)

Get instances of a specific dynamic event

GW2::Event.where(event_id: "F5D23902-2D9A-4B58-8B7D-1EEA0067134D")

Note: you can use any combination of world_id, map_id and event_id for querying dynamic events.

Get all names of events, maps or worlds

GW2::Event.event_names
GW2::Event.map_names
GW2::Event.world_names

Guild API

Get details of a guild

GW2::Guild.details(guild_id: "16DB5921-CF1B-48D2-A5A0-2F0AADD9765D")
GW2::Guild.details(guild_name: "Ruinous")

Item and Recipe Database API

Get all discovered items

GW2::Item.all

Get details of a specific item

GW2::Item.details(38875)

Get all discovered recipes

GW2::Recipe.all

Get details of a specific recipe

GW2::Recipe.details(1275)

Map Information API

Get details of all the continents

GW2::Map.continents

Get all maps

GW2::Map.all

Get details about a specific map

GW2::Map.where(map_id: 80)

Get details about a map floor

GW2::Map.map_floor(1, 1)

World vs World API

Get all current matches

GW2::WvW.matches

Get details of a specific match

GW2::WvW.match_details("1-5")

Get all objective names

GW2::WvW.objective_names

Miscellaneous API

Get the current build id

GW2::Misc.build

Get a list of all dyes

GW2::Misc.colors

Get commonly requested assets

GW2::Misc.files

Copyright

Copyright (c) 2013-2014 Chris Rosario. See LICENSE for details.

About

A Ruby interface for accessing the Guild Wars 2 API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages