Skip to content

tmaffia/raiderio

Repository files navigation

Raider.io API Go wrapper

Go Reference Go Build & Test Go Report Card

Wrapper for the raider.io API written in Go

Usage

Include module in your go.mod

include github.com/tmaffia/raiderio v0.3.3

Get a Character Profile

client, err := raiderio.NewClient()

profile, err := client.GetCharacter(&CharacterQuery{
	Region: raiderio.Regions.US,
	Realm:  "illidan",
	Name:   "thehighvalue",
	TalentLoadout: true,
})

fmt.Println(profile.Class) // Mage

Get a Guild Profile

gq := raiderio.GuildQuery{
	Region: raiderio.Regions.US,
	Realm:  "illidan",
	Name:   "warpath",
	Members: true,
}

profile, err := client.GetGuild(&gq)

Get Raid Rankings for a specific raid

rq := raiderio.RaidQuery{
	Name: 		"nerubar-palace",
	Difficulty:	raiderio.Difficulty.MythicRaid,
	Region: 	raiderio.Regions.US,
	Limit: 		10,
}

rankings, err := client.GetRaidRankings(&rq)

Get Static Raid data by expansion

raids, err := client.GetRaids(raiderio.Expansions.WarWithin)