@@ -61,51 +61,14 @@ def servers(group: false)
6161 request ( self , endpoint )
6262 end
6363
64- # @param ids [Integer, Array<Integer>] ID(s) of the item(s) to look up
65- # @param servers [String, Array<String>] Server(s) to retrieve the market for
66- # @param data_center [String] Data center to retrieve the market for
67- # @param max_history [Integer] The maximum amount of history to retrieve
68- # @param columns [String, Array <String>] One or more columns to limit results to
69- # @return [OpenStruct] Market price results
70- def market ( ids : [ ] , servers : [ ] , data_center : nil , max_history : nil , columns : [ ] )
71- ids , server_names = [ *ids ] , [ *servers ]
72- params = { max_history : max_history , columns : [ *columns ] . join ( ',' ) }
73-
74- if ids . size > 1
75- params . merge! ( ids : ids . join ( ',' ) , dc : data_center , servers : server_names . join ( ',' ) )
76- request ( self , 'market/items' , params )
77- elsif data_center || server_names . size > 1 || server_names [ 0 ] . match? ( ',' )
78- params . merge! ( dc : data_center , servers : server_names . join ( ',' ) )
79- request ( self , "market/item/#{ ids . first } " , params )
80- else
81- request ( self , "market/#{ server_names . first } /item/#{ ids . first } " , params )
82- end
83- end
84-
85- # @return [Array<OpenStruct>] List of Market categories
86- def market_categories
87- request ( self , 'market/categories' )
88- end
89-
9064 # @param id [Integer] Character ID
9165 # @param all_data [true, false] Return the full set of character data
92- # @param poll [true, false] Continuously call the API until a result is cached and returned
9366 # @param data [String, Array <String>] Additional data to request, see: https://xivapi.com/docs/Character#character
9467 # @param columns [String, Array <String>] One or more columns to limit results to
9568 # @return [OpenStruct] The requested character
96- def character ( id : nil , all_data : false , poll : false , data : [ ] , columns : [ ] )
69+ def character ( id : nil , all_data : false , data : [ ] , columns : [ ] )
9770 params = { data : character_data ( all_data , data ) , columns : [ *columns ] . join ( ',' ) }
98- request_cached ( self , "character/#{ id } " , :character , params , poll )
99- end
100-
101- # @param ids [String, Array<Integer>] Character IDs
102- # @param all_data [true, false] Return the full set of character data
103- # @param data [String, Array <String>] Additional data to request, see: https://xivapi.com/docs/Character#character
104- # @param columns [String, Array <String>] One or more columns to limit results to
105- # @return [Array<OpenStruct>] The requested characters
106- def characters ( ids : nil , all_data : false , data : [ ] , columns : [ ] )
107- body = { ids : [ *ids ] . join ( ',' ) , data : character_data ( all_data , data ) , columns : [ *columns ] . join ( ',' ) }
108- request ( self , 'characters' , { } , body )
71+ request ( self , "character/#{ id } " , params )
10972 end
11073
11174 # @param name [String] Character name
@@ -117,27 +80,20 @@ def character_search(name: nil, server: nil, columns: [])
11780 XIVAPI ::Paginator . new ( self , params , 'character/search' , LODESTONE_LIMIT )
11881 end
11982
120- # @param id [Integer] Character ID
121- # @return [true, false] Whether or not the character update was requested successfully
122- def character_update ( id : nil )
123- request ( self , "character/#{ id } /update" ) == 1
124- end
125-
12683 # @param id [Integer] Character ID
12784 # @param token [String] Verification token to check for
12885 # @return [true, false] Whether or not the character is verified
12986 def character_verified? ( id : nil , token : nil )
130- request ( self , "character/ #{ id } /verification" , { token : token } ) . pass
87+ character ( id : id , columns : 'Character.Bio' ) . character . bio . match? ( token )
13188 end
13289
13390 # @param id [Integer] Free company ID
13491 # @param members [true, false] Return member data
135- # @param poll [true, false] Continuously call the API until a result is cached and returned
13692 # @param columns [String, Array <String>] One or more columns to limit results to
13793 # @return [OpenStruct] The requested free company
138- def free_company ( id : nil , members : false , poll : false , columns : [ ] )
94+ def free_company ( id : nil , members : false , columns : [ ] )
13995 params = { data : members ? 'FCM' : nil , columns : [ *columns ] . join ( ',' ) }
140- request_cached ( self , "freecompany/#{ id } " , :free_company , params , poll )
96+ request ( self , "freecompany/#{ id } " , params )
14197 end
14298
14399 # @param name [String] Free company name
@@ -150,12 +106,11 @@ def free_company_search(name: nil, server: nil, columns: [])
150106 end
151107
152108 # @param id [Integer] Linkshell ID
153- # @param poll [true, false] Continuously call the API until a result is cached and returned
154109 # @param columns [String, Array <String>] One or more columns to limit results to
155110 # @return [OpenStruct] The requested linkshell
156- def linkshell ( id : nil , poll : false , columns : [ ] )
111+ def linkshell ( id : nil , columns : [ ] )
157112 params = { columns : [ *columns ] . join ( ',' ) }
158- request_cached ( self , "linkshell/#{ id } " , :linkshell , params , poll )
113+ request ( self , "linkshell/#{ id } " , params )
159114 end
160115
161116 # @param name [String] Linkshell name
@@ -168,12 +123,11 @@ def linkshell_search(name: nil, server: nil, columns: [])
168123 end
169124
170125 # @param id [Integer] PVP team ID
171- # @param poll [true, false] Continuously call the API until a result is cached and returned
172126 # @param columns [String, Array <String>] One or more columns to limit results to
173127 # @return [OpenStruct] The requested PVP team
174- def pvp_team ( id : nil , poll : false , columns : [ ] )
128+ def pvp_team ( id : nil , columns : [ ] )
175129 params = { columns : [ *columns ] . join ( ',' ) }
176- request_cached ( self , "pvpteam/#{ id } " , :pvp_team , params , poll )
130+ request ( self , "pvpteam/#{ id } " , params )
177131 end
178132
179133 # @param name [String] PVP team name
0 commit comments