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.5.0

Authentication

The Raider.IO API provides higher rate limits for authenticated requests. You can generate an API key by registering your application on the Raider.IO Application Settings page.

To use your API key with the client:

client := raiderio.NewClient(raiderio.WithAccessKey("YOUR_API_KEY"))

Get a Character Profile

client := raiderio.NewClient()

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

fmt.Println(profile.Class) // Mage

Get a Guild Profile

gq := raiderio.GuildQuery{
 Region: 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.MYTHIC_RAID,
 Region:  regions.US,
 Limit:   10,
}

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

Get Static Raid data by expansion

raids, err := client.GetRaids(expansions.WAR_WITHIN)

About

Wrapper for Raider.io api in go

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published