lib/smooch-api/api/integration_api.rb in smooch-api-5.2.0 vs lib/smooch-api/api/integration_api.rb in smooch-api-5.3.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: 5.2
+OpenAPI spec version: 5.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -393,10 +393,12 @@
#
# List integrations for the specified app.
# @param appId Identifies the app.
# @param [Hash] opts the optional parameters
# @option opts [String] :types List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types=*twilio*,*line*.
+ # @option opts [Integer] :limit The number of records to return. (default to 25)
+ # @option opts [Integer] :offset The number of initial records to skip before picking records to return. (default to 0)
# @return [ListIntegrationsResponse]
def list_integrations(appId, opts = {})
data, _status_code, _headers = list_integrations_with_http_info(appId, opts)
return data
end
@@ -404,10 +406,12 @@
#
# List integrations for the specified app.
# @param appId Identifies the app.
# @param [Hash] opts the optional parameters
# @option opts [String] :types List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types=*twilio*,*line*.
+ # @option opts [Integer] :limit The number of records to return.
+ # @option opts [Integer] :offset The number of initial records to skip before picking records to return.
# @return [Array<(ListIntegrationsResponse, Fixnum, Hash)>] ListIntegrationsResponse data, response status code and response headers
def list_integrations_with_http_info(appId, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: IntegrationApi.list_integrations ..."
end
@@ -419,9 +423,11 @@
local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}', appId.to_s)
# query parameters
query_params = {}
query_params[:'types'] = opts[:'types'] if !opts[:'types'].nil?
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])