API C BattleNet.GetFriendAccountInfo

Returns information about a Battle.net friend account.
 accountInfo = C_BattleNet.GetFriendAccountInfo(friendIndex [, wowAccountGUID])
 = C_BattleNet.GetAccountInfoByID(id [, wowAccountGUID])
 = C_BattleNet.GetAccountInfoByGUID(guid)
==Arguments==
===GetFriendAccountInfo===
:;friendIndex: - Index ranging from 1 to ()
:;wowAccountGUID: : BNetAccountGUID
===GetAccountInfoByID===
:;id: : bnetAccountID
:;wowAccountGUID: : BNetAccountGUID
===GetAccountInfoByGUID===
:;guid: : UnitGUID
==Returns==
:;accountInfo:
Field 	Type	Description
bnetAccountID 	 	A temporary ID for the friend's battle.net account during this session
accountName 	 	A protected string representing the friend's full name or BattleTag name
battleTag 	 	The friend's BattleTag (e.g., "Nickname#0001")
isFriend 	 	
isBattleTagFriend	 	Whether or not the friend is known by their BattleTag
lastOnlineTime 	 	The number of seconds elapsed since this friend was last online (from the epoch date of January 1, 1970). Returns nil if currently online.
isAFK 	 	Whether or not the friend is flagged as Away
isDND 	 	Whether or not the friend is flagged as Busy
isFavorite 	 	Whether or not the friend is marked as a favorite by you
appearOffline 	 	
customMessage 	 	The Battle.net broadcast message
customMessageTime	 	The number of seconds elapsed since the current broadcast message was sent
note 	 	The contents of the player's note about this friend
rafLinkType 	 	
gameAccountInfo 	 	
==Details==
==Example==
Shows your own account info.
 /dump C_BattleNet.GetAccountInfoByID(select(3, ()))
Shows your Battle.net friends' account information.
for i = 1, BNGetNumFriends() do
	local acc = C_BattleNet.GetFriendAccountInfo(i)
	local game = acc.gameAccountInfo
	print(acc.bnetAccountID, acc.accountName, game.gameAccountID, game.isOnline, game.clientProgram)
end
-- 1, "|Kq2|k", 5, true, "BSAp"
-- 2, "|Kq1|k", nil, false, ""
==Patch changes==