Git Product home page Git Product logo

gw2's Introduction

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.

gw2's People

Contributors

mrbaummann avatar parix avatar trmcnvn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gw2's Issues

v2 endpoints

Hey, thanks for the gem !

Any chance to see v2 endpoints soon ? Such as the commerce endpoints :)

Thanks!

Maintenance

@parix Do you plan on continuing to maintain this project at all? Are you still looking for contributors?

Dynamic event functions returning error

I'm using your gem to create a simple GW2 event tracker in Ruby to learn Rails and when trying to use any of the dynamic event functions (e.g. GW2::Event.all) it returns {"error"=>51, "product"=>0, "module"=>5, "line"=>645, "text"=>"events.json disabled"}.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.