Method: OpenapiClient::XHRVerticallyIntegratedApi#xhr_timesheets20230301_with_http_info
- Defined in:
- lib/openapi_client/api/xhr_vertically_integrated_api.rb
#xhr_timesheets20230301_with_http_info(start_date, end_date, opts = {}) ⇒ Array<(Array<TimesheetResponse>, Integer, Hash)>
Timesheets Retrieve Timesheets
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 |
# File 'lib/openapi_client/api/xhr_vertically_integrated_api.rb', line 532 def xhr_timesheets20230301_with_http_info(start_date, end_date, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: XHRVerticallyIntegratedApi.xhr_timesheets20230301 ...' end # verify the required parameter 'start_date' is set if @api_client.config.client_side_validation && start_date.nil? fail ArgumentError, "Missing the required parameter 'start_date' when calling XHRVerticallyIntegratedApi.xhr_timesheets20230301" end # verify the required parameter 'end_date' is set if @api_client.config.client_side_validation && end_date.nil? fail ArgumentError, "Missing the required parameter 'end_date' when calling XHRVerticallyIntegratedApi.xhr_timesheets20230301" end # resource path local_var_path = '/2023-03-01/xhr/timesheets' # query parameters query_params = opts[:query_params] || {} query_params[:'start_date'] = start_date query_params[:'end_date'] = end_date # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<TimesheetResponse>' # auth_names auth_names = opts[:debug_auth_names] || ['access-token'] = opts.merge( :operation => :"XHRVerticallyIntegratedApi.xhr_timesheets20230301", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: XHRVerticallyIntegratedApi#xhr_timesheets20230301\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |