Class: Intrinio::FilingApi
- Inherits:
-
Object
- Object
- Intrinio::FilingApi
- Defined in:
- lib/intrinio-sdk/api/filing_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#filter_filings(company, opts = {}) ⇒ ApiResponseFilings
Filter Filings Returns Filings that match the specified filters.
-
#filter_filings_with_http_info(company, opts = {}) ⇒ Array<(ApiResponseFilings, Fixnum, Hash)>
Filter Filings Returns Filings that match the specified filters.
-
#filter_notes(opts = {}) ⇒ ApiResponseFilingNotes
Filter Filing Notes Returns Filing Notes that match the specified filters.
-
#filter_notes_with_http_info(opts = {}) ⇒ Array<(ApiResponseFilingNotes, Fixnum, Hash)>
Filter Filing Notes Returns Filing Notes that match the specified filters.
-
#get_all_filings(opts = {}) ⇒ ApiResponseFilings
All Filings Returns all Filings.
-
#get_all_filings_with_http_info(opts = {}) ⇒ Array<(ApiResponseFilings, Fixnum, Hash)>
All Filings Returns all Filings.
-
#get_all_notes(opts = {}) ⇒ ApiResponseFilingNotes
All Filing Notes Return all Notes from all Filings, most-recent first.
-
#get_all_notes_with_http_info(opts = {}) ⇒ Array<(ApiResponseFilingNotes, Fixnum, Hash)>
All Filing Notes Return all Notes from all Filings, most-recent first.
-
#get_filing_by_id(id, opts = {}) ⇒ Filing
Lookup Filing Returns the Filing with the given ‘identifier`.
-
#get_filing_by_id_with_http_info(id, opts = {}) ⇒ Array<(Filing, Fixnum, Hash)>
Lookup Filing Returns the Filing with the given `identifier`.
-
#get_note(identifier, opts = {}) ⇒ FilingNote
Filing Note by ID.
-
#get_note_html(identifier, opts = {}) ⇒ String
Filing Note HTML.
-
#get_note_html_with_http_info(identifier, opts = {}) ⇒ Array<(String, Fixnum, Hash)>
Filing Note HTML.
-
#get_note_text(identifier, opts = {}) ⇒ String
Filing Note Text.
-
#get_note_text_with_http_info(identifier, opts = {}) ⇒ Array<(String, Fixnum, Hash)>
Filing Note Text.
-
#get_note_with_http_info(identifier, opts = {}) ⇒ Array<(FilingNote, Fixnum, Hash)>
Filing Note by ID.
-
#initialize(api_client = ApiClient.default) ⇒ FilingApi
constructor
A new instance of FilingApi.
-
#search_notes(query, opts = {}) ⇒ ApiResponseFilingNotesSearch
Search Filing Notes Searches for Filing Notes using the ‘query`.
-
#search_notes_with_http_info(query, opts = {}) ⇒ Array<(ApiResponseFilingNotesSearch, Fixnum, Hash)>
Search Filing Notes Searches for Filing Notes using the `query`.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#filter_filings(company, opts = {}) ⇒ ApiResponseFilings
Filter Filings Returns Filings that match the specified filters
32 33 34 35 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 32 def filter_filings(company, opts = {}) data, _status_code, _headers = filter_filings_with_http_info(company, opts) return data end |
#filter_filings_with_http_info(company, opts = {}) ⇒ Array<(ApiResponseFilings, Fixnum, Hash)>
Filter Filings Returns Filings that match the specified filters
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 46 def filter_filings_with_http_info(company, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FilingApi.filter_filings ..." end # verify the required parameter 'company' is set if @api_client.config.client_side_validation && company.nil? fail ArgumentError, "Missing the required parameter 'company' when calling FilingApi.filter_filings" end # resource path local_var_path = "/filings/filter" # query parameters query_params = {} query_params[:'company'] = company query_params[:'report_type'] = opts[:'report_type'] if !opts[:'report_type'].nil? query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil? query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil? query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # 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 => 'ApiResponseFilings') if @api_client.config.debugging @api_client.config.logger.debug "API called: FilingApi#filter_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#filter_notes(opts = {}) ⇒ ApiResponseFilingNotes
Filter Filing Notes Returns Filing Notes that match the specified filters
100 101 102 103 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 100 def filter_notes(opts = {}) data, _status_code, _headers = filter_notes_with_http_info(opts) return data end |
#filter_notes_with_http_info(opts = {}) ⇒ Array<(ApiResponseFilingNotes, Fixnum, Hash)>
Filter Filing Notes Returns Filing Notes that match the specified filters
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 116 def filter_notes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FilingApi.filter_notes ..." end if @api_client.config.client_side_validation && opts[:'report_type'] && !['10-Q', '10-K'].include?(opts[:'report_type']) fail ArgumentError, 'invalid value for "report_type", must be one of 10-Q, 10-K' end # resource path local_var_path = "/filings/notes/filter" # query parameters query_params = {} query_params[:'company'] = opts[:'company'] if !opts[:'company'].nil? query_params[:'report_type'] = opts[:'report_type'] if !opts[:'report_type'].nil? query_params[:'filing_start_date'] = opts[:'filing_start_date'] if !opts[:'filing_start_date'].nil? query_params[:'filing_end_date'] = opts[:'filing_end_date'] if !opts[:'filing_end_date'].nil? query_params[:'period_ended_start_date'] = opts[:'period_ended_start_date'] if !opts[:'period_ended_start_date'].nil? query_params[:'period_ended_end_date'] = opts[:'period_ended_end_date'] if !opts[:'period_ended_end_date'].nil? query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # 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 => 'ApiResponseFilingNotes') if @api_client.config.debugging @api_client.config.logger.debug "API called: FilingApi#filter_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_all_filings(opts = {}) ⇒ ApiResponseFilings
All Filings Returns all Filings
165 166 167 168 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 165 def get_all_filings(opts = {}) data, _status_code, _headers = get_all_filings_with_http_info(opts) return data end |
#get_all_filings_with_http_info(opts = {}) ⇒ Array<(ApiResponseFilings, Fixnum, Hash)>
All Filings Returns all Filings
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 175 def get_all_filings_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FilingApi.get_all_filings ..." end # resource path local_var_path = "/filings" # query parameters query_params = {} query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # 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 => 'ApiResponseFilings') if @api_client.config.debugging @api_client.config.logger.debug "API called: FilingApi#get_all_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_all_notes(opts = {}) ⇒ ApiResponseFilingNotes
All Filing Notes Return all Notes from all Filings, most-recent first
215 216 217 218 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 215 def get_all_notes(opts = {}) data, _status_code, _headers = get_all_notes_with_http_info(opts) return data end |
#get_all_notes_with_http_info(opts = {}) ⇒ Array<(ApiResponseFilingNotes, Fixnum, Hash)>
All Filing Notes Return all Notes from all Filings, most-recent first
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 225 def get_all_notes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FilingApi.get_all_notes ..." end # resource path local_var_path = "/filings/notes" # query parameters query_params = {} query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # 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 => 'ApiResponseFilingNotes') if @api_client.config.debugging @api_client.config.logger.debug "API called: FilingApi#get_all_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_filing_by_id(id, opts = {}) ⇒ Filing
Lookup Filing Returns the Filing with the given ‘identifier`
265 266 267 268 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 265 def get_filing_by_id(id, opts = {}) data, _status_code, _headers = get_filing_by_id_with_http_info(id, opts) return data end |
#get_filing_by_id_with_http_info(id, opts = {}) ⇒ Array<(Filing, Fixnum, Hash)>
Lookup Filing Returns the Filing with the given `identifier`
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 275 def get_filing_by_id_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FilingApi.get_filing_by_id ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling FilingApi.get_filing_by_id" end # resource path local_var_path = "/filings/{id}".sub('{' + 'id' + '}', id.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 => 'Filing') if @api_client.config.debugging @api_client.config.logger.debug "API called: FilingApi#get_filing_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_note(identifier, opts = {}) ⇒ FilingNote
Filing Note by ID
319 320 321 322 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 319 def get_note(identifier, opts = {}) data, _status_code, _headers = get_note_with_http_info(identifier, opts) return data end |
#get_note_html(identifier, opts = {}) ⇒ String
Filing Note HTML
377 378 379 380 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 377 def get_note_html(identifier, opts = {}) data, _status_code, _headers = get_note_html_with_http_info(identifier, opts) return data end |
#get_note_html_with_http_info(identifier, opts = {}) ⇒ Array<(String, Fixnum, Hash)>
Filing Note HTML
387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 387 def get_note_html_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FilingApi.get_note_html ..." 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 FilingApi.get_note_html" end # resource path local_var_path = "/filings/notes/{identifier}/html".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(['text/plain; charset=utf-8']) # 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 => 'String') if @api_client.config.debugging @api_client.config.logger.debug "API called: FilingApi#get_note_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_note_text(identifier, opts = {}) ⇒ String
Filing Note Text
430 431 432 433 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 430 def get_note_text(identifier, opts = {}) data, _status_code, _headers = get_note_text_with_http_info(identifier, opts) return data end |
#get_note_text_with_http_info(identifier, opts = {}) ⇒ Array<(String, Fixnum, Hash)>
Filing Note Text
440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 440 def get_note_text_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FilingApi.get_note_text ..." 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 FilingApi.get_note_text" end # resource path local_var_path = "/filings/notes/{identifier}/text".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(['text/plain; charset=utf-8']) # 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 => 'String') if @api_client.config.debugging @api_client.config.logger.debug "API called: FilingApi#get_note_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_note_with_http_info(identifier, opts = {}) ⇒ Array<(FilingNote, Fixnum, Hash)>
Filing Note by ID
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 330 def get_note_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FilingApi.get_note ..." 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 FilingApi.get_note" end if @api_client.config.client_side_validation && opts[:'content_format'] && !['text', 'html'].include?(opts[:'content_format']) fail ArgumentError, 'invalid value for "content_format", must be one of text, html' end # resource path local_var_path = "/filings/notes/{identifier}".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'content_format'] = opts[:'content_format'] if !opts[:'content_format'].nil? # 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 => 'FilingNote') if @api_client.config.debugging @api_client.config.logger.debug "API called: FilingApi#get_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#search_notes(query, opts = {}) ⇒ ApiResponseFilingNotesSearch
Search Filing Notes Searches for Filing Notes using the ‘query`
486 487 488 489 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 486 def search_notes(query, opts = {}) data, _status_code, _headers = search_notes_with_http_info(query, opts) return data end |
#search_notes_with_http_info(query, opts = {}) ⇒ Array<(ApiResponseFilingNotesSearch, Fixnum, Hash)>
Search Filing Notes Searches for Filing Notes using the `query`
499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/intrinio-sdk/api/filing_api.rb', line 499 def search_notes_with_http_info(query, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FilingApi.search_notes ..." end # verify the required parameter 'query' is set if @api_client.config.client_side_validation && query.nil? fail ArgumentError, "Missing the required parameter 'query' when calling FilingApi.search_notes" end if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000 fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FilingApi.search_notes, must be smaller than or equal to 1000.' end # resource path local_var_path = "/filings/notes/search" # query parameters query_params = {} query_params[:'query'] = query query_params[:'filing_start_date'] = opts[:'filing_start_date'] if !opts[:'filing_start_date'].nil? query_params[:'filing_end_date'] = opts[:'filing_end_date'] if !opts[:'filing_end_date'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? # 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 => 'ApiResponseFilingNotesSearch') if @api_client.config.debugging @api_client.config.logger.debug "API called: FilingApi#search_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |