Giter Site home page Giter Site logo

guildwars2api's Introduction

GuildWars2API

A Python wrapper to simplify use of the official Guild Wars 2 API.

[TOC]

Installation

  1. Clone the repository
  2. Navigate to the local copy of the repository in command line
  3. Run python setup.py install to set up the library (For users with more complex Python installations, see Python documentation)
  4. When importing, use from guildwars2api.client import GuildWars2API

Sample code

from guildwars2api.client import GuildWars2API

# Set wrapper to Version 1 endpoints
api = GuildWars2API(api_version='v1')

# Print the number of ongoing WvW matches
matches = api.matches.get()
print("Matches", len(matches))

# Set wrapper to Version 2 endpoints
api = GuildWars2API(api_version='v2')

# Get the details of a specific task with the following inputs:
# continent_id, floor_id, region_id, map_id, and task_id
tasks = api.continents.floors.regions.maps.tasks.get(1, 1, 1, 26, 554)

Supported API Version 2 Endpoints

As of 10/27/15, the following v2 endpoints are available:

#####Items

  • items: Returns information about items
  • materials: Returns information about materials
  • recipes: Returns information about recipes
  • recipes/search: A search interface for recipes
  • skins: Returns information about skins

#####Game Mechanics

#####Map Information

  • continents: Returns a list of continents and information about each continent
  • floors: Returns detailed information about a map floor
  • maps: Returns information about maps in the game

#####Miscellaneous

  • build: Returns the current build id
  • colors: Returns information about dye colors
  • files: Returns commonly requested assets

Supported API Version 1 Endpoints

As of 10/27/15, the following v1 endpoints are available:

#####Dynamic Events

#####Guilds

#####Items

  • items: Returns a list of discovered items
  • item_details: Returns detailed information about an item
  • recipes: Returns a list of discovered recipes
  • recipe_details: Returns detailed information about a recipe
  • skins: Returns a list of skins
  • skin_details: Returns detailed information about a skin

#####Map Information

  • continents: Returns a list of continents and information about each continent
  • maps: Returns a list of maps in the game
  • map_floor: Returns detailed information about a map floor

#####World vs. World

#####Miscellaneous

  • build: Returns the current build id
  • colors: Returns a list of dyes in the game
  • files: Returns commonly requested assets

License

CC SA

GuildWars2API by Daniel Ng is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/.

guildwars2api's People

Contributors

majinbui avatar ngenator avatar usrbinpikachu avatar xmasreturns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

guildwars2api's Issues

Duplicate prepare statement

In client.py, there's a duplicate prepare statement in line 37:

self.continents.floors = self._prepare(v2.Continents.Floors)

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.