lib/purecloudplatformclientv2/api/routing_api.rb in purecloudplatformclientv2-43.1.0 vs lib/purecloudplatformclientv2/api/routing_api.rb in purecloudplatformclientv2-44.0.0
- old
+ new
@@ -1280,10 +1280,11 @@
end
# Get recipients
#
# @param [Hash] opts the optional parameters
+ # @option opts [String] :messenger_type Messenger Type
# @option opts [Integer] :page_size Page size (default to 25)
# @option opts [Integer] :page_number Page number (default to 1)
# @return [RecipientListing]
def get_routing_message_recipients(opts = {})
data, _status_code, _headers = get_routing_message_recipients_with_http_info(opts)
@@ -1291,10 +1292,11 @@
end
# Get recipients
#
# @param [Hash] opts the optional parameters
+ # @option opts [String] :messenger_type Messenger Type
# @option opts [Integer] :page_size Page size
# @option opts [Integer] :page_number Page number
# @return [Array<(RecipientListing, Fixnum, Hash)>] RecipientListing data, response status code and response headers
def get_routing_message_recipients_with_http_info(opts = {})
if @api_client.config.debugging
@@ -1302,23 +1304,34 @@
end
+ if opts[:'messenger_type'] && !['sms', 'facebook', 'twitter', 'line', 'whatsapp', 'telegram', 'kakao'].include?(opts[:'messenger_type'])
+ fail ArgumentError, 'invalid value for "messenger_type", must be one of sms, facebook, twitter, line, whatsapp, telegram, kakao'
+ end
+
+
+
+
+
+
+
# resource path
local_var_path = "/api/v2/routing/message/recipients".sub('{format}','json')
# query parameters
query_params = {}
+ query_params[:'messengerType'] = opts[:'messenger_type'] if opts[:'messenger_type']
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
# header parameters
header_params = {}