module XIVAPI::Client::Character
Direct including types
Defined in:
client/character.crConstant Summary
-
CHARACTER_DATA_VALUES =
Set {"AC", "FR", "FC", "FCM", "PVP", "MIMO", "CJ"}
-
A Set of Strings representing the fields that can be requested using the Character endpoint
Instance Method Summary
-
#character(id : UInt64, data : Enumerable(String) = [] of String) : Dataclasses::CharacterResponse
Retrieve the details of the Character with the given Lodestone ID.
-
#character_search(name : String, server : String = "", page : UInt32 = 1) : Dataclasses::Page(Dataclasses::CharacterSummary)
Search the lodestone API for characters with a given name.
-
#character_verification(id : UInt64, token : String) : Bool
Verify the Character using a token.
Instance Method Detail
def character(id : UInt64, data : Enumerable(String) = [] of String) : Dataclasses::CharacterResponse
#
Retrieve the details of the Character with the given Lodestone ID.
Any data fields that are requested will be mapped against the CHARACTER_DATA_VALUES
variable to ensure only allowed values are sent.
def character_search(name : String, server : String = "", page : UInt32 = 1) : Dataclasses::Page(Dataclasses::CharacterSummary)
#
Search the lodestone API for characters with a given name. Optionally, search specific servers, add request extra fields.
def character_verification(id : UInt64, token : String) : Bool
#
Verify the Character using a token. This method checks that the given token is in the requested User's Bio