class ESI::CorporationApi
Attributes
Public Class Methods
# File lib/esi-client-bvv/api/corporation_api.rb, line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
Get corporation information Public information about a corporation — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [GetCorporationsCorporationIdOk]
# File lib/esi-client-bvv/api/corporation_api.rb, line 30 def get_corporations_corporation_id(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_with_http_info(corporation_id, opts) return data end
Get alliance history Get a list of all the alliances a corporation has been a member of — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [Array<GetCorporationsCorporationIdAlliancehistory200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 98 def get_corporations_corporation_id_alliancehistory(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_alliancehistory_with_http_info(corporation_id, opts) return data end
Get alliance history Get a list of all the alliances a corporation has been a member of — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [Array<(Array<GetCorporationsCorporationIdAlliancehistory200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdAlliancehistory200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 110 def get_corporations_corporation_id_alliancehistory_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_alliancehistory ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_alliancehistory" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_alliancehistory, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v2/corporations/{corporation_id}/alliancehistory/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdAlliancehistory200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_alliancehistory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation blueprints Returns a list of blueprints the corporation owns — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdBlueprints200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 168 def get_corporations_corporation_id_blueprints(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_blueprints_with_http_info(corporation_id, opts) return data end
Get corporation blueprints Returns a list of blueprints the corporation owns — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdBlueprints200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdBlueprints200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 182 def get_corporations_corporation_id_blueprints_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_blueprints ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_blueprints" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_blueprints, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CorporationApi.get_corporations_corporation_id_blueprints, must be greater than or equal to 1.' end # resource path local_var_path = "/v2/corporations/{corporation_id}/blueprints/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdBlueprints200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_blueprints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get all corporation ALSC logs Returns logs recorded in the past seven days from all audit log secure containers (ALSC) owned by a given corporation — This route is cached for up to 600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdContainersLogs200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 246 def get_corporations_corporation_id_containers_logs(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_containers_logs_with_http_info(corporation_id, opts) return data end
Get all corporation ALSC logs Returns logs recorded in the past seven days from all audit log secure containers (ALSC) owned by a given corporation — This route is cached for up to 600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdContainersLogs200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdContainersLogs200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 260 def get_corporations_corporation_id_containers_logs_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_containers_logs ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_containers_logs" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_containers_logs, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CorporationApi.get_corporations_corporation_id_containers_logs, must be greater than or equal to 1.' end # resource path local_var_path = "/v2/corporations/{corporation_id}/containers/logs/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdContainersLogs200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_containers_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation divisions Return corporation hangar and wallet division names, only show if a division is not using the default name — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [GetCorporationsCorporationIdDivisionsOk]
# File lib/esi-client-bvv/api/corporation_api.rb, line 323 def get_corporations_corporation_id_divisions(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_divisions_with_http_info(corporation_id, opts) return data end
Get corporation divisions Return corporation hangar and wallet division names, only show if a division is not using the default name — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<(GetCorporationsCorporationIdDivisionsOk
, Fixnum, Hash)>] GetCorporationsCorporationIdDivisionsOk
data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 336 def get_corporations_corporation_id_divisions_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_divisions ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_divisions" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_divisions, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/corporations/{corporation_id}/divisions/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetCorporationsCorporationIdDivisionsOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_divisions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation facilities Return a corporation's facilities — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Factory_Manager @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdFacilities200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 394 def get_corporations_corporation_id_facilities(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_facilities_with_http_info(corporation_id, opts) return data end
Get corporation facilities Return a corporation's facilities — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Factory_Manager @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdFacilities200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdFacilities200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 407 def get_corporations_corporation_id_facilities_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_facilities ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_facilities" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_facilities, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/corporations/{corporation_id}/facilities/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdFacilities200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_facilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation icon Get the icon urls for a corporation — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [GetCorporationsCorporationIdIconsOk]
# File lib/esi-client-bvv/api/corporation_api.rb, line 464 def get_corporations_corporation_id_icons(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_icons_with_http_info(corporation_id, opts) return data end
Get corporation icon Get the icon urls for a corporation — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [Array<(GetCorporationsCorporationIdIconsOk
, Fixnum, Hash)>] GetCorporationsCorporationIdIconsOk
data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 476 def get_corporations_corporation_id_icons_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_icons ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_icons" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_icons, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/corporations/{corporation_id}/icons/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetCorporationsCorporationIdIconsOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_icons\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation medals Returns a corporation's medals — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdMedals200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 534 def get_corporations_corporation_id_medals(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_medals_with_http_info(corporation_id, opts) return data end
Get corporation issued medals Returns medals issued by a corporation — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdMedalsIssued200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 612 def get_corporations_corporation_id_medals_issued(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_medals_issued_with_http_info(corporation_id, opts) return data end
Get corporation issued medals Returns medals issued by a corporation — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdMedalsIssued200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdMedalsIssued200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 626 def get_corporations_corporation_id_medals_issued_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_medals_issued ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_medals_issued" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_medals_issued, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CorporationApi.get_corporations_corporation_id_medals_issued, must be greater than or equal to 1.' end # resource path local_var_path = "/v1/corporations/{corporation_id}/medals/issued/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdMedalsIssued200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_medals_issued\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation medals Returns a corporation's medals — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdMedals200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdMedals200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 548 def get_corporations_corporation_id_medals_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_medals ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_medals" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_medals, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CorporationApi.get_corporations_corporation_id_medals, must be greater than or equal to 1.' end # resource path local_var_path = "/v1/corporations/{corporation_id}/medals/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdMedals200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_medals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation members Return the current member list of a corporation, the token's character need to be a member of the corporation. — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<Integer>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 689 def get_corporations_corporation_id_members(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_members_with_http_info(corporation_id, opts) return data end
Get corporation member limit Return a corporation's member limit, not including CEO himself — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Integer]
# File lib/esi-client-bvv/api/corporation_api.rb, line 760 def get_corporations_corporation_id_members_limit(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_members_limit_with_http_info(corporation_id, opts) return data end
Get corporation member limit Return a corporation's member limit, not including CEO himself — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 773 def get_corporations_corporation_id_members_limit_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_members_limit ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_members_limit" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_members_limit, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/corporations/{corporation_id}/members/limit/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Integer') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_members_limit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation's members' titles Returns a corporation's members' titles — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdMembersTitles200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 831 def get_corporations_corporation_id_members_titles(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_members_titles_with_http_info(corporation_id, opts) return data end
Get corporation's members' titles Returns a corporation's members' titles — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdMembersTitles200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdMembersTitles200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 844 def get_corporations_corporation_id_members_titles_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_members_titles ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_members_titles" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_members_titles, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/corporations/{corporation_id}/members/titles/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdMembersTitles200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_members_titles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation members Return the current member list of a corporation, the token's character need to be a member of the corporation. — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<Integer>, Fixnum, Hash)>] Array<Integer> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 702 def get_corporations_corporation_id_members_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_members ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_members" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_members, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v3/corporations/{corporation_id}/members/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<Integer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Track corporation members Returns additional information about a corporation's members which helps tracking their activities — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdMembertracking200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 902 def get_corporations_corporation_id_membertracking(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_membertracking_with_http_info(corporation_id, opts) return data end
Track corporation members Returns additional information about a corporation's members which helps tracking their activities — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdMembertracking200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdMembertracking200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 915 def get_corporations_corporation_id_membertracking_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_membertracking ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_membertracking" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_membertracking, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/corporations/{corporation_id}/membertracking/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdMembertracking200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_membertracking\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation member roles Return the roles of all members if the character has the personnel manager role or any grantable role. — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdRoles200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 973 def get_corporations_corporation_id_roles(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_roles_with_http_info(corporation_id, opts) return data end
Get corporation member roles history Return how roles have changed for a coporation's members, up to a month — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdRolesHistory200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 1045 def get_corporations_corporation_id_roles_history(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_roles_history_with_http_info(corporation_id, opts) return data end
Get corporation member roles history Return how roles have changed for a coporation's members, up to a month — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdRolesHistory200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdRolesHistory200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 1059 def get_corporations_corporation_id_roles_history_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_roles_history ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_roles_history" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_roles_history, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CorporationApi.get_corporations_corporation_id_roles_history, must be greater than or equal to 1.' end # resource path local_var_path = "/v1/corporations/{corporation_id}/roles/history/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdRolesHistory200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_roles_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation member roles Return the roles of all members if the character has the personnel manager role or any grantable role. — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdRoles200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdRoles200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 986 def get_corporations_corporation_id_roles_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_roles ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_roles" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_roles, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/corporations/{corporation_id}/roles/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdRoles200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation standings Return corporation standings from agents, NPC corporations, and factions — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdStandings200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 1201 def get_corporations_corporation_id_standings(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_standings_with_http_info(corporation_id, opts) return data end
Get corporation standings Return corporation standings from agents, NPC corporations, and factions — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdStandings200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdStandings200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 1215 def get_corporations_corporation_id_standings_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_standings ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_standings" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_standings, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CorporationApi.get_corporations_corporation_id_standings, must be greater than or equal to 1.' end # resource path local_var_path = "/v1/corporations/{corporation_id}/standings/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdStandings200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_standings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation starbases (POSes) Returns list of corporation starbases (POSes) — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdStarbases200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 1279 def get_corporations_corporation_id_starbases(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_starbases_with_http_info(corporation_id, opts) return data end
Get starbase (POS) detail Returns various settings and fuels of a starbase (POS) — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param starbase_id An EVE starbase (POS) ID @param system_id The solar system this starbase (POS) is located in, @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [GetCorporationsCorporationIdStarbasesStarbaseIdOk]
# File lib/esi-client-bvv/api/corporation_api.rb, line 1358 def get_corporations_corporation_id_starbases_starbase_id(corporation_id, starbase_id, system_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_starbases_starbase_id_with_http_info(corporation_id, starbase_id, system_id, opts) return data end
Get starbase (POS) detail Returns various settings and fuels of a starbase (POS) — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param starbase_id An EVE starbase (POS) ID @param system_id The solar system this starbase (POS) is located in, @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<(GetCorporationsCorporationIdStarbasesStarbaseIdOk
, Fixnum, Hash)>] GetCorporationsCorporationIdStarbasesStarbaseIdOk
data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 1373 def get_corporations_corporation_id_starbases_starbase_id_with_http_info(corporation_id, starbase_id, system_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_starbases_starbase_id ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_starbases_starbase_id" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_starbases_starbase_id, must be greater than or equal to 1.' end # verify the required parameter 'starbase_id' is set if @api_client.config.client_side_validation && starbase_id.nil? fail ArgumentError, "Missing the required parameter 'starbase_id' when calling CorporationApi.get_corporations_corporation_id_starbases_starbase_id" end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? fail ArgumentError, "Missing the required parameter 'system_id' when calling CorporationApi.get_corporations_corporation_id_starbases_starbase_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/corporations/{corporation_id}/starbases/{starbase_id}/".sub('{' + 'corporation_id' + '}', corporation_id.to_s).sub('{' + 'starbase_id' + '}', starbase_id.to_s) # query parameters query_params = {} query_params[:'system_id'] = system_id query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetCorporationsCorporationIdStarbasesStarbaseIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_starbases_starbase_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation starbases (POSes) Returns list of corporation starbases (POSes) — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [Integer] :page Which page of results to return @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdStarbases200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdStarbases200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 1293 def get_corporations_corporation_id_starbases_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_starbases ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_starbases" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_starbases, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CorporationApi.get_corporations_corporation_id_starbases, must be greater than or equal to 1.' end # resource path local_var_path = "/v1/corporations/{corporation_id}/starbases/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdStarbases200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_starbases\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation structures Get a list of corporation structures. This route's version includes the changes to structures detailed in this blog: www.eveonline.com/article/upwell-2.0-structures-changes-coming-on-february-13th — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Station_Manager @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :accept_language Language to use in the response (default to en-us) @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :language Language to use in the response, takes precedence over Accept-Language (default to en-us) @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdStructures200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 1443 def get_corporations_corporation_id_structures(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_structures_with_http_info(corporation_id, opts) return data end
Get corporation structures Get a list of corporation structures. This route's version includes the changes to structures detailed in this blog: www.eveonline.com/article/upwell-2.0-structures-changes-coming-on-february-13th — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Station_Manager @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :accept_language Language to use in the response @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :language Language to use in the response, takes precedence over Accept-Language @option opts [Integer] :page Which page of results to return @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdStructures200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdStructures200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 1459 def get_corporations_corporation_id_structures_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_structures ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_structures" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_structures, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh' end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1 fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CorporationApi.get_corporations_corporation_id_structures, must be greater than or equal to 1.' end # resource path local_var_path = "/v3/corporations/{corporation_id}/structures/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdStructures200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_structures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation titles Returns a corporation's titles — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<GetCorporationsCorporationIdTitles200Ok>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 1530 def get_corporations_corporation_id_titles(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_titles_with_http_info(corporation_id, opts) return data end
Get corporation titles Returns a corporation's titles — This route is cached for up to 3600 seconds — Requires one of the following EVE corporation role(s): Director @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @option opts [String] :token Access token to use if unable to set a header @return [Array<(Array<GetCorporationsCorporationIdTitles200Ok>, Fixnum, Hash)>] Array<GetCorporationsCorporationIdTitles200Ok> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 1543 def get_corporations_corporation_id_titles_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id_titles ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id_titles" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id_titles, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/corporations/{corporation_id}/titles/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCorporationsCorporationIdTitles200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id_titles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get corporation information Public information about a corporation — This route is cached for up to 3600 seconds @param corporation_id An EVE corporation ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [Array<(GetCorporationsCorporationIdOk
, Fixnum, Hash)>] GetCorporationsCorporationIdOk
data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 42 def get_corporations_corporation_id_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_corporation_id ..." end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling CorporationApi.get_corporations_corporation_id" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling CorporationApi.get_corporations_corporation_id, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v4/corporations/{corporation_id}/".sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetCorporationsCorporationIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_corporation_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get npc corporations Get a list of npc corporations — This route expires daily at 11:05 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [Array<Integer>]
# File lib/esi-client-bvv/api/corporation_api.rb, line 1599 def get_corporations_npccorps(opts = {}) data, _status_code, _headers = get_corporations_npccorps_with_http_info(opts) return data end
Get npc corporations Get a list of npc corporations — This route expires daily at 11:05 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :if_none_match ETag from a previous request. A 304 will be returned if this matches the current ETag @return [Array<(Array<Integer>, Fixnum, Hash)>] Array<Integer> data, response status code and response headers
# File lib/esi-client-bvv/api/corporation_api.rb, line 1610 def get_corporations_npccorps_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CorporationApi.get_corporations_npccorps ..." end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/v1/corporations/npccorps/" # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<Integer>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CorporationApi#get_corporations_npccorps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end