Method: Propertyware::PortfoliosApi#get_portfolio_conversations_with_http_info
- Defined in:
- lib/propertyware/api/portfolios_api.rb
#get_portfolio_conversations_with_http_info(portfolio_id, opts = {}) ⇒ Array<(Array<Conversation>, Integer, Hash)>
Retrieve all portfolio conversations Retrieves all the conversations of a portfolio.<br/><br/><b>Required permission:</b><br/><span class="permissionBlock">PORTFOLIOS</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>createddate</code>, <code>lastmodifieddatetime</code>, <code>id</code>
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 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 |
# File 'lib/propertyware/api/portfolios_api.rb', line 389 def get_portfolio_conversations_with_http_info(portfolio_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PortfoliosApi.get_portfolio_conversations ...' end # verify the required parameter 'portfolio_id' is set if @api_client.config.client_side_validation && portfolio_id.nil? fail ArgumentError, "Missing the required parameter 'portfolio_id' when calling PortfoliosApi.get_portfolio_conversations" end allowable_values = ["MANAGEMENT_TEAM", "OWNER", "TENANT"] if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type']) fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}" end # resource path local_var_path = '/portfolios/{portfolioID}/conversations'.sub('{' + 'portfolioID' + '}', CGI.escape(portfolio_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'lastModifiedDateTimeStart'] = opts[:'last_modified_date_time_start'] if !opts[:'last_modified_date_time_start'].nil? query_params[:'lastModifiedDateTimeEnd'] = opts[:'last_modified_date_time_end'] if !opts[:'last_modified_date_time_end'].nil? query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil? query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? # 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<Conversation>' # auth_names auth_names = opts[:debug_auth_names] || ['organizationId', 'clientId', 'clientSecret'] = opts.merge( :operation => :"PortfoliosApi.get_portfolio_conversations", :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: PortfoliosApi#get_portfolio_conversations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |