class Intrinio::DataTagApi
Attributes
api_client[RW]
Public Class Methods
new(api_client = ApiClient.default)
click to toggle source
# File lib/intrinio-sdk/api/data_tag_api.rb, line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
get_data_tag_by_id(identifier, opts = {})
click to toggle source
Lookup Data Tag Returns the Data Tag with the given `identifier` @param identifier The Intrinio
ID or the code-name of the Data Tag @param [Hash] opts the optional parameters @return [DataTag]
# File lib/intrinio-sdk/api/data_tag_api.rb, line 106 def get_data_tag_by_id(identifier, opts = {}) data, _status_code, _headers = get_data_tag_by_id_with_http_info(identifier, opts) return data end
get_data_tag_by_id_with_http_info(identifier, opts = {})
click to toggle source
Lookup Data Tag Returns the Data Tag with the given `identifier` @param identifier The Intrinio
ID or the code-name of the Data Tag @param [Hash] opts the optional parameters @return [Array<(DataTag
, Fixnum, Hash)>] DataTag
data, response status code and response headers
# File lib/intrinio-sdk/api/data_tag_api.rb, line 116 def get_data_tag_by_id_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: DataTagApi.get_data_tag_by_id ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling DataTagApi.get_data_tag_by_id" end # resource path local_var_path = "/data_tags/{identifier}".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] 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 => 'DataTag') if @api_client.config.debugging @api_client.config.logger.debug "API called: DataTagApi#get_data_tag_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end