lib/purecloud/api/search_api.rb in purecloud-0.18.0 vs lib/purecloud/api/search_api.rb in purecloud-0.25.0

- old
+ new

@@ -11,23 +11,23 @@ # Search chat history # # @param [Hash] opts the optional parameters # @option opts [ChatSearchRequest] :body Search request options # @return [ChatSearchListing] - def create_chats(opts = {}) - data, status_code, headers = create_chats_with_http_info(opts) + def post_chats(opts = {}) + data, status_code, headers = post_chats_with_http_info(opts) return data end # Search chat history # # @param [Hash] opts the optional parameters # @option opts [ChatSearchRequest] :body Search request options # @return [Array<(ChatSearchListing, Fixnum, Hash)>] ChatSearchListing data, response status code and response headers - def create_chats_with_http_info(opts = {}) + def post_chats_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SearchApi#create_chats ..." + @api_client.config.logger.debug "Calling API: SearchApi#post_chats ..." end # resource path path = "/api/v1/search/chats".sub('{format}','json') @@ -59,10 +59,10 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ChatSearchListing') if @api_client.config.debugging - @api_client.config.logger.debug "API called: SearchApi#create_chats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: SearchApi#post_chats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end end end