lib/smooch-api/api/conversation_api.rb in smooch-api-1.5.0 vs lib/smooch-api/api/conversation_api.rb in smooch-api-1.6.0

- old
+ new

@@ -1,11 +1,11 @@ =begin #Smooch #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io). -OpenAPI spec version: 1.5 +OpenAPI spec version: 1.6 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3-SNAPSHOT =end @@ -138,22 +138,22 @@ # # Post a message to or from the app user. # @param user_id Identifies the user. Can be either the smoochId or the userId. # @param message_post_body Body for a postMessage request. Additional arguments are necessary based on message type ([text](https://docs.smooch.io/rest#text-message), [image](https://docs.smooch.io/rest#image-message), [carousel](https://docs.smooch.io/rest#carousel-message), [list](https://docs.smooch.io/rest#list-message)) # @param [Hash] opts the optional parameters - # @return [PostMessagesResponse] + # @return [MessageResponse] def post_message(user_id, message_post_body, opts = {}) data, _status_code, _headers = post_message_with_http_info(user_id, message_post_body, opts) return data end # # Post a message to or from the app user. # @param user_id Identifies the user. Can be either the smoochId or the userId. # @param message_post_body Body for a postMessage request. Additional arguments are necessary based on message type ([text](https://docs.smooch.io/rest#text-message), [image](https://docs.smooch.io/rest#image-message), [carousel](https://docs.smooch.io/rest#carousel-message), [list](https://docs.smooch.io/rest#list-message)) # @param [Hash] opts the optional parameters - # @return [Array<(PostMessagesResponse, Fixnum, Hash)>] PostMessagesResponse data, response status code and response headers + # @return [Array<(MessageResponse, Fixnum, Hash)>] MessageResponse data, response status code and response headers def post_message_with_http_info(user_id, message_post_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ConversationApi.post_message ..." end # verify the required parameter 'user_id' is set @@ -187,10 +187,10 @@ :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'PostMessagesResponse') + :return_type => 'MessageResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: ConversationApi#post_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end