Documentation
¶
Index ¶
- Variables
- type Account
- type AccountAchievement
- type AccountBankItem
- type AccountCurrency
- type AccountDailyCraftingItem
- type AccountFinisher
- type AccountHomeCat
- type AccountLegendaryArmoryItem
- type AccountLuck
- type AccountMastery
- type AccountMasteryPoints
- type AccountMaterial
- type Achievement
- type AchievementCategory
- type AchievementGroup
- type Attributes
- type BackStoryAnswer
- type BackStoryQuestion
- type Build
- type BuildTemplate
- type Character
- type CharacterCore
- type CharacterEquipment
- type CharacterExtras
- type CharacterSab
- type CharacterSkills
- type CharacterSpecialization
- type CharacterSpecializations
- type Color
- type CommerceCoinGemExchange
- type CommerceDelivery
- type CommerceListing
- type CommercePrice
- type CommerceTransaction
- type Continent
- type Currency
- type DailyAchievement
- type DailyCraftingItem
- type DisciplineProgress
- type Dungeon
- type DyeSlot
- type Emblem
- type Error
- type Fact
- type FactTraited
- type File
- type Finisher
- type Guild
- type GuildLogEntry
- type GuildMember
- type GuildPermission
- type GuildRank
- type GuildStashContainer
- type GuildTeam
- type GuildTreasurySlot
- type GuildUpgrade
- type HomeCat
- type HomeNode
- type InventoryBag
- type Item
- type ItemStack
- type Itemstat
- type Legend
- type LegendaryArmoryItem
- type Map
- type MapChest
- type Mastery
- type Material
- type Mini
- type MountSkin
- type MountType
- type Novelty
- type Outfit
- type Pet
- type Profession
- type PvPGame
- type PvPLeaderboardAccount
- type PvPRank
- type PvPSeason
- type PvPStandings
- type PvPStats
- type PvPWinLossStats
- type Quaggan
- type Quest
- type Race
- type Raid
- type Recipe
- type Session
- func (s *Session) Account() (account Account, err error)
- func (s *Session) AccountAchievements(ids ...int) (accountAchievements []*AccountAchievement, err error)
- func (s *Session) AccountBuildStorage(ids ...int) (buildstorage []*BuildTemplate, err error)
- func (s *Session) AccountDailyCrafting(ids ...int) (items []*AccountDailyCraftingItem, err error)
- func (s *Session) AccountDungeons() (paths []string, err error)
- func (s *Session) AccountDyes() (dyes []int, err error)
- func (s *Session) AccountFinishers() (finishers []*AccountFinisher, err error)
- func (s *Session) AccountGliders() (gliders []int, err error)
- func (s *Session) AccountHomeCats() (cats []*AccountHomeCat, err error)
- func (s *Session) AccountHomeNodes() (nodes []string, err error)
- func (s *Session) AccountLegendaryArmory() (res []*AccountLegendaryArmoryItem, err error)
- func (s *Session) AccountLuck() (luck AccountLuck, err error)
- func (s *Session) AccountMailCarriers() (carriers []int, err error)
- func (s *Session) AccountMapChests() (chests []string, err error)
- func (s *Session) AccountMasteries() (masteries []*AccountMastery, err error)
- func (s *Session) AccountMasteryPoints() (masteryPoints AccountMasteryPoints, err error)
- func (s *Session) AccountMaterials() (materials []*Material, err error)
- func (s *Session) AccountMinis() (minis []int, err error)
- func (s *Session) AccountMountSkins() (skins []int, err error)
- func (s *Session) AccountMountTypes() (types []int, err error)
- func (s *Session) AccountNovelties() (novelties []int, err error)
- func (s *Session) AccountOutfits() (outfits []int, err error)
- func (s *Session) AccountPvPHeroes() (heroes []int, err error)
- func (s *Session) AccountRaids() (bosses []string, err error)
- func (s *Session) AccountRecipes() (recipes []int, err error)
- func (s *Session) AccountSharedInventory() (items []*ItemStack, err error)
- func (s *Session) AccountSkins() (skins []int, err error)
- func (s *Session) AccountTitles() (titles []int, err error)
- func (s *Session) AccountWallet() (wallet []*AccountCurrency, err error)
- func (s *Session) AccountWorldbosses() (bosses []string, err error)
- func (s *Session) AchievementCategories(ids ...int) (categories []*AchievementCategory, err error)
- func (s *Session) AchievementGroups(ids ...string) (groups []*AchievementGroup, err error)
- func (s *Session) Achievements(ids ...int) (achievements []*Achievement, err error)
- func (s *Session) BackStoryAnswers(ids ...string) (st []*BackStoryAnswer, err error)
- func (s *Session) BackStoryQuestions(ids ...int) (st []*BackStoryQuestion, err error)
- func (s *Session) Build() (r *Build, err error)
- func (s *Session) CharacterBackstory(character string) (backstory []string, err error)
- func (s *Session) CharacterCore(character string) (core CharacterCore, err error)
- func (s *Session) CharacterCrafting(character string) (crafting []*DisciplineProgress, err error)
- func (s *Session) CharacterEquipment(character string) (equipment []*CharacterEquipment, err error)
- func (s *Session) CharacterHeropoints(character string) (heropoints []string, err error)
- func (s *Session) CharacterInventory(character string) (inventory []*InventoryBag, err error)
- func (s *Session) CharacterRecipes(character string) (recipes []int, err error)
- func (s *Session) CharacterSab(character string) (st *CharacterSab, err error)
- func (s *Session) CharacterSkills(character string) (skills CharacterSkills, err error)
- func (s *Session) CharacterSpecializations(character string) (specializations CharacterSpecializations, err error)
- func (s *Session) CharacterTraining(character string) (training []*TrainingTree, err error)
- func (s *Session) Characters() (chars []string, err error)
- func (s *Session) Colors(ids ...int) (resp []*Color, err error)
- func (s *Session) CommerceDelivery() (delivery CommerceDelivery, err error)
- func (s *Session) CommerceExchangeCoins(quantity int) (exchange CommerceCoinGemExchange, err error)
- func (s *Session) CommerceExchangeGems(quantity int) (exchange CommerceCoinGemExchange, err error)
- func (s *Session) CommerceListings(ids ...int) (items []*CommerceListing, err error)
- func (s *Session) CommerceListingsIds() (ids []int, err error)
- func (s *Session) CommercePrices(ids ...int) (st []*CommercePrice, err error)
- func (s *Session) CommerceTransactionsCurrent() (transactions []*CommerceTransaction, err error)
- func (s *Session) CommerceTransactionsHistory() (transactions []*CommerceTransaction, err error)
- func (s *Session) Continents(ids ...int) (resp []*Continent, err error)
- func (s *Session) Currencies(ids ...int) (resp []*Currency, err error)
- func (s *Session) DailyAchievements() (daily map[string][]*DailyAchievement, err error)
- func (s *Session) DailyCrafting(ids ...string) (rsp []*DailyCraftingItem, err error)
- func (s *Session) Dungeons(ids ...string) (resp []*Dungeon, err error)
- func (s *Session) EmblemBackgrounds(ids ...int) (rsp []*Emblem, err error)
- func (s *Session) EmblemForegrounds(ids ...int) (rsp []*Emblem, err error)
- func (s *Session) Files(ids ...string) (resp []*File, err error)
- func (s *Session) Finishers(ids ...int) (rsp []*Finisher, err error)
- func (s *Session) Guild(guild string, auth bool) (resp Guild, err error)
- func (s *Session) GuildHallUpgrades(ids ...int) (resp []*GuildUpgrade, err error)
- func (s *Session) GuildLog(guild string) (resp []*GuildLogEntry, err error)
- func (s *Session) GuildMembers(guild string) (resp []*GuildMember, err error)
- func (s *Session) GuildPermissions(ids ...string) (resp []*GuildPermission, err error)
- func (s *Session) GuildRanks(guild string) (resp []*GuildRank, err error)
- func (s *Session) GuildSearch(guild string) (resp []string, err error)
- func (s *Session) GuildStash(guild string) (resp []*GuildStashContainer, err error)
- func (s *Session) GuildTeams(guild string) (resp []*GuildTeam, err error)
- func (s *Session) GuildTreasury(guild string) (resp []*GuildTreasurySlot, err error)
- func (s *Session) GuildUpgrades(guild string) (resp []int, err error)
- func (s *Session) HomeCats(ids ...int) (rsp []*HomeCat, err error)
- func (s *Session) HomeNodes(ids ...string) (rsp []*HomeNode, err error)
- func (s *Session) ItemStats(ids ...int) (itemstats []*Itemstat, err error)
- func (s *Session) Items(ids ...int) (rsp []*Item, err error)
- func (s *Session) LegendaryArmory(ids ...int) (res []*LegendaryArmoryItem, err error)
- func (s *Session) Legends(ids ...string) (rsp []*Legend, err error)
- func (s *Session) MapChests(ids ...string) (rsp []*MapChest, err error)
- func (s *Session) Maps(ids ...int) (resp []*Map, err error)
- func (s *Session) Masteries(ids ...int) (rsp []*Mastery, err error)
- func (s *Session) Materials(ids ...int) (rsp []*Material, err error)
- func (s *Session) Minis(ids ...int) (resp []*Mini, err error)
- func (s *Session) MountSkins(ids ...string) (rsp *[]MountSkin, err error)
- func (s *Session) MountTypes(ids ...string) (rsp []*MountType, err error)
- func (s *Session) Novelties(ids ...int) (resp []*Novelty, err error)
- func (s *Session) Outfits(ids ...int) (rsp []*Outfit, err error)
- func (s *Session) Pets(ids ...int) (rsp []*Pet, err error)
- func (s *Session) Professions(ids ...string) (rsp []*Profession, err error)
- func (s *Session) PvPAmulets(ids ...int) (amulets *[]Item, err error)
- func (s *Session) PvPGames(ids ...string) (games *[]PvPGame, err error)
- func (s *Session) PvPRanks(ids ...int) (ranks []*PvPRank, err error)
- func (s *Session) PvPSeasonLeaderboards(id, region string) (leaderboards []*PvPLeaderboardAccount, err error)
- func (s *Session) PvPSeasons(ids ...string) (seasons []*PvPSeason, err error)
- func (s *Session) PvPStandings() (standings *PvPStandings, err error)
- func (s *Session) PvPStats() (stats *PvPStats, err error)
- func (s *Session) Quaggans(ids ...string) (resp []*Quaggan, err error)
- func (s *Session) Quests(ids ...int) (resp []*Quest, err error)
- func (s *Session) Races(ids ...string) (rsp []*Race, err error)
- func (s *Session) Raids(ids ...string) (resp []*Raid, err error)
- func (s *Session) Recipes(ids ...int) (resp []*Recipe, err error)
- func (s *Session) RecipesSearchInput(id int) (resp []int, err error)
- func (s *Session) RecipesSearchOutput(id int) (resp []int, err error)
- func (s *Session) Skills(ids ...int) (rsp []*Skill, err error)
- func (s *Session) Skins(ids ...int) (resp []*Skin, err error)
- func (s *Session) Specializations(ids ...int) (rsp []*Specialization, err error)
- func (s *Session) Stories(ids ...int) (resp []*Story, err error)
- func (s *Session) StorySeasons(ids ...string) (resp []*StorySeason, err error)
- func (s *Session) Tile(continent, floor, zoom, x, y int) (image.Image, error)
- func (s *Session) Titles(ids ...int) (resp []*Title, err error)
- func (s *Session) Tokeninfo() (tokeninfo TokenInfo, err error)
- func (s *Session) TomorrowDailyAchievements() (daily map[string][]*DailyAchievement, err error)
- func (s *Session) Traits(ids ...int) (rsp []*Trait, err error)
- func (s *Session) WithAccessToken(token string) *Session
- func (s *Session) WithEndpointAPI(endpointAPI string) *Session
- func (s *Session) WithLanguage(lang string) *Session
- func (s *Session) WorldBosses(ids ...string) (rsp *[]WorldBoss, err error)
- func (s *Session) Worlds(ids ...int) (worlds []*World, err error)
- func (s *Session) WvWAbilities(ids ...int) (abilities []*WvWAbility, err error)
- func (s *Session) WvWMatchByWorldID(id int) (match *WvWMatch, err error)
- func (s *Session) WvWMatches(ids ...string) (matches []*WvWMatch, err error)
- func (s *Session) WvWObjectives(ids ...string) (objectives []*WvWObjective, err error)
- func (s *Session) WvWRanks(ids ...int) (ranks []*WvWRank, err error)
- func (s *Session) WvWUpgrades(ids ...int) (upgrades []*WvWUpgrade, err error)
- type Skill
- type Skills
- type Skin
- type Specialization
- type Story
- type StorySeason
- type Title
- type TokenInfo
- type TrainingTree
- type Trait
- type World
- type WorldBoss
- type WvWAbility
- type WvWMatch
- type WvWObjective
- type WvWRank
- type WvWUpgrade
Constants ¶
This section is empty.
Variables ¶
var ( ErrNotFound = errors.New("not found") ErrNoAccessToken = errors.New("No access token provided") ErrInvalidAccessToken = errors.New("Invalid access token") ErrCannotUseAll = errors.New("unable to use 'all' keyword for this API") )
Error constants
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
ID string `json:"id"`
Name string `json:"name"`
Age time.Duration `json:"age"`
World int `json:"world"`
Guilds []string `json:"guilds"`
GuildLeader []string `json:"guild_leader"`
Created time.Time `json:"created"`
Access []string `json:"access"`
Commander bool `json:"commander"`
FractalLevel int `json:"fractal_level"`
DailyAP int `json:"daily_ap"`
MonthlyAP int `json:"monthly_ap"`
WvWRank int `json:"wvw_rank"`
}
Account contains general information
type AccountAchievement ¶
type AccountAchievement struct {
ID int `json:"id"`
Current int `json:"current"`
Max int `json:"max"`
Done bool `json:"done"`
}
AccountAchievement contains the unlock status for an achievement
type AccountBankItem ¶
type AccountBankItem struct {
ID int `json:"id"`
Count int `json:"count"`
Skin int `json:"skin"`
Upgrades []int `json:"upgrades"`
UpgradeSlotIndices []int `json:"upgrade_slot_indices"`
Dyes []int `json:"dyes"`
Binding string `json:"binding"`
Stats struct {
ID int `json:"id"`
Attributes struct {
} `json:"attributes"`
} `json:"stats"`
}
AccountBankItem is an item from the account bank
type AccountCurrency ¶
AccountCurrency represents objects in the account wallet
type AccountDailyCraftingItem ¶
type AccountDailyCraftingItem struct {
ID string `json:"id"`
}
AccountDailyCraftingItem is an object crafted daily
type AccountFinisher ¶
type AccountFinisher struct {
ID int `json:"id"`
Permanent bool `json:"permanent"`
Quantity int `json:"qantity"`
}
AccountFinisher is an finisher unluck for an account
type AccountHomeCat ¶
AccountHomeCat is a home cat node
type AccountLegendaryArmoryItem ¶
AccountLegendaryArmoryItem is an item added in the account's legendary armory
type AccountLuck ¶
AccountLuck is the accounts consumed luck
type AccountMastery ¶
AccountMastery contains the unlocked mastery level
type AccountMasteryPoints ¶
type AccountMasteryPoints struct {
Totals []struct {
Region string `json:"region"` // The mastery region
Spent int `json:"spent"` // Amount of masteries of this region spent in mastery tracks
Earned int `json:"earned"` // Amount of masteries of this region earned for the account
} `json:"totals"`
Unlocked []int `json:"unlocked"` // Array of mastery ids
}
AccountMasteryPoints contains the accounts mastery points for each region
type AccountMaterial ¶
type AccountMaterial struct {
ID int `json:"id"`
Category int `json:"category"`
Binding string `json:"binding"`
Count int `json:"count"`
}
A AccountMaterial is an item stored in the players vault/material storage
type Achievement ¶
type Achievement struct {
ID int `json:"id"`
Icon string `json:"icon"`
Name string `json:"name"`
Description string `json:"description"`
Requirement string `json:"requirement"`
LockedText string `json:"locked_text"`
Type string `json:"type"`
Flags []string `json:"flags"`
Tiers []struct {
Count int `json:"count"`
Points int `json:"points"`
} `json:"tiers"`
Prerequisites []int `json:"prerequisites"`
Rewards []struct {
Type string `json:"type"`
} `json:"rewards"`
Bits []struct {
Type string `json:"type"`
ID int `json:"id"`
Text string `json:"text"`
} `json:"bits"`
PointCap int `json:"point_cap"`
}
Achievement is a game achievement
type AchievementCategory ¶
type AchievementCategory struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Order int `json:"order"`
Icon string `json:"icon"`
Achievements []int `json:"achievement"`
}
AchievementCategory is an achievement category
type AchievementGroup ¶
type AchievementGroup struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Order int `json:"order"`
Categories []int `json:"categories"`
}
AchievementGroup is an achievement group
type Attributes ¶
Attributes contains the attributes of an item. The key is the name, the value the number of attribute points
type BackStoryAnswer ¶
type BackStoryAnswer struct {
ID string `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Journal string `json:"journal"`
Question int `json:"question"`
Professions []string `json:"professions"`
Races []string `json:"races"`
}
BackStoryAnswer contains information about the initial story choices during character creation
type BackStoryQuestion ¶
type BackStoryQuestion struct {
ID int `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Answers []string `json:"answers"`
Order int `json:"order"`
Races []string `json:"races"`
Professions []string `json:"professions"`
}
BackStoryQuestion contains a game backstory question
type BuildTemplate ¶
type BuildTemplate struct {
Name string `json:"name"`
Profession string `json:"profession"`
Specializations []struct {
ID int `json:"id"`
Traits []int `json:"traits"`
} `json:"specializations"`
Skills struct {
Heal int `json:"heal"`
Utilities []int `json:"utilities"`
Elite int `json:"elite"`
} `json:"skills"`
AquaticSkills struct {
Heal int `json:"heal"`
Utilities []int `json:"utilities"`
Elite int `json:"elite"`
} `json:"aquatic_skills"`
}
BuildTemplate is a template in the accounts storage
type Character ¶
type Character struct {
CharacterCore
Backstory []string `json:"backstory"`
CharacterExtras
Specializations []*Character
CharacterSkills
CharacterEquipment
Crafting []*DisciplineProgress `json:"crafting"`
Recipes []int `json:"recipes"`
Bags []*InventoryBag `json:"bags"`
Training []*TrainingTree `json:"training"`
}
Character contains all the listed items from subrequests
type CharacterCore ¶
type CharacterCore struct {
Name string `json:"name"`
Race string `json:"race"`
Gender string `json:"gender"`
Profession string `json:"profession"`
Level int `json:"level"`
Guild string `json:"guild"`
Age int `jsonb:"age"`
Created string `json:"created"`
Deaths int `json:"deaths"`
Title int `json:"title"`
}
CharacterCore contains general character information
type CharacterEquipment ¶
type CharacterEquipment struct {
ID int `json:"id"`
Slot string `json:"slot"`
Infusions []int `json:"infusions"`
Upgrades []int `json:"upgrades"`
Skin int `json:"skin"`
Stats Itemstat `json:"stats"`
Binding string `json:"binding"`
Charges int `json:"charges"`
BoundTo string `json:"bound_to"`
Dyes []int `json:"dyes"`
}
CharacterEquipment defines an equipment item carried by an character
type CharacterExtras ¶
type CharacterExtras struct {
WvWAbilities []struct {
ID int `json:"id"`
Rank int `json:"rank"`
} `json:"wvw_abilities"`
EquipmentPvP struct {
Amulet int `json:"amulet"`
Rune int `json:"rune"`
Sigils []int `json:"sigils"`
} `json:"equipment_pvp"`
Flags []string `json:"flag"`
}
CharacterExtras contains special data contained in the general request
type CharacterSab ¶
type CharacterSab struct {
Zones []struct {
ID int `json:"id"`
Mode string `json:"mode"`
World int `json:"world"`
Zone int `json:"zone"`
} `json:"zones"`
Unlocks []struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"unlocks"`
Songs []struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"songs"`
}
CharacterSab contains the character's super adventure box progression
type CharacterSkills ¶
type CharacterSkills struct {
PvE Skills `json:"pve"`
PvP Skills `json:"pvp"`
WvW Skills `json:"wvw"`
}
CharacterSkills contains the skills for all gamemodes
type CharacterSpecialization ¶
CharacterSpecialization defines a specialization and its trait choices
type CharacterSpecializations ¶
type CharacterSpecializations struct {
PvE []*CharacterSpecialization `json:"pve"`
PvP []*CharacterSpecialization `json:"pvp"`
WvW []*CharacterSpecialization `json:"wvw"`
}
CharacterSpecializations contains the specializations for all gamemodes
type Color ¶
type Color struct {
ID int `json:"id"`
Name string `json:"name"`
BaseRGB []int `json:"base_rgb"`
Cloth struct {
Brightness int `json:"brightness"`
Contrast float64 `json:"contrast"`
Hue int `json:"hue"`
Saturation float64 `json:"saturation"`
Lightness float64 `json:"lightness"`
RGB []int `json:"rgb"`
} `json:"cloth"`
Leather struct {
Brightness int `json:"brightness"`
Contrast float64 `json:"contrast"`
Hue int `json:"hue"`
Saturation float64 `json:"saturation"`
Lightness float64 `json:"lightness"`
RGB []int `json:"rgb"`
} `json:"leather"`
Metal struct {
Brightness int `json:"brightness"`
Contrast float64 `json:"contrast"`
Hue int `json:"hue"`
Saturation float64 `json:"saturation"`
Lightness float64 `json:"lightness"`
RGB []int `json:"rgb"`
} `json:"metal"`
Fur struct {
Brightness int `json:"brightness"`
Contrast float64 `json:"contrast"`
Hue int `json:"hue"`
Saturation float64 `json:"saturation"`
Lightness float64 `json:"lightness"`
RGB []int `json:"rgb"`
} `json:"fur"`
Item int `json:"item"`
Categories []string `json:"categories"`
}
Color is a game item color
type CommerceCoinGemExchange ¶
type CommerceCoinGemExchange struct {
CoinsPerGem int `json:"coins_per_gem"`
Quantity int `json:"quantity"`
}
CommerceCoinGemExchange contains information about exchanging gems to coins and vice versa
type CommerceDelivery ¶
type CommerceDelivery struct {
Coins int `json:"coins"`
Items []struct {
ID int `json:"id"`
Count int `json:"count"`
} `json:"items"`
}
CommerceDelivery contains the coins and items available for pickup
type CommerceListing ¶
type CommerceListing struct {
ID int `json:"id"`
Buys []struct {
Listings int `json:"listings"`
UnitPrice int `json:"unit_price"`
Quantity int `json:"quantity"`
} `json:"buys"`
Sells []struct {
Listings int `json:"listings"`
UnitPrice int `json:"unit_price"`
Quantity int `json:"quantity"`
} `json:"sells"`
}
CommerceListing contains an items buy and sell orders
type CommercePrice ¶
type CommercePrice struct {
ID int `json:"id"` // The item id
Whitelisted bool `json:"whitelisted"` // Whether free to play accounts may purchase/sell this item
Buys struct {
Quantity int `json:"quantity"`
UnitPrice int `json:"unit_price"`
} `json:"buys"`
Sells struct {
Quantity int `json:"quantity"`
UnitPrice int `json:"unit_price"`
} `json:"sells"`
}
CommercePrice contains the currently highest buy price and lowest sell price
type CommerceTransaction ¶
type CommerceTransaction struct {
ID int `json:"id"`
ItemID int `json:"item_id"`
Price int `json:"price"`
Quantity int `json:"quantity"`
Created string `json:"created"`
Purchased string `json:"purchased"` // Only available from history
}
CommerceTransaction is an item waiting for exchanging or exchanged in the trading post
type Continent ¶
type Continent struct {
ID int `json:"id"`
Name string `json:"name"`
ContinentDims []int `json:"continent_dims"`
MinZoom int `json:"min_zoom"`
MaxZoom int `json:"max_zoom"`
Floors []int `json:"floors"`
}
Continent is a game continent
type Currency ¶
type Currency struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Icon string `json:"icon"`
Order int `json:"order"`
}
Currency is a game wallet currency
type DailyAchievement ¶
type DailyAchievement struct {
ID int `json:"id"`
Level struct {
Min int `json:"min"`
Max int `json:"max"`
} `json:"level"`
RequiredAccess []string `json:"required_access"`
}
DailyAchievement is a daiy achievement
type DailyCraftingItem ¶
type DailyCraftingItem struct {
ID string `json:"id"`
}
DailyCraftingItem contains data for a daily craftable item
type DisciplineProgress ¶
type DisciplineProgress struct {
Discipline string `json:"discipline"`
Rating int `json:"rating"`
Active bool `json:"active"`
}
DisciplineProgress defines a crafting discipline and the characters progress
type Dungeon ¶
type Dungeon struct {
ID string `json:"id"`
Paths []struct {
ID string `json:"id"`
Type string `json:"type"`
} `json:"paths"`
}
Dungeon is a game dungeon
type Fact ¶
type Fact struct {
Text string `json:"text"`
Icon string `json:"icon"`
Type string `json:"type"`
Value interface{} `json:"value"` // Type == AttributeAdjust || Number || Recharge || Unblockable (bool)
Target string `json:"target"` // Type == AttributeAdjust
Status string `json:"status"` // Type == Buff
Description string `json:"description"` // Type == Buff
ApplyCount int `json:"apply_count"` // Type == Buff
Duration int `json:"duration"` // Type == Buff || Duration || Time
FieldType string `json:"field_type"` // Type == ComboField
FinisherType string `json:"finisher_type"` // Type == ComboFinisher
Percent float64 `json:"percent"` // Type == ComboFinisher || Percent
HitCount int `json:"hit_count"` // Type == Damage || Heal
DmgMultiplier int `json:"damage_multiplier"` // Type == Damage
Distance int `json:"distance"` // Type == Distance || Radius
Prefix struct {
Text string `json:"text"`
Icon string `json:"icon"`
Status string `json:"status"`
Description string `json:"description"`
} `json:"prefix"` // Type == PrefixedBuff
}
Fact contains information about a skills/trait effect
type FactTraited ¶
type FactTraited struct {
*Fact
RequiredTrait int `json:"required_trait"`
Overrides int `json:"overrides"`
}
FactTraited contains skill effects that are overriding the default skill/trait effects
type Finisher ¶
type Finisher struct {
ID int `json:"id"`
UnlockDetails string `json:"unlock_details"`
UnlockItems []int `json:"unlock_items"`
Order int `json:"order"`
Icon string `json:"icon"`
Name string `json:"name"`
}
Finisher is a game finisher
type Guild ¶
type Guild struct {
Level int `json:"level"`
MOTD string `json:"motd"`
Influence int `json:"influence"`
Aetherium int `json:"aetherium"`
Favor int `json:"favor"`
MemberCount int `json:"member_count"`
MemberCapacity int `json:"member_capacity"`
ID string `json:"id"`
Name string `json:"name"`
Tag string `json:"tag"`
Emblem struct {
Background struct {
ID int `json:"id"`
Colors []int `json:"colors"`
} `json:"background"`
Foreground struct {
ID int `json:"id"`
Colors []int `json:"colors"`
} `json:"foreground"`
} `json:"emblem"`
Flags []string `json:"flags"`
}
Guild contains the core information about a guild
type GuildLogEntry ¶
type GuildLogEntry struct {
ID int `json:"id"`
Time string `json:"time"`
User string `json:"user"`
Type string `json:"type"`
InvitedBy string `json:"invited_by"` // When Type is "invited"
KickedBy string `json:"kicked_by"` // When Type is "kick"
ChangedBy string `json:"changed_by"` // When Type is "rank_change"
OldRank string `json:"old_rank"` // When Type is "rank_change"
NewRank string `json:"new_rank"` // When Type is "rank_change"
ItemID int `json:"item_id"` // When Type is "treasury" or "stash"
Count int `json:"count"` // When Type is "treasury" or "stash"
Operation string `json:"operation"` // When Type is "stash"
Coins int `json:"coins"` // When Type is "stash"
MOTD string `json:"motd"` // When Type is "motd"
Action string `json:"action"` // When Type is "upgrade"
UpgradeID int `json:"upgrade_id"` // When Type is "upgrade"
RecipeID int `json:"recipe_id"` // When Type is "upgrade", optional
}
GuildLogEntry is an entry in the guild log
type GuildMember ¶
type GuildMember struct {
Name string `json:"name"`
Rank string `json:"rank"`
Joined string `json:"joined"`
}
GuildMember is a guild member
type GuildPermission ¶
type GuildPermission struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
}
GuildPermission is a assignable guild permission
type GuildRank ¶
type GuildRank struct {
ID string `json:"id"`
Order int `json:"order"`
Permissions []string `json:"permissions"`
Icon string `json:"icon"`
}
GuildRank is a guild rank
type GuildStashContainer ¶
type GuildStashContainer struct {
UpgradeID int `json:"upgrade_id"`
Size int `json:"size"`
Coins int `json:"coins"`
Note string `json:"note"`
Iventory []struct {
ID int `json:"id"`
Count int `json:"count"`
} `json:"inventory"`
}
GuildStashContainer is a section of the guild stash holding items
type GuildTeam ¶
type GuildTeam struct {
ID int `json:"id"`
Members []struct {
Name string `json:"name"`
Role string `json:"role"`
} `json:"members"`
Name string `json:"name"`
Aggregate PvPWinLossStats `json:"aggregate"`
Ladders PvPWinLossStats `json:"ladders"`
Games []*PvPGame `json:"games"` // Profession field is omitted
Seasons []struct {
ID string `json:"id"`
Wins int `json:"wins"`
Losses int `json:"losses"`
Rating int `json:"rating"`
} `json:"seasons"`
}
GuildTeam contains information about a guild pvp team
type GuildTreasurySlot ¶
type GuildTreasurySlot struct {
ItemID int `json:"item_id"`
Count int `json:"count"`
NeededBy []struct {
UpgradeID int `json:"upgrade_id"`
Count int `json:"count"`
} `json:"needed_by"`
}
GuildTreasurySlot is a slot for items needed for guild ugrades
type GuildUpgrade ¶
type GuildUpgrade struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"`
BagMaxItems int `json:"bag_max_items"` // When Type is "BankBag"
BagMaxCoins int `json:"bag_max_coins"` // When Type us "BankBag"
Icon string `json:"icon"`
BuildTime int `json:"build_time"`
RequiredLevel int `json:"required_level"`
Experience int `json:"experience"`
Prerequisites []int `json:"prerequisites"`
Costs []struct {
Type string `json:"type"`
Name string `json:"name"`
Count int `json:"count"`
ItemID int `json:"item_id"`
} `json:"costs"`
}
GuildUpgrade contains information about upgrades for guild halls
type InventoryBag ¶
type InventoryBag struct {
ID int `json:"id"`
Size int `json:"size"`
Inventory []ItemStack `json:"inventory"`
}
InventoryBag is a bag placed in the inventory bag slots. It also contains the items inside
type Item ¶
type Item struct {
ID int `json:"id"`
ChatLink string `json:"chat_link"`
Name string `json:"name"`
Icon string `json:"icon"`
Description string `json:"description"`
Type string `json:"type"`
Rarity string `json:"rarity"`
Level int `json:"level"`
VendorValue int `json:"vendor_value"`
DefaultSkin int `json:"default_skin"`
Flags []string `json:"flags"`
GameTypes []string `json:"game_types"`
Restrictions []string `json:"restrictions"`
UpgradesInto []struct {
Upgrade string `json:"upgrade"`
ItemID int `json:"item_id"`
} `json:"upgrades_into"`
UpgradesFrom []struct {
Upgrade string `json:"upgrade"`
ItemID int `json:"item_id"`
} `json:"upgrades_from"`
Details struct {
Type string `json:"type"` // Armor / Consumable / Container / Gathering tools / Gizmo / Salvage kits / Trinket / Upgrade component / Weapon
WeightClass string `json:"weight_class"` // Armor
Defense int `json:"defense"` // Armor / Weapon
InfusionSlots []struct {
Flags []string `json:"flags"`
ItemID int `json:"item_id"`
} `json:"infusion_slots"` // Armor / Back item / Trinket / Weapon
AttributeAdjustment float64 `json:"attribute_adjustment"` // Armor / Back item / Trinket / Weapon
InfixUpgrade struct {
ID int `json:"id"`
Attributes []struct {
Attribute string `json:"attribute"`
Modifier int `json:"modifier"`
}
Buff struct {
SkillID int `json:"skill_id"`
Description string `json:"description"`
} `json:"buff"`
} `json:"infix_upgrade"` // Armor / Back item / Trinket / Upgrade component / Weapon
SuffixItemID int `json:"suffix_item_id"` // Armor / Back item / Trinket / Weapon
SecondarySuffixItemID string `json:"secondary_suffix_item_id"` // Armor / Back item / Trinket / Weapon
StatChoices []int `json:"stat_choices"` // Armor / Back item / Trinket / Weapon
Size int `json:"size"` // Bag
NoSellOrSort bool `json:"no_sell_or_sort"` // Bag
Description string `json:"description"` // Consumable
DurationMS int `json:"duration_ms"` // Consumable
UnlockType string `json:"unlock_type"` // Consumable
ColorID int `json:"color_id"` // Consumable
RecipeID int `json:"recipe_id"` // Consumable
ExtraRecipeIDs []int `json:"extra_recipe_ids"` // Consumable
GuildUpgradeID int `json:"guild_upgrade_id"` // Consumable / Gizmo
ApplyCount int `json:"apply_count"` // Consumable
Name string `json:"name"` // Consumable
Icon string `json:"icon"` // Consumable
Skins []int `json:"skins"` // Consumable
VendorIDs []int `json:"vendor_ids"` // Gizmo
MinipetID int `json:"minipet_id"` // Miniature
Charges int `json:"charges"` // Salvage kits
Flags []string `json:"flags"` // Upgrade component
InfusionUpgradesFlags []string `json:"infusion_upgrades_flags"` // Upgrade component
Suffix string `json:"suffix"` // Upgrade component
Bonuses []string `json:"bonuses"` // Upgrade component
DamageType string `json:"damage_type"` // Weapon
MinPower int `json:"min_power"` // Weapon
MaxPower int `json:"max_power"` // Weapon
} `json:"details"`
}
Item is a game item
type ItemStack ¶
type ItemStack struct {
ID string `json:"id"`
Count int `json:"count"`
Charges int `json:"charges"`
Skin int `json:"skin"`
Upgrades []int `json:"upgrades"`
Infusions []int `json:"infusions"`
Binding string `json:"binding"`
BoundTo string `json:"bound_to"`
}
ItemStack is the data contained in requests that return stored items, e.g. bank or shared inventory
type Itemstat ¶
type Itemstat struct {
ID int `json:"id"`
Name string `json:"name"`
Attributes []struct {
Attribute string `json:"attribute"`
Multiplier float64 `json:"multiplier"`
Value int `json:"value"`
} `json:"attributes"`
}
Itemstat contains the stattype and attributes of an item
type Legend ¶
type Legend struct {
ID string `json:"id"`
Swap int `json:"swap"`
Heal int `json:"heal"`
Elite int `json:"elite"`
Utilities []int `json:"utilities"`
}
Legend is a revenant legend
type LegendaryArmoryItem ¶
LegendaryArmoryItem is an item that can be added into the Legendary Armory
type Map ¶
type Map struct {
ID int `json:"id"`
Name string `json:"name"`
MinLevel int `json:"min_level"`
MaxLevel int `json:"max_level"`
DefaultFloot int `json:"default_floor"`
Floors []int `json:"floors"`
RegionID int `json:"region_id"`
RegionName string `json:"region_name"`
ContinentID int `json:"continent_id"`
ContinentName string `json:"continent_name"`
MapRect [][]int `json:"map_rect"`
ContinentRect [][]int `json:"continent_rect"`
}
Map is a game map
type MapChest ¶
type MapChest struct {
ID string `json:"id"`
}
MapChest is a chest lootable once per day
type Mastery ¶
type Mastery struct {
ID int `json:"id"`
Name string `json:"name"`
Requirement string `json:"requirement"`
Order int `json:"order"`
Background string `json:"background"`
Region string `json:"region"`
Levels []struct {
Name string `json:"name"`
Description string `json:"description"`
Instruction string `json:"instruction"`
Icon string `json:"icon"`
PointCost int `json:"point_cost"`
ExpCost int `json:"exp_cost"`
} `json:"levels"`
}
Mastery contains information about a unlockable mastery
type Material ¶
type Material struct {
ID int `json:"id"`
Name string `json:"name"`
Items []int `json:"items"`
Order int `json:"order"`
}
Material is a material in the material storage
type Mini ¶
type Mini struct {
ID int `json:"id"`
Name string `json:"name"`
Unlock string `json:"unlock"`
Icon string `json:"icon"`
Order int `json:"order"`
ItemID int `json:"item_id"`
}
Mini is a game miniature
type MountSkin ¶
type MountSkin struct {
ID int `json:"id"`
Name string `json:"name"`
Icon string `json:"icon"`
Mount string `json:"mount"`
DyeSlots []*DyeSlot `json:"dye_slots"`
}
MountSkin contains information about a mount skin
type MountType ¶
type MountType struct {
ID string `json:"id"`
Name string `json:"name"`
DefaultSkin int `json:"default_skin"`
Skins []int `json:"skins"`
Skills []*Skill `json:"skills"` // Only id, slot
}
MountType contains information about a mount type
type Novelty ¶
type Novelty struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Icon string `json:"icon"`
Slot string `json:"slot"`
UnlockItem []int `json:"unlock_item"`
}
Novelty is a game novelty
type Outfit ¶
type Outfit struct {
ID int `json:"id"`
Name string `json:"name"`
Icon string `json:"icon"`
UnlockItems []int `json:"unlock_items"`
}
Outfit is a game outfit
type Pet ¶
type Pet struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Icon string `json:"icon"`
Skills []struct {
ID int `json:"id"`
} `json:"skills"`
}
Pet is a game ranger pet
type Profession ¶
type Profession struct {
ID string `json:"id"`
Name string `json:"name"`
Icon string `json:"icon"`
IconBig string `json:"icon_big"`
Specializations []int `json:"specializations"`
Training []struct {
ID int `json:"id"`
Category string `json:"category"`
Name string `json:"name"`
Track []struct {
Cost int `json:"cost"`
Type string `json:"type"`
SkillID int `json:"skill_id"` // If Type == Skill
TraitID int `json:"trait_id"` // If Type == Trait
} `json:"track"`
} `json:"training"`
Weapons map[string]struct {
Flags []string `json:"flags"`
Specialization int `json:"specialization"`
Skills []struct {
ID int `json:"id"`
Slot string `json:"slot"`
Offhand string `json:"offhand"`
Attunement string `json:"attunement"` // Elementalist
Source string `json:"source"` // Thief stolen skills
} `json:"skills"`
} `json:"weapons"`
Flags []string `json:"flags"`
}
Profession is a game profession
type PvPGame ¶
type PvPGame struct {
ID string `json:"id"`
MapID int `json:"map_id"`
Started string `json:"started"`
Ended string `json:"ended"`
Result string `json:"result"`
Team string `json:"team"`
Scores struct {
Red int `json:"red"`
Blue int `json:"blue"`
} `json:"scores"`
RatingType string `json:"rating_type"`
RatingChange int `json:"rating_change"`
Season string `json:"season,omitempty"`
}
PvPGame contains information about played pvp games
type PvPLeaderboardAccount ¶
type PvPLeaderboardAccount struct {
Name string `json:"name"`
Rank int `json:"rank"`
ID string `json:"id"`
Team string `json:"team,omitempty"` // Only for guild leaderboards
TeamID int `json:"team_id,omitempty"` // Only for guild leaderboards
Date string `json:"date"`
Scores []struct {
ID string `json:"id"`
Value int `json:"value"`
} `json:"scores"`
}
PvPLeaderboardAccount is an account displayed on the pvp leaderboards
type PvPRank ¶
type PvPRank struct {
ID int `json:"id"`
FinisherID int `json:"finisher_id"`
Name string `json:"name"`
Icon string `json:"icon"`
MinRank int `json:"min_rank"`
MaxRank int `json:"max_rank"`
Levels []struct {
MinRank int `json:"min_rank"`
MaxRank int `json:"max_rank"`
Points int `json:"points"`
} `json:"levels"`
}
PvPRank is a pvp rank
type PvPSeason ¶
type PvPSeason struct {
ID string `json:"id"`
Name string `json:"name"`
Start string `json:"start"`
End string `json:"end"`
Active bool `json:"active"`
Divisions []struct {
Name string `json:"name"`
Flags []string `json:"flags"`
LargeIcon string `json:"large_icon"`
SmallIcon string `json:"small_icon"`
PipIcon string `json:"pip_icon"`
Tiers []struct {
Points int `json:"points"`
} `json:"tiers"`
} `json:"divisions"`
Leaderboards struct {
Ladder struct {
Settings struct {
Name string `json:"name"`
Duration int `json:"duration"`
Scoring string `json:"scoring"`
Tiers []struct {
Range []int `json:"range"`
}
} `json:"settings"`
Scorings []struct {
ID string `json:"id"`
Type string `json:"type"`
Description string `json:"description"`
Name string `json:"name"`
Ordering string `json:"ordering"`
} `json:"scoring"`
} `json:"ladder"`
} `json:"leaderboards"`
}
PvPSeason is a pvp season
type PvPStandings ¶
type PvPStandings struct {
Current []struct {
TotalPoints int `json:"total_points"`
Division int `json:"division"`
Tier int `json:"tier"`
Points int `json:"points"`
Repeats int `json:"repeats"`
Rating int `json:"rating"`
Decay int `json:"decay"`
} `json:"current"`
Best []struct {
TotalPoints int `json:"total_points"`
Division int `json:"division"`
Tier int `json:"tier"`
Points int `json:"points"`
Repeats int `json:"repeats"`
} `json:"best"`
SeasonID string `json:"season_id"`
}
PvPStandings contains information about the account season ranking and the best sesion rankings
type PvPStats ¶
type PvPStats struct {
PvPRank int `json:"pvp_rank"`
PvPRankPoints int `json:"pvp_rank_points"`
PvPRankRollovers int `json:"pvp_rank_rollovers"`
Aggregate PvPWinLossStats `json:"aggregate"`
Professions map[string]PvPWinLossStats `json:"professions"`
Ladders map[string]PvPWinLossStats `json:"ladders"`
}
PvPStats contains the accounts pvp stats
type PvPWinLossStats ¶
type PvPWinLossStats struct {
Wins int `json:"wins"`
Losses int `json:"losses"`
Desertions int `json:"desertions"`
Byes int `json:"byes"`
Forfeits int `json:"forfeits"`
}
PvPWinLossStats contains the wins and losses
type Quest ¶
type Quest struct {
ID int `json:"id"`
Name string `json:"name"`
Level int `json:"level"`
Story int `json:"story"`
Goals []struct {
Active string `json:"active"`
Complete string `json:"complete"`
} `json:"goals"`
}
Quest contains story journal mission information
type Raid ¶
type Raid struct {
ID string `json:"id"`
Wings []struct {
ID string `json:"id"`
Events []struct {
ID string `json:"id"`
Type string `json:"type"`
} `json:"events"`
} `json:"wings"`
}
Raid is a game raid instance
type Recipe ¶
type Recipe struct {
ID int `json:"id"`
Type string `json:"type"`
OutputItemID int `json:"output_item_id"`
OutputItemCount int `json:"output_item_count"`
TimeToCraftMS int `json:"time_to_craft_ms"`
Disciplines []string `json:"disciplines"`
MinRating int `json:"min_rating"`
Flags []string `json:"flags"`
Ingredients []struct {
ItemID int `json:"item_id"`
Count int `json:"count"`
} `json:"ingrdients"`
GuildIngredients []struct {
UpgradeID int `json:"upgrade_id"`
Count int `json:"count"`
} `json:"guild_ingredients"`
OutputUpgradeID int `json:"output_upgrade_id"`
ChatLink string `json:"chat_link"`
}
Recipe is a game recipe
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session is used to make requests to the gw2api. It also handles authentication.
func (*Session) AccountAchievements ¶
func (s *Session) AccountAchievements(ids ...int) (accountAchievements []*AccountAchievement, err error)
AccountAchievements returns the accounts achievement status for the given ids
func (*Session) AccountBuildStorage ¶
func (s *Session) AccountBuildStorage(ids ...int) (buildstorage []*BuildTemplate, err error)
AccountBuildStorage returns all builds stored in the accounts build storage
func (*Session) AccountDailyCrafting ¶
func (s *Session) AccountDailyCrafting(ids ...int) (items []*AccountDailyCraftingItem, err error)
AccountDailyCrafting returns the accounts daily crafted items
func (*Session) AccountDungeons ¶
AccountDungeons returns the dungeons paths completed since daily reset
func (*Session) AccountDyes ¶
AccountDyes returns all dye unlocks
func (*Session) AccountFinishers ¶
func (s *Session) AccountFinishers() (finishers []*AccountFinisher, err error)
AccountFinishers returns all finisher unlocks
func (*Session) AccountGliders ¶
AccountGliders returns all glider unlocks
func (*Session) AccountHomeCats ¶
func (s *Session) AccountHomeCats() (cats []*AccountHomeCat, err error)
AccountHomeCats returns all home cat unlocks
func (*Session) AccountHomeNodes ¶
AccountHomeNodes returns all home node unlocks
func (*Session) AccountLegendaryArmory ¶
func (s *Session) AccountLegendaryArmory() (res []*AccountLegendaryArmoryItem, err error)
AccountLegendaryArmory returns the items in the account's legendary armory
func (*Session) AccountLuck ¶
func (s *Session) AccountLuck() (luck AccountLuck, err error)
AccountLuck returns the accounts luck
func (*Session) AccountMailCarriers ¶
AccountMailCarriers the accounts unlocked mailcarriers
func (*Session) AccountMapChests ¶
AccountMapChests returns all Hero's choice chests unlocked since daily reset
func (*Session) AccountMasteries ¶
func (s *Session) AccountMasteries() (masteries []*AccountMastery, err error)
AccountMasteries returns all masteries and their levels unlocked
func (*Session) AccountMasteryPoints ¶
func (s *Session) AccountMasteryPoints() (masteryPoints AccountMasteryPoints, err error)
AccountMasteryPoints returns the mastery points for each region
func (*Session) AccountMaterials ¶
AccountMaterials returns the accounts materials stored
func (*Session) AccountMinis ¶
AccountMinis returns the accounts mini unlocks
func (*Session) AccountMountSkins ¶
AccountMountSkins returns the accounts mountskin unlocks
func (*Session) AccountMountTypes ¶
AccountMountTypes returns the accounts mount unlocks
func (*Session) AccountNovelties ¶
AccountNovelties returns the accounts novelties unlocks
func (*Session) AccountOutfits ¶
AccountOutfits returns the accounts outfit unlocks
func (*Session) AccountPvPHeroes ¶
AccountPvPHeroes returns the accounts pvp hero unlocks
func (*Session) AccountRaids ¶
AccountRaids returns the completed raid encounters since the weekly raid reset
func (*Session) AccountRecipes ¶
AccountRecipes returns information about recipes that are unlocked for an account
func (*Session) AccountSharedInventory ¶
AccountSharedInventory returns the items stored in the shared inventory slots
func (*Session) AccountSkins ¶
AccountSkins returns the unlocked skins of the account
func (*Session) AccountTitles ¶
AccountTitles returns information about titles that are unlocked for an account
func (*Session) AccountWallet ¶
func (s *Session) AccountWallet() (wallet []*AccountCurrency, err error)
AccountWallet returns the currencies of the account
func (*Session) AccountWorldbosses ¶
AccountWorldbosses returns information about which world bosses have been killed by the account since daily reset
func (*Session) AchievementCategories ¶
func (s *Session) AchievementCategories(ids ...int) (categories []*AchievementCategory, err error)
AchievementCategories returns all achievement categories
func (*Session) AchievementGroups ¶
func (s *Session) AchievementGroups(ids ...string) (groups []*AchievementGroup, err error)
AchievementGroups returns all achievement groups
func (*Session) Achievements ¶
func (s *Session) Achievements(ids ...int) (achievements []*Achievement, err error)
Achievements returns an game achievement
func (*Session) BackStoryAnswers ¶
func (s *Session) BackStoryAnswers(ids ...string) (st []*BackStoryAnswer, err error)
BackStoryAnswers returns the backstory answers
func (*Session) BackStoryQuestions ¶
func (s *Session) BackStoryQuestions(ids ...int) (st []*BackStoryQuestion, err error)
BackStoryQuestions returns the requested backstory questions
func (*Session) CharacterBackstory ¶
CharacterBackstory returns the characters initial story decisions
func (*Session) CharacterCore ¶
func (s *Session) CharacterCore(character string) (core CharacterCore, err error)
CharacterCore returns the characters core information
func (*Session) CharacterCrafting ¶
func (s *Session) CharacterCrafting(character string) (crafting []*DisciplineProgress, err error)
CharacterCrafting returns the characters crafting disciplines
func (*Session) CharacterEquipment ¶
func (s *Session) CharacterEquipment(character string) (equipment []*CharacterEquipment, err error)
CharacterEquipment returns the character equipment items
func (*Session) CharacterHeropoints ¶
CharacterHeropoints returns the characters unlocked hero challenges
func (*Session) CharacterInventory ¶
func (s *Session) CharacterInventory(character string) (inventory []*InventoryBag, err error)
CharacterInventory returns the characters inventory bags and its contents
func (*Session) CharacterRecipes ¶
CharacterRecipes returns the characters unlocked recipes
func (*Session) CharacterSab ¶
func (s *Session) CharacterSab(character string) (st *CharacterSab, err error)
CharacterSab returns the characters super adventure box progress
func (*Session) CharacterSkills ¶
func (s *Session) CharacterSkills(character string) (skills CharacterSkills, err error)
CharacterSkills returns the characters equipped skills
func (*Session) CharacterSpecializations ¶
func (s *Session) CharacterSpecializations(character string) (specializations CharacterSpecializations, err error)
CharacterSpecializations returns the characters equipped specializations
func (*Session) CharacterTraining ¶
func (s *Session) CharacterTraining(character string) (training []*TrainingTree, err error)
CharacterTraining returns the characters training progress
func (*Session) Characters ¶
Characters returns all character names
func (*Session) CommerceDelivery ¶
func (s *Session) CommerceDelivery() (delivery CommerceDelivery, err error)
CommerceDelivery returns coins and items available for pickup for the account
func (*Session) CommerceExchangeCoins ¶
func (s *Session) CommerceExchangeCoins(quantity int) (exchange CommerceCoinGemExchange, err error)
CommerceExchangeCoins returns how many gems you get for the provided amount of coins
func (*Session) CommerceExchangeGems ¶
func (s *Session) CommerceExchangeGems(quantity int) (exchange CommerceCoinGemExchange, err error)
CommerceExchangeGems returns how many coins you get for the provided amount of gems
func (*Session) CommerceListings ¶
func (s *Session) CommerceListings(ids ...int) (items []*CommerceListing, err error)
CommerceListings returns all buy and sell orders for the items
func (*Session) CommerceListingsIds ¶
CommerceListingsIds returns ids of all items available on trading post
func (*Session) CommercePrices ¶
func (s *Session) CommercePrices(ids ...int) (st []*CommercePrice, err error)
CommercePrices returns the current tp prices for the requested ids
func (*Session) CommerceTransactionsCurrent ¶
func (s *Session) CommerceTransactionsCurrent() (transactions []*CommerceTransaction, err error)
CommerceTransactionsCurrent returns the accounts current transactions
func (*Session) CommerceTransactionsHistory ¶
func (s *Session) CommerceTransactionsHistory() (transactions []*CommerceTransaction, err error)
CommerceTransactionsHistory returns the accounts transaction history
func (*Session) Continents ¶
Continents returns the continents with the given id
func (*Session) Currencies ¶
Currencies returns the currencies with the given ids
func (*Session) DailyAchievements ¶
func (s *Session) DailyAchievements() (daily map[string][]*DailyAchievement, err error)
DailyAchievements returns a map of daily achievements. Each map key stands for a different section, e.g. pve, wvw, fractals, ...
func (*Session) DailyCrafting ¶
func (s *Session) DailyCrafting(ids ...string) (rsp []*DailyCraftingItem, err error)
DailyCrafting returns the daily craftable items
func (*Session) EmblemBackgrounds ¶
EmblemBackgrounds returns the requested background emblems
func (*Session) EmblemForegrounds ¶
EmblemForegrounds returns the requested foreground emblems
func (*Session) GuildHallUpgrades ¶
func (s *Session) GuildHallUpgrades(ids ...int) (resp []*GuildUpgrade, err error)
GuildHallUpgrades returns unlockable upgrades for the guild hall. Note: This method is call GetGuildHallUpgrades as GetGuildUpgrades returns the guilds unlocked upgrades
func (*Session) GuildLog ¶
func (s *Session) GuildLog(guild string) (resp []*GuildLogEntry, err error)
GuildLog returns the guild log events
func (*Session) GuildMembers ¶
func (s *Session) GuildMembers(guild string) (resp []*GuildMember, err error)
GuildMembers returns all guild members
func (*Session) GuildPermissions ¶
func (s *Session) GuildPermissions(ids ...string) (resp []*GuildPermission, err error)
GuildPermissions returns the assignable guild permissions
func (*Session) GuildRanks ¶
GuildRanks returns all guild ranks
func (*Session) GuildSearch ¶
GuildSearch searches for guilds based on the given name. It returns an array of guild ids
func (*Session) GuildStash ¶
func (s *Session) GuildStash(guild string) (resp []*GuildStashContainer, err error)
GuildStash returns all items in the guild stash
func (*Session) GuildTeams ¶
GuildTeams returns all guild teams
func (*Session) GuildTreasury ¶
func (s *Session) GuildTreasury(guild string) (resp []*GuildTreasurySlot, err error)
GuildTreasury returns all items in the guild treasury
func (*Session) GuildUpgrades ¶
GuildUpgrades returns all unlocked guild upgrades
func (*Session) LegendaryArmory ¶
func (s *Session) LegendaryArmory(ids ...int) (res []*LegendaryArmoryItem, err error)
LegendaryArmory returns all items that can be added to the legendary armory
func (*Session) MountSkins ¶
MountSkins returns the requested mount skins
func (*Session) MountTypes ¶
MountTypes returns the requested mount types
func (*Session) Professions ¶
func (s *Session) Professions(ids ...string) (rsp []*Profession, err error)
Professions returns the requested game professions
func (*Session) PvPAmulets ¶
PvPAmulets return pvp amulets
func (*Session) PvPSeasonLeaderboards ¶
func (s *Session) PvPSeasonLeaderboards(id, region string) (leaderboards []*PvPLeaderboardAccount, err error)
PvPSeasonLeaderboards returns the leaderboards for a pvp season. Only one id can be given. Valid regions are na or eu
func (*Session) PvPSeasons ¶
PvPSeasons returns pvp seasons
func (*Session) PvPStandings ¶
func (s *Session) PvPStandings() (standings *PvPStandings, err error)
PvPStandings returns the current seasons account and best ranking
func (*Session) RecipesSearchInput ¶
RecipesSearchInput searches for recipes that use the item as an input ingredient
func (*Session) RecipesSearchOutput ¶
RecipesSearchOutput searches for recipes that craft the item
func (*Session) Specializations ¶
func (s *Session) Specializations(ids ...int) (rsp []*Specialization, err error)
Specializations returns the requested specializations
func (*Session) StorySeasons ¶
func (s *Session) StorySeasons(ids ...string) (resp []*StorySeason, err error)
StorySeasons returns the story seasons with the given ids
func (*Session) Tile ¶
Tile fetches a tile from the tile service The request is randomly send to one of the entries in the tileService slice
func (*Session) TomorrowDailyAchievements ¶
func (s *Session) TomorrowDailyAchievements() (daily map[string][]*DailyAchievement, err error)
TomorrowDailyAchievements works the same as DailyAchievements. It returns the daily achievements for tomorrow
func (*Session) WithAccessToken ¶
WithAccessToken sets an accesstoken for a session
func (*Session) WithEndpointAPI ¶
WithEndpointAPI sets the API endpoint
func (*Session) WithLanguage ¶
WithLanguage sets the sessions language
func (*Session) WorldBosses ¶
WorldBosses returns worldboss chest that can be opened once per day
func (*Session) WvWAbilities ¶
func (s *Session) WvWAbilities(ids ...int) (abilities []*WvWAbility, err error)
WvWAbilities returns trainable wvw abilities
func (*Session) WvWMatchByWorldID ¶
WvWMatchByWorldID returns the match based on the participating world
func (*Session) WvWMatches ¶
WvWMatches returns currently active matches
func (*Session) WvWObjectives ¶
func (s *Session) WvWObjectives(ids ...string) (objectives []*WvWObjective, err error)
WvWObjectives returns wvw objectives
func (*Session) WvWUpgrades ¶
func (s *Session) WvWUpgrades(ids ...int) (upgrades []*WvWUpgrade, err error)
WvWUpgrades returns wvw objectives upgrades
type Skill ¶
type Skill struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Icon string `json:"icon"`
ChatLink string `json:"chat_link"`
Type string `json:"type"` // Bundle, Elite, Heal, Profession, Utility, Weapon
WeaponType string `json:"weapon_type"`
Professions []string `json:"professions"`
Slot string `json:"slot"`
Facts []*Fact `json:"facts"`
TraitedFacts []*FactTraited `json:"traited_facts"`
Categories []string `json:"categories"`
Attunement string `json:"attunement"`
Cost int `json:"cost"`
DualWield string `json:"dual_wield"`
FlipSkill int `json:"flip_skill"`
Initiative int `json:"initiative"`
NextChain int `json:"next_chain"`
PrevChain int `json:"prev_chain"`
TransformSkills []int `json:"transform_skills"`
BundleSkills []int `json:"bundle_skills"`
ToolbeltSkill int `json:"toolbelt_skill"`
}
Skill contains skill info
type Skills ¶
type Skills struct {
Heal int `json:"heal"`
Utilities []int `json:"utilities"`
Elite int `json:"elite"`
Legends int `json:"legends"`
}
Skills defines a set of character skills
type Skin ¶
type Skin struct {
ID int `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Flags []string `json:"flags"`
Restrictions []string `json:"restrictions"`
Icon string `json:"icon"`
Rarity string `json:"rarity"`
Description string `json:"description"`
Details struct {
Type string `json:"type"`
WeightClass string `json:"weight_class"`
DyeSlots struct {
Default []struct {
ColorID int `json:"color_id"`
Material string `json:"material"`
} `json:"default"`
} `json:"dye_slots"`
Overrides map[string]string `json:"overrides"`
DamageType string `json:"damage_type"`
} `json:"details"`
}
Skin is a game item skin
type Specialization ¶
type Specialization struct {
ID int `json:"id"`
Name string `json:"name"`
Profession string `json:"profession"`
Elite bool `json:"elite"`
Icon string `json:"icon"`
Background string `json:"background"`
MinorTraits []int `json:"minor_traits"`
MajorTraits []int `json:"major_traits"`
}
Specialization is a game specialization
type Story ¶
type Story struct {
ID int `json:"id"`
Season string `json:"season"`
Name string `json:"name"`
Description string `json:"description"`
Timeline string `json:"timeline"`
Level int `json:"level"`
Order int `json:"order"`
Chapters []struct {
Name string `json:"name"`
} `json:"chapters"`
Races []string `json:"races"`
Flags []string `json:"flags"`
}
Story contains information about story journal stories
type StorySeason ¶
type StorySeason struct {
ID string `json:"id"`
Name string `json:"name"`
Order int `json:"order"`
Stories []int `json:"stories"`
}
StorySeason is a game story season
type Title ¶
type Title struct {
ID int `json:"id"`
Name string `json:"name"`
Achievement int `json:"achievement"`
Achievements []int `json:"achievements"`
APRequired int `json:"ap_required"`
}
Title is a game title
type TokenInfo ¶
type TokenInfo struct {
ID string `json:"id"`
Name string `json:"name"`
Permissions []string `json:"permissions"`
}
TokenInfo contains general token information, such as the permissions
type TrainingTree ¶
TrainingTree defines a training tree for both skills and traits as displayed in the game
type Trait ¶
type Trait struct {
ID int `json:"id"`
Name string `json:"name"`
Icon string `json:"icon"`
Description string `json:"description"`
Specialization int `json:"specialization"`
Tier int `json:"tier"`
Slot string `json:"slot"`
Facts []*Fact `json:"facts"`
TraitedFacts []*FactTraited `json:"traited_facts"`
Skills []*Skill `json:"skills"` // NOTE: Only id, name, description, icon, facts and traited_facts are provided
}
Trait contains trait info
type World ¶
type World struct {
ID int `json:"id"`
Name string `json:"name"`
Population string `json:"population"`
}
World is a game world
type WorldBoss ¶
type WorldBoss struct {
ID string `json:"id"`
}
WorldBoss is a worldboss chest that can be opened once per day
type WvWAbility ¶
type WvWAbility struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Icon string `json:"icon"`
Ranks []struct {
Cost int `json:"cost"`
Effect string `json:"effect"`
}
}
WvWAbility is a trainable ability in wvw
type WvWMatch ¶
type WvWMatch struct {
ID string `json:"id"`
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
Scores map[string]int `json:"scores"`
Worlds map[string]int `json:"worlds"`
AllWorlds map[string][]int `json:"all_worlds"`
Deaths map[string]int `json:"deaths"`
Kills map[string]int `json:"kills"`
VictoryPoints map[string]int `json:"victory_points"`
Skirmishes []struct {
ID int `json:"id"`
Scores map[string]int `json:"scores"`
MapScores []struct {
Type string `json:"type"`
Scores map[string]int `json:"scores"`
} `json:"map_scores"`
} `json:"skirmishes"`
Maps []struct {
ID int `json:"id"`
Type string `json:"type"`
Scores map[string]int `json:"scores"`
Bonuses []struct {
Type string `json:"type"`
Owner string `json:"owner"`
} `json:"bonuses"`
Objectives []struct {
ID string `json:"id"`
Type string `json:"type"`
Owner string `json:"owner"`
LastFlipped string `json:"last_flipped"`
ClaimedBy string `json:"claimed_by"`
ClaimedAt string `json:"claimed_at"`
PointsTick int `json:"points_tick"`
PointsCapture int `json:"points_capture"`
YaksDelivered int `json:"yaks_delivered"`
GuildUpgrades []int `json:"guild_upgrades"`
} `json:"objectives"`
Deaths map[string]int `json:"deaths"`
Kills map[string]int `json:"kills"`
} `json:"maps"`
}
WvWMatch is a match in wvw. All map values will have the key strings red, green and blue
type WvWObjective ¶
type WvWObjective struct {
ID string `json:"id"`
Name string `json:"name"`
SectorID int `json:"sector_id"`
Type string `json:"type"`
MapType string `json:"map_type"`
MapID int `json:"map_id"`
UpgradeID int `json:"upgrade_id"`
Coord []float64 `json:"coord"`
LabelCoord []float64 `json:"label_coord"`
Marker string `json:"marker"`
ChatLink string `json:"chat_link"`
}
WvWObjective is a capturable structure in wvw
type WvWRank ¶
type WvWRank struct {
ID int `json:"id"`
Title string `json:"title"`
MinRank int `json:"min_rank"`
}
WvWRank is a rank as seen by enemy players
type WvWUpgrade ¶
type WvWUpgrade struct {
ID int `json:"id"`
Tiers []struct {
Name string `json:"name"`
YaksRequired int `json:"yaks_required"`
Upgrades []struct {
Name string `json:"name"`
Description string `json:"description"`
Icon string `json:"icon"`
} `json:"upgrades"`
} `json:"tiers"`
}
WvWUpgrade is an automatic objective upgrade
Source Files
¶
- account.go
- achievements.go
- attributes.go
- backstory.go
- build.go
- buildtemplate.go
- characters.go
- colors.go
- commerce.go
- continents.go
- currencies.go
- dailycrafting.go
- dungeons.go
- dyeslot.go
- emblem.go
- errors.go
- fact.go
- files.go
- finishers.go
- guild.go
- gw2api.go
- home.go
- item.go
- items.go
- itemstats.go
- legendaryarmory.go
- legends.go
- mapchests.go
- maps.go
- masteries.go
- materials.go
- minis.go
- mounts.go
- novelties.go
- outfits.go
- pets.go
- professions.go
- pvp.go
- quaggans.go
- quests.go
- races.go
- raids.go
- recipes.go
- skills.go
- skins.go
- specializations.go
- stories.go
- tiles.go
- titles.go
- tokeninfo.go
- traits.go
- util.go
- worldbosses.go
- worlds.go
- wvw.go