class XIVAPI::Client
- XIVAPI::Client
- Reference
- Object
Overview
When this file is required, include the Servers module to have access to the commands
Included Modules
- XIVAPI::Client::Character
- XIVAPI::Client::FreeCompany
- XIVAPI::Client::Linkshell
- XIVAPI::Client::Other
- XIVAPI::Client::PvpTeam
- XIVAPI::Client::Servers
Defined in:
client/client.crclient/character.cr
client/free_company.cr
client/linkshell.cr
client/other.cr
client/pvp_team.cr
client/servers.cr
Constructors
Instance Method Summary
-
#api_key : String
The api key for the client, can be changed while in use
-
#api_key=(api_key)
The api key for the client, can be changed while in use
-
#default_params : Hash(String, String)
Return a Hash of the default parameters that should be added in every request.
-
#language : String
The current language being used as the default for the requests
-
#language=(language : String)
Set the language of the client by ensuring it's in the array of allowed languages
-
#staging : Bool
A flag stating whether or not requests should use the stage version of the API
-
#staging=(staging : Bool)
Set the staging value of the client.
Instance methods inherited from module XIVAPI::Client::Servers
datacenters : Hash(String, Array(String))
datacenters,
servers : Array(String)
servers
Instance methods inherited from module XIVAPI::Client::PvpTeam
pvp_team(id : String) : Dataclasses::PvpTeamResponse
pvp_team,
pvp_team_search(name : String, server : String = "", page : UInt32 = 1) : XIVAPI::Dataclasses::Page(Dataclasses::PvpTeamProfile)
pvp_team_search
Instance methods inherited from module XIVAPI::Client::Other
content : Array(String)
content,
list_game_data(index : String, page : Int32 = 1, limit : Int32 = 100, ids : Array(Int32) = [] of Int32) : XIVAPI::Dataclasses::Page(Dataclasses::IDIconNameUrl)
list_game_data,
lore(string : String = "", string_algo : String = "wildcard", string_column : String = "", filters : Array(String) = [] of String, indexes : Array(String) = [] of String, sort_field : String = "", sort_order : String = "asc", page : Int32 = 1, limit : Int32 = 50, include_data : Bool = false) : XIVAPI::Dataclasses::Page(Dataclasses::Lore)
lore,
patch_list : Array(Dataclasses::Patch)
patch_list,
read_game_data(index : String, id : Int32) : JSON::Any
read_game_data,
search(string : String = "", string_algo : String = "wildcard", string_column : String = "", filters : Array(String) = [] of String, indexes : Array(String) = [] of String, sort_field : String = "", sort_order : String = "asc", page : Int32 = 1, limit : Int32 = 50) : XIVAPI::Dataclasses::Page(Dataclasses::SearchResult)
search
Instance methods inherited from module XIVAPI::Client::Linkshell
linkshell(id : String) : Dataclasses::LinkshellResponse
linkshell,
linkshell_search(name : String, server : String = "", page : UInt32 = 1) : XIVAPI::Dataclasses::Page(Dataclasses::LinkshellSearch)
linkshell_search
Instance methods inherited from module XIVAPI::Client::FreeCompany
free_company(id : String, members : Bool = false) : Dataclasses::FreeCompanyResponse
free_company,
free_company_search(name : String, server : String = "", page : UInt32 = 1) : XIVAPI::Dataclasses::Page(Dataclasses::FreeCompanyProfile)
free_company_search
Instance methods inherited from module XIVAPI::Client::Character
character(id : UInt64, data : Enumerable(String) = [] of String) : Dataclasses::CharacterResponse
character,
character_search(name : String, server : String = "", page : UInt32 = 1) : XIVAPI::Dataclasses::Page(Dataclasses::CharacterSummary)
character_search,
character_verification(id : UInt64, token : String) : Bool
character_verification
Constructor Detail
Instance Method Detail
Return a Hash of the default parameters that should be added in every request. These are currently; api_key, language
Set the language of the client by ensuring it's in the array of allowed languages
Set the staging value of the client. This method automatically updates the API url to the appropriate value