Skip to content
/ wow Public
forked from capoferro/wow

World of Warcraft Community API client for Golang

Notifications You must be signed in to change notification settings

sbWoW/wow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

World of Warcraft Community API Client for Golang

Provides Golang structs and an API client for consuming WoW Community API data

See the official documentation for an overview of what data is avaialable, then check out api_client.go's docs for the functions used to retrieve said data.

All APIs Supported:

  • Achievement
  • Auction
  • BattlePet
  • Challenge Mode
  • Character Profile
  • Item
  • Guild Profile
  • PvP
  • Quest
  • Realm Status
  • Recipe
  • Spell
  • Data Resources

Todo:

  • Verify signature with real account

Usage

package main

import (
  "fmt"
  "github.com/bluepojo/wow"
)

func main() {
	// Create a new client. The second parameter can be left empty if you
	// wish to use the region's default locale.
	client, _ := wow.NewApiClient("US", "")

	capo, _ := client.GetCharacterWithFields("Runetotem", "Capoferro", []string{"items"})
	className, _ := capo.Class()

	fmt.Printf("%s is the greatest %s ever.\nHe has an ilvl of %d and %d achievement points.\n", 
		capo.Name,
		className,
		capo.Items.AverageItemLevel,
		capo.AchievementPoints)
}

About

World of Warcraft Community API client for Golang

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%