Wrapper for the raider.io API written in Go
include github.com/tmaffia/raiderio v0.5.0
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"))client := raiderio.NewClient()
profile, err := client.GetCharacter(&CharacterQuery{
Region: regions.US,
Realm: "illidan",
Name: "thehighvalue",
TalentLoadout: true,
})
fmt.Println(profile.Class) // Magegq := raiderio.GuildQuery{
Region: regions.US,
Realm: "illidan",
Name: "warpath",
Members: true,
}
profile, err := client.GetGuild(&gq)rq := raiderio.RaidQuery{
Name: "nerubar-palace",
Difficulty: raiderio.MYTHIC_RAID,
Region: regions.US,
Limit: 10,
}
rankings, err := client.GetRaidRankings(&rq)raids, err := client.GetRaids(expansions.WAR_WITHIN)