Skip to content

maoyikun/python-wowapi

 
 

Repository files navigation

python-wowapi

Build Status

Python-wowapi is a client library for interacting with the World of Warcraft Community and Game Data API.

To interact with this library, you need to first get a client-id and client secret by registering here

For more information about official World of Warcraft API's visit: Official API documentation Official API Forum

API documentation can be found at python-wowapi.readthedocs.org. Examples and installation instructions are documented here.

Installing

pip install python-wowapi

API instance

import os

from wowapi import WowApi

api = WowApi(os.environ['WOW_CLIENT_ID'], os.environ['WOW_CLIENT_SECRET'])

Community API example

api.get_auctions('eu', 'silvermoon', locale='de_DE')

Game Data API examples

Get token price

api.get_token('eu', namespace='dynamic-eu', locale='de_DE')

Get class specializations and detail specialization resource

data = api.get_playable_specializations('us', namespace='static-us')

spec_id = data['character_specializations'][0]['id']
specialization = api.get_playable_specialization('us', namespace='static-us', spec_id=spec_id)

Get game data resource by url

This example shows how to fetch a game data resource by url. The get_data_resource method will take care of adding your access_token to the url.

api.get_data_resource('https://eu.api.blizzard.com/data/wow/connected-realm/509?namespace=dynamic-eu', region='eu')

Development & Testing

pip install -e .
pip install -e .[tests]
pytest

About

A client library for interacting with the World of Warcraft Community API

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 98.7%
  • Makefile 1.1%
  • Shell 0.2%