Skip to content

Getting Started

prbarcelon edited this page May 8, 2018 · 3 revisions

Once you have downloaded the library and added it to you project references you can obtain data by using the static class GwApi.

API Listing

The library is currently broken into 3 sections

  • GwApiNET.GwApi Namespace - Contains a call for each of the provided GW2 API resources
  • GwApiNET.Gw2Stats.Gw2StatsApi Namespace - Contains calls for gw2stats.net api provided by Drakma.1549.
  • GwApiNET.Gw2PositionReader.Gw2PositionReaderApi Namespace - Contains mumble link data filled in by GW2 client. Real time information to Stuff like Character position, Map, Character Name etc.

GwApi

All data is expected to come in three different forms.

  • Entry (A subclass of ResponseObject)
  • EntryCollection<Entry>
  • EntryDictionary<key, Entry>

Each API response from GW2 will be broken down into an Entry. There could be multiple Entry values returned from one API request. If there is more than 1 Entry returned, it will be returned in an EntryCollection or EntryDictionary. The EntryCollection implements the IList<T> interface, as such it will be compatible where IList<T> or IEnumerable<T> is required. The EntryDictionary implements IDictionary<T>, as such it is interchangeable with IDictionary<T> and IEnumerable<T> as well.

API Listening

Dynamic Events API

  • events.json
    • GwApi.GetEvents(int,int,Guid?,bool)
  • event_names.json
    • GwApi.GetEventNames(bool)
  • map_names.json
    • GwApi.GetMapNames(bool)
  • world_names.json
    • GwApi.GetWorldNames(bool)
  • event_details.json
    • GwApi.GetEventDetails(Guid, bool)
    • GwApi.GetEventDetails(string, bool)

WvW API

  • wvw/matches.json
    • GwApi.GetMatches(bool)
  • wvw/match_details.json
    • GwApi.GetMatchDetails(string, bool)
  • wvw/objective_names.json
    • GwApi.GetObjectiveNames(bool)

Item and Recipe Database API

  • items.json
    • GwApi.GetItemIds(bool)
  • item_details.json
    • GwApi.GetItemDetails(int, bool)
  • recipes.json
    • GwApi.GetRecipeIds(bool)
  • recipe_details.json
    • GwApi.GetRecipeDetails(int, bool)

Guild API

  • guild_details.json
    • GwApi.GetGuildDetailsByName(string, bool) GwApi.GetGuildDetailsById(string, bool) GwApi.GetGuildDetailsById(Guid, bool)

Map API

  • continents.json
    • GwApi.GetContinents(bool)
  • maps.json
    • GwApi.GetMap(bool) and GwApi.GetMap(int, bool)
  • map_floor.json
    • GwApi.GetMapFloor(int, int, bool)

Miscellaneous APIs

  • colors.json
    • GwApi.GetColors(bool)
  • build.json
    • GwApi.GetBuildNumber()
  • files.json
    • GwApi.GetFiles(bool)

Render Service API

  • images (.jpg or .png)
    • GwApi.GetRenderServiceAssetEntry(string, int, string, bool) GwApi.GetRenderServiceAssetEntry(FileEntry, string, bool)
Clone this wiki locally