API GetPlayerInfoByGUID

Returns character info for another player from their GUID.
 localizedClass, englishClass, localizedRace, englishRace, sex, name, realm = GetPlayerInfoByGUID(guid)
==Arguments==
:;guid: - The GUID of the player you're querying.
==Returns==
:;localizedClass: - Localized class name.
:;englishClass: - Localization-independent class name.
:;localizedRace: - Localized race name.
:;englishRace: - Localization-independent race name.
:;sex: - Gender ID of the character. 2 for male, or 3 for female.
:;name: - The name of the character.
:;realm: - Normalized realm name of the character. Returns an empty string if the character is from the same realm as the player.
==Example==
* When used on yourself.
 /dump UnitGUID("target"), GetPlayerInfoByGUID(UnitGUID("target"))
> "Player-1096-06DF65C1", "Priest", "PRIEST", "Human", "Human", 3, "Xiaohuli", ""
* When used on a player from another realm, in this case from the same connected realm.
> "Player-1096-0971D0BE", "Monk", "MONK", "Night Elf", "NightElf", 2, "Coldbits", "DarkmoonFaire"
==Patch changes==