API C_BattleNet.GetGameAccountInfoByID

From Wowpedia
Jump to: navigation, search

Returns information about the toon of a Battle.net friend.

gameAccountInfo = C_BattleNet.GetGameAccountInfoByID(id)
                = C_BattleNet.GetGameAccountInfoByGUID("guid")

Arguments (GetGameAccountInfoByID)

id 
number

Arguments (GetGameAccountInfoByGUID)

guid 
string - Unit GUID, only works for the player character and characters of battle.net friends

Returns

gameAccountInfo 
structure - BNetGameAccountInfo (nilable)
BNetGameAccountInfo
Key Type Description
gameAccountID number (nilable)
clientProgram string globalstring BNET_CLIENT
isOnline boolean
isGameBusy boolean
isGameAFK boolean
wowProjectID number (nilable)
characterName string (nilable) The name of the logged in toon/character
realmName string (nilable) The name of the logged in realm
realmDisplayName string (nilable)
realmID number (nilable) The ID for the logged in realm
factionName string (nilable) The faction name (i.e., "Alliance" or "Horde")
raceName string (nilable) The localized race name (e.g., "Blood Elf")
className string (nilable) The localized class name (e.g., "Death Knight")
areaName string (nilable) The localized zone name (e.g., "The Undercity")
characterLevel number (nilable) The current level (e.g., "90")
richPresence string (nilable) For WoW, returns "zoneName - realmName". For StarCraft 2 and Diablo 3, returns the location or activity the player is currently engaged in.
playerGuid string (nilable) A unique numeric identifier for the friend's character during this session.
isWowMobile boolean
canSummon boolean
hasFocus boolean Whether or not this toon is the one currently being displayed in Blizzard's FriendFrame
BNET_CLIENT
GlobalString Value Description
BNET_CLIENT_WOW WoW World of Warcraft
BNET_CLIENT_SC2 S2 StarCraft 2
BNET_CLIENT_D3 D3 Diablo 3
BNET_CLIENT_WTCG WTCG Hearthstone
BNET_CLIENT_APP App Battle.net Client
BSAp Battle.Net Mobile App
BNET_CLIENT_HEROES Hero Heroes of the Storm
BNET_CLIENT_OVERWATCH Pro Overwatch
BNET_CLIENT_CLNT CLNT
BNET_CLIENT_SC S1 StarCraft: Remastered
BNET_CLIENT_DESTINY2 DST2 Destiny 2
BNET_CLIENT_COD VIPR Call of Duty: Black Ops 4

Patch changes

See also