purecloud 0.18.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +2 -2
- data/README.md +1 -7
- data/config-ruby.json +1 -1
- data/extensions/auth.rb +2 -2
- data/lib/purecloud.rb +110 -75
- data/lib/purecloud/api/architect_api.rb +3127 -74
- data/lib/purecloud/api/attributes_api.rb +33 -33
- data/lib/purecloud/api/authorization_api.rb +83 -83
- data/lib/purecloud/api/compliance_api.rb +5 -5
- data/lib/purecloud/api/configuration_api.rb +594 -397
- data/lib/purecloud/api/content_management_api.rb +183 -183
- data/lib/purecloud/api/conversations_api.rb +289 -159
- data/lib/purecloud/api/downloads_api.rb +6 -6
- data/lib/purecloud/api/external_contacts_api.rb +1693 -0
- data/lib/purecloud/api/fax_api.rb +24 -24
- data/lib/purecloud/api/geolocation_api.rb +14 -14
- data/lib/purecloud/api/greetings_api.rb +68 -68
- data/lib/purecloud/api/groups_api.rb +31 -20
- data/lib/purecloud/api/languages_api.rb +18 -11
- data/lib/purecloud/api/licensing_api.rb +5 -5
- data/lib/purecloud/api/locations_api.rb +11 -11
- data/lib/purecloud/api/notifications_api.rb +41 -41
- data/lib/purecloud/api/o_auth_api.rb +69 -69
- data/lib/purecloud/api/outbound_api.rb +505 -325
- data/lib/purecloud/api/presence_api.rb +65 -65
- data/lib/purecloud/api/quality_api.rb +66 -639
- data/lib/purecloud/api/recording_api.rb +1343 -0
- data/lib/purecloud/api/response_management_api.rb +687 -0
- data/lib/purecloud/api/routing_api.rb +224 -170
- data/lib/purecloud/api/scripts_api.rb +52 -52
- data/lib/purecloud/api/search_api.rb +5 -5
- data/lib/purecloud/api/stations_api.rb +8 -8
- data/lib/purecloud/api/telephony_providers_edge_api.rb +138 -138
- data/lib/purecloud/api/user_recordings_api.rb +29 -29
- data/lib/purecloud/api/users_api.rb +123 -123
- data/lib/purecloud/api/utilities_api.rb +71 -15
- data/lib/purecloud/api/voicemail_api.rb +42 -42
- data/lib/purecloud/api_client.rb +1 -1
- data/lib/purecloud/models/address.rb +49 -51
- data/lib/purecloud/models/attribute_filter_item.rb +177 -0
- data/lib/purecloud/models/automate_queue_member_entity_listing.rb +238 -0
- data/lib/purecloud/models/available_additional_service.rb +40 -1
- data/lib/purecloud/models/{topic_entity_listing.rb → available_topic_entity_listing.rb} +1 -1
- data/lib/purecloud/models/call.rb +36 -5
- data/lib/purecloud/models/{line_properties.rb → call_command.rb} +13 -3
- data/lib/purecloud/models/callback.rb +15 -4
- data/lib/purecloud/models/campaign.rb +219 -17
- data/lib/purecloud/models/campaign_progress.rb +186 -0
- data/lib/purecloud/models/channel_topic_entity_listing.rb +238 -0
- data/lib/purecloud/models/charge.rb +14 -4
- data/lib/purecloud/models/{attribute_value.rb → client_text_table_transform.rb} +52 -82
- data/lib/purecloud/models/contact.rb +1 -1
- data/lib/purecloud/models/contact_list.rb +111 -1
- data/lib/purecloud/models/contact_listing.rb +238 -0
- data/lib/purecloud/models/content_attribute_filter_item.rb +177 -0
- data/lib/purecloud/models/content_facet_filter_item.rb +1 -1
- data/lib/purecloud/models/content_query_request.rb +16 -4
- data/lib/purecloud/models/control.rb +221 -0
- data/lib/purecloud/models/{flow_activate_request.rb → control_options.rb} +18 -12
- data/lib/purecloud/models/create_callback_command.rb +200 -0
- data/lib/purecloud/models/discount.rb +220 -0
- data/lib/purecloud/models/document.rb +13 -1
- data/lib/purecloud/models/document_attribute.rb +158 -0
- data/lib/purecloud/models/document_update.rb +28 -16
- data/lib/purecloud/models/document_upload.rb +4 -16
- data/lib/purecloud/models/domain_voice_rate_extended_response_item_entity_listing.rb +238 -0
- data/lib/purecloud/models/domain_voice_rate_international_response_item_entity_listing.rb +238 -0
- data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +1 -1
- data/lib/purecloud/models/edge_line.rb +1 -1
- data/lib/purecloud/models/edge_logs_job.rb +181 -0
- data/lib/purecloud/models/edge_logs_job_file.rb +243 -0
- data/lib/purecloud/models/edge_logs_job_request.rb +168 -0
- data/lib/purecloud/models/{backend_work_item_data_element.rb → edge_logs_job_response.rb} +16 -24
- data/lib/purecloud/models/{flow_lock_request.rb → edge_logs_job_upload_request.rb} +10 -12
- data/lib/purecloud/models/email.rb +15 -4
- data/lib/purecloud/models/endpoint.rb +1 -1
- data/lib/purecloud/models/{flow_associate_workspaces_request.rb → estimated_wait_time_predictions.rb} +10 -11
- data/lib/purecloud/models/external_contact.rb +320 -0
- data/lib/purecloud/models/external_organization.rb +306 -0
- data/lib/purecloud/models/external_organization_listing.rb +238 -0
- data/lib/purecloud/models/facet_filter_item.rb +1 -1
- data/lib/purecloud/models/flow_body.rb +1 -1
- data/lib/purecloud/models/flow_body_format.rb +10 -20
- data/lib/purecloud/models/flow_terminate_request.rb +3 -16
- data/lib/purecloud/models/form.rb +148 -0
- data/lib/purecloud/models/group.rb +11 -1
- data/lib/purecloud/models/health_check_info.rb +268 -0
- data/lib/purecloud/models/{body_2.rb → inline_response_200.rb} +1 -1
- data/lib/purecloud/models/integration_type.rb +209 -0
- data/lib/purecloud/models/integration_type_entity_listing.rb +238 -0
- data/lib/purecloud/models/key_rotation_schedule.rb +1 -0
- data/lib/purecloud/models/language.rb +41 -1
- data/lib/purecloud/models/line.rb +1 -1
- data/lib/purecloud/models/line_base.rb +1 -1
- data/lib/purecloud/models/media_policies.rb +169 -0
- data/lib/purecloud/models/media_policy.rb +171 -0
- data/lib/purecloud/models/note.rb +200 -0
- data/lib/purecloud/models/{user_station_resource.rb → note_listing.rb} +68 -58
- data/lib/purecloud/models/o_auth_client.rb +1 -1
- data/lib/purecloud/models/page.rb +2 -2
- data/lib/purecloud/models/{byte_buffer.rb → payment_method.rb} +48 -61
- data/lib/purecloud/models/payment_method_listing.rb +238 -0
- data/lib/purecloud/models/payment_token_provider.rb +180 -0
- data/lib/purecloud/models/phone.rb +1 -1
- data/lib/purecloud/models/phone_base.rb +1 -1
- data/lib/purecloud/models/phone_number.rb +198 -0
- data/lib/purecloud/models/phones_reboot.rb +14 -4
- data/lib/purecloud/models/policy.rb +14 -1
- data/lib/purecloud/models/prediction_results.rb +167 -0
- data/lib/purecloud/models/query_request.rb +16 -4
- data/lib/purecloud/models/queue_member_entity_listing.rb +1 -1
- data/lib/purecloud/models/quote.rb +13 -1
- data/lib/purecloud/models/recording_settings.rb +146 -0
- data/lib/purecloud/models/relationship.rb +201 -0
- data/lib/purecloud/models/relationship_listing.rb +238 -0
- data/lib/purecloud/models/report_schedule.rb +3 -2
- data/lib/purecloud/models/service_type.rb +12 -1
- data/lib/purecloud/models/social_expression.rb +25 -4
- data/lib/purecloud/models/spreadsheet_transform_entity_listing.rb +1 -1
- data/lib/purecloud/models/template.rb +1 -1
- data/lib/purecloud/models/text_table_transform_entity_listing.rb +1 -1
- data/lib/purecloud/models/ticker.rb +158 -0
- data/lib/purecloud/models/time_slot.rb +1 -0
- data/lib/purecloud/models/trunk_base.rb +1 -1
- data/lib/purecloud/models/vendor_connection_request.rb +166 -0
- data/lib/purecloud/models/video.rb +15 -4
- data/lib/purecloud/models/work_item_definition.rb +8 -10
- data/lib/purecloud/version.rb +1 -1
- data/ossindex.json +17 -0
- data/purecloud.gemspec +4 -3
- data/rakefile +3 -15
- data/spec/test.rb +6 -3
- data/swagger.json +1 -1
- data/swagger_template/api_client.mustache +304 -0
- data/swagger_template/base_object.mustache +90 -0
- data/{PureCloud.gemspec → swagger_template/gemspec.mustache} +12 -11
- data/version.json +1 -1
- metadata +76 -25
- data/lib/purecloud/api/analytics_api.rb +0 -1554
- data/lib/purecloud/api/orphaned_recordings_api.rb +0 -205
- data/newVersion.md +0 -1
@@ -13,8 +13,8 @@ module PureCloud
|
|
13
13
|
# @param [Hash] opts the optional parameters
|
14
14
|
# @option opts [String] :communication_type Call or Chat communication filtering
|
15
15
|
# @return [ConversationEntityListing]
|
16
|
-
def
|
17
|
-
data, status_code, headers =
|
16
|
+
def get_conversations(opts = {})
|
17
|
+
data, status_code, headers = get_conversations_with_http_info(opts)
|
18
18
|
return data
|
19
19
|
end
|
20
20
|
|
@@ -23,9 +23,9 @@ module PureCloud
|
|
23
23
|
# @param [Hash] opts the optional parameters
|
24
24
|
# @option opts [String] :communication_type Call or Chat communication filtering
|
25
25
|
# @return [Array<(ConversationEntityListing, Fixnum, Hash)>] ConversationEntityListing data, response status code and response headers
|
26
|
-
def
|
26
|
+
def get_conversations_with_http_info(opts = {})
|
27
27
|
if @api_client.config.debugging
|
28
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
28
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversations ..."
|
29
29
|
end
|
30
30
|
|
31
31
|
# resource path
|
@@ -62,7 +62,7 @@ module PureCloud
|
|
62
62
|
:auth_names => auth_names,
|
63
63
|
:return_type => 'ConversationEntityListing')
|
64
64
|
if @api_client.config.debugging
|
65
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
65
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
66
66
|
end
|
67
67
|
return data, status_code, headers
|
68
68
|
end
|
@@ -79,8 +79,8 @@ module PureCloud
|
|
79
79
|
# @option opts [Array<String>] :skill_ids Skill ids to use for routing when calling a queue
|
80
80
|
# @option opts [String] :body
|
81
81
|
# @return [ConversationResponse]
|
82
|
-
def
|
83
|
-
data, status_code, headers =
|
82
|
+
def post_conversations(opts = {})
|
83
|
+
data, status_code, headers = post_conversations_with_http_info(opts)
|
84
84
|
return data
|
85
85
|
end
|
86
86
|
|
@@ -96,9 +96,9 @@ module PureCloud
|
|
96
96
|
# @option opts [Array<String>] :skill_ids Skill ids to use for routing when calling a queue
|
97
97
|
# @option opts [String] :body
|
98
98
|
# @return [Array<(ConversationResponse, Fixnum, Hash)>] ConversationResponse data, response status code and response headers
|
99
|
-
def
|
99
|
+
def post_conversations_with_http_info(opts = {})
|
100
100
|
if @api_client.config.debugging
|
101
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
101
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_conversations ..."
|
102
102
|
end
|
103
103
|
|
104
104
|
# resource path
|
@@ -141,7 +141,7 @@ module PureCloud
|
|
141
141
|
:auth_names => auth_names,
|
142
142
|
:return_type => 'ConversationResponse')
|
143
143
|
if @api_client.config.debugging
|
144
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
144
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_conversations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
145
|
end
|
146
146
|
return data, status_code, headers
|
147
147
|
end
|
@@ -151,8 +151,8 @@ module PureCloud
|
|
151
151
|
# @param [Hash] opts the optional parameters
|
152
152
|
# @option opts [FaxSendRequest] :body Fax
|
153
153
|
# @return [FaxSendResponse]
|
154
|
-
def
|
155
|
-
data, status_code, headers =
|
154
|
+
def post_fax(opts = {})
|
155
|
+
data, status_code, headers = post_fax_with_http_info(opts)
|
156
156
|
return data
|
157
157
|
end
|
158
158
|
|
@@ -161,9 +161,9 @@ module PureCloud
|
|
161
161
|
# @param [Hash] opts the optional parameters
|
162
162
|
# @option opts [FaxSendRequest] :body Fax
|
163
163
|
# @return [Array<(FaxSendResponse, Fixnum, Hash)>] FaxSendResponse data, response status code and response headers
|
164
|
-
def
|
164
|
+
def post_fax_with_http_info(opts = {})
|
165
165
|
if @api_client.config.debugging
|
166
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
166
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_fax ..."
|
167
167
|
end
|
168
168
|
|
169
169
|
# resource path
|
@@ -199,7 +199,7 @@ module PureCloud
|
|
199
199
|
:auth_names => auth_names,
|
200
200
|
:return_type => 'FaxSendResponse')
|
201
201
|
if @api_client.config.debugging
|
202
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
202
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_fax\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
203
203
|
end
|
204
204
|
return data, status_code, headers
|
205
205
|
end
|
@@ -265,8 +265,8 @@ module PureCloud
|
|
265
265
|
# @param body Query parameters
|
266
266
|
# @param [Hash] opts the optional parameters
|
267
267
|
# @return [ConversationQueryResponse]
|
268
|
-
def
|
269
|
-
data, status_code, headers =
|
268
|
+
def post_query(body, opts = {})
|
269
|
+
data, status_code, headers = post_query_with_http_info(body, opts)
|
270
270
|
return data
|
271
271
|
end
|
272
272
|
|
@@ -275,13 +275,13 @@ module PureCloud
|
|
275
275
|
# @param body Query parameters
|
276
276
|
# @param [Hash] opts the optional parameters
|
277
277
|
# @return [Array<(ConversationQueryResponse, Fixnum, Hash)>] ConversationQueryResponse data, response status code and response headers
|
278
|
-
def
|
278
|
+
def post_query_with_http_info(body, opts = {})
|
279
279
|
if @api_client.config.debugging
|
280
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
280
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_query ..."
|
281
281
|
end
|
282
282
|
|
283
283
|
# verify the required parameter 'body' is set
|
284
|
-
fail "Missing the required parameter 'body' when calling
|
284
|
+
fail "Missing the required parameter 'body' when calling post_query" if body.nil?
|
285
285
|
|
286
286
|
# resource path
|
287
287
|
path = "/api/v1/conversations/query".sub('{format}','json')
|
@@ -316,7 +316,7 @@ module PureCloud
|
|
316
316
|
:auth_names => auth_names,
|
317
317
|
:return_type => 'ConversationQueryResponse')
|
318
318
|
if @api_client.config.debugging
|
319
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
319
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
320
320
|
end
|
321
321
|
return data, status_code, headers
|
322
322
|
end
|
@@ -327,8 +327,8 @@ module PureCloud
|
|
327
327
|
# @param body Query parameters
|
328
328
|
# @param [Hash] opts the optional parameters
|
329
329
|
# @return [ConversationQueryResponse]
|
330
|
-
def
|
331
|
-
data, status_code, headers =
|
330
|
+
def post_query_anchor(anchor, body, opts = {})
|
331
|
+
data, status_code, headers = post_query_anchor_with_http_info(anchor, body, opts)
|
332
332
|
return data
|
333
333
|
end
|
334
334
|
|
@@ -338,16 +338,16 @@ module PureCloud
|
|
338
338
|
# @param body Query parameters
|
339
339
|
# @param [Hash] opts the optional parameters
|
340
340
|
# @return [Array<(ConversationQueryResponse, Fixnum, Hash)>] ConversationQueryResponse data, response status code and response headers
|
341
|
-
def
|
341
|
+
def post_query_anchor_with_http_info(anchor, body, opts = {})
|
342
342
|
if @api_client.config.debugging
|
343
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
343
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_query_anchor ..."
|
344
344
|
end
|
345
345
|
|
346
346
|
# verify the required parameter 'anchor' is set
|
347
|
-
fail "Missing the required parameter 'anchor' when calling
|
347
|
+
fail "Missing the required parameter 'anchor' when calling post_query_anchor" if anchor.nil?
|
348
348
|
|
349
349
|
# verify the required parameter 'body' is set
|
350
|
-
fail "Missing the required parameter 'body' when calling
|
350
|
+
fail "Missing the required parameter 'body' when calling post_query_anchor" if body.nil?
|
351
351
|
|
352
352
|
# resource path
|
353
353
|
path = "/api/v1/conversations/query/{anchor}".sub('{format}','json').sub('{' + 'anchor' + '}', anchor.to_s)
|
@@ -382,7 +382,7 @@ module PureCloud
|
|
382
382
|
:auth_names => auth_names,
|
383
383
|
:return_type => 'ConversationQueryResponse')
|
384
384
|
if @api_client.config.debugging
|
385
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
385
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_query_anchor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
386
386
|
end
|
387
387
|
return data, status_code, headers
|
388
388
|
end
|
@@ -392,8 +392,8 @@ module PureCloud
|
|
392
392
|
# @param conversation_id conversation ID
|
393
393
|
# @param [Hash] opts the optional parameters
|
394
394
|
# @return [Conversation]
|
395
|
-
def
|
396
|
-
data, status_code, headers =
|
395
|
+
def get_conversation_id(conversation_id, opts = {})
|
396
|
+
data, status_code, headers = get_conversation_id_with_http_info(conversation_id, opts)
|
397
397
|
return data
|
398
398
|
end
|
399
399
|
|
@@ -402,13 +402,13 @@ module PureCloud
|
|
402
402
|
# @param conversation_id conversation ID
|
403
403
|
# @param [Hash] opts the optional parameters
|
404
404
|
# @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
|
405
|
-
def
|
405
|
+
def get_conversation_id_with_http_info(conversation_id, opts = {})
|
406
406
|
if @api_client.config.debugging
|
407
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
407
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id ..."
|
408
408
|
end
|
409
409
|
|
410
410
|
# verify the required parameter 'conversation_id' is set
|
411
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
411
|
+
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id" if conversation_id.nil?
|
412
412
|
|
413
413
|
# resource path
|
414
414
|
path = "/api/v1/conversations/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
|
@@ -443,7 +443,7 @@ module PureCloud
|
|
443
443
|
:auth_names => auth_names,
|
444
444
|
:return_type => 'Conversation')
|
445
445
|
if @api_client.config.debugging
|
446
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
446
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
447
447
|
end
|
448
448
|
return data, status_code, headers
|
449
449
|
end
|
@@ -454,8 +454,8 @@ module PureCloud
|
|
454
454
|
# @param [Hash] opts the optional parameters
|
455
455
|
# @option opts [Conversation] :body Conversation
|
456
456
|
# @return [Conversation]
|
457
|
-
def
|
458
|
-
data, status_code, headers =
|
457
|
+
def put_conversation_id(conversation_id, opts = {})
|
458
|
+
data, status_code, headers = put_conversation_id_with_http_info(conversation_id, opts)
|
459
459
|
return data
|
460
460
|
end
|
461
461
|
|
@@ -465,13 +465,13 @@ module PureCloud
|
|
465
465
|
# @param [Hash] opts the optional parameters
|
466
466
|
# @option opts [Conversation] :body Conversation
|
467
467
|
# @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
|
468
|
-
def
|
468
|
+
def put_conversation_id_with_http_info(conversation_id, opts = {})
|
469
469
|
if @api_client.config.debugging
|
470
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
470
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#put_conversation_id ..."
|
471
471
|
end
|
472
472
|
|
473
473
|
# verify the required parameter 'conversation_id' is set
|
474
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
474
|
+
fail "Missing the required parameter 'conversation_id' when calling put_conversation_id" if conversation_id.nil?
|
475
475
|
|
476
476
|
# resource path
|
477
477
|
path = "/api/v1/conversations/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
|
@@ -506,7 +506,70 @@ module PureCloud
|
|
506
506
|
:auth_names => auth_names,
|
507
507
|
:return_type => 'Conversation')
|
508
508
|
if @api_client.config.debugging
|
509
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
509
|
+
@api_client.config.logger.debug "API called: ConversationsApi#put_conversation_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
510
|
+
end
|
511
|
+
return data, status_code, headers
|
512
|
+
end
|
513
|
+
|
514
|
+
# Add a new call to a conversation
|
515
|
+
#
|
516
|
+
# @param conversation_id conversation ID
|
517
|
+
# @param [Hash] opts the optional parameters
|
518
|
+
# @option opts [CallCommand] :body Conversation
|
519
|
+
# @return [Conversation]
|
520
|
+
def post_conversation_id_calls(conversation_id, opts = {})
|
521
|
+
data, status_code, headers = post_conversation_id_calls_with_http_info(conversation_id, opts)
|
522
|
+
return data
|
523
|
+
end
|
524
|
+
|
525
|
+
# Add a new call to a conversation
|
526
|
+
#
|
527
|
+
# @param conversation_id conversation ID
|
528
|
+
# @param [Hash] opts the optional parameters
|
529
|
+
# @option opts [CallCommand] :body Conversation
|
530
|
+
# @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
|
531
|
+
def post_conversation_id_calls_with_http_info(conversation_id, opts = {})
|
532
|
+
if @api_client.config.debugging
|
533
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_conversation_id_calls ..."
|
534
|
+
end
|
535
|
+
|
536
|
+
# verify the required parameter 'conversation_id' is set
|
537
|
+
fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_calls" if conversation_id.nil?
|
538
|
+
|
539
|
+
# resource path
|
540
|
+
path = "/api/v1/conversations/{conversationId}/calls".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
|
541
|
+
|
542
|
+
# query parameters
|
543
|
+
query_params = {}
|
544
|
+
|
545
|
+
# header parameters
|
546
|
+
header_params = {}
|
547
|
+
|
548
|
+
# HTTP header 'Accept' (if needed)
|
549
|
+
_header_accept = ['application/json']
|
550
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
551
|
+
|
552
|
+
# HTTP header 'Content-Type'
|
553
|
+
_header_content_type = ['application/json']
|
554
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
555
|
+
|
556
|
+
# form parameters
|
557
|
+
form_params = {}
|
558
|
+
|
559
|
+
# http body (model)
|
560
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
561
|
+
|
562
|
+
|
563
|
+
auth_names = ['PureCloud Auth']
|
564
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
565
|
+
:header_params => header_params,
|
566
|
+
:query_params => query_params,
|
567
|
+
:form_params => form_params,
|
568
|
+
:body => post_body,
|
569
|
+
:auth_names => auth_names,
|
570
|
+
:return_type => 'Conversation')
|
571
|
+
if @api_client.config.debugging
|
572
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_conversation_id_calls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
510
573
|
end
|
511
574
|
return data, status_code, headers
|
512
575
|
end
|
@@ -516,8 +579,8 @@ module PureCloud
|
|
516
579
|
# @param conversation_id conversation ID
|
517
580
|
# @param [Hash] opts the optional parameters
|
518
581
|
# @return [EmailMessageListing]
|
519
|
-
def
|
520
|
-
data, status_code, headers =
|
582
|
+
def get_conversation_id_messages(conversation_id, opts = {})
|
583
|
+
data, status_code, headers = get_conversation_id_messages_with_http_info(conversation_id, opts)
|
521
584
|
return data
|
522
585
|
end
|
523
586
|
|
@@ -526,13 +589,13 @@ module PureCloud
|
|
526
589
|
# @param conversation_id conversation ID
|
527
590
|
# @param [Hash] opts the optional parameters
|
528
591
|
# @return [Array<(EmailMessageListing, Fixnum, Hash)>] EmailMessageListing data, response status code and response headers
|
529
|
-
def
|
592
|
+
def get_conversation_id_messages_with_http_info(conversation_id, opts = {})
|
530
593
|
if @api_client.config.debugging
|
531
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
594
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id_messages ..."
|
532
595
|
end
|
533
596
|
|
534
597
|
# verify the required parameter 'conversation_id' is set
|
535
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
598
|
+
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_messages" if conversation_id.nil?
|
536
599
|
|
537
600
|
# resource path
|
538
601
|
path = "/api/v1/conversations/{conversationId}/messages".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
|
@@ -567,7 +630,7 @@ module PureCloud
|
|
567
630
|
:auth_names => auth_names,
|
568
631
|
:return_type => 'EmailMessageListing')
|
569
632
|
if @api_client.config.debugging
|
570
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
633
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
571
634
|
end
|
572
635
|
return data, status_code, headers
|
573
636
|
end
|
@@ -578,8 +641,8 @@ module PureCloud
|
|
578
641
|
# @param [Hash] opts the optional parameters
|
579
642
|
# @option opts [EmailMessage] :body Reply
|
580
643
|
# @return [EmailMessage]
|
581
|
-
def
|
582
|
-
data, status_code, headers =
|
644
|
+
def post_conversation_id_messages(conversation_id, opts = {})
|
645
|
+
data, status_code, headers = post_conversation_id_messages_with_http_info(conversation_id, opts)
|
583
646
|
return data
|
584
647
|
end
|
585
648
|
|
@@ -589,13 +652,13 @@ module PureCloud
|
|
589
652
|
# @param [Hash] opts the optional parameters
|
590
653
|
# @option opts [EmailMessage] :body Reply
|
591
654
|
# @return [Array<(EmailMessage, Fixnum, Hash)>] EmailMessage data, response status code and response headers
|
592
|
-
def
|
655
|
+
def post_conversation_id_messages_with_http_info(conversation_id, opts = {})
|
593
656
|
if @api_client.config.debugging
|
594
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
657
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_conversation_id_messages ..."
|
595
658
|
end
|
596
659
|
|
597
660
|
# verify the required parameter 'conversation_id' is set
|
598
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
661
|
+
fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_messages" if conversation_id.nil?
|
599
662
|
|
600
663
|
# resource path
|
601
664
|
path = "/api/v1/conversations/{conversationId}/messages".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
|
@@ -630,7 +693,7 @@ module PureCloud
|
|
630
693
|
:auth_names => auth_names,
|
631
694
|
:return_type => 'EmailMessage')
|
632
695
|
if @api_client.config.debugging
|
633
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
696
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_conversation_id_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
634
697
|
end
|
635
698
|
return data, status_code, headers
|
636
699
|
end
|
@@ -640,8 +703,8 @@ module PureCloud
|
|
640
703
|
# @param conversation_id conversation ID
|
641
704
|
# @param [Hash] opts the optional parameters
|
642
705
|
# @return [EmailMessage]
|
643
|
-
def
|
644
|
-
data, status_code, headers =
|
706
|
+
def get_conversation_id_messages_draft(conversation_id, opts = {})
|
707
|
+
data, status_code, headers = get_conversation_id_messages_draft_with_http_info(conversation_id, opts)
|
645
708
|
return data
|
646
709
|
end
|
647
710
|
|
@@ -650,13 +713,13 @@ module PureCloud
|
|
650
713
|
# @param conversation_id conversation ID
|
651
714
|
# @param [Hash] opts the optional parameters
|
652
715
|
# @return [Array<(EmailMessage, Fixnum, Hash)>] EmailMessage data, response status code and response headers
|
653
|
-
def
|
716
|
+
def get_conversation_id_messages_draft_with_http_info(conversation_id, opts = {})
|
654
717
|
if @api_client.config.debugging
|
655
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
718
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id_messages_draft ..."
|
656
719
|
end
|
657
720
|
|
658
721
|
# verify the required parameter 'conversation_id' is set
|
659
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
722
|
+
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_messages_draft" if conversation_id.nil?
|
660
723
|
|
661
724
|
# resource path
|
662
725
|
path = "/api/v1/conversations/{conversationId}/messages/draft".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
|
@@ -691,7 +754,7 @@ module PureCloud
|
|
691
754
|
:auth_names => auth_names,
|
692
755
|
:return_type => 'EmailMessage')
|
693
756
|
if @api_client.config.debugging
|
694
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
757
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id_messages_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
695
758
|
end
|
696
759
|
return data, status_code, headers
|
697
760
|
end
|
@@ -702,8 +765,8 @@ module PureCloud
|
|
702
765
|
# @param [Hash] opts the optional parameters
|
703
766
|
# @option opts [EmailMessage] :body Draft
|
704
767
|
# @return [EmailMessage]
|
705
|
-
def
|
706
|
-
data, status_code, headers =
|
768
|
+
def put_conversation_id_messages_draft(conversation_id, opts = {})
|
769
|
+
data, status_code, headers = put_conversation_id_messages_draft_with_http_info(conversation_id, opts)
|
707
770
|
return data
|
708
771
|
end
|
709
772
|
|
@@ -713,13 +776,13 @@ module PureCloud
|
|
713
776
|
# @param [Hash] opts the optional parameters
|
714
777
|
# @option opts [EmailMessage] :body Draft
|
715
778
|
# @return [Array<(EmailMessage, Fixnum, Hash)>] EmailMessage data, response status code and response headers
|
716
|
-
def
|
779
|
+
def put_conversation_id_messages_draft_with_http_info(conversation_id, opts = {})
|
717
780
|
if @api_client.config.debugging
|
718
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
781
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#put_conversation_id_messages_draft ..."
|
719
782
|
end
|
720
783
|
|
721
784
|
# verify the required parameter 'conversation_id' is set
|
722
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
785
|
+
fail "Missing the required parameter 'conversation_id' when calling put_conversation_id_messages_draft" if conversation_id.nil?
|
723
786
|
|
724
787
|
# resource path
|
725
788
|
path = "/api/v1/conversations/{conversationId}/messages/draft".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
|
@@ -754,7 +817,7 @@ module PureCloud
|
|
754
817
|
:auth_names => auth_names,
|
755
818
|
:return_type => 'EmailMessage')
|
756
819
|
if @api_client.config.debugging
|
757
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
820
|
+
@api_client.config.logger.debug "API called: ConversationsApi#put_conversation_id_messages_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
758
821
|
end
|
759
822
|
return data, status_code, headers
|
760
823
|
end
|
@@ -765,8 +828,8 @@ module PureCloud
|
|
765
828
|
# @param attachment_id attachment ID
|
766
829
|
# @param [Hash] opts the optional parameters
|
767
830
|
# @return [String]
|
768
|
-
def
|
769
|
-
data, status_code, headers =
|
831
|
+
def delete_conversation_id_messages_draft_attachments_attachment_id(conversation_id, attachment_id, opts = {})
|
832
|
+
data, status_code, headers = delete_conversation_id_messages_draft_attachments_attachment_id_with_http_info(conversation_id, attachment_id, opts)
|
770
833
|
return data
|
771
834
|
end
|
772
835
|
|
@@ -776,16 +839,16 @@ module PureCloud
|
|
776
839
|
# @param attachment_id attachment ID
|
777
840
|
# @param [Hash] opts the optional parameters
|
778
841
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
779
|
-
def
|
842
|
+
def delete_conversation_id_messages_draft_attachments_attachment_id_with_http_info(conversation_id, attachment_id, opts = {})
|
780
843
|
if @api_client.config.debugging
|
781
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
844
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#delete_conversation_id_messages_draft_attachments_attachment_id ..."
|
782
845
|
end
|
783
846
|
|
784
847
|
# verify the required parameter 'conversation_id' is set
|
785
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
848
|
+
fail "Missing the required parameter 'conversation_id' when calling delete_conversation_id_messages_draft_attachments_attachment_id" if conversation_id.nil?
|
786
849
|
|
787
850
|
# verify the required parameter 'attachment_id' is set
|
788
|
-
fail "Missing the required parameter 'attachment_id' when calling
|
851
|
+
fail "Missing the required parameter 'attachment_id' when calling delete_conversation_id_messages_draft_attachments_attachment_id" if attachment_id.nil?
|
789
852
|
|
790
853
|
# resource path
|
791
854
|
path = "/api/v1/conversations/{conversationId}/messages/draft/attachments/{attachmentId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'attachmentId' + '}', attachment_id.to_s)
|
@@ -820,7 +883,7 @@ module PureCloud
|
|
820
883
|
:auth_names => auth_names,
|
821
884
|
:return_type => 'String')
|
822
885
|
if @api_client.config.debugging
|
823
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
886
|
+
@api_client.config.logger.debug "API called: ConversationsApi#delete_conversation_id_messages_draft_attachments_attachment_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
824
887
|
end
|
825
888
|
return data, status_code, headers
|
826
889
|
end
|
@@ -831,8 +894,8 @@ module PureCloud
|
|
831
894
|
# @param id message ID
|
832
895
|
# @param [Hash] opts the optional parameters
|
833
896
|
# @return [EmailMessage]
|
834
|
-
def
|
835
|
-
data, status_code, headers =
|
897
|
+
def get_conversation_id_messages_id(conversation_id, id, opts = {})
|
898
|
+
data, status_code, headers = get_conversation_id_messages_id_with_http_info(conversation_id, id, opts)
|
836
899
|
return data
|
837
900
|
end
|
838
901
|
|
@@ -842,16 +905,16 @@ module PureCloud
|
|
842
905
|
# @param id message ID
|
843
906
|
# @param [Hash] opts the optional parameters
|
844
907
|
# @return [Array<(EmailMessage, Fixnum, Hash)>] EmailMessage data, response status code and response headers
|
845
|
-
def
|
908
|
+
def get_conversation_id_messages_id_with_http_info(conversation_id, id, opts = {})
|
846
909
|
if @api_client.config.debugging
|
847
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
910
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id_messages_id ..."
|
848
911
|
end
|
849
912
|
|
850
913
|
# verify the required parameter 'conversation_id' is set
|
851
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
914
|
+
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_messages_id" if conversation_id.nil?
|
852
915
|
|
853
916
|
# verify the required parameter 'id' is set
|
854
|
-
fail "Missing the required parameter 'id' when calling
|
917
|
+
fail "Missing the required parameter 'id' when calling get_conversation_id_messages_id" if id.nil?
|
855
918
|
|
856
919
|
# resource path
|
857
920
|
path = "/api/v1/conversations/{conversationId}/messages/{id}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
@@ -886,7 +949,7 @@ module PureCloud
|
|
886
949
|
:auth_names => auth_names,
|
887
950
|
:return_type => 'EmailMessage')
|
888
951
|
if @api_client.config.debugging
|
889
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
952
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id_messages_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
890
953
|
end
|
891
954
|
return data, status_code, headers
|
892
955
|
end
|
@@ -897,8 +960,8 @@ module PureCloud
|
|
897
960
|
# @param [Hash] opts the optional parameters
|
898
961
|
# @option opts [Conversation] :body Conversation
|
899
962
|
# @return [Conversation]
|
900
|
-
def
|
901
|
-
data, status_code, headers =
|
963
|
+
def post_conversation_id_participants(conversation_id, opts = {})
|
964
|
+
data, status_code, headers = post_conversation_id_participants_with_http_info(conversation_id, opts)
|
902
965
|
return data
|
903
966
|
end
|
904
967
|
|
@@ -908,13 +971,13 @@ module PureCloud
|
|
908
971
|
# @param [Hash] opts the optional parameters
|
909
972
|
# @option opts [Conversation] :body Conversation
|
910
973
|
# @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
|
911
|
-
def
|
974
|
+
def post_conversation_id_participants_with_http_info(conversation_id, opts = {})
|
912
975
|
if @api_client.config.debugging
|
913
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
976
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_conversation_id_participants ..."
|
914
977
|
end
|
915
978
|
|
916
979
|
# verify the required parameter 'conversation_id' is set
|
917
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
980
|
+
fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_participants" if conversation_id.nil?
|
918
981
|
|
919
982
|
# resource path
|
920
983
|
path = "/api/v1/conversations/{conversationId}/participants".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
|
@@ -949,7 +1012,7 @@ module PureCloud
|
|
949
1012
|
:auth_names => auth_names,
|
950
1013
|
:return_type => 'Conversation')
|
951
1014
|
if @api_client.config.debugging
|
952
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
1015
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_conversation_id_participants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
953
1016
|
end
|
954
1017
|
return data, status_code, headers
|
955
1018
|
end
|
@@ -961,8 +1024,8 @@ module PureCloud
|
|
961
1024
|
# @param [Hash] opts the optional parameters
|
962
1025
|
# @option opts [ParticipantRequest] :body
|
963
1026
|
# @return [nil]
|
964
|
-
def
|
965
|
-
|
1027
|
+
def put_conversation_id_participants_participant_id(conversation_id, participant_id, opts = {})
|
1028
|
+
put_conversation_id_participants_participant_id_with_http_info(conversation_id, participant_id, opts)
|
966
1029
|
return nil
|
967
1030
|
end
|
968
1031
|
|
@@ -973,16 +1036,16 @@ module PureCloud
|
|
973
1036
|
# @param [Hash] opts the optional parameters
|
974
1037
|
# @option opts [ParticipantRequest] :body
|
975
1038
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
976
|
-
def
|
1039
|
+
def put_conversation_id_participants_participant_id_with_http_info(conversation_id, participant_id, opts = {})
|
977
1040
|
if @api_client.config.debugging
|
978
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
1041
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#put_conversation_id_participants_participant_id ..."
|
979
1042
|
end
|
980
1043
|
|
981
1044
|
# verify the required parameter 'conversation_id' is set
|
982
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
1045
|
+
fail "Missing the required parameter 'conversation_id' when calling put_conversation_id_participants_participant_id" if conversation_id.nil?
|
983
1046
|
|
984
1047
|
# verify the required parameter 'participant_id' is set
|
985
|
-
fail "Missing the required parameter 'participant_id' when calling
|
1048
|
+
fail "Missing the required parameter 'participant_id' when calling put_conversation_id_participants_participant_id" if participant_id.nil?
|
986
1049
|
|
987
1050
|
# resource path
|
988
1051
|
path = "/api/v1/conversations/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
@@ -1016,7 +1079,7 @@ module PureCloud
|
|
1016
1079
|
:body => post_body,
|
1017
1080
|
:auth_names => auth_names)
|
1018
1081
|
if @api_client.config.debugging
|
1019
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
1082
|
+
@api_client.config.logger.debug "API called: ConversationsApi#put_conversation_id_participants_participant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1020
1083
|
end
|
1021
1084
|
return data, status_code, headers
|
1022
1085
|
end
|
@@ -1028,8 +1091,8 @@ module PureCloud
|
|
1028
1091
|
# @param [Hash] opts the optional parameters
|
1029
1092
|
# @option opts [ParticipantAttributes] :body
|
1030
1093
|
# @return [nil]
|
1031
|
-
def
|
1032
|
-
|
1094
|
+
def put_conversation_id_participants_participant_id_attributes(conversation_id, participant_id, opts = {})
|
1095
|
+
put_conversation_id_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts)
|
1033
1096
|
return nil
|
1034
1097
|
end
|
1035
1098
|
|
@@ -1040,16 +1103,16 @@ module PureCloud
|
|
1040
1103
|
# @param [Hash] opts the optional parameters
|
1041
1104
|
# @option opts [ParticipantAttributes] :body
|
1042
1105
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1043
|
-
def
|
1106
|
+
def put_conversation_id_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts = {})
|
1044
1107
|
if @api_client.config.debugging
|
1045
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
1108
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#put_conversation_id_participants_participant_id_attributes ..."
|
1046
1109
|
end
|
1047
1110
|
|
1048
1111
|
# verify the required parameter 'conversation_id' is set
|
1049
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
1112
|
+
fail "Missing the required parameter 'conversation_id' when calling put_conversation_id_participants_participant_id_attributes" if conversation_id.nil?
|
1050
1113
|
|
1051
1114
|
# verify the required parameter 'participant_id' is set
|
1052
|
-
fail "Missing the required parameter 'participant_id' when calling
|
1115
|
+
fail "Missing the required parameter 'participant_id' when calling put_conversation_id_participants_participant_id_attributes" if participant_id.nil?
|
1053
1116
|
|
1054
1117
|
# resource path
|
1055
1118
|
path = "/api/v1/conversations/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
@@ -1083,7 +1146,74 @@ module PureCloud
|
|
1083
1146
|
:body => post_body,
|
1084
1147
|
:auth_names => auth_names)
|
1085
1148
|
if @api_client.config.debugging
|
1086
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
1149
|
+
@api_client.config.logger.debug "API called: ConversationsApi#put_conversation_id_participants_participant_id_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1150
|
+
end
|
1151
|
+
return data, status_code, headers
|
1152
|
+
end
|
1153
|
+
|
1154
|
+
# Create a new callback for the specified participant on the conversation.
|
1155
|
+
#
|
1156
|
+
# @param conversation_id conversation ID
|
1157
|
+
# @param participant_id participant ID
|
1158
|
+
# @param [Hash] opts the optional parameters
|
1159
|
+
# @option opts [CreateCallbackCommand] :body
|
1160
|
+
# @return [nil]
|
1161
|
+
def post_conversation_id_participants_participant_id_callbacks(conversation_id, participant_id, opts = {})
|
1162
|
+
post_conversation_id_participants_participant_id_callbacks_with_http_info(conversation_id, participant_id, opts)
|
1163
|
+
return nil
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
# Create a new callback for the specified participant on the conversation.
|
1167
|
+
#
|
1168
|
+
# @param conversation_id conversation ID
|
1169
|
+
# @param participant_id participant ID
|
1170
|
+
# @param [Hash] opts the optional parameters
|
1171
|
+
# @option opts [CreateCallbackCommand] :body
|
1172
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1173
|
+
def post_conversation_id_participants_participant_id_callbacks_with_http_info(conversation_id, participant_id, opts = {})
|
1174
|
+
if @api_client.config.debugging
|
1175
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_conversation_id_participants_participant_id_callbacks ..."
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
# verify the required parameter 'conversation_id' is set
|
1179
|
+
fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_participants_participant_id_callbacks" if conversation_id.nil?
|
1180
|
+
|
1181
|
+
# verify the required parameter 'participant_id' is set
|
1182
|
+
fail "Missing the required parameter 'participant_id' when calling post_conversation_id_participants_participant_id_callbacks" if participant_id.nil?
|
1183
|
+
|
1184
|
+
# resource path
|
1185
|
+
path = "/api/v1/conversations/{conversationId}/participants/{participantId}/callbacks".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
1186
|
+
|
1187
|
+
# query parameters
|
1188
|
+
query_params = {}
|
1189
|
+
|
1190
|
+
# header parameters
|
1191
|
+
header_params = {}
|
1192
|
+
|
1193
|
+
# HTTP header 'Accept' (if needed)
|
1194
|
+
_header_accept = ['application/json']
|
1195
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1196
|
+
|
1197
|
+
# HTTP header 'Content-Type'
|
1198
|
+
_header_content_type = ['application/json']
|
1199
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1200
|
+
|
1201
|
+
# form parameters
|
1202
|
+
form_params = {}
|
1203
|
+
|
1204
|
+
# http body (model)
|
1205
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
1206
|
+
|
1207
|
+
|
1208
|
+
auth_names = ['PureCloud Auth']
|
1209
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
1210
|
+
:header_params => header_params,
|
1211
|
+
:query_params => query_params,
|
1212
|
+
:form_params => form_params,
|
1213
|
+
:body => post_body,
|
1214
|
+
:auth_names => auth_names)
|
1215
|
+
if @api_client.config.debugging
|
1216
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_conversation_id_participants_participant_id_callbacks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1087
1217
|
end
|
1088
1218
|
return data, status_code, headers
|
1089
1219
|
end
|
@@ -1095,8 +1225,8 @@ module PureCloud
|
|
1095
1225
|
# @param [Hash] opts the optional parameters
|
1096
1226
|
# @option opts [ConsultTransferUpdate] :body new speak to
|
1097
1227
|
# @return [ConsultTransferResponse]
|
1098
|
-
def
|
1099
|
-
data, status_code, headers =
|
1228
|
+
def put_conversation_id_participants_participant_id_consult(conversation_id, participant_id, opts = {})
|
1229
|
+
data, status_code, headers = put_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts)
|
1100
1230
|
return data
|
1101
1231
|
end
|
1102
1232
|
|
@@ -1107,16 +1237,16 @@ module PureCloud
|
|
1107
1237
|
# @param [Hash] opts the optional parameters
|
1108
1238
|
# @option opts [ConsultTransferUpdate] :body new speak to
|
1109
1239
|
# @return [Array<(ConsultTransferResponse, Fixnum, Hash)>] ConsultTransferResponse data, response status code and response headers
|
1110
|
-
def
|
1240
|
+
def put_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {})
|
1111
1241
|
if @api_client.config.debugging
|
1112
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
1242
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#put_conversation_id_participants_participant_id_consult ..."
|
1113
1243
|
end
|
1114
1244
|
|
1115
1245
|
# verify the required parameter 'conversation_id' is set
|
1116
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
1246
|
+
fail "Missing the required parameter 'conversation_id' when calling put_conversation_id_participants_participant_id_consult" if conversation_id.nil?
|
1117
1247
|
|
1118
1248
|
# verify the required parameter 'participant_id' is set
|
1119
|
-
fail "Missing the required parameter 'participant_id' when calling
|
1249
|
+
fail "Missing the required parameter 'participant_id' when calling put_conversation_id_participants_participant_id_consult" if participant_id.nil?
|
1120
1250
|
|
1121
1251
|
# resource path
|
1122
1252
|
path = "/api/v1/conversations/{conversationId}/participants/{participantId}/consult".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
@@ -1151,7 +1281,7 @@ module PureCloud
|
|
1151
1281
|
:auth_names => auth_names,
|
1152
1282
|
:return_type => 'ConsultTransferResponse')
|
1153
1283
|
if @api_client.config.debugging
|
1154
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
1284
|
+
@api_client.config.logger.debug "API called: ConversationsApi#put_conversation_id_participants_participant_id_consult\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1155
1285
|
end
|
1156
1286
|
return data, status_code, headers
|
1157
1287
|
end
|
@@ -1163,8 +1293,8 @@ module PureCloud
|
|
1163
1293
|
# @param [Hash] opts the optional parameters
|
1164
1294
|
# @option opts [ConsultTransfer] :body Destination address & initial speak to
|
1165
1295
|
# @return [ConsultTransferResponse]
|
1166
|
-
def
|
1167
|
-
data, status_code, headers =
|
1296
|
+
def post_conversation_id_participants_participant_id_consult(conversation_id, participant_id, opts = {})
|
1297
|
+
data, status_code, headers = post_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts)
|
1168
1298
|
return data
|
1169
1299
|
end
|
1170
1300
|
|
@@ -1175,16 +1305,16 @@ module PureCloud
|
|
1175
1305
|
# @param [Hash] opts the optional parameters
|
1176
1306
|
# @option opts [ConsultTransfer] :body Destination address & initial speak to
|
1177
1307
|
# @return [Array<(ConsultTransferResponse, Fixnum, Hash)>] ConsultTransferResponse data, response status code and response headers
|
1178
|
-
def
|
1308
|
+
def post_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {})
|
1179
1309
|
if @api_client.config.debugging
|
1180
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
1310
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_conversation_id_participants_participant_id_consult ..."
|
1181
1311
|
end
|
1182
1312
|
|
1183
1313
|
# verify the required parameter 'conversation_id' is set
|
1184
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
1314
|
+
fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_participants_participant_id_consult" if conversation_id.nil?
|
1185
1315
|
|
1186
1316
|
# verify the required parameter 'participant_id' is set
|
1187
|
-
fail "Missing the required parameter 'participant_id' when calling
|
1317
|
+
fail "Missing the required parameter 'participant_id' when calling post_conversation_id_participants_participant_id_consult" if participant_id.nil?
|
1188
1318
|
|
1189
1319
|
# resource path
|
1190
1320
|
path = "/api/v1/conversations/{conversationId}/participants/{participantId}/consult".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
@@ -1219,7 +1349,7 @@ module PureCloud
|
|
1219
1349
|
:auth_names => auth_names,
|
1220
1350
|
:return_type => 'ConsultTransferResponse')
|
1221
1351
|
if @api_client.config.debugging
|
1222
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
1352
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_conversation_id_participants_participant_id_consult\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1223
1353
|
end
|
1224
1354
|
return data, status_code, headers
|
1225
1355
|
end
|
@@ -1230,8 +1360,8 @@ module PureCloud
|
|
1230
1360
|
# @param participant_id The object of the transfer
|
1231
1361
|
# @param [Hash] opts the optional parameters
|
1232
1362
|
# @return [String]
|
1233
|
-
def
|
1234
|
-
data, status_code, headers =
|
1363
|
+
def delete_conversation_id_participants_participant_id_consult(conversation_id, participant_id, opts = {})
|
1364
|
+
data, status_code, headers = delete_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts)
|
1235
1365
|
return data
|
1236
1366
|
end
|
1237
1367
|
|
@@ -1241,16 +1371,16 @@ module PureCloud
|
|
1241
1371
|
# @param participant_id The object of the transfer
|
1242
1372
|
# @param [Hash] opts the optional parameters
|
1243
1373
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
1244
|
-
def
|
1374
|
+
def delete_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {})
|
1245
1375
|
if @api_client.config.debugging
|
1246
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
1376
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#delete_conversation_id_participants_participant_id_consult ..."
|
1247
1377
|
end
|
1248
1378
|
|
1249
1379
|
# verify the required parameter 'conversation_id' is set
|
1250
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
1380
|
+
fail "Missing the required parameter 'conversation_id' when calling delete_conversation_id_participants_participant_id_consult" if conversation_id.nil?
|
1251
1381
|
|
1252
1382
|
# verify the required parameter 'participant_id' is set
|
1253
|
-
fail "Missing the required parameter 'participant_id' when calling
|
1383
|
+
fail "Missing the required parameter 'participant_id' when calling delete_conversation_id_participants_participant_id_consult" if participant_id.nil?
|
1254
1384
|
|
1255
1385
|
# resource path
|
1256
1386
|
path = "/api/v1/conversations/{conversationId}/participants/{participantId}/consult".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
@@ -1285,7 +1415,7 @@ module PureCloud
|
|
1285
1415
|
:auth_names => auth_names,
|
1286
1416
|
:return_type => 'String')
|
1287
1417
|
if @api_client.config.debugging
|
1288
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
1418
|
+
@api_client.config.logger.debug "API called: ConversationsApi#delete_conversation_id_participants_participant_id_consult\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1289
1419
|
end
|
1290
1420
|
return data, status_code, headers
|
1291
1421
|
end
|
@@ -1296,8 +1426,8 @@ module PureCloud
|
|
1296
1426
|
# @param participant_id participant ID
|
1297
1427
|
# @param [Hash] opts the optional parameters
|
1298
1428
|
# @return [nil]
|
1299
|
-
def
|
1300
|
-
|
1429
|
+
def post_conversation_id_participants_participant_id_monitor(conversation_id, participant_id, opts = {})
|
1430
|
+
post_conversation_id_participants_participant_id_monitor_with_http_info(conversation_id, participant_id, opts)
|
1301
1431
|
return nil
|
1302
1432
|
end
|
1303
1433
|
|
@@ -1307,16 +1437,16 @@ module PureCloud
|
|
1307
1437
|
# @param participant_id participant ID
|
1308
1438
|
# @param [Hash] opts the optional parameters
|
1309
1439
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1310
|
-
def
|
1440
|
+
def post_conversation_id_participants_participant_id_monitor_with_http_info(conversation_id, participant_id, opts = {})
|
1311
1441
|
if @api_client.config.debugging
|
1312
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
1442
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_conversation_id_participants_participant_id_monitor ..."
|
1313
1443
|
end
|
1314
1444
|
|
1315
1445
|
# verify the required parameter 'conversation_id' is set
|
1316
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
1446
|
+
fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_participants_participant_id_monitor" if conversation_id.nil?
|
1317
1447
|
|
1318
1448
|
# verify the required parameter 'participant_id' is set
|
1319
|
-
fail "Missing the required parameter 'participant_id' when calling
|
1449
|
+
fail "Missing the required parameter 'participant_id' when calling post_conversation_id_participants_participant_id_monitor" if participant_id.nil?
|
1320
1450
|
|
1321
1451
|
# resource path
|
1322
1452
|
path = "/api/v1/conversations/{conversationId}/participants/{participantId}/monitor".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
@@ -1350,7 +1480,7 @@ module PureCloud
|
|
1350
1480
|
:body => post_body,
|
1351
1481
|
:auth_names => auth_names)
|
1352
1482
|
if @api_client.config.debugging
|
1353
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
1483
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_conversation_id_participants_participant_id_monitor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1354
1484
|
end
|
1355
1485
|
return data, status_code, headers
|
1356
1486
|
end
|
@@ -1366,8 +1496,8 @@ module PureCloud
|
|
1366
1496
|
# @option opts [String] :queue_id The id of the queue that will replace this participant.
|
1367
1497
|
# @option opts [BOOLEAN] :voicemail Indicates this participant will be replaced by the voicemail inbox of the participant.
|
1368
1498
|
# @return [nil]
|
1369
|
-
def
|
1370
|
-
|
1499
|
+
def post_conversation_id_participants_participant_id_replace(conversation_id, participant_id, opts = {})
|
1500
|
+
post_conversation_id_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts)
|
1371
1501
|
return nil
|
1372
1502
|
end
|
1373
1503
|
|
@@ -1382,16 +1512,16 @@ module PureCloud
|
|
1382
1512
|
# @option opts [String] :queue_id The id of the queue that will replace this participant.
|
1383
1513
|
# @option opts [BOOLEAN] :voicemail Indicates this participant will be replaced by the voicemail inbox of the participant.
|
1384
1514
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1385
|
-
def
|
1515
|
+
def post_conversation_id_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts = {})
|
1386
1516
|
if @api_client.config.debugging
|
1387
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
1517
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_conversation_id_participants_participant_id_replace ..."
|
1388
1518
|
end
|
1389
1519
|
|
1390
1520
|
# verify the required parameter 'conversation_id' is set
|
1391
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
1521
|
+
fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_participants_participant_id_replace" if conversation_id.nil?
|
1392
1522
|
|
1393
1523
|
# verify the required parameter 'participant_id' is set
|
1394
|
-
fail "Missing the required parameter 'participant_id' when calling
|
1524
|
+
fail "Missing the required parameter 'participant_id' when calling post_conversation_id_participants_participant_id_replace" if participant_id.nil?
|
1395
1525
|
|
1396
1526
|
# resource path
|
1397
1527
|
path = "/api/v1/conversations/{conversationId}/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
@@ -1430,7 +1560,7 @@ module PureCloud
|
|
1430
1560
|
:body => post_body,
|
1431
1561
|
:auth_names => auth_names)
|
1432
1562
|
if @api_client.config.debugging
|
1433
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
1563
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_conversation_id_participants_participant_id_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1434
1564
|
end
|
1435
1565
|
return data, status_code, headers
|
1436
1566
|
end
|
@@ -1442,8 +1572,8 @@ module PureCloud
|
|
1442
1572
|
# @param [Hash] opts the optional parameters
|
1443
1573
|
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
1444
1574
|
# @return [WrapupCode]
|
1445
|
-
def
|
1446
|
-
data, status_code, headers =
|
1575
|
+
def get_conversation_id_participants_participant_id_wrapup(conversation_id, participant_id, opts = {})
|
1576
|
+
data, status_code, headers = get_conversation_id_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts)
|
1447
1577
|
return data
|
1448
1578
|
end
|
1449
1579
|
|
@@ -1454,16 +1584,16 @@ module PureCloud
|
|
1454
1584
|
# @param [Hash] opts the optional parameters
|
1455
1585
|
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
1456
1586
|
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
1457
|
-
def
|
1587
|
+
def get_conversation_id_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts = {})
|
1458
1588
|
if @api_client.config.debugging
|
1459
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
1589
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id_participants_participant_id_wrapup ..."
|
1460
1590
|
end
|
1461
1591
|
|
1462
1592
|
# verify the required parameter 'conversation_id' is set
|
1463
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
1593
|
+
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_participants_participant_id_wrapup" if conversation_id.nil?
|
1464
1594
|
|
1465
1595
|
# verify the required parameter 'participant_id' is set
|
1466
|
-
fail "Missing the required parameter 'participant_id' when calling
|
1596
|
+
fail "Missing the required parameter 'participant_id' when calling get_conversation_id_participants_participant_id_wrapup" if participant_id.nil?
|
1467
1597
|
|
1468
1598
|
# resource path
|
1469
1599
|
path = "/api/v1/conversations/{conversationId}/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
@@ -1499,7 +1629,7 @@ module PureCloud
|
|
1499
1629
|
:auth_names => auth_names,
|
1500
1630
|
:return_type => 'WrapupCode')
|
1501
1631
|
if @api_client.config.debugging
|
1502
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
1632
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id_participants_participant_id_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1503
1633
|
end
|
1504
1634
|
return data, status_code, headers
|
1505
1635
|
end
|
@@ -1510,8 +1640,8 @@ module PureCloud
|
|
1510
1640
|
# @param participant_id participant ID
|
1511
1641
|
# @param [Hash] opts the optional parameters
|
1512
1642
|
# @return [WrapupCode]
|
1513
|
-
def
|
1514
|
-
data, status_code, headers =
|
1643
|
+
def get_conversation_id_participants_participant_id_wrapupcodes(conversation_id, participant_id, opts = {})
|
1644
|
+
data, status_code, headers = get_conversation_id_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts)
|
1515
1645
|
return data
|
1516
1646
|
end
|
1517
1647
|
|
@@ -1521,16 +1651,16 @@ module PureCloud
|
|
1521
1651
|
# @param participant_id participant ID
|
1522
1652
|
# @param [Hash] opts the optional parameters
|
1523
1653
|
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
1524
|
-
def
|
1654
|
+
def get_conversation_id_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts = {})
|
1525
1655
|
if @api_client.config.debugging
|
1526
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
1656
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id_participants_participant_id_wrapupcodes ..."
|
1527
1657
|
end
|
1528
1658
|
|
1529
1659
|
# verify the required parameter 'conversation_id' is set
|
1530
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
1660
|
+
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_participants_participant_id_wrapupcodes" if conversation_id.nil?
|
1531
1661
|
|
1532
1662
|
# verify the required parameter 'participant_id' is set
|
1533
|
-
fail "Missing the required parameter 'participant_id' when calling
|
1663
|
+
fail "Missing the required parameter 'participant_id' when calling get_conversation_id_participants_participant_id_wrapupcodes" if participant_id.nil?
|
1534
1664
|
|
1535
1665
|
# resource path
|
1536
1666
|
path = "/api/v1/conversations/{conversationId}/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
@@ -1565,7 +1695,7 @@ module PureCloud
|
|
1565
1695
|
:auth_names => auth_names,
|
1566
1696
|
:return_type => 'WrapupCode')
|
1567
1697
|
if @api_client.config.debugging
|
1568
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
1698
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id_participants_participant_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1569
1699
|
end
|
1570
1700
|
return data, status_code, headers
|
1571
1701
|
end
|
@@ -1575,8 +1705,8 @@ module PureCloud
|
|
1575
1705
|
# @param conversation_id conversation ID
|
1576
1706
|
# @param [Hash] opts the optional parameters
|
1577
1707
|
# @return [Tag]
|
1578
|
-
def
|
1579
|
-
data, status_code, headers =
|
1708
|
+
def get_conversation_id_tags(conversation_id, opts = {})
|
1709
|
+
data, status_code, headers = get_conversation_id_tags_with_http_info(conversation_id, opts)
|
1580
1710
|
return data
|
1581
1711
|
end
|
1582
1712
|
|
@@ -1585,13 +1715,13 @@ module PureCloud
|
|
1585
1715
|
# @param conversation_id conversation ID
|
1586
1716
|
# @param [Hash] opts the optional parameters
|
1587
1717
|
# @return [Array<(Tag, Fixnum, Hash)>] Tag data, response status code and response headers
|
1588
|
-
def
|
1718
|
+
def get_conversation_id_tags_with_http_info(conversation_id, opts = {})
|
1589
1719
|
if @api_client.config.debugging
|
1590
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
1720
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id_tags ..."
|
1591
1721
|
end
|
1592
1722
|
|
1593
1723
|
# verify the required parameter 'conversation_id' is set
|
1594
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
1724
|
+
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_tags" if conversation_id.nil?
|
1595
1725
|
|
1596
1726
|
# resource path
|
1597
1727
|
path = "/api/v1/conversations/{conversationId}/tags".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
|
@@ -1626,7 +1756,7 @@ module PureCloud
|
|
1626
1756
|
:auth_names => auth_names,
|
1627
1757
|
:return_type => 'Tag')
|
1628
1758
|
if @api_client.config.debugging
|
1629
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
1759
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1630
1760
|
end
|
1631
1761
|
return data, status_code, headers
|
1632
1762
|
end
|
@@ -1636,8 +1766,8 @@ module PureCloud
|
|
1636
1766
|
# @param conversation_id conversation ID
|
1637
1767
|
# @param [Hash] opts the optional parameters
|
1638
1768
|
# @return [WrapupCode]
|
1639
|
-
def
|
1640
|
-
data, status_code, headers =
|
1769
|
+
def get_conversation_id_wrapupcodes(conversation_id, opts = {})
|
1770
|
+
data, status_code, headers = get_conversation_id_wrapupcodes_with_http_info(conversation_id, opts)
|
1641
1771
|
return data
|
1642
1772
|
end
|
1643
1773
|
|
@@ -1646,13 +1776,13 @@ module PureCloud
|
|
1646
1776
|
# @param conversation_id conversation ID
|
1647
1777
|
# @param [Hash] opts the optional parameters
|
1648
1778
|
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
1649
|
-
def
|
1779
|
+
def get_conversation_id_wrapupcodes_with_http_info(conversation_id, opts = {})
|
1650
1780
|
if @api_client.config.debugging
|
1651
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
1781
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id_wrapupcodes ..."
|
1652
1782
|
end
|
1653
1783
|
|
1654
1784
|
# verify the required parameter 'conversation_id' is set
|
1655
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
1785
|
+
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_wrapupcodes" if conversation_id.nil?
|
1656
1786
|
|
1657
1787
|
# resource path
|
1658
1788
|
path = "/api/v1/conversations/{conversationId}/wrapupcodes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
|
@@ -1687,7 +1817,7 @@ module PureCloud
|
|
1687
1817
|
:auth_names => auth_names,
|
1688
1818
|
:return_type => 'WrapupCode')
|
1689
1819
|
if @api_client.config.debugging
|
1690
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
1820
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1691
1821
|
end
|
1692
1822
|
return data, status_code, headers
|
1693
1823
|
end
|