GWCharactersClient

class GWCharactersClient(apiKey: String)

Client for characters endpoint. Doesn't include the /skills and /specializations sub-endpoints, as these are not available anymore in the schema version that's being used by the internal client. Use buildtabs for that. Documentation can be found in the GW2 Wiki.

Parameters

apiKey

account api key

See also

Constructors

Link copied to clipboard
constructor(apiKey: String)

Functions

Link copied to clipboard
fun getActiveBuildTab(characterName: String): BuildTab

Retrieves the currently active BuildTab

Link copied to clipboard

Retrieves the currently active EquipmentTab

Link copied to clipboard
fun getBackstory(characterName: String): List<String>?

Retrieves the character's backstory.

Link copied to clipboard
fun getBuildTab(characterName: String, tab: Int): BuildTab

Retrieves the specified BuildTab

Link copied to clipboard
fun getBuildTabs(characterName: String): List<BuildTab>

Retrieves all buildtabs

Link copied to clipboard
fun getCharacter(characterName: String): Character

Retrieves main character info

Link copied to clipboard

Retrieves the list of characters

Link copied to clipboard
fun getCore(characterName: String): CharacterCore

Retrieves core character info

Link copied to clipboard
fun getCrafting(characterName: String): List<Crafting>?

Retrieves character crafting info

Link copied to clipboard
fun getEquipment(characterName: String): List<EquipmentItem>?

Retrieves the character's equipment

Link copied to clipboard
fun getEquipmentTab(characterName: String, tab: Int): EquipmentTab

Retrieves the specified EquipmentTab

Link copied to clipboard

Retrieves all EquipmentTabs

Link copied to clipboard
fun getHeropoints(characterName: String): List<String>

Retrieves all Heropoints that this character has claimed

Link copied to clipboard
fun getInventory(characterName: String): List<Bag?>?

Retrieves the current inventory contents, structured by bag

Link copied to clipboard
fun getQuests(characterName: String): List<Int>

Retrieves all quests that this character has done

Link copied to clipboard
fun getRecipes(characterName: String): List<Int>?

Retrieves all learned recipes for this character (recipes are shared account wide though)

Link copied to clipboard
fun getSAB(characterName: String): CharacterSAB

Retrieves infos about this character's SAB progress and unlocks

Link copied to clipboard
fun getTraining(characterName: String): List<Training>?

Retrieves info about this characters' training, like specializations and skills