blizzard

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package blizzard is a client library designed to make calling and processing Blizzard Game APIs simple

Index

Constants

View Source
const (
	// North America locales
	EnUS = Locale("en_US")
	EsMX = Locale("es_MX")
	PtBR = Locale("pt_BR")

	// Europe locales
	EnGB = Locale("en_GB")
	EsES = Locale("es_ES")
	FrFR = Locale("fr_FR")
	RuRU = Locale("ru_RU")
	PtPT = Locale("pt_PT")
	DeDE = Locale("de_DE")
	ItIT = Locale("it_IT")

	// Korea locales
	KoKR = Locale("ko_KR")

	// Taiwan locales
	ZhTW = Locale("zh_TW")

	// China locales
	ZhCN = Locale("zh_CN")
)

Locale constants

View Source
const (
	HeaderKeyBattlenetNamespace   = "Battlenet-Namespace"
	HeaderKeyBattlenetSchema      = "Battlenet-Schema"
	HeaderKeyBattleSchemaRevision = "Battlenet-Schema-Revision"
	HeaderKeyCacheControl         = "Cache-Control"
	HeaderKeyConnection           = "Connection"
	HeaderKeyContentType          = "Content-Type"
	HeaderKeyDate                 = "Date"
	HeaderKeyLastModified         = "Last-Modified"
	HeaderKeyServer               = "Server"
	HeaderKeyVary                 = "Vary"
	HeaderKeyXContentTypeOptions  = "X-Content-Type-Options"
	HeaderKeyXFrameOptions        = "X-Frame-Options"
	HeaderKeyXTraceParentSpanID   = "X-Trace-Parentspanid"
	HeaderKeyXTraceSpanID         = "X-Trace-Spanid"
	HeaderKeyXTraceTraceID        = "X-Trace-Traceid"
)

Header Keys

Variables

View Source
var (
	ErrUnknownLocale          = errors.New("unknown locale")
	ErrInvalidLocaleForRegion = errors.New("locale is not valid for region")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client regional API URLs, locale, client ID, client secret

func NewClient

func NewClient(cfg Config) (*Client, error)

NewClient create new Blizzard structure. This structure will be used to acquire your access token and make API calls.

func (*Client) AccessTokenRequest

func (c *Client) AccessTokenRequest(ctx context.Context) error

AccessTokenRequest retrieves new OAuth2 Token

func (*Client) AuthorizeConfig

func (c *Client) AuthorizeConfig(redirectURI string, profiles ...oauth.Profile) oauth2.Config

AuthorizeConfig returns OAuth2 config

func (*Client) ClassicWoWConnectedRealm

func (c *Client) ClassicWoWConnectedRealm(ctx context.Context, connectedRealmID int) (*wowcgd.ConnectedRealm, *Header, error)

ClassicWoWConnectedRealm returns a connected realm by ID.

func (*Client) ClassicWoWConnectedRealmSearch

func (c *Client) ClassicWoWConnectedRealmSearch(ctx context.Context, opts ...wowsearch.Opt) (*wowcgd.ConnectedRealmsSearch, *Header, error)

ClassicConnectedRealmSearch searches for connected realms

func (*Client) ClassicWoWConnectedRealmsIndex

func (c *Client) ClassicWoWConnectedRealmsIndex(ctx context.Context) (*wowcgd.ConnectedRealmsIndex, *Header, error)

ClassicWoWConnectedRealmsIndex returns an index of connected realms.

func (*Client) ClassicWoWCreature

func (c *Client) ClassicWoWCreature(ctx context.Context, creatureID int) (*wowcgd.Creature, *Header, error)

ClassicWoWCreature returns a creature type by ID.

func (*Client) ClassicWoWCreatureDisplayMedia

func (c *Client) ClassicWoWCreatureDisplayMedia(ctx context.Context, creatureDisplayID int) (*wowcgd.CreatureDisplayMedia, *Header, error)

ClassicWoWCreatureDisplayMedia returns media for a creature display by ID.

func (*Client) ClassicWoWCreatureFamiliesIndex

func (c *Client) ClassicWoWCreatureFamiliesIndex(ctx context.Context) (*wowcgd.CreatureFamiliesIndex, *Header, error)

ClassicWoWCreatureFamiliesIndex returns an index of creature families.

func (*Client) ClassicWoWCreatureFamily

func (c *Client) ClassicWoWCreatureFamily(ctx context.Context, creatureFamilyID int) (*wowcgd.CreatureFamily, *Header, error)

ClassicWoWCreatureFamily returns a creature family by ID.

func (*Client) ClassicWoWCreatureFamilyMedia

func (c *Client) ClassicWoWCreatureFamilyMedia(ctx context.Context, creatureFamilyID int) (*wowcgd.CreatureFamilyMedia, *Header, error)

ClassicWoWCreatureFamilyMedia returns media for a creature family by ID.

func (*Client) ClassicWoWCreatureType

func (c *Client) ClassicWoWCreatureType(ctx context.Context, creatureTypeID int) (*wowcgd.CreatureType, *Header, error)

ClassicWoWCreatureType returns a creature type by ID.

func (*Client) ClassicWoWCreatureTypesIndex

func (c *Client) ClassicWoWCreatureTypesIndex(ctx context.Context) (*wowcgd.CreatureTypesIndex, *Header, error)

ClassicWoWCreatureTypesIndex returns an index of creature types.

func (*Client) ClassicWoWGuildCrestBorderMedia

func (c *Client) ClassicWoWGuildCrestBorderMedia(ctx context.Context, borderID int) (*wowcgd.GuildCrestBorderMedia, *Header, error)

ClassicWoWGuildCrestBorderMedia returns media for a guild crest border by ID

func (*Client) ClassicWoWGuildCrestComponentsIndex

func (c *Client) ClassicWoWGuildCrestComponentsIndex(ctx context.Context) (*wowcgd.GuildCrestComponentsIndex, *Header, error)

ClassicWoWGuildCrestComponentsIndex returns an index of guild crest media

func (*Client) ClassicWoWGuildCrestEmblemMedia

func (c *Client) ClassicWoWGuildCrestEmblemMedia(ctx context.Context, emblemID int) (*wowcgd.GuildCrestEmblemMedia, *Header, error)

ClassicWoWGuildCrestEmblemMedia returns media for a guild crest emblem by ID

func (*Client) ClassicWoWItem

func (c *Client) ClassicWoWItem(ctx context.Context, itemID int) (*wowcgd.Item, *Header, error)

ClassicWoWItem returns an item by ID

func (*Client) ClassicWoWItemClass

func (c *Client) ClassicWoWItemClass(ctx context.Context, itemClassID int) (*wowcgd.ItemClass, *Header, error)

ClassicWoWItemClass returns an item class by ID

func (*Client) ClassicWoWItemClassesIndex

func (c *Client) ClassicWoWItemClassesIndex(ctx context.Context) (*wowcgd.ItemClassesIndex, *Header, error)

ClassicWoWItemClassesIndex returns an index of item classes

func (*Client) ClassicWoWItemMedia

func (c *Client) ClassicWoWItemMedia(ctx context.Context, itemID int) (*wowcgd.ItemMedia, *Header, error)

ClassicWoWItemMedia returns media for an item by ID

func (*Client) ClassicWoWItemSubclass

func (c *Client) ClassicWoWItemSubclass(ctx context.Context, itemClassID, itemSubclassID int) (*wowcgd.ItemSubclass, *Header, error)

ClassicWoWItemSubclass returns an item subclass by ID

func (*Client) ClassicWoWPlayableClass

func (c *Client) ClassicWoWPlayableClass(ctx context.Context, classID int) (*wowcgd.PlayableClass, *Header, error)

ClassicWoWPlayableClass returns a playable class by ID

func (*Client) ClassicWoWPlayableClassMedia

func (c *Client) ClassicWoWPlayableClassMedia(ctx context.Context, playableClassID int) (*wowcgd.PlayableClassMedia, *Header, error)

ClassicWoWPlayableClassMedia returns media for a playable class by ID

func (*Client) ClassicWoWPlayableClassesIndex

func (c *Client) ClassicWoWPlayableClassesIndex(ctx context.Context) (*wowcgd.PlayableClassesIndex, *Header, error)

ClassicWoWPlayableClassesIndex returns an index of playable classes

func (*Client) ClassicWoWPlayableRace

func (c *Client) ClassicWoWPlayableRace(ctx context.Context, raceID int) (*wowcgd.PlayableRace, *Header, error)

ClassicWoWPlayableRace returns a playable race by ID

func (*Client) ClassicWoWPlayableRacesIndex

func (c *Client) ClassicWoWPlayableRacesIndex(ctx context.Context) (*wowcgd.PlayableRacesIndex, *Header, error)

ClassicWoWPlayableRacesIndex returns an index of playable races

func (*Client) ClassicWoWPowerType

func (c *Client) ClassicWoWPowerType(ctx context.Context, powerTypeID int) (*wowcgd.PowerType, *Header, error)

ClassicWoWPowerType returns a power type by ID

func (*Client) ClassicWoWPowerTypesIndex

func (c *Client) ClassicWoWPowerTypesIndex(ctx context.Context) (*wowcgd.PowerTypesIndex, *Header, error)

ClassicWoWPowerTypesIndex returns an index of power types

func (*Client) ClassicWoWRealm

func (c *Client) ClassicWoWRealm(ctx context.Context, realmSlug string) (*wowcgd.Realm, *Header, error)

ClassicWoWRealm returns a single realm by slug or ID.

func (*Client) ClassicWoWRealmIndex

func (c *Client) ClassicWoWRealmIndex(ctx context.Context) (*wowcgd.RealmIndex, *Header, error)

ClassicWoWRealmIndex returns an index of realms.

func (*Client) ClassicWoWRealmSearch

func (c *Client) ClassicWoWRealmSearch(ctx context.Context, opts ...wowsearch.Opt) (*wowcgd.RealmSearch, *Header, error)

ClassicRealmSearch searches for realms

func (*Client) ClassicWoWRegion

func (c *Client) ClassicWoWRegion(ctx context.Context, regionID int) (*wowcgd.Region, *Header, error)

ClassicWoWRegion returns a region by ID.

func (*Client) ClassicWoWRegionIndex

func (c *Client) ClassicWoWRegionIndex(ctx context.Context) (*wowcgd.RegionIndex, *Header, error)

ClassicWoWRegionIndex returns an index of regions.

func (*Client) D3Act

func (c *Client) D3Act(ctx context.Context, id int) (*d3c.Act, *Header, error)

D3Act returns information about act based on ID

func (*Client) D3ActIndex

func (c *Client) D3ActIndex(ctx context.Context) (*d3c.ActIndex, *Header, error)

D3ActIndex returns an index of acts

func (*Client) D3Barbarian

func (c *Client) D3Barbarian(ctx context.Context) (*d3c.Hero, *Header, error)

D3Barbarian returns barbarian data

func (*Client) D3BarbarianSkill

func (c *Client) D3BarbarianSkill(ctx context.Context, skillSlug string) (*d3c.Skill, *Header, error)

D3BarbarianSkill returns barbarian skill data

func (*Client) D3Blacksmith

func (c *Client) D3Blacksmith(ctx context.Context) (*d3c.Artisan, *Header, error)

D3Blacksmith returns blacksmith data

func (*Client) D3BlacksmithRecipe

func (c *Client) D3BlacksmithRecipe(ctx context.Context, recipeSlug string) (*d3c.Recipe, *Header, error)

D3BlacksmithRecipe returns blacksmith recipe data

func (*Client) D3Crusader

func (c *Client) D3Crusader(ctx context.Context) (*d3c.Hero, *Header, error)

D3Crusader returns crusader data

func (*Client) D3CrusaderSkill

func (c *Client) D3CrusaderSkill(ctx context.Context, skillSlug string) (*d3c.Skill, *Header, error)

D3CrusaderSkill returns crusader skill data

func (*Client) D3DemonHunter

func (c *Client) D3DemonHunter(ctx context.Context) (*d3c.Hero, *Header, error)

D3DemonHunter returns demon hunter data

func (*Client) D3DemonHunterSkill

func (c *Client) D3DemonHunterSkill(ctx context.Context, skillSlug string) (*d3c.Skill, *Header, error)

D3DemonHunterSkill returns demon hunter skill data

func (*Client) D3Enchantress

func (c *Client) D3Enchantress(ctx context.Context) (*d3c.Follower, *Header, error)

D3Enchantress returns enchantress data

func (*Client) D3Era

func (c *Client) D3Era(ctx context.Context, eraID int) (*d3gd.Era, *Header, error)

D3Era returns season data

func (*Client) D3EraIndex

func (c *Client) D3EraIndex(ctx context.Context) (*d3gd.EraIndex, *Header, error)

D3EraIndex returns an index of seasons

func (*Client) D3EraLeaderboardBarbarian

func (c *Client) D3EraLeaderboardBarbarian(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardBarbarian returns barbarian leaderboard data for season

func (*Client) D3EraLeaderboardCrusader

func (c *Client) D3EraLeaderboardCrusader(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardCrusader returns crusader leaderboard data for season

func (*Client) D3EraLeaderboardDemonHunter

func (c *Client) D3EraLeaderboardDemonHunter(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardDemonHunter returns barbarian leaderboard data for season

func (*Client) D3EraLeaderboardHardcoreBarbarian

func (c *Client) D3EraLeaderboardHardcoreBarbarian(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardHardcoreBarbarian returns hardcore barbarian leaderboard data for season

func (*Client) D3EraLeaderboardHardcoreCrusader

func (c *Client) D3EraLeaderboardHardcoreCrusader(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardHardcoreCrusader returns hardcore crusader leaderboard data for season

func (*Client) D3EraLeaderboardHardcoreDemonHunter

func (c *Client) D3EraLeaderboardHardcoreDemonHunter(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardHardcoreDemonHunter returns hardcore demon hunter leaderboard data for season

func (*Client) D3EraLeaderboardHardcoreMonk

func (c *Client) D3EraLeaderboardHardcoreMonk(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardHardcoreMonk returns hardcore monk leaderboard data for season

func (*Client) D3EraLeaderboardHardcoreNecromancer

func (c *Client) D3EraLeaderboardHardcoreNecromancer(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardHardcoreNecromancer returns hardcore necromancer leaderboard data for season

func (*Client) D3EraLeaderboardHardcoreTeam2

func (c *Client) D3EraLeaderboardHardcoreTeam2(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardHardcoreTeam2 returns hardcore 2 team leaderboard data for season

func (*Client) D3EraLeaderboardHardcoreTeam3

func (c *Client) D3EraLeaderboardHardcoreTeam3(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardHardcoreTeam3 returns hardcore 2 team leaderboard data for season

func (*Client) D3EraLeaderboardHardcoreTeam4

func (c *Client) D3EraLeaderboardHardcoreTeam4(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardHardcoreTeam4 returns hardcore 4 team leaderboard data for season

func (*Client) D3EraLeaderboardHardcoreWitchDoctor

func (c *Client) D3EraLeaderboardHardcoreWitchDoctor(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardHardcoreWitchDoctor returns hardcore witch doctor leaderboard data for season

func (*Client) D3EraLeaderboardHardcoreWizard

func (c *Client) D3EraLeaderboardHardcoreWizard(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardHardcoreWizard returns hardcore wizard leaderboard data for season

func (*Client) D3EraLeaderboardMonk

func (c *Client) D3EraLeaderboardMonk(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardMonk returns monk leaderboard data for season

func (*Client) D3EraLeaderboardNecromancer

func (c *Client) D3EraLeaderboardNecromancer(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardNecromancer returns necromancer leaderboard data for season

func (*Client) D3EraLeaderboardTeam2

func (c *Client) D3EraLeaderboardTeam2(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardTeam2 returns 2 team leaderboard data for season

func (*Client) D3EraLeaderboardTeam3

func (c *Client) D3EraLeaderboardTeam3(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardTeam3 returns 3 team leaderboard data for season

func (*Client) D3EraLeaderboardTeam4

func (c *Client) D3EraLeaderboardTeam4(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardTeam4 returns 4 team leaderboard data for season

func (*Client) D3EraLeaderboardWitchDoctor

func (c *Client) D3EraLeaderboardWitchDoctor(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardWitchDoctor returns witch doctor leaderboard data for season

func (*Client) D3EraLeaderboardWizard

func (c *Client) D3EraLeaderboardWizard(ctx context.Context, eraID int) (*d3gd.Leaderboard, *Header, error)

D3EraLeaderboardWizard returns wizard leaderboard data for season

func (*Client) D3Item

func (c *Client) D3Item(ctx context.Context, itemSlug, itemID string) (*d3c.Item, *Header, error)

D3Item returns item data

func (*Client) D3ItemType

func (c *Client) D3ItemType(ctx context.Context, itemTypeSlug string) (*d3c.ItemType, *Header, error)

D3ItemType returns item type data

func (*Client) D3ItemTypeIndex

func (c *Client) D3ItemTypeIndex(ctx context.Context) (*d3c.ItemTypeIndex, *Header, error)

D3ItemTypeIndex returns an index of item types

func (*Client) D3Jeweler

func (c *Client) D3Jeweler(ctx context.Context) (*d3c.Artisan, *Header, error)

D3Jeweler returns jeweler data

func (*Client) D3JewelerRecipe

func (c *Client) D3JewelerRecipe(ctx context.Context, recipeSlug string) (*d3c.Recipe, *Header, error)

D3JewelerRecipe returns jeweler recipe data

func (*Client) D3Monk

func (c *Client) D3Monk(ctx context.Context) (*d3c.Hero, *Header, error)

D3Monk returns monk data

func (*Client) D3MonkSkill

func (c *Client) D3MonkSkill(ctx context.Context, skillSlug string) (*d3c.Skill, *Header, error)

D3MonkSkill returns monk skill data

func (*Client) D3Mystic

func (c *Client) D3Mystic(ctx context.Context) (*d3c.Artisan, *Header, error)

D3Mystic returns mystic data

func (*Client) D3Necromancer

func (c *Client) D3Necromancer(ctx context.Context) (*d3c.Hero, *Header, error)

D3Necromancer returns necromancer data

func (*Client) D3NecromancerSkill

func (c *Client) D3NecromancerSkill(ctx context.Context, skillSlug string) (*d3c.Skill, *Header, error)

D3NecromancerSkill returns necromancer skill data

func (*Client) D3Profile

func (c *Client) D3Profile(ctx context.Context, account string) (*d3c.Profile, *Header, error)

D3Profile returns profile data Formats accepted: Player-1234 or Player#1234

func (*Client) D3ProfileHero

func (c *Client) D3ProfileHero(ctx context.Context, account string, heroID int) (*d3c.ProfileHero, *Header, error)

D3ProfileHero returns profile's hero data Formats accepted: Player-1234 or Player#1234

func (*Client) D3ProfileHeroFollowerItems

func (c *Client) D3ProfileHeroFollowerItems(ctx context.Context, account string, heroID int) (*d3c.ProfileHeroFollowerItems, *Header, error)

D3ProfileHeroFollowerItems returns profile's hero's follower item data Formats accepted: Player-1234 or Player#1234

func (*Client) D3ProfileHeroItems

func (c *Client) D3ProfileHeroItems(ctx context.Context, account string, heroID int) (*d3c.ProfileHeroItems, *Header, error)

D3ProfileHeroItems returns profile's hero's item data Formats accepted: Player-1234 or Player#1234

func (*Client) D3Scoundrel

func (c *Client) D3Scoundrel(ctx context.Context) (*d3c.Follower, *Header, error)

D3Scoundrel returns scoundrel data

func (*Client) D3Season

func (c *Client) D3Season(ctx context.Context, seasonID int) (*d3gd.Season, *Header, error)

D3Season returns season data

func (*Client) D3SeasonIndex

func (c *Client) D3SeasonIndex(ctx context.Context) (*d3gd.SeasonIndex, *Header, error)

D3SeasonIndex returns an index of seasons

func (*Client) D3SeasonLeaderboard

func (c *Client) D3SeasonLeaderboard(ctx context.Context, seasonID int, leaderboard string) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboard returns leaderboard data for season and leaderboard

func (*Client) D3SeasonLeaderboardAchievementPoints

func (c *Client) D3SeasonLeaderboardAchievementPoints(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardAchievementPoints returns achievement points leaderboard data for season

func (*Client) D3SeasonLeaderboardBarbarian

func (c *Client) D3SeasonLeaderboardBarbarian(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardBarbarian returns barbarian leaderboard data for season

func (*Client) D3SeasonLeaderboardCrusader

func (c *Client) D3SeasonLeaderboardCrusader(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardCrusader returns crusader leaderboard data for season

func (*Client) D3SeasonLeaderboardDemonHunter

func (c *Client) D3SeasonLeaderboardDemonHunter(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardDemonHunter returns barbarian leaderboard data for season

func (*Client) D3SeasonLeaderboardHardcoreBarbarian

func (c *Client) D3SeasonLeaderboardHardcoreBarbarian(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardHardcoreBarbarian returns hardcore barbarian leaderboard data for season

func (*Client) D3SeasonLeaderboardHardcoreCrusader

func (c *Client) D3SeasonLeaderboardHardcoreCrusader(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardHardcoreCrusader returns hardcore crusader leaderboard data for season

func (*Client) D3SeasonLeaderboardHardcoreDemonHunter

func (c *Client) D3SeasonLeaderboardHardcoreDemonHunter(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardHardcoreDemonHunter returns hardcore demon hunter leaderboard data for season

func (*Client) D3SeasonLeaderboardHardcoreMonk

func (c *Client) D3SeasonLeaderboardHardcoreMonk(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardHardcoreMonk returns hardcore monk leaderboard data for season

func (*Client) D3SeasonLeaderboardHardcoreNecromancer

func (c *Client) D3SeasonLeaderboardHardcoreNecromancer(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardHardcoreNecromancer returns hardcore necromancer leaderboard data for season

func (*Client) D3SeasonLeaderboardHardcoreTeam2

func (c *Client) D3SeasonLeaderboardHardcoreTeam2(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardHardcoreTeam2 returns hardcore 2 team leaderboard data for season

func (*Client) D3SeasonLeaderboardHardcoreTeam3

func (c *Client) D3SeasonLeaderboardHardcoreTeam3(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardHardcoreTeam3 returns hardcore 2 team leaderboard data for season

func (*Client) D3SeasonLeaderboardHardcoreTeam4

func (c *Client) D3SeasonLeaderboardHardcoreTeam4(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardHardcoreTeam4 returns hardcore 4 team leaderboard data for season

func (*Client) D3SeasonLeaderboardHardcoreWitchDoctor

func (c *Client) D3SeasonLeaderboardHardcoreWitchDoctor(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardHardcoreWitchDoctor returns hardcore witch doctor leaderboard data for season

func (*Client) D3SeasonLeaderboardHardcoreWizard

func (c *Client) D3SeasonLeaderboardHardcoreWizard(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardHardcoreWizard returns hardcore wizard leaderboard data for season

func (*Client) D3SeasonLeaderboardMonk

func (c *Client) D3SeasonLeaderboardMonk(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardMonk returns monk leaderboard data for season

func (*Client) D3SeasonLeaderboardNecromancer

func (c *Client) D3SeasonLeaderboardNecromancer(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardNecromancer returns necromancer leaderboard data for season

func (*Client) D3SeasonLeaderboardTeam2

func (c *Client) D3SeasonLeaderboardTeam2(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardTeam2 returns 2 team leaderboard data for season

func (*Client) D3SeasonLeaderboardTeam3

func (c *Client) D3SeasonLeaderboardTeam3(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardTeam3 returns 3 team leaderboard data for season

func (*Client) D3SeasonLeaderboardTeam4

func (c *Client) D3SeasonLeaderboardTeam4(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardTeam4 returns 4 team leaderboard data for season

func (*Client) D3SeasonLeaderboardWitchDoctor

func (c *Client) D3SeasonLeaderboardWitchDoctor(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardWitchDoctor returns witch doctor leaderboard data for season

func (*Client) D3SeasonLeaderboardWizard

func (c *Client) D3SeasonLeaderboardWizard(ctx context.Context, seasonID int) (*d3gd.Leaderboard, *Header, error)

D3SeasonLeaderboardWizard returns wizard leaderboard data for season

func (*Client) D3Templar

func (c *Client) D3Templar(ctx context.Context) (*d3c.Follower, *Header, error)

D3Templar returns templar data

func (*Client) D3WitchDoctor

func (c *Client) D3WitchDoctor(ctx context.Context) (*d3c.Hero, *Header, error)

D3WitchDoctor returns witch doctor data

func (*Client) D3WitchDoctorSkill

func (c *Client) D3WitchDoctorSkill(ctx context.Context, skillSlug string) (*d3c.Skill, *Header, error)

D3WitchDoctorSkill returns witch doctor skill data

func (*Client) D3Wizard

func (c *Client) D3Wizard(ctx context.Context) (*d3c.Hero, *Header, error)

D3Wizard returns wizard data

func (*Client) D3WizardSkill

func (c *Client) D3WizardSkill(ctx context.Context, skillSlug string) (*d3c.Skill, *Header, error)

D3WizardSkill returns wizard skill data

func (*Client) GetAPIHost

func (c *Client) GetAPIHost() string

GetAPIHost returns the API host of the client

func (*Client) GetDynamicClassicNamespace

func (c *Client) GetDynamicClassicNamespace() string

GetDynamicClassicNamespace returns the classic dynamic namespace of the client

func (*Client) GetDynamicNamespace

func (c *Client) GetDynamicNamespace() string

GetDynamicNamespace returns the dynamic namespace of the client

func (*Client) GetLocale

func (c *Client) GetLocale() Locale

GetLocale returns the Locale of the client

func (*Client) GetOAuthHost

func (c *Client) GetOAuthHost() string

GetOAuthHost returns the OAuth host of the client

func (*Client) GetProfileNamespace

func (c *Client) GetProfileNamespace() string

GetProfileNamespace returns the profile namespace of the client

func (*Client) GetRegion

func (c *Client) GetRegion() Region

GetRegion returns the Region of the client

func (*Client) GetStaticClassicNamespace

func (c *Client) GetStaticClassicNamespace() string

GetStaticClassicNamespace returns the classic static namespace of the client

func (*Client) GetStaticNamespace

func (c *Client) GetStaticNamespace() string

GetStaticNamespace returns the static namespace of the client

func (*Client) HSBattlegroundsCardsSearch

func (c *Client) HSBattlegroundsCardsSearch(ctx context.Context, raritySlug, typeSlug, minionTypeSlug, keywordSlug, textFilter string,
	manaCost, attack, health []int, page, pageSize int,
	tier []hsgd.Tier, collectiblility hsgd.Collectibility, sort hsgd.Sort, order hsgd.Order) (*hsgd.CardSearch, *Header, error)

HSBattlegroundsCardsSearch returns an up-to-date list of all cards matching the search criteria for the specified game mode. Input values left blank, 0, or nil will return all values for the type. For more information about the search parameters, see the Card Search Guide (https://develop.battle.net/documentation/hearthstone/guides/card-search).

func (*Client) HSCardBackByIDOrSlug

func (c *Client) HSCardBackByIDOrSlug(ctx context.Context, idOrSlug string) (*hsgd.CardBack, *Header, error)

HSCardBackByIDOrSlug returns a specific card back by using card back ID or slug.

func (*Client) HSCardBackSearch

func (c *Client) HSCardBackSearch(ctx context.Context, cardBackCategory hsgd.CardBackCategory, textFilter string,
	sort hsgd.Sort, order hsgd.Order) (*hsgd.CardBackSearch, *Header, error)

HSCardBackSearch returns an up-to-date list of all card backs matching the search criteria. Input values left blank, 0, or nil will return all values for the type. For more information about the search parameters, see the Card Search Guide (https://develop.battle.net/documentation/hearthstone/guides/card-search).

func (*Client) HSCardBackSearchAllLocales

func (c *Client) HSCardBackSearchAllLocales(ctx context.Context, cardBackCategory hsgd.CardBackCategory, textFilter string,
	sort hsgd.Sort, order hsgd.Order) (*hsgd.CardBackSearchAllLocales, *Header, error)

HSCardBackSearchAllLocales returns an up-to-date list of all card backs matching the search criteria for all locales. Input values left blank, 0, or nil will return all values for the type. For more information about the search parameters, see the Card Search Guide (https://develop.battle.net/documentation/hearthstone/guides/card-search).

func (*Client) HSCardByIDOrSlug

func (c *Client) HSCardByIDOrSlug(ctx context.Context, idOrSlug string, gameMode hsgd.GameMode) (*hsgd.Card, *Header, error)

HSCardByIDOrSlug returns card by ID or slug. For more information about the search parameters, see the Card Search Guide (https://develop.battle.net/documentation/hearthstone/guides/card-search).

func (*Client) HSCardsSearch

func (c *Client) HSCardsSearch(ctx context.Context) (*hsgd.CardSearch, *Header, error)

HSCardsSearch returns an up-to-date list of all cards matching the search criteria. For more information about the search parameters, see the Card Search Guide (https://develop.battle.net/documentation/hearthstone/guides/card-search).

func (*Client) HSDeck

func (c *Client) HSDeck(ctx context.Context, deckCode string) (*hsgd.Deck, *Header, error)

HSDeck Finds a deck by its deck code. For more information, see the Hearthstone Guide.

func (*Client) HSDetailedCardsSearch

func (c *Client) HSDetailedCardsSearch(ctx context.Context, setSlug, classSlug, raritySlug, typeSlug, minionTypeSlug, keywordSlug, textFilter string,
	manaCost, attack, health []int, page, pageSize int,
	collectiblility hsgd.Collectibility, sort hsgd.Sort, order hsgd.Order) (*hsgd.CardSearch, *Header, error)

HSDetailedCardsSearch returns an up-to-date list of all cards matching the search criteria. Input values left blank, 0, or nil will return all values for the type. For more information about the search parameters, see the Card Search Guide (https://develop.battle.net/documentation/hearthstone/guides/card-search).

func (*Client) HSMetadata

func (c *Client) HSMetadata(ctx context.Context) (*hsgd.Metadata, *Header, error)

HSMetadata returns information about the categorization of cards. Metadata includes the card set, set group (for example, Standard or Year of the Dragon), rarity, class, card type, minion type, and keywords. For more information, see the Hearthstone Guide.

func (*Client) HSMetadataClasses

func (c *Client) HSMetadataClasses(ctx context.Context) (*[]hsgd.Class, *Header, error)

HSMetadataClasses returns information about class metadata. For more information, see the Hearthstone Guide.

func (*Client) HSMetadataKeywords

func (c *Client) HSMetadataKeywords(ctx context.Context) (*[]hsgd.Keyword, *Header, error)

HSMetadataKeywords returns information about keyword metadata. For more information, see the Hearthstone Guide.

func (*Client) HSMetadataMinionTypes

func (c *Client) HSMetadataMinionTypes(ctx context.Context) (*[]hsgd.MinionType, *Header, error)

HSMetadataMinionTypes returns information about minion type metadata. For more information, see the Hearthstone Guide.

func (*Client) HSMetadataRarities

func (c *Client) HSMetadataRarities(ctx context.Context) (*[]hsgd.Rarity, *Header, error)

HSMetadataRarities returns information about rarity metadata. For more information, see the Hearthstone Guide.

func (*Client) HSMetadataSetGroups

func (c *Client) HSMetadataSetGroups(ctx context.Context) (*[]hsgd.SetGroup, *Header, error)

HSMetadataSetGroups returns information about set group metadata. For more information, see the Hearthstone Guide.

func (*Client) HSMetadataSets

func (c *Client) HSMetadataSets(ctx context.Context) (*[]hsgd.Set, *Header, error)

HSMetadataSets returns information about set metadata. For more information, see the Hearthstone Guide.

func (*Client) HSMetadataTypes

func (c *Client) HSMetadataTypes(ctx context.Context) (*[]hsgd.Type, *Header, error)

HSMetadataTypes returns information about type metadata. For more information, see the Hearthstone Guide.

func (*Client) SC2LadderData

func (c *Client) SC2LadderData(ctx context.Context, ladderID int) (*sc2gd.Ladder, *Header, error)

SC2LadderData returns SC2 ladder for given division's ladderID. This API is undocumented by Blizzard, so it may be unstable.

func (*Client) SC2LadderGrandmaster

func (c *Client) SC2LadderGrandmaster(ctx context.Context, region Region) (*sc2c.LadderGrandmaster, *Header, error)

SC2LadderGrandmaster returns SC2 ladder grandmaster for current season

func (*Client) SC2LadderSeason

func (c *Client) SC2LadderSeason(ctx context.Context, region Region) (*sc2c.LadderSeason, *Header, error)

SC2LadderSeason returns SC2 ladder current season

func (*Client) SC2LeagueData

func (c *Client) SC2LeagueData(ctx context.Context, seasonID int,
	queueID sc2gd.QueueID, teamType sc2gd.TeamType, leagueID sc2gd.LeagueID) (*sc2gd.League, *Header, error)

SC2LeagueData returns all SC2 league data from for seasonID, queue ID, team type, and league ID

func (*Client) SC2LegacyAchievements

func (c *Client) SC2LegacyAchievements(ctx context.Context, region Region) (*sc2c.LegacyAchievements, *Header, error)

SC2LegacyAchievements returns SC2 legacy achievements for region

func (*Client) SC2LegacyLadder

func (c *Client) SC2LegacyLadder(ctx context.Context, region Region, ladderID int) (*sc2c.LegacyLadder, *Header, error)

SC2LegacyLadder returns SC2 legacy ladder data

func (*Client) SC2LegacyProfile

func (c *Client) SC2LegacyProfile(ctx context.Context, region Region, realmID, profileID int) (*sc2c.LegacyProfile, *Header, error)

SC2LegacyProfile returns all SC2 legacy profile data

func (*Client) SC2LegacyProfileLadders

func (c *Client) SC2LegacyProfileLadders(ctx context.Context, region Region, realmID, profileID int) (*sc2c.LegacyProfileLadders, *Header, error)

SC2LegacyProfileLadders returns all SC2 legacy profile ladder data

func (*Client) SC2LegacyProfileMatches

func (c *Client) SC2LegacyProfileMatches(ctx context.Context, region Region, realmID, profileID int) (*sc2c.LegacyProfileMatches, *Header, error)

SC2LegacyProfileMatches returns all SC2 legacy profile matches data

func (*Client) SC2LegacyRewards

func (c *Client) SC2LegacyRewards(ctx context.Context, region Region) (*sc2c.LegacyRewards, *Header, error)

SC2LegacyRewards returns SC2 legacy rewards for region

func (*Client) SC2MetadataProfile

func (c *Client) SC2MetadataProfile(ctx context.Context, region Region, realmID, profileID int) (*sc2c.MetadataProfile, *Header, error)

SC2MetadataProfile returns all SC2 profile metadata

func (*Client) SC2Player

func (c *Client) SC2Player(ctx context.Context, accountID int) (*sc2c.Player, *Header, error)

SC2Player returns data about player using account ID

func (*Client) SC2Profile

func (c *Client) SC2Profile(ctx context.Context, region Region, realmID, profileID int) (*sc2c.Profile, *Header, error)

SC2Profile returns all SC2 profile data

func (*Client) SC2ProfileLadder

func (c *Client) SC2ProfileLadder(ctx context.Context, region Region, realmID, profileID, ladderID int) (*sc2c.Ladder, *Header, error)

SC2ProfileLadder returns SC2 profile ladder data

func (*Client) SC2ProfileLadderSummary

func (c *Client) SC2ProfileLadderSummary(ctx context.Context, region Region, realmID, profileID int) (*sc2c.LadderSummary, *Header, error)

SC2ProfileLadderSummary returns SC2 profile ladder summary

func (*Client) SC2StaticProfile

func (c *Client) SC2StaticProfile(ctx context.Context, region Region) (*sc2c.StaticProfile, *Header, error)

SC2StaticProfile returns all static SC2 profile data (ctx context.Context, achievements, categories, criteria, and rewards)

func (*Client) SetRegionParameters

func (c *Client) SetRegionParameters(region Region, locale Locale) error

SetRegionParameters changes the Region parameters of the client

func (*Client) TokenValidation

func (c *Client) TokenValidation(ctx context.Context, token *oauth2.Token) (*oauth.TokenValidation, []byte, error)

TokenValidation verify that a given bearer token is valid and retrieve metadata about the token including the client_id used to create the token, expiration timestamp, and scopes granted to the token

func (*Client) UserInfoHeader

func (c *Client) UserInfoHeader(token *oauth2.Token) (*oauth.UserInfo, []byte, error)

UserInfoHeader returns basic information about the user associated with the current bearer token

func (*Client) WoWAccountProfileSummary

func (c *Client) WoWAccountProfileSummary(ctx context.Context, token *oauth2.Token) (*wowp.AccountProfileSummary, *Header, error)

WoWAccountProfileSummary Returns a profile summary for an account.

func (*Client) WoWAchievement

func (c *Client) WoWAchievement(ctx context.Context, achievementID int) (*wowgd.Achievement, *Header, error)

WoWAchievement returns an achievement category by ID.

func (*Client) WoWAchievementCategoriesIndex

func (c *Client) WoWAchievementCategoriesIndex(ctx context.Context) (*wowgd.AchievementCategoriesIndex, *Header, error)

WoWAchievementCategoriesIndex returns an index of achievement categories.

func (*Client) WoWAchievementCategory

func (c *Client) WoWAchievementCategory(ctx context.Context, achievementCategoryID int) (*wowgd.AchievementCategory, *Header, error)

WoWAchievementCategory returns an achievement category by ID.

func (*Client) WoWAchievementIndex

func (c *Client) WoWAchievementIndex(ctx context.Context) (*wowgd.AchievementIndex, *Header, error)

WoWAchievementIndex returns an index of achievements.

func (*Client) WoWAchievementMedia

func (c *Client) WoWAchievementMedia(ctx context.Context, achievementID int) (*wowgd.AchievementMedia, *Header, error)

WoWAchievementMedia returns media for an achievement by ID.

func (*Client) WoWAuctions

func (c *Client) WoWAuctions(ctx context.Context, connectedRealmID int) (*wowgd.AuctionHouse, *Header, error)

WoWAuctions returns all active auctions for a connected realm. See the Connected Realm API for information about retrieving a list of connected realm IDs. Auction house data updates at a set interval. The value was initially set at 1 hour; however, it might change over time without notice. Depending on the number of active auctions on the specified connected realm, the response from this endpoint may be rather large, sometimes exceeding 10 MB.

func (*Client) WoWAzeriteEssence

func (c *Client) WoWAzeriteEssence(ctx context.Context, azeriteEssenceID int) (*wowgd.AzeriteEssence, *Header, error)

WoWAzeriteEssence returns an azerite essence by ID.

func (*Client) WoWAzeriteEssenceIndex

func (c *Client) WoWAzeriteEssenceIndex(ctx context.Context) (*wowgd.AzeriteEssenceIndex, *Header, error)

WoWAzeriteEssenceIndex returns an index of azerite essences.

func (*Client) WoWAzeriteEssenceMedia

func (c *Client) WoWAzeriteEssenceMedia(ctx context.Context, azeriteEssenceID int) (*wowgd.AzeriteEssenceMedia, *Header, error)

WoWAzeriteEssenceMedia returns media for an azerite essence by ID.

func (*Client) WoWCharacterAchievementsStatistics

func (c *Client) WoWCharacterAchievementsStatistics(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterAchievementsStatistics, *Header, error)

WoWCharacterAchievementsStatistics returns a character's statistics as they pertain to achievements.

func (*Client) WoWCharacterAchievementsSummary

func (c *Client) WoWCharacterAchievementsSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterAchievementsSummary, *Header, error)

WoWCharacterAchievementsSummary returns a summary of the achievements a character has completed.

func (*Client) WoWCharacterAppearanceSummary

func (c *Client) WoWCharacterAppearanceSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterAppearanceSummary, *Header, error)

WoWCharacterAppearanceSummary returns a summary of a character's appearance settings.

func (*Client) WoWCharacterCollectionsIndex

func (c *Client) WoWCharacterCollectionsIndex(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterCollectionsIndex, *Header, error)

WoWCharacterCollectionsIndex returns an index of collection types for a character.

func (*Client) WoWCharacterCompletedQuests

func (c *Client) WoWCharacterCompletedQuests(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterCompletedQuests, *Header, error)

WoWCharacterCompletedQuests returns a list of quests that a character has completed.

func (*Client) WoWCharacterDungeons

func (c *Client) WoWCharacterDungeons(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterDungeons, *Header, error)

WoWCharacterDungeons returns a summary of a character's completed dungeons.

func (*Client) WoWCharacterEncountersSummary

func (c *Client) WoWCharacterEncountersSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterEncountersSummary, *Header, error)

WoWCharacterEncountersSummary returns a summary of a character's encounters.

func (*Client) WoWCharacterEquipmentSummary

func (c *Client) WoWCharacterEquipmentSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterEquipmentSummary, *Header, error)

WoWCharacterEquipmentSummary returns a summary of the items equipped by a character.

func (*Client) WoWCharacterHunterPetsSummary

func (c *Client) WoWCharacterHunterPetsSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterHunterPetsSummary, *Header, error)

WoWCharacterHunterPetsSummary if the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.

func (*Client) WoWCharacterMediaSummary

func (c *Client) WoWCharacterMediaSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterMediaSummary, *Header, error)

WoWCharacterMediaSummary returns a summary of the media assets available for a character (such as an avatar render).

func (*Client) WoWCharacterMountsCollectionSummary

func (c *Client) WoWCharacterMountsCollectionSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterMountsCollectionSummary, *Header, error)

WoWCharacterMountsCollectionSummary returns a summary of the mounts a character has obtained.

func (*Client) WoWCharacterMythicKeystoneProfile

func (c *Client) WoWCharacterMythicKeystoneProfile(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterMythicKeystoneProfile, *Header, error)

WoWCharacterMythicKeystoneProfile returns a Mythic Keystone Profile index for a character.

func (*Client) WoWCharacterMythicKeystoneProfileSeason

func (c *Client) WoWCharacterMythicKeystoneProfileSeason(ctx context.Context, realmSlug, characterName string,
	seasonID int) (*wowp.CharacterMythicKeystoneProfileSeason, *Header, error)

WoWCharacterMythicKeystoneProfileSeason returns a Mythic Keystone Profile index for a character. Note: this request returns a 404 for characters that have not completed a Mythic Keystone dungeon.

func (*Client) WoWCharacterPetsCollectionSummary

func (c *Client) WoWCharacterPetsCollectionSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterPetsCollectionSummary, *Header, error)

WoWCharacterPetsCollectionSummary returns a summary of the mounts a character has obtained.

func (*Client) WoWCharacterProfessionsSummary

func (c *Client) WoWCharacterProfessionsSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterProfessionsSummary, *Header, error)

WoWCharacterProfessionsSummary returns a summary of professions for a character.

func (*Client) WoWCharacterProfileStatus

func (c *Client) WoWCharacterProfileStatus(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterProfileStatus, *Header, error)

WoWCharacterProfileStatus returns the status and a unique ID for a character. A client should delete information about a character from their application if any of the following conditions occur: * an HTTP 404 Not Found error is returned * the is_valid value is false * the returned character ID doesn't match the previously recorded value for the character The following example illustrates how to use this endpoint: 1. A client requests and stores information about a character, including its unique character ID and the timestamp of the request. 2. After 30 days, the client makes a request to the status endpoint to verify if the character information is still valid. 3. If character cannot be found, is not valid, or the characters IDs do not match, the client removes the information from their application. 4. If the character is valid and the character IDs match, the client retains the data for another 30 days.

func (*Client) WoWCharacterProfileSummary

func (c *Client) WoWCharacterProfileSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterProfileSummary, *Header, error)

WoWCharacterProfileSummary returns a profile summary for a character.

func (*Client) WoWCharacterPvPBracketStatistics

func (c *Client) WoWCharacterPvPBracketStatistics(ctx context.Context,
	realmSlug, characterName string, pvpBracket wowp.Bracket) (*wowp.CharacterPvPBracketStatistics, *Header, error)

WoWCharacterPvPBracketStatistics returns the PvP bracket statistics for a character.

func (*Client) WoWCharacterPvPSummary

func (c *Client) WoWCharacterPvPSummary(ctx context.Context, realmSlug, characterName string) (*wowp.CharacterPvPSummary, *Header, error)

WoWCharacterPvPSummary returns a PvP summary for a character.

func (*Client) WoWCharacterQuests

func (c *Client) WoWCharacterQuests(ctx context.Context, realmSlug, characterName string) (*wowp.CharacterQuests, *Header, error)

WoWCharacterQuests returns a character's active quests as well as a link to the character's completed quests.

func (*Client) WoWCharacterRaids

func (c *Client) WoWCharacterRaids(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterRaids, *Header, error)

WoWCharacterRaids returns a summary of a character's completed raids.

func (*Client) WoWCharacterReputationsSummary

func (c *Client) WoWCharacterReputationsSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterReputationsSummary, *Header, error)

WoWCharacterReputationsSummary returns a summary of a character's reputations.

func (*Client) WoWCharacterSoulbinds

func (c *Client) WoWCharacterSoulbinds(ctx context.Context, realmSlug,
	characterName string) (*wowp.CharacterSoulbinds, *Header, error)

WoWCharacterSoulbinds returns a character's soulbinds.

func (*Client) WoWCharacterSpecializationsSummary

func (c *Client) WoWCharacterSpecializationsSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterSpecializationsSummary, *Header, error)

WoWCharacterSpecializationsSummary returns a summary of a character's specializations.

func (*Client) WoWCharacterStatisticsSummary

func (c *Client) WoWCharacterStatisticsSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterStatisticsSummary, *Header, error)

WoWCharacterStatisticsSummary returns a statistics summary for a character.

func (*Client) WoWCharacterTitlesSummary

func (c *Client) WoWCharacterTitlesSummary(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterTitlesSummary, *Header, error)

WoWCharacterTitlesSummary returns a summary of titles a character has obtained.

func (*Client) WoWConnectedRealm

func (c *Client) WoWConnectedRealm(ctx context.Context, connectedRealmID int) (*wowgd.ConnectedRealm, *Header, error)

WoWConnectedRealm returns a single connected realm by ID

func (*Client) WoWConnectedRealmSearch

func (c *Client) WoWConnectedRealmSearch(ctx context.Context, opts ...wowsearch.Opt) (*wowgd.ConnectedRealmsSearch, *Header, error)

WoWConnectedRealmSearch searches for connected realms

func (*Client) WoWConnectedRealmsIndex

func (c *Client) WoWConnectedRealmsIndex(ctx context.Context) (*wowgd.ConnectedRealmsIndex, *Header, error)

WoWConnectedRealmsIndex returns an index of connected realms

func (*Client) WoWCovenant

func (c *Client) WoWCovenant(ctx context.Context, covenantID int) (*wowgd.Covenant, *Header, error)

WoWCovenant returns a covenant by ID.

func (*Client) WoWCovenantConduit

func (c *Client) WoWCovenantConduit(ctx context.Context, conduitID int) (*wowgd.CovenantConduit, *Header, error)

WoWCovenantConduit returns a conduit by ID.

func (*Client) WoWCovenantConduitsIndex

func (c *Client) WoWCovenantConduitsIndex(ctx context.Context) (*wowgd.CovenantConduitsIndex, *Header, error)

WoWCovenantConduitsIndex returns an index of conduits.

func (*Client) WoWCovenantMedia

func (c *Client) WoWCovenantMedia(ctx context.Context, covenantID int) (*wowgd.CovenantMedia, *Header, error)

WoWCovenantMedia returns media for a covenant by ID.

func (*Client) WoWCovenantSoulbind

func (c *Client) WoWCovenantSoulbind(ctx context.Context, soulbindID int) (*wowgd.CovenantSoulbind, *Header, error)

WoWCovenantSoulbind returns a soulbind by ID.

func (*Client) WoWCovenantSoulbindsIndex

func (c *Client) WoWCovenantSoulbindsIndex(ctx context.Context) (*wowgd.CovenantSoulbindsIndex, *Header, error)

WoWCovenantSoulbindsIndex returns an index of soulbinds.

func (*Client) WoWCovenantsIndex

func (c *Client) WoWCovenantsIndex(ctx context.Context) (*wowgd.CovenantsIndex, *Header, error)

WoWCovenantsIndex returns an index of covenants.

func (*Client) WoWCreature

func (c *Client) WoWCreature(ctx context.Context, creatureID int) (*wowgd.Creature, *Header, error)

WoWCreature returns a creature type by ID.

func (*Client) WoWCreatureDisplayMedia

func (c *Client) WoWCreatureDisplayMedia(ctx context.Context, creatureDisplayID int) (*wowgd.CreatureDisplayMedia, *Header, error)

WoWCreatureDisplayMedia returns media for a creature display by ID.

func (*Client) WoWCreatureFamiliesIndex

func (c *Client) WoWCreatureFamiliesIndex(ctx context.Context) (*wowgd.CreatureFamiliesIndex, *Header, error)

WoWCreatureFamiliesIndex returns an index of creature families.

func (*Client) WoWCreatureFamily

func (c *Client) WoWCreatureFamily(ctx context.Context, creatureFamilyID int) (*wowgd.CreatureFamily, *Header, error)

WoWCreatureFamily returns a creature family by ID.

func (*Client) WoWCreatureFamilyMedia

func (c *Client) WoWCreatureFamilyMedia(ctx context.Context, creatureFamilyID int) (*wowgd.CreatureFamilyMedia, *Header, error)

WoWCreatureFamilyMedia returns media for a creature family by ID.

func (*Client) WoWCreatureType

func (c *Client) WoWCreatureType(ctx context.Context, creatureTypeID int) (*wowgd.CreatureType, *Header, error)

WoWCreatureType returns a creature type by ID.

func (*Client) WoWCreatureTypesIndex

func (c *Client) WoWCreatureTypesIndex(ctx context.Context) (*wowgd.CreatureTypesIndex, *Header, error)

WoWCreatureTypesIndex returns an index of creature types.

func (*Client) WoWGuild

func (c *Client) WoWGuild(ctx context.Context, realmSlug, nameSlug string) (*wowp.Guild, *Header, error)

WoWGuild returns a single guild by its name and realm.

func (*Client) WoWGuildAchievements

func (c *Client) WoWGuildAchievements(ctx context.Context, realmSlug, nameSlug string) (*wowp.GuildAchievements, *Header, error)

WoWGuildAchievements returns a single guild's achievements by name and realm.

func (*Client) WoWGuildActivity

func (c *Client) WoWGuildActivity(ctx context.Context, realmSlug, nameSlug string) (*wowp.GuildActivity, *Header, error)

WoWGuildActivity returns a single guild's activity by name and realm.

func (*Client) WoWGuildCrestBorderMedia

func (c *Client) WoWGuildCrestBorderMedia(ctx context.Context, borderID int) (*wowgd.GuildCrestBorderMedia, *Header, error)

WoWGuildCrestBorderMedia returns media for a guild crest border by ID.

func (*Client) WoWGuildCrestComponentsIndex

func (c *Client) WoWGuildCrestComponentsIndex(ctx context.Context) (*wowgd.GuildCrestComponentsIndex, *Header, error)

WoWGuildCrestComponentsIndex returns an index of guild crest media.

func (*Client) WoWGuildCrestEmblemMedia

func (c *Client) WoWGuildCrestEmblemMedia(ctx context.Context, emblemID int) (*wowgd.GuildCrestEmblemMedia, *Header, error)

WoWGuildCrestEmblemMedia returns media for a guild crest emblem by ID.

func (*Client) WoWGuildRoster

func (c *Client) WoWGuildRoster(ctx context.Context, realmSlug, nameSlug string) (*wowp.GuildRoster, *Header, error)

WoWGuildRoster returns a single guild's roster by its name and realm.

func (*Client) WoWItem

func (c *Client) WoWItem(ctx context.Context, itemID int) (*wowgd.Item, *Header, error)

WoWItem returns an item by ID.

func (*Client) WoWItemClass

func (c *Client) WoWItemClass(ctx context.Context, itemClassID int) (*wowgd.ItemClass, *Header, error)

WoWItemClass returns an item class by ID.

func (*Client) WoWItemClassesIndex

func (c *Client) WoWItemClassesIndex(ctx context.Context) (*wowgd.ItemClassesIndex, *Header, error)

WoWItemClassesIndex returns an index of item classes.

func (*Client) WoWItemMedia

func (c *Client) WoWItemMedia(ctx context.Context, itemID int) (*wowgd.ItemMedia, *Header, error)

WoWItemMedia returns media for an item by ID.

func (*Client) WoWItemSet

func (c *Client) WoWItemSet(ctx context.Context, itemSetID int) (*wowgd.ItemSet, *Header, error)

WoWItemSet returns an item set by ID.

func (*Client) WoWItemSetsIndex

func (c *Client) WoWItemSetsIndex(ctx context.Context) (*wowgd.ItemSetsIndex, *Header, error)

WoWItemSetsIndex returns an index of item sets.

func (*Client) WoWItemSubclass

func (c *Client) WoWItemSubclass(ctx context.Context, itemClassID, itemSubclassID int) (*wowgd.ItemSubclass, *Header, error)

WoWItemSubclass returns an item subclass by ID.

func (*Client) WoWJournalEncounter

func (c *Client) WoWJournalEncounter(ctx context.Context, journalEncounterID int) (*wowgd.JournalEncounter, *Header, error)

WoWJournalEncounter returns a journal expansion by ID.

func (*Client) WoWJournalEncountersIndex

func (c *Client) WoWJournalEncountersIndex(ctx context.Context) (*wowgd.JournalEncountersIndex, *Header, error)

WoWJournalEncountersIndex returns an index of journal encounters.

func (*Client) WoWJournalExpansion

func (c *Client) WoWJournalExpansion(ctx context.Context, journalExpansionID int) (*wowgd.JournalExpansion, *Header, error)

WoWJournalExpansion returns a journal expansion by ID.

func (*Client) WoWJournalExpansionsIndex

func (c *Client) WoWJournalExpansionsIndex(ctx context.Context) (*wowgd.JournalExpansionsIndex, *Header, error)

WoWJournalExpansionsIndex returns an index of journal expansions.

func (*Client) WoWJournalInstance

func (c *Client) WoWJournalInstance(ctx context.Context, journalInstanceID int) (*wowgd.JournalInstance, *Header, error)

WoWJournalInstance returns a journal instance.

func (*Client) WoWJournalInstanceMedia

func (c *Client) WoWJournalInstanceMedia(ctx context.Context, journalInstanceID int) (*wowgd.JournalInstanceMedia, *Header, error)

WoWJournalInstanceMedia returns media for a journal instance by ID.

func (*Client) WoWJournalInstancesIndex

func (c *Client) WoWJournalInstancesIndex(ctx context.Context) (*wowgd.JournalInstancesIndex, *Header, error)

WoWJournalInstancesIndex returns an index of journal instances.

func (*Client) WoWModifiedCraftingCategory

func (c *Client) WoWModifiedCraftingCategory(ctx context.Context, categoryID int) (*wowgd.ModifiedCraftingCategory, *Header, error)

WoWModifiedCraftingCategory returns a Modified Crafting category by ID.

func (*Client) WoWModifiedCraftingCategoryIndex

func (c *Client) WoWModifiedCraftingCategoryIndex(ctx context.Context) (*wowgd.ModifiedCraftingCategoryIndex, *Header, error)

WoWModifiedCraftingCategoryIndex returns the index of Modified Crafting categories.

func (*Client) WoWModifiedCraftingIndex

func (c *Client) WoWModifiedCraftingIndex(ctx context.Context) (*wowgd.ModifiedCraftingIndex, *Header, error)

WoWModifiedCraftingIndex returns the parent index for Modified Crafting.

func (*Client) WoWModifiedCraftingReagentSlotType

func (c *Client) WoWModifiedCraftingReagentSlotType(ctx context.Context,
	slotTypeID int) (*wowgd.ModifiedCraftingReagentSlotType, *Header, error)

WoWModifiedCraftingReagentSlotType returns a Modified Crafting reagent slot type by ID.

func (*Client) WoWModifiedCraftingReagentSlotTypeIndex

func (c *Client) WoWModifiedCraftingReagentSlotTypeIndex(ctx context.Context) (*wowgd.ModifiedCraftingReagentSlotTypeIndex, *Header, error)

WoWModifiedCraftingReagentSlotTypeIndex returns the index of Modified Crafting reagent slot types.

func (*Client) WoWMount

func (c *Client) WoWMount(ctx context.Context, mountID int) (*wowgd.Mount, *Header, error)

WoWMount returns a mount by ID.

func (*Client) WoWMountIndex

func (c *Client) WoWMountIndex(ctx context.Context) (*wowgd.MountIndex, *Header, error)

WoWMountIndex returns an index of mounts.

func (*Client) WoWMythicKeystoneAffix

func (c *Client) WoWMythicKeystoneAffix(ctx context.Context, keystoneAffixID int) (*wowgd.MythicKeystoneAffix, *Header, error)

WoWMythicKeystoneAffix returns a single connected realm by ID

func (*Client) WoWMythicKeystoneAffixIndex

func (c *Client) WoWMythicKeystoneAffixIndex(ctx context.Context) (*wowgd.MythicKeystoneAffixIndex, *Header, error)

WoWMythicKeystoneAffixIndex returns an index of Keystone affixes

func (*Client) WoWMythicKeystoneAffixMedia

func (c *Client) WoWMythicKeystoneAffixMedia(ctx context.Context, keystoneAffixID int) (*wowgd.MythicKeystoneAffixMedia, *Header, error)

WoWMythicKeystoneAffixMedia returns media for a mythic keystone affix by ID.

func (*Client) WoWMythicKeystoneDungeon

func (c *Client) WoWMythicKeystoneDungeon(ctx context.Context, dungeonID int) (*wowgd.MythicKeystoneDungeon, *Header, error)

WoWMythicKeystoneDungeon returns a Mythic Keystone dungeon by ID

func (*Client) WoWMythicKeystoneDungeonIndex

func (c *Client) WoWMythicKeystoneDungeonIndex(ctx context.Context) (*wowgd.MythicKeystoneDungeonIndex, *Header, error)

WoWMythicKeystoneDungeonIndex returns an index of Mythic Keystone dungeons

func (*Client) WoWMythicKeystoneIndex

func (c *Client) WoWMythicKeystoneIndex(ctx context.Context) (*wowgd.MythicKeystoneIndex, *Header, error)

WoWMythicKeystoneIndex returns n index of links to other documents related to Mythic Keystone dungeons

func (*Client) WoWMythicKeystoneLeaderboard

func (c *Client) WoWMythicKeystoneLeaderboard(ctx context.Context,
	connectedRealmID, dungeonID, period int) (*wowgd.MythicKeystoneLeaderboard, *Header, error)

WoWMythicKeystoneLeaderboard returns a weekly Mythic Keystone Leaderboard by period

func (*Client) WoWMythicKeystoneLeaderboardIndex

func (c *Client) WoWMythicKeystoneLeaderboardIndex(ctx context.Context,
	connectedRealmID int) (*wowgd.MythicKeystoneLeaderboardIndex, *Header, error)

WoWMythicKeystoneLeaderboardIndex returns an index of Mythic Keystone Leaderboard dungeon instances for a connected realm

func (*Client) WoWMythicKeystonePeriod

func (c *Client) WoWMythicKeystonePeriod(ctx context.Context, periodID int) (*wowgd.MythicKeystonePeriod, *Header, error)

WoWMythicKeystonePeriod returns a Mythic Keystone period by ID

func (*Client) WoWMythicKeystonePeriodIndex

func (c *Client) WoWMythicKeystonePeriodIndex(ctx context.Context) (*wowgd.MythicKeystonePeriodIndex, *Header, error)

WoWMythicKeystonePeriodIndex returns an index of Mythic Keystone periods

func (*Client) WoWMythicKeystoneProfileIndex

func (c *Client) WoWMythicKeystoneProfileIndex(ctx context.Context,
	realmSlug, characterName string) (*wowp.CharacterMythicKeystoneProfile, *Header, error)

WoWMythicKeystoneProfileIndex returns the Mythic Keystone season details for a character. Returns a 404 Not Found for characters that have not yet completed a Mythic Keystone dungeon for the specified season.

func (*Client) WoWMythicKeystoneSeason

func (c *Client) WoWMythicKeystoneSeason(ctx context.Context, seasonID int) (*wowgd.MythicKeystoneSeason, *Header, error)

WoWMythicKeystoneSeason returns a Mythic Keystone season by ID

func (*Client) WoWMythicKeystoneSeasonDetails

func (c *Client) WoWMythicKeystoneSeasonDetails(ctx context.Context, realmSlug, characterName string,
	seasonID int) (*wowp.CharacterMythicKeystoneProfileSeason, *Header, error)

WoWMythicKeystoneSeasonDetails returns a summary of the media assets available for a character (such as an avatar render).

func (*Client) WoWMythicKeystoneSeasonIndex

func (c *Client) WoWMythicKeystoneSeasonIndex(ctx context.Context) (*wowgd.MythicKeystoneSeasonIndex, *Header, error)

WoWMythicKeystoneSeasonIndex returns an index of Mythic Keystone seasons

func (*Client) WoWMythicRaidLeaderboard

func (c *Client) WoWMythicRaidLeaderboard(ctx context.Context, raid, faction string) (*wowgd.MythicRaidLeaderboard, *Header, error)

WoWMythicRaidLeaderboard returns the leaderboard for a given raid and faction

func (*Client) WoWPet

func (c *Client) WoWPet(ctx context.Context, petID int) (*wowgd.Pet, *Header, error)

WoWPet returns a pet by ID.

func (*Client) WoWPetAbility

func (c *Client) WoWPetAbility(ctx context.Context, petAbilityID int) (*wowgd.PetAbility, *Header, error)

WoWPetAbility returns a pet ability by ID.

func (*Client) WoWPetAbilityIndex

func (c *Client) WoWPetAbilityIndex(ctx context.Context) (*wowgd.PetAbilityIndex, *Header, error)

WoWPetAbilityIndex returns an index of pet abilities.

func (*Client) WoWPetAbilityMedia

func (c *Client) WoWPetAbilityMedia(ctx context.Context, petAbilityID int) (*wowgd.PetMedia, *Header, error)

WoWPetAbilityMedia returns media information for a pet ID.

func (*Client) WoWPetIndex

func (c *Client) WoWPetIndex(ctx context.Context) (*wowgd.PetIndex, *Header, error)

WoWPetIndex returns an index of pets.

func (*Client) WoWPetMedia

func (c *Client) WoWPetMedia(ctx context.Context, petID int) (*wowgd.PetMedia, *Header, error)

WoWPetMedia returns media information for a pet ID.

func (*Client) WoWPlayableClass

func (c *Client) WoWPlayableClass(ctx context.Context, classID int) (*wowgd.PlayableClass, *Header, error)

WoWPlayableClass returns a playable class by ID

func (*Client) WoWPlayableClassMedia

func (c *Client) WoWPlayableClassMedia(ctx context.Context, classID int) (*wowgd.PlayableClassMedia, *Header, error)

WoWPlayableClassMedia returns media for a playable class by ID.

func (*Client) WoWPlayableClassPvPTalentSlots

func (c *Client) WoWPlayableClassPvPTalentSlots(ctx context.Context, classID int) (*wowgd.PlayableClassPvPTalentSlots, *Header, error)

WoWPlayableClassPvPTalentSlots returns the PvP talent slots for a playable class by ID

func (*Client) WoWPlayableClassesIndex

func (c *Client) WoWPlayableClassesIndex(ctx context.Context) (*wowgd.PlayableClassesIndex, *Header, error)

WoWPlayableClassesIndex returns an index of playable classes

func (*Client) WoWPlayableRace

func (c *Client) WoWPlayableRace(ctx context.Context, raceID int) (*wowgd.PlayableRace, *Header, error)

WoWPlayableRace returns a race by ID.

func (*Client) WoWPlayableRacesIndex

func (c *Client) WoWPlayableRacesIndex(ctx context.Context) (*wowgd.PlayableRacesIndex, *Header, error)

WoWPlayableRacesIndex returns an index of races.

func (*Client) WoWPlayableSpecialization

func (c *Client) WoWPlayableSpecialization(ctx context.Context, specID int) (*wowgd.PlayableSpecialization, *Header, error)

WoWPlayableSpecialization returns a playable specialization by ID.

func (*Client) WoWPlayableSpecializationIndex

func (c *Client) WoWPlayableSpecializationIndex(ctx context.Context) (*wowgd.PlayableSpecializationIndex, *Header, error)

WoWPlayableSpecializationIndex returns an index of playable specializations.

func (*Client) WoWPlayableSpecializationMedia

func (c *Client) WoWPlayableSpecializationMedia(ctx context.Context, specID int) (*wowgd.PlayableSpecializationMedia, *Header, error)

WoWPlayableSpecializationMedia returns media for a playable specialization by ID.

func (*Client) WoWPowerType

func (c *Client) WoWPowerType(ctx context.Context, powerTypeID int) (*wowgd.PowerType, *Header, error)

WoWPowerType returns a power type by ID.

func (*Client) WoWPowerTypesIndex

func (c *Client) WoWPowerTypesIndex(ctx context.Context) (*wowgd.PowerTypesIndex, *Header, error)

WoWPowerTypesIndex returns an index of power types.

func (*Client) WoWProfession

func (c *Client) WoWProfession(ctx context.Context, professionID int) (*wowgd.Profession, *Header, error)

WoWProfession returns a profession by ID.

func (*Client) WoWProfessionMedia

func (c *Client) WoWProfessionMedia(ctx context.Context, professionID int) (*wowgd.ProfessionMedia, *Header, error)

WoWProfessionMedia returns media for a profession by ID.

func (*Client) WoWProfessionSkillTier

func (c *Client) WoWProfessionSkillTier(ctx context.Context, professionID, skillTierID int) (*wowgd.ProfessionSkillTier, *Header, error)

WoWProfessionSkillTier returns a skill tier for a profession by ID.

func (*Client) WoWProfessionsIndex

func (c *Client) WoWProfessionsIndex(ctx context.Context) (*wowgd.ProfessionsIndex, *Header, error)

WoWProfessionsIndex returns an index of professions.

func (*Client) WoWPvPLeaderboard

func (c *Client) WoWPvPLeaderboard(ctx context.Context, pvpSeasonID int, pvpBracket wowgd.Bracket) (*wowgd.PvPLeaderboard, *Header, error)

WoWPvPLeaderboard returns the PvP leaderboard of a specific PvP bracket for a PvP season.

func (*Client) WoWPvPLeaderboardsIndex

func (c *Client) WoWPvPLeaderboardsIndex(ctx context.Context, pvpSeasonID int) (*wowgd.PvPLeaderboardsIndex, *Header, error)

WoWPvPLeaderboardsIndex returns an index of PvP leaderboards for a PvP season.

func (*Client) WoWPvPRewardsIndex

func (c *Client) WoWPvPRewardsIndex(ctx context.Context, pvpSeasonID int) (*wowgd.PvPRewardsIndex, *Header, error)

WoWPvPRewardsIndex returns an index of PvP rewards for a PvP season.

func (*Client) WoWPvPSeason

func (c *Client) WoWPvPSeason(ctx context.Context, pvpSeasonID int) (*wowgd.PvPSeason, *Header, error)

WoWPvPSeason returns a PvP season by ID.

func (*Client) WoWPvPSeasonIndex

func (c *Client) WoWPvPSeasonIndex(ctx context.Context) (*wowgd.PvPSeasonIndex, *Header, error)

WoWPvPSeasonIndex returns an index of PvP seasons.

func (*Client) WoWPvPTalent

func (c *Client) WoWPvPTalent(ctx context.Context, pvpTalentID int) (*wowgd.PvPTalent, *Header, error)

WoWPvPTalent returns a PvP talent by ID.

func (*Client) WoWPvPTalentsIndex

func (c *Client) WoWPvPTalentsIndex(ctx context.Context) (*wowgd.PvPTalentsIndex, *Header, error)

WoWPvPTalentsIndex returns an index of PvP talents.

func (*Client) WoWPvPTier

func (c *Client) WoWPvPTier(ctx context.Context, pvpTierID int) (*wowgd.PvPTier, *Header, error)

WoWPvPTier returns a PvP tier by ID.

func (*Client) WoWPvPTierMedia

func (c *Client) WoWPvPTierMedia(ctx context.Context, pvpTierID int) (*wowgd.PvPTierMedia, *Header, error)

WoWPvPTierMedia returns media for a PvP tier by ID.

func (*Client) WoWPvPTiersIndex

func (c *Client) WoWPvPTiersIndex(ctx context.Context) (*wowgd.PvPTiersIndex, *Header, error)

WoWPvPTiersIndex returns an index of PvP tiers.

func (*Client) WoWQuest

func (c *Client) WoWQuest(ctx context.Context, questID int) (*wowgd.Quest, *Header, error)

WoWQuest returns a quest by ID.

func (*Client) WoWQuestArea

func (c *Client) WoWQuestArea(ctx context.Context, questAreaID int) (*wowgd.QuestArea, *Header, error)

WoWQuestArea returns a quest area by ID.

func (*Client) WoWQuestAreasIndex

func (c *Client) WoWQuestAreasIndex(ctx context.Context) (*wowgd.QuestAreasIndex, *Header, error)

WoWQuestAreasIndex returns an index of quest areas.

func (*Client) WoWQuestCategoriesIndex

func (c *Client) WoWQuestCategoriesIndex(ctx context.Context) (*wowgd.QuestCategoriesIndex, *Header, error)

WoWQuestCategoriesIndex returns an index of quest categories (such as quests for a specific class, profession, or storyline).

func (*Client) WoWQuestCategory

func (c *Client) WoWQuestCategory(ctx context.Context, questCategoryID int) (*wowgd.QuestCategory, *Header, error)

WoWQuestCategory returns a quest category by ID.

func (*Client) WoWQuestType

func (c *Client) WoWQuestType(ctx context.Context, questTypeID int) (*wowgd.QuestType, *Header, error)

WoWQuestType returns a quest type by ID.

func (*Client) WoWQuestTypesIndex

func (c *Client) WoWQuestTypesIndex(ctx context.Context) (*wowgd.QuestTypesIndex, *Header, error)

WoWQuestTypesIndex returns an index of quest types (such as PvP quests, raid quests, or account quests).

func (*Client) WoWQuestsIndex

func (c *Client) WoWQuestsIndex(ctx context.Context) (*wowgd.QuestsIndex, *Header, error)

WoWQuestsIndex returns the parent index for quests.

func (*Client) WoWRealm

func (c *Client) WoWRealm(ctx context.Context, realmSlug string) (*wowgd.Realm, *Header, error)

WoWRealm returns a single realm by slug or ID.

func (*Client) WoWRealmIndex

func (c *Client) WoWRealmIndex(ctx context.Context) (*wowgd.RealmIndex, *Header, error)

WoWRealmIndex returns an index of realms.

func (*Client) WoWRealmSearch

func (c *Client) WoWRealmSearch(ctx context.Context, opts ...wowsearch.Opt) (*wowgd.RealmSearch, *Header, error)

WoWRealmSearch searches for realms

func (*Client) WoWRecipe

func (c *Client) WoWRecipe(ctx context.Context, recipeID int) (*wowgd.Recipe, *Header, error)

WoWRecipe returns a recipe by ID.

func (*Client) WoWRecipeMedia

func (c *Client) WoWRecipeMedia(ctx context.Context, recipeID int) (*wowgd.RecipeMedia, *Header, error)

WoWRecipeMedia returns media for a recipe by ID.

func (*Client) WoWRegion

func (c *Client) WoWRegion(ctx context.Context, regionID int) (*wowgd.Region, *Header, error)

WoWRegion returns a single region by ID.

func (*Client) WoWRegionIndex

func (c *Client) WoWRegionIndex(ctx context.Context) (*wowgd.RegionIndex, *Header, error)

WoWRegionIndex returns an index of regions.

func (*Client) WoWReputationFaction

func (c *Client) WoWReputationFaction(ctx context.Context, reputationFactionID int) (*wowgd.ReputationFaction, *Header, error)

WoWReputationFaction returns a single reputation faction by ID.

func (*Client) WoWReputationFactionsIndex

func (c *Client) WoWReputationFactionsIndex(ctx context.Context) (*wowgd.ReputationFactionsIndex, *Header, error)

WoWReputationFactionsIndex returns an index of reputation factions.

func (*Client) WoWReputationTiers

func (c *Client) WoWReputationTiers(ctx context.Context, reputationTiersID int) (*wowgd.ReputationTiers, *Header, error)

WoWReputationTiers returns a single set of reputation tiers by ID.

func (*Client) WoWReputationTiersIndex

func (c *Client) WoWReputationTiersIndex(ctx context.Context) (*wowgd.ReputationTiersIndex, *Header, error)

WoWReputationTiersIndex returns an index of reputation tiers.

func (*Client) WoWSpell

func (c *Client) WoWSpell(ctx context.Context, spellID int) (*wowgd.Spell, *Header, error)

WoWSpell returns a spell by ID.

func (*Client) WoWSpellMedia

func (c *Client) WoWSpellMedia(ctx context.Context, spellID int) (*wowgd.SpellMedia, *Header, error)

WoWSpellMedia returns media for a spell by ID.

func (*Client) WoWTalent

func (c *Client) WoWTalent(ctx context.Context, talentID int) (*wowgd.Talent, *Header, error)

WoWTalent returns a talent by ID.

func (*Client) WoWTalentsIndex

func (c *Client) WoWTalentsIndex(ctx context.Context) (*wowgd.TalentsIndex, *Header, error)

WoWTalentsIndex returns an index of talents.

func (*Client) WoWTechTalent

func (c *Client) WoWTechTalent(ctx context.Context, techTalentID int) (*wowgd.TechTalent, *Header, error)

WoWTechTalent returns a tech talent by ID.

func (*Client) WoWTechTalentIndex

func (c *Client) WoWTechTalentIndex(ctx context.Context) (*wowgd.TechTalentIndex, *Header, error)

WoWTechTalentIndex returns an index of tech talents.

func (*Client) WoWTechTalentMedia

func (c *Client) WoWTechTalentMedia(ctx context.Context, techTalentID int) (*wowgd.TechTalentMedia, *Header, error)

WoWTechTalentMedia returns media for a tech talent by ID.

func (*Client) WoWTechTalentTree

func (c *Client) WoWTechTalentTree(ctx context.Context, techTalentTreeID int) (*wowgd.TechTalentTree, *Header, error)

WoWTechTalentTree returns a tech talent tree by ID.

func (*Client) WoWTechTalentTreeIndex

func (c *Client) WoWTechTalentTreeIndex(ctx context.Context) (*wowgd.TechTalentTreeIndex, *Header, error)

WoWTechTalentTreeIndex returns an index of tech talent trees.

func (*Client) WoWTitle

func (c *Client) WoWTitle(ctx context.Context, titleID int) (*wowgd.Title, *Header, error)

WoWTitle returns a title by ID.

func (*Client) WoWTitlesIndex

func (c *Client) WoWTitlesIndex(ctx context.Context) (*wowgd.TitlesIndex, *Header, error)

WoWTitlesIndex returns an index of titles.

func (*Client) WoWToken

func (c *Client) WoWToken(ctx context.Context) (*wowgd.Token, *Header, error)

WoWToken returns the WoW Token index

type Config

type Config struct {
	// ClientID is the client ID value from a Blizzard developer
	// account.
	ClientID string `validate:"required"`

	// ClientSecret is the client secret value from a Blizzard
	// developer account.
	ClientSecret string `validate:"required"`

	// HTTP client used for Blizzard API calls.
	HTTPClient *http.Client `validate:"required"`

	// Region - API data is limited to specific regions. For example,
	// US APIs accessed through us.battle.net only contain data from
	// US battlegroups and realms. Locale support is limited to
	// locations supported on Blizzard community game sites.
	// Game information is different from region to region. For
	// example, a user that has both US and EU WoW accounts has
	// different characters, achievements, and other information
	// in each region. Likewise, a D3 user who has a single license
	// for D3 on their account has a different character list for
	// each region in which the game operates.
	Region Region `validate:"required"`

	// Locale - All available API resources provide localized strings
	// using the locale query string parameter. Supported locales vary
	// from region to region and align with those supported on Blizzard
	// community sites.
	Locale Locale `validate:"required"`
}

Config contains values for Blizzard client creation

type Header struct {
	BattlenetNamespace      string    `json:"Battlenet-Namespace"`
	BattlenetSchema         string    `json:"Battlenet-Schema"`
	BattlenetSchemaRevision string    `json:"Battlenet-Schema-Revision"`
	CacheControl            string    `json:"Cache-Control"`
	Connection              string    `json:"Connection"`
	ContentType             string    `json:"Content-Type"`
	Date                    time.Time `json:"Date"`
	LastModified            time.Time `json:"Last-Modified"`
	Server                  string    `json:"Server"`
	Vary                    string    `json:"Vary"`
	XContentTypeOptions     string    `json:"X-Content-Type-Options"`
	XFrameOptions           string    `json:"X-Frame-Options"`
	XTraceSpanID            string    `json:"X-Trace-Spanid"`
	XTraceParentSpanID      string    `json:"X-Trace-Parentspanid"`
	XTraceTraceID           string    `json:"X-Trace-Traceid"`
}

Header structure

type Locale

type Locale string

Locale generic locale string

func (Locale) String

func (locale Locale) String() string

type OAuth

type OAuth struct {
	ClientID     string
	ClientSecret string
	Token        *oauth2.Token
}

OAuth credentials and access token to access Blizzard API

type Region

type Region int

Region type

const (
	US Region
	EU
	KR
	TW
	CN
)

Region constants (1=US, 2=EU, 3=KO and TW, 5=CN) DO NOT REARRANGE

func (Region) String

func (region Region) String() string

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL