Documentation
¶
Index ¶
- type Achievements
- type AchievementsStatistics
- type Appearance
- type BlizzardAPIBearerToken
- type Character
- type CharacterMedia
- type CharacterStatus
- type Collections
- type CollectionsHeirlooms
- type CollectionsMounts
- type CollectionsPets
- type CollectionsToys
- type Encounters
- type EncountersDungeons
- type EncountersRaids
- type Equipment
- type HunterPets
- type MythicKeystoneProfile
- type PrimaryStat
- type Professions
- type PvpSummary
- type Quests
- type QuestsCompleted
- type Rating
- type Reputations
- type RequestFunc
- func (req RequestFunc) CharacterAchievements(realm string, name string) (s Achievements, err error)
- func (req RequestFunc) CharacterAchievementsStatistics(realm string, name string) (s AchievementsStatistics, err error)
- func (req RequestFunc) CharacterAppearance(realm string, name string) (s Appearance, err error)
- func (req RequestFunc) CharacterCharacterMedia(realm string, name string) (s CharacterMedia, err error)
- func (req RequestFunc) CharacterCharacterStatus(realm string, name string) (s CharacterStatus, err error)
- func (req RequestFunc) CharacterCollections(realm string, name string) (s Collections, err error)
- func (req RequestFunc) CharacterCollectionsHeirlooms(realm string, name string) (s CollectionsHeirlooms, err error)
- func (req RequestFunc) CharacterCollectionsMounts(realm string, name string) (s CollectionsMounts, err error)
- func (req RequestFunc) CharacterCollectionsPets(realm string, name string) (s CollectionsPets, err error)
- func (req RequestFunc) CharacterCollectionsToys(realm string, name string) (s CollectionsToys, err error)
- func (req RequestFunc) CharacterEncounters(realm string, name string) (s Encounters, err error)
- func (req RequestFunc) CharacterEncountersDungeons(realm string, name string) (s EncountersDungeons, err error)
- func (req RequestFunc) CharacterEncountersRaids(realm string, name string) (s EncountersRaids, err error)
- func (req RequestFunc) CharacterEquipment(realm string, name string) (s Equipment, err error)
- func (req RequestFunc) CharacterHunterPets(realm string, name string) (s HunterPets, err error)
- func (req RequestFunc) CharacterInfo(realm string, name string) (s Character, err error)
- func (req RequestFunc) CharacterMythicKeystoneProfile(realm string, name string) (s MythicKeystoneProfile, err error)
- func (req RequestFunc) CharacterProfessions(realm string, name string) (s Professions, err error)
- func (req RequestFunc) CharacterPvpSummary(realm string, name string) (s PvpSummary, err error)
- func (req RequestFunc) CharacterQuests(realm string, name string) (s Quests, err error)
- func (req RequestFunc) CharacterQuestsCompleted(realm string, name string) (s QuestsCompleted, err error)
- func (req RequestFunc) CharacterReputations(realm string, name string) (s Reputations, err error)
- func (req RequestFunc) CharacterSoulbinds(realm string, name string) (s Soulbinds, err error)
- func (req RequestFunc) CharacterSpecializations(realm string, name string) (s Specializations, err error)
- func (req RequestFunc) CharacterStats(realm string, name string) (stats interface{}, err error)
- func (req RequestFunc) CharacterTitles(realm string, name string) (s Titles, err error)
- type Soulbinds
- type Specializations
- type Statistics
- type Titles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Achievements ¶
type Achievements struct {
RecentEvents []struct {
Achievement struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"achievement"`
Timestamp float64 `json:"timestamp"`
} `json:"recent_events"`
Character struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Id float64 `json:"id"`
Slug string `json:"slug"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
} `json:"realm"`
} `json:"character"`
Statistics struct {
Href string `json:"href"`
} `json:"statistics"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
TotalQuantity float64 `json:"total_quantity"`
TotalPoints float64 `json:"total_points"`
Achievements []struct {
Id float64 `json:"id"`
Achievement struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"achievement"`
Criteria struct {
Id float64 `json:"id"`
IsCompleted bool `json:"is_completed"`
} `json:"criteria"`
CompletedTimestamp float64 `json:"completed_timestamp"`
} `json:"achievements"`
CategoryProgress []struct {
Points float64 `json:"points"`
Category struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"category"`
Quantity float64 `json:"quantity"`
} `json:"category_progress"`
}
type AchievementsStatistics ¶
type AchievementsStatistics struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Character struct {
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Slug string `json:"slug"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"realm"`
Key struct {
Href string `json:"href"`
} `json:"key"`
} `json:"character"`
Categories []struct {
Id float64 `json:"id"`
Name string `json:"name"`
SubCategories []struct {
Id float64 `json:"id"`
Name string `json:"name"`
Statistics []struct {
Id float64 `json:"id"`
Name string `json:"name"`
LastUpdatedTimestamp float64 `json:"last_updated_timestamp"`
Quantity float64 `json:"quantity"`
} `json:"statistics"`
} `json:"sub_categories"`
Statistics []struct {
Name string `json:"name"`
LastUpdatedTimestamp float64 `json:"last_updated_timestamp"`
Quantity float64 `json:"quantity"`
Id float64 `json:"id"`
} `json:"statistics"`
} `json:"categories"`
}
type Appearance ¶
type Appearance struct {
Customizations []struct {
Option struct {
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"option"`
Choice struct {
Id float64 `json:"id"`
DisplayOrder float64 `json:"display_order"`
} `json:"choice"`
} `json:"customizations"`
PlayableClass struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"playable_class"`
Gender struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"gender"`
PlayableRace struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"playable_race"`
ActiveSpec struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"active_spec"`
Faction struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"faction"`
GuildCrest struct {
Emblem struct {
Id float64 `json:"id"`
Media struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Id float64 `json:"id"`
} `json:"media"`
Color struct {
Id float64 `json:"id"`
Rgba struct {
B float64 `json:"b"`
A float64 `json:"a"`
R float64 `json:"r"`
G float64 `json:"g"`
} `json:"rgba"`
} `json:"color"`
} `json:"emblem"`
Border struct {
Id float64 `json:"id"`
Media struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Id float64 `json:"id"`
} `json:"media"`
Color struct {
Rgba struct {
B float64 `json:"b"`
A float64 `json:"a"`
R float64 `json:"r"`
G float64 `json:"g"`
} `json:"rgba"`
Id float64 `json:"id"`
} `json:"color"`
} `json:"border"`
Background struct {
Color struct {
Id float64 `json:"id"`
Rgba struct {
R float64 `json:"r"`
G float64 `json:"g"`
B float64 `json:"b"`
A float64 `json:"a"`
} `json:"rgba"`
} `json:"color"`
} `json:"background"`
} `json:"guild_crest"`
Items []struct {
Subclass float64 `json:"subclass"`
Id float64 `json:"id"`
Slot struct {
Name string `json:"name"`
Type string `json:"type"`
} `json:"slot"`
Enchant float64 `json:"enchant"`
ItemAppearanceModifierId float64 `json:"item_appearance_modifier_id"`
InternalSlotId float64 `json:"internal_slot_id"`
} `json:"items"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Character struct {
Realm struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Slug string `json:"slug"`
} `json:"realm"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"character"`
}
type BlizzardAPIBearerToken ¶
type Character ¶
type Character struct {
Realm struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Slug string `json:"slug"`
} `json:"realm"`
Specializations struct {
Href string `json:"href"`
} `json:"specializations"`
Statistics struct {
Href string `json:"href"`
} `json:"statistics"`
Gender struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"gender"`
EquippedItemLevel float64 `json:"equipped_item_level"`
Experience float64 `json:"experience"`
Reputations struct {
Href string `json:"href"`
} `json:"reputations"`
Professions struct {
Href string `json:"href"`
} `json:"professions"`
AchievementsStatistics struct {
Href string `json:"href"`
} `json:"achievements_statistics"`
Faction struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"faction"`
CharacterClass struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"character_class"`
Achievements struct {
Href string `json:"href"`
} `json:"achievements"`
PvpSummary struct {
Href string `json:"href"`
} `json:"pvp_summary"`
Encounters struct {
Href string `json:"href"`
} `json:"encounters"`
Media struct {
Href string `json:"href"`
} `json:"media"`
Equipment struct {
Href string `json:"href"`
} `json:"equipment"`
CovenantProgress struct {
ChosenCovenant struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"chosen_covenant"`
RenownLevel float64 `json:"renown_level"`
Soulbinds struct {
Href string `json:"href"`
} `json:"soulbinds"`
} `json:"covenant_progress"`
ActiveSpec struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"active_spec"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Level float64 `json:"level"`
Appearance struct {
Href string `json:"href"`
} `json:"appearance"`
Collections struct {
Href string `json:"href"`
} `json:"collections"`
Id float64 `json:"id"`
Race struct {
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
} `json:"race"`
AchievementPoints float64 `json:"achievement_points"`
Titles struct {
Href string `json:"href"`
} `json:"titles"`
LastLoginTimestamp float64 `json:"last_login_timestamp"`
AverageItemLevel float64 `json:"average_item_level"`
Name string `json:"name"`
Guild struct {
Faction struct {
Name string `json:"name"`
Type string `json:"type"`
} `json:"faction"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Slug string `json:"slug"`
} `json:"realm"`
} `json:"guild"`
MythicKeystoneProfile struct {
Href string `json:"href"`
} `json:"mythic_keystone_profile"`
ActiveTitle struct {
DisplayString string `json:"display_string"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"active_title"`
Quests struct {
Href string `json:"href"`
} `json:"quests"`
}
type CharacterMedia ¶
type CharacterMedia struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Character struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Slug string `json:"slug"`
} `json:"realm"`
} `json:"character"`
Assets []struct {
Value string `json:"value"`
Key string `json:"key"`
} `json:"assets"`
}
type CharacterStatus ¶
type Collections ¶
type Collections struct {
Heirlooms struct {
Href string `json:"href"`
} `json:"heirlooms"`
Toys struct {
Href string `json:"href"`
} `json:"toys"`
Character struct {
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Slug string `json:"slug"`
} `json:"realm"`
Key struct {
Href string `json:"href"`
} `json:"key"`
} `json:"character"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Pets struct {
Href string `json:"href"`
} `json:"pets"`
Mounts struct {
Href string `json:"href"`
} `json:"mounts"`
}
type CollectionsHeirlooms ¶
type CollectionsHeirlooms struct {
Heirlooms []struct {
Heirloom struct {
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
} `json:"heirloom"`
Upgrade struct {
Level float64 `json:"level"`
} `json:"upgrade"`
} `json:"heirlooms"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
}
type CollectionsMounts ¶
type CollectionsMounts struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Mounts []struct {
Mount struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"mount"`
IsUseable bool `json:"is_useable"`
} `json:"mounts"`
}
type CollectionsPets ¶
type CollectionsPets struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Pets []struct {
CreatureDisplay struct {
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
} `json:"creature_display"`
Id float64 `json:"id"`
Species struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"species"`
Level float64 `json:"level"`
Quality struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"quality"`
Stats struct {
BreedId float64 `json:"breed_id"`
Health float64 `json:"health"`
Power float64 `json:"power"`
Speed float64 `json:"speed"`
} `json:"stats"`
} `json:"pets"`
UnlockedBattlePetSlots float64 `json:"unlocked_battle_pet_slots"`
}
type CollectionsToys ¶
type Encounters ¶
type Encounters struct {
Character struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Slug string `json:"slug"`
} `json:"realm"`
} `json:"character"`
Dungeons struct {
Href string `json:"href"`
} `json:"dungeons"`
Raids struct {
Href string `json:"href"`
} `json:"raids"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
}
type EncountersDungeons ¶
type EncountersDungeons struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Expansions []struct {
Expansion struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"expansion"`
Instances []struct {
Instance struct {
Name string `json:"name"`
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
} `json:"instance"`
Modes []struct {
Difficulty struct {
Name string `json:"name"`
Type string `json:"type"`
} `json:"difficulty"`
Status struct {
Name string `json:"name"`
Type string `json:"type"`
} `json:"status"`
Progress struct {
Encounters []struct {
Encounter struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"encounter"`
CompletedCount float64 `json:"completed_count"`
LastKillTimestamp float64 `json:"last_kill_timestamp"`
} `json:"encounters"`
CompletedCount float64 `json:"completed_count"`
TotalCount float64 `json:"total_count"`
} `json:"progress"`
} `json:"modes"`
} `json:"instances"`
} `json:"expansions"`
}
type EncountersRaids ¶
type EncountersRaids struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Character struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Slug string `json:"slug"`
} `json:"realm"`
} `json:"character"`
Expansions []struct {
Expansion struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"expansion"`
Instances []struct {
Instance struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"instance"`
Modes []struct {
Difficulty struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"difficulty"`
Status struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"status"`
Progress struct {
CompletedCount float64 `json:"completed_count"`
TotalCount float64 `json:"total_count"`
Encounters []struct {
Encounter struct {
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
} `json:"encounter"`
CompletedCount float64 `json:"completed_count"`
LastKillTimestamp float64 `json:"last_kill_timestamp"`
} `json:"encounters"`
} `json:"progress"`
} `json:"modes"`
} `json:"instances"`
} `json:"expansions"`
}
type Equipment ¶
type Equipment struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Character struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Slug string `json:"slug"`
} `json:"realm"`
} `json:"character"`
EquippedItems []struct {
Slot struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"slot"`
ModifiedAppearanceId float64 `json:"modified_appearance_id"`
Stats []struct {
Type struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"type"`
Value float64 `json:"value"`
Display struct {
DisplayString string `json:"display_string"`
Color struct {
R float64 `json:"r"`
G float64 `json:"g"`
B float64 `json:"b"`
A float64 `json:"a"`
} `json:"color"`
} `json:"display"`
} `json:"stats"`
Requirements struct {
Level struct {
Value float64 `json:"value"`
DisplayString string `json:"display_string"`
} `json:"level"`
PlayableClasses struct {
Links []struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"links"`
DisplayString string `json:"display_string"`
} `json:"playable_classes"`
} `json:"requirements"`
NameDescription struct {
DisplayString string `json:"display_string"`
Color struct {
B float64 `json:"b"`
A float64 `json:"a"`
R float64 `json:"r"`
G float64 `json:"g"`
} `json:"color"`
} `json:"name_description"`
Context float64 `json:"context"`
Media struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Id float64 `json:"id"`
} `json:"media"`
Binding struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"binding"`
Transmog struct {
ItemModifiedAppearanceId float64 `json:"item_modified_appearance_id"`
Item struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"item"`
DisplayString string `json:"display_string"`
} `json:"transmog"`
Durability struct {
Value float64 `json:"value"`
DisplayString string `json:"display_string"`
} `json:"durability"`
Level struct {
Value float64 `json:"value"`
DisplayString string `json:"display_string"`
} `json:"level"`
Quantity float64 `json:"quantity"`
BonusList []struct {
BonusList float64 `json:"bonus_list"`
} `json:"bonus_list"`
ItemClass struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"item_class"`
InventoryType struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"inventory_type"`
Armor struct {
Value float64 `json:"value"`
Display struct {
DisplayString string `json:"display_string"`
Color struct {
B float64 `json:"b"`
A float64 `json:"a"`
R float64 `json:"r"`
G float64 `json:"g"`
} `json:"color"`
} `json:"display"`
} `json:"armor"`
Set struct {
ItemSet struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"item_set"`
Items []struct {
IsEquipped bool `json:"is_equipped"`
Item struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"item"`
} `json:"items"`
Effects []struct {
DisplayString string `json:"display_string"`
RequiredCount float64 `json:"required_count"`
IsActive bool `json:"is_active"`
} `json:"effects"`
DisplayString string `json:"display_string"`
} `json:"set"`
Item struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Id float64 `json:"id"`
} `json:"item"`
Sockets []struct {
Media struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Id float64 `json:"id"`
} `json:"media"`
SocketType struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"socket_type"`
Item struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"item"`
DisplayString string `json:"display_string"`
} `json:"sockets"`
Quality struct {
Type string `json:"type"`
Name string `json:"name"`
} `json:"quality"`
Name string `json:"name"`
ItemSubclass struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"item_subclass"`
SellPrice struct {
DisplayStrings struct {
Header string `json:"header"`
Gold string `json:"gold"`
Silver string `json:"silver"`
Copper string `json:"copper"`
} `json:"display_strings"`
Value float64 `json:"value"`
} `json:"sell_price"`
} `json:"equipped_items"`
EquippedItemSets []struct {
ItemSet struct {
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
} `json:"item_set"`
Items []struct {
IsEquipped bool `json:"is_equipped"`
Item struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"item"`
} `json:"items"`
Effects []struct {
IsActive bool `json:"is_active"`
DisplayString string `json:"display_string"`
RequiredCount float64 `json:"required_count"`
} `json:"effects"`
DisplayString string `json:"display_string"`
} `json:"equipped_item_sets"`
}
type HunterPets ¶ added in v1.0.3
type HunterPets struct {
HunterPets []struct {
CreatureDisplay struct {
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
} `json:"creature_display"`
Name string `json:"name"`
Level float64 `json:"level"`
Creature struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"creature"`
Slot float64 `json:"slot"`
} `json:"hunter_pets"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Character struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Slug string `json:"slug"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"realm"`
} `json:"character"`
}
type MythicKeystoneProfile ¶
type MythicKeystoneProfile struct {
CurrentMythicRating struct {
Color struct {
R float64 `json:"r"`
G float64 `json:"g"`
B float64 `json:"b"`
A float64 `json:"a"`
} `json:"color"`
Rating float64 `json:"rating"`
} `json:"current_mythic_rating"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
CurrentPeriod struct {
Period struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Id float64 `json:"id"`
} `json:"period"`
} `json:"current_period"`
Seasons []struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Id float64 `json:"id"`
} `json:"seasons"`
Character struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Slug string `json:"slug"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"realm"`
} `json:"character"`
}
type PrimaryStat ¶
type Professions ¶
type Professions struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Character struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Id float64 `json:"id"`
Slug string `json:"slug"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
} `json:"realm"`
} `json:"character"`
Primaries []struct {
Profession struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"profession"`
Tiers []struct {
KnownRecipes []struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"known_recipes"`
SkillPoints float64 `json:"skill_points"`
MaxSkillPoints float64 `json:"max_skill_points"`
Tier struct {
Id float64 `json:"id"`
Name string `json:"name"`
} `json:"tier"`
} `json:"tiers"`
Specialization struct {
Name string `json:"name"`
} `json:"specialization"`
} `json:"primaries"`
Secondaries []struct {
Profession struct {
Name string `json:"name"`
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
} `json:"profession"`
SkillPoints float64 `json:"skill_points"`
MaxSkillPoints float64 `json:"max_skill_points"`
} `json:"secondaries"`
}
type PvpSummary ¶
type PvpSummary struct {
HonorableKills float64 `json:"honorable_kills"`
Character struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Slug string `json:"slug"`
} `json:"realm"`
} `json:"character"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Brackets []struct {
Href string `json:"href"`
} `json:"brackets"`
HonorLevel float64 `json:"honor_level"`
PvpMapStatistics []struct {
WorldMap struct {
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"world_map"`
MatchStatistics struct {
Played float64 `json:"played"`
Won float64 `json:"won"`
Lost float64 `json:"lost"`
} `json:"match_statistics"`
} `json:"pvp_map_statistics"`
}
type Quests ¶
type Quests struct {
InProgress []struct {
Name string `json:"name"`
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
} `json:"in_progress"`
Completed struct {
Href string `json:"href"`
} `json:"completed"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Character struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Id float64 `json:"id"`
Slug string `json:"slug"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
} `json:"realm"`
} `json:"character"`
}
type QuestsCompleted ¶
type QuestsCompleted struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Character struct {
Id float64 `json:"id"`
Realm struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Slug string `json:"slug"`
} `json:"realm"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
} `json:"character"`
Quests []struct {
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
} `json:"quests"`
}
type Reputations ¶
type Reputations struct {
Character struct {
Id float64 `json:"id"`
Realm struct {
Slug string `json:"slug"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"realm"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
} `json:"character"`
Reputations []struct {
Faction struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"faction"`
Standing struct {
Raw float64 `json:"raw"`
Value float64 `json:"value"`
Max float64 `json:"max"`
Tier float64 `json:"tier"`
Name string `json:"name"`
} `json:"standing"`
} `json:"reputations"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
}
type RequestFunc ¶
func Client ¶
Client returns a RequestFunc that can be used to make requests to the Blizzard API. The returned RequestFunc will use the provided API key to authenticate requests. ApiClientId and ApiSecret are the client zh_CNid and secret for the Blizzard API.
region: us | eu | kr | tw | cn lang: en_US | es_MX | pt_BR | en_GB | es_ES | fr_FR | ru_RU | de_DE | pt_PT | it_IT | zh_TW | ko_KR | zh_CN
func (RequestFunc) CharacterAchievements ¶
func (req RequestFunc) CharacterAchievements(realm string, name string) (s Achievements, err error)
func (RequestFunc) CharacterAchievementsStatistics ¶
func (req RequestFunc) CharacterAchievementsStatistics(realm string, name string) (s AchievementsStatistics, err error)
func (RequestFunc) CharacterAppearance ¶
func (req RequestFunc) CharacterAppearance(realm string, name string) (s Appearance, err error)
func (RequestFunc) CharacterCharacterMedia ¶
func (req RequestFunc) CharacterCharacterMedia(realm string, name string) (s CharacterMedia, err error)
func (RequestFunc) CharacterCharacterStatus ¶
func (req RequestFunc) CharacterCharacterStatus(realm string, name string) (s CharacterStatus, err error)
func (RequestFunc) CharacterCollections ¶
func (req RequestFunc) CharacterCollections(realm string, name string) (s Collections, err error)
func (RequestFunc) CharacterCollectionsHeirlooms ¶
func (req RequestFunc) CharacterCollectionsHeirlooms(realm string, name string) (s CollectionsHeirlooms, err error)
func (RequestFunc) CharacterCollectionsMounts ¶
func (req RequestFunc) CharacterCollectionsMounts(realm string, name string) (s CollectionsMounts, err error)
func (RequestFunc) CharacterCollectionsPets ¶
func (req RequestFunc) CharacterCollectionsPets(realm string, name string) (s CollectionsPets, err error)
func (RequestFunc) CharacterCollectionsToys ¶
func (req RequestFunc) CharacterCollectionsToys(realm string, name string) (s CollectionsToys, err error)
func (RequestFunc) CharacterEncounters ¶
func (req RequestFunc) CharacterEncounters(realm string, name string) (s Encounters, err error)
func (RequestFunc) CharacterEncountersDungeons ¶
func (req RequestFunc) CharacterEncountersDungeons(realm string, name string) (s EncountersDungeons, err error)
func (RequestFunc) CharacterEncountersRaids ¶
func (req RequestFunc) CharacterEncountersRaids(realm string, name string) (s EncountersRaids, err error)
func (RequestFunc) CharacterEquipment ¶
func (req RequestFunc) CharacterEquipment(realm string, name string) (s Equipment, err error)
func (RequestFunc) CharacterHunterPets ¶ added in v1.0.3
func (req RequestFunc) CharacterHunterPets(realm string, name string) (s HunterPets, err error)
func (RequestFunc) CharacterInfo ¶ added in v1.0.3
func (req RequestFunc) CharacterInfo(realm string, name string) (s Character, err error)
func (RequestFunc) CharacterMythicKeystoneProfile ¶
func (req RequestFunc) CharacterMythicKeystoneProfile(realm string, name string) (s MythicKeystoneProfile, err error)
func (RequestFunc) CharacterProfessions ¶ added in v1.0.3
func (req RequestFunc) CharacterProfessions(realm string, name string) (s Professions, err error)
func (RequestFunc) CharacterPvpSummary ¶
func (req RequestFunc) CharacterPvpSummary(realm string, name string) (s PvpSummary, err error)
func (RequestFunc) CharacterQuests ¶
func (req RequestFunc) CharacterQuests(realm string, name string) (s Quests, err error)
func (RequestFunc) CharacterQuestsCompleted ¶
func (req RequestFunc) CharacterQuestsCompleted(realm string, name string) (s QuestsCompleted, err error)
func (RequestFunc) CharacterReputations ¶ added in v1.0.3
func (req RequestFunc) CharacterReputations(realm string, name string) (s Reputations, err error)
func (RequestFunc) CharacterSoulbinds ¶
func (req RequestFunc) CharacterSoulbinds(realm string, name string) (s Soulbinds, err error)
func (RequestFunc) CharacterSpecializations ¶ added in v1.0.3
func (req RequestFunc) CharacterSpecializations(realm string, name string) (s Specializations, err error)
func (RequestFunc) CharacterStats ¶
func (req RequestFunc) CharacterStats(realm string, name string) (stats interface{}, err error)
func (RequestFunc) CharacterTitles ¶
func (req RequestFunc) CharacterTitles(realm string, name string) (s Titles, err error)
type Soulbinds ¶
type Soulbinds struct {
Soulbinds []struct {
Traits []struct {
Trait struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"trait"`
Tier float64 `json:"tier"`
DisplayOrder float64 `json:"display_order"`
} `json:"traits"`
Soulbind struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"soulbind"`
} `json:"soulbinds"`
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Character struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Slug string `json:"slug"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"realm"`
} `json:"character"`
ChosenCovenant struct {
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
} `json:"chosen_covenant"`
RenownLevel float64 `json:"renown_level"`
}
type Specializations ¶ added in v1.0.3
type Specializations struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Specializations []struct {
Specialization struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"specialization"`
Glyphs []struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"glyphs"`
PvpTalentSlots []struct {
SlotNumber float64 `json:"slot_number"`
Selected struct {
Talent struct {
Name string `json:"name"`
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
} `json:"talent"`
SpellTooltip struct {
Spell struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"spell"`
Description string `json:"description"`
CastTime string `json:"cast_time"`
PowerCost string `json:"power_cost"`
Range string `json:"range"`
Cooldown string `json:"cooldown"`
} `json:"spell_tooltip"`
} `json:"selected"`
} `json:"pvp_talent_slots"`
Loadouts []struct {
IsActive bool `json:"is_active"`
TalentLoadoutCode string `json:"talent_loadout_code"`
SelectedClassTalents []struct {
Id float64 `json:"id"`
Rank float64 `json:"rank"`
Tooltip struct {
Talent struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"talent"`
SpellTooltip struct {
PowerCost string `json:"power_cost"`
Cooldown string `json:"cooldown"`
Spell struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"spell"`
Description string `json:"description"`
CastTime string `json:"cast_time"`
} `json:"spell_tooltip"`
} `json:"tooltip"`
DefaultPoints float64 `json:"default_points"`
} `json:"selected_class_talents"`
SelectedSpecTalents []struct {
Tooltip struct {
Talent struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"talent"`
SpellTooltip struct {
Description string `json:"description"`
CastTime string `json:"cast_time"`
PowerCost string `json:"power_cost"`
Range string `json:"range"`
Spell struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
} `json:"spell"`
} `json:"spell_tooltip"`
} `json:"tooltip"`
Id float64 `json:"id"`
Rank float64 `json:"rank"`
} `json:"selected_spec_talents"`
} `json:"loadouts"`
} `json:"specializations"`
ActiveSpecialization struct {
Name string `json:"name"`
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
} `json:"active_specialization"`
Character struct {
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Slug string `json:"slug"`
} `json:"realm"`
Key struct {
Href string `json:"href"`
} `json:"key"`
} `json:"character"`
}
type Statistics ¶
type Statistics struct {
Health int64 `json:"health"`
Power int64 `json:"power"`
PowerType struct {
Name string `json:"name"`
Id int64 `json:"id"`
} `json:"power_type"`
Speed float64 `json:"speed"`
Strength PrimaryStat `json:"strength"`
Agility PrimaryStat `json:"agility"`
Intellect PrimaryStat `json:"intellect"`
Stamina PrimaryStat `json:"stamina"`
MeleeCrit Rating `json:"melee_crit"`
MeleeHaste Rating `json:"melee_haste"`
Mastery Rating `json:"mastery"`
BonusArmor float64 `json:"bonus_armor"`
Lifesteal Rating `json:"lifesteal"`
Versatility int64 `json:"versatility"`
VersatilityDamageDoneBonus float64 `json:"versatility_damage_done_bonus"`
VersatilityHealingDoneBonus float64 `json:"versatility_healing_done_bonus"`
VersatilityDamageTakenBonus float64 `json:"versatility_damage_taken_bonus"`
Avoidance Rating `json:"avoidance"`
AttackPower int64 `json:"attack_power"`
MainHandDamageMin float64 `json:"main_hand_damage_min"`
MainHandDamageMax float64 `json:"main_hand_damage_max"`
MainHandSpeed float64 `json:"main_hand_speed"`
MainHandDps float64 `json:"main_hand_dps"`
OffHandDamageMin float64 `json:"off_hand_damage_min"`
OffHandDamageMax float64 `json:"off_hand_damage_max"`
OffHandSpeed float64 `json:"off_hand_speed"`
OffHandDps float64 `json:"off_hand_dps"`
SpellPower int64 `json:"spell_power"`
SpellPenetration int64 `json:"spell_penetration"`
SpellCrit Rating `json:"spell_crit"`
ManaRegen float64 `json:"mana_regen"`
ManaRegenCombat float64 `json:"mana_regen_combat"`
Armor PrimaryStat `json:"armor"`
Dodge Rating `json:"dodge"`
Parry Rating `json:"parry"`
Block Rating `json:"block"`
RangedCrit Rating `json:"ranged_crit"`
RangedHaste Rating `json:"ranged_haste"`
SpellHaste Rating `json:"spell_haste"`
}
type Titles ¶
type Titles struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
Character struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Realm struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
Slug string `json:"slug"`
} `json:"realm"`
} `json:"character"`
ActiveTitle struct {
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
Id float64 `json:"id"`
DisplayString string `json:"display_string"`
} `json:"active_title"`
Titles []struct {
Id float64 `json:"id"`
Key struct {
Href string `json:"href"`
} `json:"key"`
Name string `json:"name"`
} `json:"titles"`
}
Source Files
¶
- achievements.go
- achievements_statistics.go
- appearance.go
- character.go
- character_media.go
- character_status.go
- collections.go
- collections_heirlooms.go
- collections_mounts.go
- collections_pets.go
- collections_toys.go
- encounters.go
- encounters_dungeons.go
- encounters_raids.go
- equipment.go
- hunter_pets.go
- mythic_keystone_profile.go
- professions.go
- pvp_summary.go
- quests.go
- quests_completed.go
- reputations.go
- soulbinds.go
- specializations.go
- statistics.go
- titles.go
- wowapi.go
Click to show internal directories.
Click to hide internal directories.