purecloud 0.30.1 → 0.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config-ruby.json +1 -1
- data/lib/purecloud/api/configuration_api.rb +4 -814
- data/lib/purecloud/api/conversations_api.rb +1035 -1763
- data/lib/purecloud/api/organization_api.rb +0 -58
- data/lib/purecloud/api/quality_api.rb +629 -0
- data/lib/purecloud/api/telephony_providers_edge_api.rb +1033 -677
- data/lib/purecloud/api/users_api.rb +311 -0
- data/lib/purecloud/api/voicemail_api.rb +176 -176
- data/lib/purecloud/models/address_listing.rb +17 -17
- data/lib/purecloud/models/agent_activity_entity_listing.rb +17 -17
- data/lib/purecloud/models/aggregate_metric_data.rb +1 -1
- data/lib/purecloud/models/analytics_conversation_segment.rb +18 -235
- data/lib/purecloud/models/analytics_participant.rb +40 -1
- data/lib/purecloud/models/analytics_query_predicate.rb +2 -2
- data/lib/purecloud/models/analytics_session.rb +150 -1
- data/lib/purecloud/models/attribute_entity_listing.rb +17 -17
- data/lib/purecloud/models/automate_queue_member_entity_listing.rb +17 -17
- data/lib/purecloud/models/available_additional_service_listing.rb +17 -17
- data/lib/purecloud/models/available_topic_entity_listing.rb +17 -17
- data/lib/purecloud/models/calibration_entity_listing.rb +17 -17
- data/lib/purecloud/models/call_conversation_entity_listing.rb +17 -17
- data/lib/purecloud/models/callable_time_set_entity_listing.rb +17 -17
- data/lib/purecloud/models/callback_conversation_entity_listing.rb +17 -17
- data/lib/purecloud/models/campaign_entity_listing.rb +17 -17
- data/lib/purecloud/models/campaign_sequence_entity_listing.rb +17 -17
- data/lib/purecloud/models/carrier_entity_listing.rb +17 -17
- data/lib/purecloud/models/certificate_authority_entity_listing.rb +17 -17
- data/lib/purecloud/models/channel_entity_listing.rb +17 -17
- data/lib/purecloud/models/channel_topic_entity_listing.rb +17 -17
- data/lib/purecloud/models/chat_conversation_entity_listing.rb +17 -17
- data/lib/purecloud/models/command_status_entity_listing.rb +17 -17
- data/lib/purecloud/models/consumed_resources_entity_listing.rb +17 -17
- data/lib/purecloud/models/consuming_resources_entity_listing.rb +17 -17
- data/lib/purecloud/models/contact_list_entity_listing.rb +17 -17
- data/lib/purecloud/models/contact_listing.rb +17 -17
- data/lib/purecloud/models/conversation_entity_listing.rb +17 -17
- data/lib/purecloud/models/create_user.rb +1 -11
- data/lib/purecloud/models/data_item.rb +23 -19
- data/lib/purecloud/models/deleted_resource_consumer_entity_listing.rb +17 -17
- data/lib/purecloud/models/dependency_object_entity_listing.rb +17 -17
- data/lib/purecloud/models/dependency_type_entity_listing.rb +17 -17
- data/lib/purecloud/models/did_entity_listing.rb +17 -17
- data/lib/purecloud/models/did_pool_entity_listing.rb +17 -17
- data/lib/purecloud/models/dnc_list_entity_listing.rb +17 -17
- data/lib/purecloud/models/document_audit_entity_listing.rb +17 -17
- data/lib/purecloud/models/document_entity_listing.rb +17 -17
- data/lib/purecloud/models/domain_billing_period_entity_listing.rb +17 -17
- data/lib/purecloud/models/domain_entity_listing.rb +17 -17
- data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +17 -17
- data/lib/purecloud/models/domain_entity_listing_query_result.rb +17 -17
- data/lib/purecloud/models/domain_invoice_entity_listing.rb +17 -17
- data/lib/purecloud/models/domain_third_party_account_entity_listing.rb +17 -17
- data/lib/purecloud/models/domain_third_party_subscription_entity_listing.rb +17 -17
- data/lib/purecloud/models/domain_voice_rate_extended_response_item_entity_listing.rb +17 -17
- data/lib/purecloud/models/domain_voice_rate_international_response_item_entity_listing.rb +17 -17
- data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +17 -17
- data/lib/purecloud/models/edge_entity_listing.rb +17 -17
- data/lib/purecloud/models/edge_group_entity_listing.rb +17 -17
- data/lib/purecloud/models/edge_line_entity_listing.rb +17 -17
- data/lib/purecloud/models/email_conversation_entity_listing.rb +17 -17
- data/lib/purecloud/models/email_message_listing.rb +17 -17
- data/lib/purecloud/models/encryption_key_entity_listing.rb +17 -17
- data/lib/purecloud/models/endpoint_entity_listing.rb +17 -17
- data/lib/purecloud/models/evaluation_entity_listing.rb +17 -17
- data/lib/purecloud/models/evaluation_form_entity_listing.rb +17 -17
- data/lib/purecloud/models/evaluator_activity_entity_listing.rb +17 -17
- data/lib/purecloud/models/extension_entity_listing.rb +17 -17
- data/lib/purecloud/models/extension_pool_entity_listing.rb +17 -17
- data/lib/purecloud/models/external_organization_listing.rb +17 -17
- data/lib/purecloud/models/fax_document_entity_listing.rb +17 -17
- data/lib/purecloud/models/flow_config_meta_data_entity_listing.rb +17 -17
- data/lib/purecloud/models/flow_entity_listing.rb +17 -17
- data/lib/purecloud/models/flow_history_result_item_entity_listing.rb +17 -17
- data/lib/purecloud/models/flow_version_config_meta_data_entity_listing.rb +17 -17
- data/lib/purecloud/models/flow_version_entity_listing.rb +17 -17
- data/lib/purecloud/models/group_entity_listing.rb +17 -17
- data/lib/purecloud/models/hardware_rate_listing.rb +17 -17
- data/lib/purecloud/models/inbound_domain_entity_listing.rb +17 -17
- data/lib/purecloud/models/inbound_route_entity_listing.rb +17 -17
- data/lib/purecloud/models/integration_type_entity_listing.rb +17 -17
- data/lib/purecloud/models/interaction_stats_alert_container.rb +17 -17
- data/lib/purecloud/models/interaction_stats_rule_container.rb +17 -17
- data/lib/purecloud/models/ivr_entity_listing.rb +17 -17
- data/lib/purecloud/models/json_node.rb +32 -32
- data/lib/purecloud/models/language_entity_listing.rb +17 -17
- data/lib/purecloud/models/library_entity_listing.rb +17 -17
- data/lib/purecloud/models/line_base_entity_listing.rb +17 -17
- data/lib/purecloud/models/line_entity_listing.rb +17 -17
- data/lib/purecloud/models/linked_entity_listing_flow_details.rb +17 -17
- data/lib/purecloud/models/linked_entity_listing_work_item_search_details.rb +17 -17
- data/lib/purecloud/models/location_entity_listing.rb +17 -17
- data/lib/purecloud/models/logical_interface_entity_listing.rb +17 -17
- data/lib/purecloud/models/note_listing.rb +17 -17
- data/lib/purecloud/models/o_auth_client_entity_listing.rb +17 -17
- data/lib/purecloud/models/o_auth_provider_entity_listing.rb +17 -17
- data/lib/purecloud/models/organization.rb +1 -0
- data/lib/purecloud/models/organization_presence_entity_listing.rb +17 -17
- data/lib/purecloud/models/organization_role_entity_listing.rb +17 -17
- data/lib/purecloud/models/orphan_recording_listing.rb +17 -17
- data/lib/purecloud/models/outbound_route_entity_listing.rb +17 -17
- data/lib/purecloud/models/payment_method_listing.rb +17 -17
- data/lib/purecloud/models/permission_collection_entity_listing.rb +17 -17
- data/lib/purecloud/models/phone_base_entity_listing.rb +17 -17
- data/lib/purecloud/models/phone_entity_listing.rb +17 -17
- data/lib/purecloud/models/phone_meta_base_entity_listing.rb +17 -17
- data/lib/purecloud/models/physical_interface_entity_listing.rb +17 -17
- data/lib/purecloud/models/policy_entity_listing.rb +17 -17
- data/lib/purecloud/models/prompt_asset_entity_listing.rb +17 -17
- data/lib/purecloud/models/prompt_entity_listing.rb +17 -17
- data/lib/purecloud/models/property_index_request.rb +1 -12
- data/lib/purecloud/models/quality_audit_page.rb +17 -17
- data/lib/purecloud/models/queue_entity_listing.rb +17 -17
- data/lib/purecloud/models/queues_entity_listing.rb +17 -17
- data/lib/purecloud/models/quote_listing.rb +17 -17
- data/lib/purecloud/models/relationship_listing.rb +17 -17
- data/lib/purecloud/models/report_meta_data_entity_listing.rb +17 -17
- data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +17 -17
- data/lib/purecloud/models/report_schedule_entity_listing.rb +17 -17
- data/lib/purecloud/models/response_entity_list.rb +17 -17
- data/lib/purecloud/models/response_entity_listing.rb +17 -17
- data/lib/purecloud/models/response_set_entity_listing.rb +17 -17
- data/lib/purecloud/models/rule_set_entity_listing.rb +17 -17
- data/lib/purecloud/models/schedule_entity_listing.rb +17 -17
- data/lib/purecloud/models/schedule_group_entity_listing.rb +17 -17
- data/lib/purecloud/models/schema_category_entity_listing.rb +17 -17
- data/lib/purecloud/models/schema_reference_entity_listing.rb +17 -17
- data/lib/purecloud/models/script_entity_listing.rb +17 -17
- data/lib/purecloud/models/security_profile_entity_listing.rb +17 -17
- data/lib/purecloud/models/service_entity_listing.rb +17 -17
- data/lib/purecloud/models/share_entity_listing.rb +17 -17
- data/lib/purecloud/models/site.rb +1 -1
- data/lib/purecloud/models/site_entity_listing.rb +17 -17
- data/lib/purecloud/models/skill_entity_listing.rb +17 -17
- data/lib/purecloud/models/social_conversation_entity_listing.rb +17 -17
- data/lib/purecloud/models/spreadsheet_transform_entity_listing.rb +17 -17
- data/lib/purecloud/models/station_entity_listing.rb +17 -17
- data/lib/purecloud/models/system_prompt_asset_entity_listing.rb +17 -17
- data/lib/purecloud/models/system_prompt_entity_listing.rb +17 -17
- data/lib/purecloud/models/tag_value_entity_listing.rb +17 -17
- data/lib/purecloud/models/template_entity_listing.rb +17 -17
- data/lib/purecloud/models/text_table_transform_entity_listing.rb +17 -17
- data/lib/purecloud/models/time_zone_entity_listing.rb +17 -17
- data/lib/purecloud/models/trunk_metabase_entity_listing.rb +17 -17
- data/lib/purecloud/models/user_action_category_entity_listing.rb +17 -17
- data/lib/purecloud/models/user_action_metadata_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_entity_listing.rb +17 -17
- data/lib/purecloud/models/user_queue_entity_listing.rb +17 -17
- data/lib/purecloud/models/user_recording_entity_listing.rb +17 -17
- data/lib/purecloud/models/user_skill_entity_listing.rb +17 -17
- data/lib/purecloud/models/users_entity_listing.rb +17 -17
- data/lib/purecloud/models/video_conversation_entity_listing.rb +17 -17
- data/lib/purecloud/models/voice_rate_international_entity_listing.rb +17 -17
- data/lib/purecloud/models/voice_xml_operation_entity_listing.rb +17 -17
- data/lib/purecloud/models/voicemail_message_entity_listing.rb +17 -17
- data/lib/purecloud/models/workspace_entity_listing.rb +17 -17
- data/lib/purecloud/models/workspace_member_entity_listing.rb +17 -17
- data/lib/purecloud/models/wrapup_code_entity_listing.rb +17 -17
- data/lib/purecloud/version.rb +1 -1
- data/lib/purecloud.rb +83 -100
- data/newVersion.md +1 -1
- data/swagger.json +1 -1
- data/version.json +1 -1
- metadata +2 -19
- data/lib/purecloud/api/callbacks_api.rb +0 -483
- data/lib/purecloud/api/calls_api.rb +0 -1088
- data/lib/purecloud/api/chats_api.rb +0 -483
- data/lib/purecloud/api/compliance_api.rb +0 -129
- data/lib/purecloud/api/downloads_api.rb +0 -140
- data/lib/purecloud/api/emails_api.rb +0 -1013
- data/lib/purecloud/api/evaluations_api.rb +0 -73
- data/lib/purecloud/api/faxes_api.rb +0 -73
- data/lib/purecloud/api/integrations_api.rb +0 -150
- data/lib/purecloud/api/integrations_workforce_management_api.rb +0 -73
- data/lib/purecloud/api/licensing_api.rb +0 -428
- data/lib/purecloud/api/scripts_api.rb +0 -718
- data/lib/purecloud/api/socials_api.rb +0 -483
- data/lib/purecloud/api/videos_api.rb +0 -483
- data/lib/purecloud/models/body.rb +0 -136
- data/lib/purecloud/models/organization_address.rb +0 -194
- data/lib/purecloud/models/participant_request.rb +0 -242
|
@@ -250,34 +250,83 @@ module PureCloud
|
|
|
250
250
|
|
|
251
251
|
# Get conversations
|
|
252
252
|
#
|
|
253
|
-
# @param conversation_id conversation ID
|
|
254
|
-
# @param participant_id participant ID
|
|
255
253
|
# @param [Hash] opts the optional parameters
|
|
256
|
-
# @
|
|
257
|
-
|
|
258
|
-
|
|
254
|
+
# @option opts [String] :communication_type Call or Chat communication filtering
|
|
255
|
+
# @return [ConversationEntityListing]
|
|
256
|
+
def get_conversations(opts = {})
|
|
257
|
+
data, status_code, headers = get_conversations_with_http_info(opts)
|
|
259
258
|
return data
|
|
260
259
|
end
|
|
261
260
|
|
|
262
261
|
# Get conversations
|
|
263
262
|
#
|
|
264
|
-
# @param conversation_id conversation ID
|
|
265
|
-
# @param participant_id participant ID
|
|
266
263
|
# @param [Hash] opts the optional parameters
|
|
267
|
-
# @
|
|
268
|
-
|
|
264
|
+
# @option opts [String] :communication_type Call or Chat communication filtering
|
|
265
|
+
# @return [Array<(ConversationEntityListing, Fixnum, Hash)>] ConversationEntityListing data, response status code and response headers
|
|
266
|
+
def get_conversations_with_http_info(opts = {})
|
|
269
267
|
if @api_client.config.debugging
|
|
270
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
268
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversations ..."
|
|
271
269
|
end
|
|
272
270
|
|
|
273
|
-
#
|
|
274
|
-
|
|
271
|
+
# resource path
|
|
272
|
+
path = "/api/v2/conversations".sub('{format}','json')
|
|
273
|
+
|
|
274
|
+
# query parameters
|
|
275
|
+
query_params = {}
|
|
276
|
+
query_params[:'communicationType'] = opts[:'communication_type'] if opts[:'communication_type']
|
|
277
|
+
|
|
278
|
+
# header parameters
|
|
279
|
+
header_params = {}
|
|
280
|
+
|
|
281
|
+
# HTTP header 'Accept' (if needed)
|
|
282
|
+
_header_accept = ['application/json']
|
|
283
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
284
|
+
|
|
285
|
+
# HTTP header 'Content-Type'
|
|
286
|
+
_header_content_type = ['application/json']
|
|
287
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
288
|
+
|
|
289
|
+
# form parameters
|
|
290
|
+
form_params = {}
|
|
291
|
+
|
|
292
|
+
# http body (model)
|
|
293
|
+
post_body = nil
|
|
275
294
|
|
|
276
|
-
|
|
277
|
-
|
|
295
|
+
|
|
296
|
+
auth_names = ['PureCloud Auth']
|
|
297
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
298
|
+
:header_params => header_params,
|
|
299
|
+
:query_params => query_params,
|
|
300
|
+
:form_params => form_params,
|
|
301
|
+
:body => post_body,
|
|
302
|
+
:auth_names => auth_names,
|
|
303
|
+
:return_type => 'ConversationEntityListing')
|
|
304
|
+
if @api_client.config.debugging
|
|
305
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
306
|
+
end
|
|
307
|
+
return data, status_code, headers
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Get callback conversations
|
|
311
|
+
#
|
|
312
|
+
# @param [Hash] opts the optional parameters
|
|
313
|
+
# @return [CallbackConversationEntityListing]
|
|
314
|
+
def get_callbacks(opts = {})
|
|
315
|
+
data, status_code, headers = get_callbacks_with_http_info(opts)
|
|
316
|
+
return data
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# Get callback conversations
|
|
320
|
+
#
|
|
321
|
+
# @param [Hash] opts the optional parameters
|
|
322
|
+
# @return [Array<(CallbackConversationEntityListing, Fixnum, Hash)>] CallbackConversationEntityListing data, response status code and response headers
|
|
323
|
+
def get_callbacks_with_http_info(opts = {})
|
|
324
|
+
if @api_client.config.debugging
|
|
325
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_callbacks ..."
|
|
326
|
+
end
|
|
278
327
|
|
|
279
328
|
# resource path
|
|
280
|
-
path = "/api/v2/callbacks".sub('{format}','json')
|
|
329
|
+
path = "/api/v2/conversations/callbacks".sub('{format}','json')
|
|
281
330
|
|
|
282
331
|
# query parameters
|
|
283
332
|
query_params = {}
|
|
@@ -314,38 +363,31 @@ module PureCloud
|
|
|
314
363
|
return data, status_code, headers
|
|
315
364
|
end
|
|
316
365
|
|
|
317
|
-
#
|
|
366
|
+
# Get callback conversation
|
|
318
367
|
#
|
|
319
|
-
# @param
|
|
320
|
-
# @param participant_id participant ID
|
|
368
|
+
# @param callback_id
|
|
321
369
|
# @param [Hash] opts the optional parameters
|
|
322
|
-
# @
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
return nil
|
|
370
|
+
# @return [CallbackConversation]
|
|
371
|
+
def get_callbacks_callback_id(callback_id, opts = {})
|
|
372
|
+
data, status_code, headers = get_callbacks_callback_id_with_http_info(callback_id, opts)
|
|
373
|
+
return data
|
|
327
374
|
end
|
|
328
375
|
|
|
329
|
-
#
|
|
376
|
+
# Get callback conversation
|
|
330
377
|
#
|
|
331
|
-
# @param
|
|
332
|
-
# @param participant_id participant ID
|
|
378
|
+
# @param callback_id
|
|
333
379
|
# @param [Hash] opts the optional parameters
|
|
334
|
-
# @
|
|
335
|
-
|
|
336
|
-
def patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts = {})
|
|
380
|
+
# @return [Array<(CallbackConversation, Fixnum, Hash)>] CallbackConversation data, response status code and response headers
|
|
381
|
+
def get_callbacks_callback_id_with_http_info(callback_id, opts = {})
|
|
337
382
|
if @api_client.config.debugging
|
|
338
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
383
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_callbacks_callback_id ..."
|
|
339
384
|
end
|
|
340
385
|
|
|
341
|
-
# verify the required parameter '
|
|
342
|
-
fail "Missing the required parameter '
|
|
343
|
-
|
|
344
|
-
# verify the required parameter 'participant_id' is set
|
|
345
|
-
fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id" if participant_id.nil?
|
|
386
|
+
# verify the required parameter 'callback_id' is set
|
|
387
|
+
fail "Missing the required parameter 'callback_id' when calling get_callbacks_callback_id" if callback_id.nil?
|
|
346
388
|
|
|
347
389
|
# resource path
|
|
348
|
-
path = "/api/v2/callbacks/
|
|
390
|
+
path = "/api/v2/conversations/callbacks/{callbackId}".sub('{format}','json').sub('{' + 'callbackId' + '}', callback_id.to_s)
|
|
349
391
|
|
|
350
392
|
# query parameters
|
|
351
393
|
query_params = {}
|
|
@@ -365,54 +407,55 @@ module PureCloud
|
|
|
365
407
|
form_params = {}
|
|
366
408
|
|
|
367
409
|
# http body (model)
|
|
368
|
-
post_body =
|
|
410
|
+
post_body = nil
|
|
369
411
|
|
|
370
412
|
|
|
371
413
|
auth_names = ['PureCloud Auth']
|
|
372
|
-
data, status_code, headers = @api_client.call_api(:
|
|
414
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
373
415
|
:header_params => header_params,
|
|
374
416
|
:query_params => query_params,
|
|
375
417
|
:form_params => form_params,
|
|
376
418
|
:body => post_body,
|
|
377
|
-
:auth_names => auth_names
|
|
419
|
+
:auth_names => auth_names,
|
|
420
|
+
:return_type => 'CallbackConversation')
|
|
378
421
|
if @api_client.config.debugging
|
|
379
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
422
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_callbacks_callback_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
380
423
|
end
|
|
381
424
|
return data, status_code, headers
|
|
382
425
|
end
|
|
383
426
|
|
|
384
|
-
# Update
|
|
427
|
+
# Update conversation participant
|
|
385
428
|
#
|
|
386
|
-
# @param
|
|
387
|
-
# @param participant_id
|
|
429
|
+
# @param callback_id
|
|
430
|
+
# @param participant_id
|
|
388
431
|
# @param [Hash] opts the optional parameters
|
|
389
|
-
# @option opts [
|
|
432
|
+
# @option opts [MediaParticipantRequest] :body
|
|
390
433
|
# @return [nil]
|
|
391
|
-
def
|
|
392
|
-
|
|
434
|
+
def patch_callbacks_callback_id_participants_participant_id(callback_id, participant_id, opts = {})
|
|
435
|
+
patch_callbacks_callback_id_participants_participant_id_with_http_info(callback_id, participant_id, opts)
|
|
393
436
|
return nil
|
|
394
437
|
end
|
|
395
438
|
|
|
396
|
-
# Update
|
|
439
|
+
# Update conversation participant
|
|
397
440
|
#
|
|
398
|
-
# @param
|
|
399
|
-
# @param participant_id
|
|
441
|
+
# @param callback_id
|
|
442
|
+
# @param participant_id
|
|
400
443
|
# @param [Hash] opts the optional parameters
|
|
401
|
-
# @option opts [
|
|
444
|
+
# @option opts [MediaParticipantRequest] :body
|
|
402
445
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
403
|
-
def
|
|
446
|
+
def patch_callbacks_callback_id_participants_participant_id_with_http_info(callback_id, participant_id, opts = {})
|
|
404
447
|
if @api_client.config.debugging
|
|
405
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
448
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_callbacks_callback_id_participants_participant_id ..."
|
|
406
449
|
end
|
|
407
450
|
|
|
408
|
-
# verify the required parameter '
|
|
409
|
-
fail "Missing the required parameter '
|
|
451
|
+
# verify the required parameter 'callback_id' is set
|
|
452
|
+
fail "Missing the required parameter 'callback_id' when calling patch_callbacks_callback_id_participants_participant_id" if callback_id.nil?
|
|
410
453
|
|
|
411
454
|
# verify the required parameter 'participant_id' is set
|
|
412
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
455
|
+
fail "Missing the required parameter 'participant_id' when calling patch_callbacks_callback_id_participants_participant_id" if participant_id.nil?
|
|
413
456
|
|
|
414
457
|
# resource path
|
|
415
|
-
path = "/api/v2/callbacks/participants/{participantId}
|
|
458
|
+
path = "/api/v2/conversations/callbacks/{callbackId}/participants/{participantId}".sub('{format}','json').sub('{' + 'callbackId' + '}', callback_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
416
459
|
|
|
417
460
|
# query parameters
|
|
418
461
|
query_params = {}
|
|
@@ -443,43 +486,43 @@ module PureCloud
|
|
|
443
486
|
:body => post_body,
|
|
444
487
|
:auth_names => auth_names)
|
|
445
488
|
if @api_client.config.debugging
|
|
446
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
489
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_callbacks_callback_id_participants_participant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
447
490
|
end
|
|
448
491
|
return data, status_code, headers
|
|
449
492
|
end
|
|
450
493
|
|
|
451
|
-
#
|
|
494
|
+
# Update the attributes on a conversation participant.
|
|
452
495
|
#
|
|
453
|
-
# @param
|
|
454
|
-
# @param participant_id
|
|
496
|
+
# @param callback_id
|
|
497
|
+
# @param participant_id
|
|
455
498
|
# @param [Hash] opts the optional parameters
|
|
456
|
-
# @option opts [
|
|
499
|
+
# @option opts [ParticipantAttributes] :body
|
|
457
500
|
# @return [nil]
|
|
458
|
-
def
|
|
459
|
-
|
|
501
|
+
def patch_callbacks_callback_id_participants_participant_id_attributes(callback_id, participant_id, opts = {})
|
|
502
|
+
patch_callbacks_callback_id_participants_participant_id_attributes_with_http_info(callback_id, participant_id, opts)
|
|
460
503
|
return nil
|
|
461
504
|
end
|
|
462
505
|
|
|
463
|
-
#
|
|
506
|
+
# Update the attributes on a conversation participant.
|
|
464
507
|
#
|
|
465
|
-
# @param
|
|
466
|
-
# @param participant_id
|
|
508
|
+
# @param callback_id
|
|
509
|
+
# @param participant_id
|
|
467
510
|
# @param [Hash] opts the optional parameters
|
|
468
|
-
# @option opts [
|
|
511
|
+
# @option opts [ParticipantAttributes] :body
|
|
469
512
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
470
|
-
def
|
|
513
|
+
def patch_callbacks_callback_id_participants_participant_id_attributes_with_http_info(callback_id, participant_id, opts = {})
|
|
471
514
|
if @api_client.config.debugging
|
|
472
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
515
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_callbacks_callback_id_participants_participant_id_attributes ..."
|
|
473
516
|
end
|
|
474
517
|
|
|
475
|
-
# verify the required parameter '
|
|
476
|
-
fail "Missing the required parameter '
|
|
518
|
+
# verify the required parameter 'callback_id' is set
|
|
519
|
+
fail "Missing the required parameter 'callback_id' when calling patch_callbacks_callback_id_participants_participant_id_attributes" if callback_id.nil?
|
|
477
520
|
|
|
478
521
|
# verify the required parameter 'participant_id' is set
|
|
479
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
522
|
+
fail "Missing the required parameter 'participant_id' when calling patch_callbacks_callback_id_participants_participant_id_attributes" if participant_id.nil?
|
|
480
523
|
|
|
481
524
|
# resource path
|
|
482
|
-
path = "/api/v2/callbacks/participants/{participantId}/
|
|
525
|
+
path = "/api/v2/conversations/callbacks/{callbackId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'callbackId' + '}', callback_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
483
526
|
|
|
484
527
|
# query parameters
|
|
485
528
|
query_params = {}
|
|
@@ -503,54 +546,53 @@ module PureCloud
|
|
|
503
546
|
|
|
504
547
|
|
|
505
548
|
auth_names = ['PureCloud Auth']
|
|
506
|
-
data, status_code, headers = @api_client.call_api(:
|
|
549
|
+
data, status_code, headers = @api_client.call_api(:PATCH, path,
|
|
507
550
|
:header_params => header_params,
|
|
508
551
|
:query_params => query_params,
|
|
509
552
|
:form_params => form_params,
|
|
510
553
|
:body => post_body,
|
|
511
554
|
:auth_names => auth_names)
|
|
512
555
|
if @api_client.config.debugging
|
|
513
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
556
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_callbacks_callback_id_participants_participant_id_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
514
557
|
end
|
|
515
558
|
return data, status_code, headers
|
|
516
559
|
end
|
|
517
560
|
|
|
518
|
-
#
|
|
561
|
+
# Replace this participant with the specified user and/or address
|
|
519
562
|
#
|
|
520
|
-
# @param
|
|
521
|
-
# @param participant_id
|
|
563
|
+
# @param callback_id
|
|
564
|
+
# @param participant_id
|
|
522
565
|
# @param [Hash] opts the optional parameters
|
|
523
|
-
# @option opts [
|
|
524
|
-
# @return [
|
|
525
|
-
def
|
|
526
|
-
|
|
527
|
-
return
|
|
566
|
+
# @option opts [TransferRequest] :body
|
|
567
|
+
# @return [nil]
|
|
568
|
+
def post_callbacks_callback_id_participants_participant_id_replace(callback_id, participant_id, opts = {})
|
|
569
|
+
post_callbacks_callback_id_participants_participant_id_replace_with_http_info(callback_id, participant_id, opts)
|
|
570
|
+
return nil
|
|
528
571
|
end
|
|
529
572
|
|
|
530
|
-
#
|
|
573
|
+
# Replace this participant with the specified user and/or address
|
|
531
574
|
#
|
|
532
|
-
# @param
|
|
533
|
-
# @param participant_id
|
|
575
|
+
# @param callback_id
|
|
576
|
+
# @param participant_id
|
|
534
577
|
# @param [Hash] opts the optional parameters
|
|
535
|
-
# @option opts [
|
|
536
|
-
# @return [Array<(
|
|
537
|
-
def
|
|
578
|
+
# @option opts [TransferRequest] :body
|
|
579
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
580
|
+
def post_callbacks_callback_id_participants_participant_id_replace_with_http_info(callback_id, participant_id, opts = {})
|
|
538
581
|
if @api_client.config.debugging
|
|
539
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
582
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_callbacks_callback_id_participants_participant_id_replace ..."
|
|
540
583
|
end
|
|
541
584
|
|
|
542
|
-
# verify the required parameter '
|
|
543
|
-
fail "Missing the required parameter '
|
|
585
|
+
# verify the required parameter 'callback_id' is set
|
|
586
|
+
fail "Missing the required parameter 'callback_id' when calling post_callbacks_callback_id_participants_participant_id_replace" if callback_id.nil?
|
|
544
587
|
|
|
545
588
|
# verify the required parameter 'participant_id' is set
|
|
546
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
589
|
+
fail "Missing the required parameter 'participant_id' when calling post_callbacks_callback_id_participants_participant_id_replace" if participant_id.nil?
|
|
547
590
|
|
|
548
591
|
# resource path
|
|
549
|
-
path = "/api/v2/callbacks/participants/{participantId}/
|
|
592
|
+
path = "/api/v2/conversations/callbacks/{callbackId}/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'callbackId' + '}', callback_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
550
593
|
|
|
551
594
|
# query parameters
|
|
552
595
|
query_params = {}
|
|
553
|
-
query_params[:'provisional'] = opts[:'provisional'] if opts[:'provisional']
|
|
554
596
|
|
|
555
597
|
# header parameters
|
|
556
598
|
header_params = {}
|
|
@@ -567,56 +609,58 @@ module PureCloud
|
|
|
567
609
|
form_params = {}
|
|
568
610
|
|
|
569
611
|
# http body (model)
|
|
570
|
-
post_body =
|
|
612
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
571
613
|
|
|
572
614
|
|
|
573
615
|
auth_names = ['PureCloud Auth']
|
|
574
|
-
data, status_code, headers = @api_client.call_api(:
|
|
616
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
|
575
617
|
:header_params => header_params,
|
|
576
618
|
:query_params => query_params,
|
|
577
619
|
:form_params => form_params,
|
|
578
620
|
:body => post_body,
|
|
579
|
-
:auth_names => auth_names
|
|
580
|
-
:return_type => 'WrapupCode')
|
|
621
|
+
:auth_names => auth_names)
|
|
581
622
|
if @api_client.config.debugging
|
|
582
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
623
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_callbacks_callback_id_participants_participant_id_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
583
624
|
end
|
|
584
625
|
return data, status_code, headers
|
|
585
626
|
end
|
|
586
627
|
|
|
587
|
-
# Get
|
|
628
|
+
# Get the wrap-up for this conversation participant.
|
|
588
629
|
#
|
|
589
|
-
# @param
|
|
590
|
-
# @param participant_id
|
|
630
|
+
# @param callback_id
|
|
631
|
+
# @param participant_id
|
|
591
632
|
# @param [Hash] opts the optional parameters
|
|
633
|
+
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
592
634
|
# @return [WrapupCode]
|
|
593
|
-
def
|
|
594
|
-
data, status_code, headers =
|
|
635
|
+
def get_callbacks_callback_id_participants_participant_id_wrapup(callback_id, participant_id, opts = {})
|
|
636
|
+
data, status_code, headers = get_callbacks_callback_id_participants_participant_id_wrapup_with_http_info(callback_id, participant_id, opts)
|
|
595
637
|
return data
|
|
596
638
|
end
|
|
597
639
|
|
|
598
|
-
# Get
|
|
640
|
+
# Get the wrap-up for this conversation participant.
|
|
599
641
|
#
|
|
600
|
-
# @param
|
|
601
|
-
# @param participant_id
|
|
642
|
+
# @param callback_id
|
|
643
|
+
# @param participant_id
|
|
602
644
|
# @param [Hash] opts the optional parameters
|
|
645
|
+
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
603
646
|
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
604
|
-
def
|
|
647
|
+
def get_callbacks_callback_id_participants_participant_id_wrapup_with_http_info(callback_id, participant_id, opts = {})
|
|
605
648
|
if @api_client.config.debugging
|
|
606
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
649
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_callbacks_callback_id_participants_participant_id_wrapup ..."
|
|
607
650
|
end
|
|
608
651
|
|
|
609
|
-
# verify the required parameter '
|
|
610
|
-
fail "Missing the required parameter '
|
|
652
|
+
# verify the required parameter 'callback_id' is set
|
|
653
|
+
fail "Missing the required parameter 'callback_id' when calling get_callbacks_callback_id_participants_participant_id_wrapup" if callback_id.nil?
|
|
611
654
|
|
|
612
655
|
# verify the required parameter 'participant_id' is set
|
|
613
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
656
|
+
fail "Missing the required parameter 'participant_id' when calling get_callbacks_callback_id_participants_participant_id_wrapup" if participant_id.nil?
|
|
614
657
|
|
|
615
658
|
# resource path
|
|
616
|
-
path = "/api/v2/callbacks/participants/{participantId}/
|
|
659
|
+
path = "/api/v2/conversations/callbacks/{callbackId}/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'callbackId' + '}', callback_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
617
660
|
|
|
618
661
|
# query parameters
|
|
619
662
|
query_params = {}
|
|
663
|
+
query_params[:'provisional'] = opts[:'provisional'] if opts[:'provisional']
|
|
620
664
|
|
|
621
665
|
# header parameters
|
|
622
666
|
header_params = {}
|
|
@@ -645,41 +689,41 @@ module PureCloud
|
|
|
645
689
|
:auth_names => auth_names,
|
|
646
690
|
:return_type => 'WrapupCode')
|
|
647
691
|
if @api_client.config.debugging
|
|
648
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
692
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_callbacks_callback_id_participants_participant_id_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
649
693
|
end
|
|
650
694
|
return data, status_code, headers
|
|
651
695
|
end
|
|
652
696
|
|
|
653
|
-
# Get
|
|
697
|
+
# Get list of wrapup codes for this conversation participant
|
|
654
698
|
#
|
|
655
|
-
# @param
|
|
656
|
-
# @param participant_id
|
|
699
|
+
# @param callback_id
|
|
700
|
+
# @param participant_id
|
|
657
701
|
# @param [Hash] opts the optional parameters
|
|
658
|
-
# @return [
|
|
659
|
-
def
|
|
660
|
-
data, status_code, headers =
|
|
702
|
+
# @return [WrapupCode]
|
|
703
|
+
def get_callbacks_callback_id_participants_participant_id_wrapupcodes(callback_id, participant_id, opts = {})
|
|
704
|
+
data, status_code, headers = get_callbacks_callback_id_participants_participant_id_wrapupcodes_with_http_info(callback_id, participant_id, opts)
|
|
661
705
|
return data
|
|
662
706
|
end
|
|
663
707
|
|
|
664
|
-
# Get
|
|
708
|
+
# Get list of wrapup codes for this conversation participant
|
|
665
709
|
#
|
|
666
|
-
# @param
|
|
667
|
-
# @param participant_id
|
|
710
|
+
# @param callback_id
|
|
711
|
+
# @param participant_id
|
|
668
712
|
# @param [Hash] opts the optional parameters
|
|
669
|
-
# @return [Array<(
|
|
670
|
-
def
|
|
713
|
+
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
714
|
+
def get_callbacks_callback_id_participants_participant_id_wrapupcodes_with_http_info(callback_id, participant_id, opts = {})
|
|
671
715
|
if @api_client.config.debugging
|
|
672
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
716
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_callbacks_callback_id_participants_participant_id_wrapupcodes ..."
|
|
673
717
|
end
|
|
674
718
|
|
|
675
|
-
# verify the required parameter '
|
|
676
|
-
fail "Missing the required parameter '
|
|
719
|
+
# verify the required parameter 'callback_id' is set
|
|
720
|
+
fail "Missing the required parameter 'callback_id' when calling get_callbacks_callback_id_participants_participant_id_wrapupcodes" if callback_id.nil?
|
|
677
721
|
|
|
678
722
|
# verify the required parameter 'participant_id' is set
|
|
679
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
723
|
+
fail "Missing the required parameter 'participant_id' when calling get_callbacks_callback_id_participants_participant_id_wrapupcodes" if participant_id.nil?
|
|
680
724
|
|
|
681
725
|
# resource path
|
|
682
|
-
path = "/api/v2/callbacks/{
|
|
726
|
+
path = "/api/v2/conversations/callbacks/{callbackId}/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'callbackId' + '}', callback_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
683
727
|
|
|
684
728
|
# query parameters
|
|
685
729
|
query_params = {}
|
|
@@ -709,43 +753,33 @@ module PureCloud
|
|
|
709
753
|
:form_params => form_params,
|
|
710
754
|
:body => post_body,
|
|
711
755
|
:auth_names => auth_names,
|
|
712
|
-
:return_type => '
|
|
756
|
+
:return_type => 'WrapupCode')
|
|
713
757
|
if @api_client.config.debugging
|
|
714
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
758
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_callbacks_callback_id_participants_participant_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
715
759
|
end
|
|
716
760
|
return data, status_code, headers
|
|
717
761
|
end
|
|
718
762
|
|
|
719
|
-
# Get conversations
|
|
763
|
+
# Get recent conversations
|
|
720
764
|
#
|
|
721
|
-
# @param conversation_id conversation ID
|
|
722
|
-
# @param participant_id participant ID
|
|
723
765
|
# @param [Hash] opts the optional parameters
|
|
724
766
|
# @return [CallConversationEntityListing]
|
|
725
|
-
def get_calls(
|
|
726
|
-
data, status_code, headers = get_calls_with_http_info(
|
|
767
|
+
def get_calls(opts = {})
|
|
768
|
+
data, status_code, headers = get_calls_with_http_info(opts)
|
|
727
769
|
return data
|
|
728
770
|
end
|
|
729
771
|
|
|
730
|
-
# Get conversations
|
|
772
|
+
# Get recent conversations
|
|
731
773
|
#
|
|
732
|
-
# @param conversation_id conversation ID
|
|
733
|
-
# @param participant_id participant ID
|
|
734
774
|
# @param [Hash] opts the optional parameters
|
|
735
775
|
# @return [Array<(CallConversationEntityListing, Fixnum, Hash)>] CallConversationEntityListing data, response status code and response headers
|
|
736
|
-
def get_calls_with_http_info(
|
|
776
|
+
def get_calls_with_http_info(opts = {})
|
|
737
777
|
if @api_client.config.debugging
|
|
738
778
|
@api_client.config.logger.debug "Calling API: ConversationsApi#get_calls ..."
|
|
739
779
|
end
|
|
740
780
|
|
|
741
|
-
# verify the required parameter 'conversation_id' is set
|
|
742
|
-
fail "Missing the required parameter 'conversation_id' when calling get_calls" if conversation_id.nil?
|
|
743
|
-
|
|
744
|
-
# verify the required parameter 'participant_id' is set
|
|
745
|
-
fail "Missing the required parameter 'participant_id' when calling get_calls" if participant_id.nil?
|
|
746
|
-
|
|
747
781
|
# resource path
|
|
748
|
-
path = "/api/v2/calls".sub('{format}','json')
|
|
782
|
+
path = "/api/v2/conversations/calls".sub('{format}','json')
|
|
749
783
|
|
|
750
784
|
# query parameters
|
|
751
785
|
query_params = {}
|
|
@@ -784,36 +818,26 @@ module PureCloud
|
|
|
784
818
|
|
|
785
819
|
# Create a call conversation
|
|
786
820
|
#
|
|
787
|
-
# @param conversation_id conversation ID
|
|
788
|
-
# @param participant_id participant ID
|
|
789
821
|
# @param [Hash] opts the optional parameters
|
|
790
822
|
# @option opts [CreateCallRequest] :body
|
|
791
823
|
# @return [CreateCallResponse]
|
|
792
|
-
def post_calls(
|
|
793
|
-
data, status_code, headers = post_calls_with_http_info(
|
|
824
|
+
def post_calls(opts = {})
|
|
825
|
+
data, status_code, headers = post_calls_with_http_info(opts)
|
|
794
826
|
return data
|
|
795
827
|
end
|
|
796
828
|
|
|
797
829
|
# Create a call conversation
|
|
798
830
|
#
|
|
799
|
-
# @param conversation_id conversation ID
|
|
800
|
-
# @param participant_id participant ID
|
|
801
831
|
# @param [Hash] opts the optional parameters
|
|
802
832
|
# @option opts [CreateCallRequest] :body
|
|
803
833
|
# @return [Array<(CreateCallResponse, Fixnum, Hash)>] CreateCallResponse data, response status code and response headers
|
|
804
|
-
def post_calls_with_http_info(
|
|
834
|
+
def post_calls_with_http_info(opts = {})
|
|
805
835
|
if @api_client.config.debugging
|
|
806
836
|
@api_client.config.logger.debug "Calling API: ConversationsApi#post_calls ..."
|
|
807
837
|
end
|
|
808
838
|
|
|
809
|
-
# verify the required parameter 'conversation_id' is set
|
|
810
|
-
fail "Missing the required parameter 'conversation_id' when calling post_calls" if conversation_id.nil?
|
|
811
|
-
|
|
812
|
-
# verify the required parameter 'participant_id' is set
|
|
813
|
-
fail "Missing the required parameter 'participant_id' when calling post_calls" if participant_id.nil?
|
|
814
|
-
|
|
815
839
|
# resource path
|
|
816
|
-
path = "/api/v2/calls".sub('{format}','json')
|
|
840
|
+
path = "/api/v2/conversations/calls".sub('{format}','json')
|
|
817
841
|
|
|
818
842
|
# query parameters
|
|
819
843
|
query_params = {}
|
|
@@ -852,34 +876,24 @@ module PureCloud
|
|
|
852
876
|
|
|
853
877
|
# Get the maximum number of participants that this user can have on a conference
|
|
854
878
|
#
|
|
855
|
-
# @param conversation_id conversation ID
|
|
856
|
-
# @param participant_id participant ID
|
|
857
879
|
# @param [Hash] opts the optional parameters
|
|
858
880
|
# @return [MaxParticipants]
|
|
859
|
-
def
|
|
860
|
-
data, status_code, headers =
|
|
881
|
+
def get_calls_maximumconferenceparties(opts = {})
|
|
882
|
+
data, status_code, headers = get_calls_maximumconferenceparties_with_http_info(opts)
|
|
861
883
|
return data
|
|
862
884
|
end
|
|
863
885
|
|
|
864
886
|
# Get the maximum number of participants that this user can have on a conference
|
|
865
887
|
#
|
|
866
|
-
# @param conversation_id conversation ID
|
|
867
|
-
# @param participant_id participant ID
|
|
868
888
|
# @param [Hash] opts the optional parameters
|
|
869
889
|
# @return [Array<(MaxParticipants, Fixnum, Hash)>] MaxParticipants data, response status code and response headers
|
|
870
|
-
def
|
|
890
|
+
def get_calls_maximumconferenceparties_with_http_info(opts = {})
|
|
871
891
|
if @api_client.config.debugging
|
|
872
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
892
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_calls_maximumconferenceparties ..."
|
|
873
893
|
end
|
|
874
894
|
|
|
875
|
-
# verify the required parameter 'conversation_id' is set
|
|
876
|
-
fail "Missing the required parameter 'conversation_id' when calling get_maximumconferenceparties" if conversation_id.nil?
|
|
877
|
-
|
|
878
|
-
# verify the required parameter 'participant_id' is set
|
|
879
|
-
fail "Missing the required parameter 'participant_id' when calling get_maximumconferenceparties" if participant_id.nil?
|
|
880
|
-
|
|
881
895
|
# resource path
|
|
882
|
-
path = "/api/v2/calls/maximumconferenceparties".sub('{format}','json')
|
|
896
|
+
path = "/api/v2/conversations/calls/maximumconferenceparties".sub('{format}','json')
|
|
883
897
|
|
|
884
898
|
# query parameters
|
|
885
899
|
query_params = {}
|
|
@@ -911,43 +925,36 @@ module PureCloud
|
|
|
911
925
|
:auth_names => auth_names,
|
|
912
926
|
:return_type => 'MaxParticipants')
|
|
913
927
|
if @api_client.config.debugging
|
|
914
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
928
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_calls_maximumconferenceparties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
915
929
|
end
|
|
916
930
|
return data, status_code, headers
|
|
917
931
|
end
|
|
918
932
|
|
|
919
|
-
#
|
|
933
|
+
# Get call conversation
|
|
920
934
|
#
|
|
921
|
-
# @param
|
|
922
|
-
# @param participant_id participant ID
|
|
935
|
+
# @param call_id
|
|
923
936
|
# @param [Hash] opts the optional parameters
|
|
924
|
-
# @
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
return nil
|
|
937
|
+
# @return [CallConversation]
|
|
938
|
+
def get_calls_call_id(call_id, opts = {})
|
|
939
|
+
data, status_code, headers = get_calls_call_id_with_http_info(call_id, opts)
|
|
940
|
+
return data
|
|
929
941
|
end
|
|
930
942
|
|
|
931
|
-
#
|
|
943
|
+
# Get call conversation
|
|
932
944
|
#
|
|
933
|
-
# @param
|
|
934
|
-
# @param participant_id participant ID
|
|
945
|
+
# @param call_id
|
|
935
946
|
# @param [Hash] opts the optional parameters
|
|
936
|
-
# @
|
|
937
|
-
|
|
938
|
-
def patch_participants_participant_id_0_with_http_info(conversation_id, participant_id, opts = {})
|
|
947
|
+
# @return [Array<(CallConversation, Fixnum, Hash)>] CallConversation data, response status code and response headers
|
|
948
|
+
def get_calls_call_id_with_http_info(call_id, opts = {})
|
|
939
949
|
if @api_client.config.debugging
|
|
940
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
950
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_calls_call_id ..."
|
|
941
951
|
end
|
|
942
952
|
|
|
943
|
-
# verify the required parameter '
|
|
944
|
-
fail "Missing the required parameter '
|
|
945
|
-
|
|
946
|
-
# verify the required parameter 'participant_id' is set
|
|
947
|
-
fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id_0" if participant_id.nil?
|
|
953
|
+
# verify the required parameter 'call_id' is set
|
|
954
|
+
fail "Missing the required parameter 'call_id' when calling get_calls_call_id" if call_id.nil?
|
|
948
955
|
|
|
949
956
|
# resource path
|
|
950
|
-
path = "/api/v2/calls/
|
|
957
|
+
path = "/api/v2/conversations/calls/{callId}".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s)
|
|
951
958
|
|
|
952
959
|
# query parameters
|
|
953
960
|
query_params = {}
|
|
@@ -967,54 +974,50 @@ module PureCloud
|
|
|
967
974
|
form_params = {}
|
|
968
975
|
|
|
969
976
|
# http body (model)
|
|
970
|
-
post_body =
|
|
977
|
+
post_body = nil
|
|
971
978
|
|
|
972
979
|
|
|
973
980
|
auth_names = ['PureCloud Auth']
|
|
974
|
-
data, status_code, headers = @api_client.call_api(:
|
|
981
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
975
982
|
:header_params => header_params,
|
|
976
983
|
:query_params => query_params,
|
|
977
984
|
:form_params => form_params,
|
|
978
985
|
:body => post_body,
|
|
979
|
-
:auth_names => auth_names
|
|
986
|
+
:auth_names => auth_names,
|
|
987
|
+
:return_type => 'CallConversation')
|
|
980
988
|
if @api_client.config.debugging
|
|
981
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
989
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_calls_call_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
982
990
|
end
|
|
983
991
|
return data, status_code, headers
|
|
984
992
|
end
|
|
985
993
|
|
|
986
|
-
#
|
|
994
|
+
# Add a new call to a conversation
|
|
987
995
|
#
|
|
988
|
-
# @param
|
|
989
|
-
# @param participant_id participant ID
|
|
996
|
+
# @param call_id
|
|
990
997
|
# @param [Hash] opts the optional parameters
|
|
991
|
-
# @option opts [
|
|
992
|
-
# @return [
|
|
993
|
-
def
|
|
994
|
-
|
|
995
|
-
return
|
|
998
|
+
# @option opts [CallCommand] :body Conversation
|
|
999
|
+
# @return [Conversation]
|
|
1000
|
+
def post_calls_call_id(call_id, opts = {})
|
|
1001
|
+
data, status_code, headers = post_calls_call_id_with_http_info(call_id, opts)
|
|
1002
|
+
return data
|
|
996
1003
|
end
|
|
997
1004
|
|
|
998
|
-
#
|
|
1005
|
+
# Add a new call to a conversation
|
|
999
1006
|
#
|
|
1000
|
-
# @param
|
|
1001
|
-
# @param participant_id participant ID
|
|
1007
|
+
# @param call_id
|
|
1002
1008
|
# @param [Hash] opts the optional parameters
|
|
1003
|
-
# @option opts [
|
|
1004
|
-
# @return [Array<(
|
|
1005
|
-
def
|
|
1009
|
+
# @option opts [CallCommand] :body Conversation
|
|
1010
|
+
# @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
|
|
1011
|
+
def post_calls_call_id_with_http_info(call_id, opts = {})
|
|
1006
1012
|
if @api_client.config.debugging
|
|
1007
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1013
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_calls_call_id ..."
|
|
1008
1014
|
end
|
|
1009
1015
|
|
|
1010
|
-
# verify the required parameter '
|
|
1011
|
-
fail "Missing the required parameter '
|
|
1012
|
-
|
|
1013
|
-
# verify the required parameter 'participant_id' is set
|
|
1014
|
-
fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id_attributes_0" if participant_id.nil?
|
|
1016
|
+
# verify the required parameter 'call_id' is set
|
|
1017
|
+
fail "Missing the required parameter 'call_id' when calling post_calls_call_id" if call_id.nil?
|
|
1015
1018
|
|
|
1016
1019
|
# resource path
|
|
1017
|
-
path = "/api/v2/calls/
|
|
1020
|
+
path = "/api/v2/conversations/calls/{callId}".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s)
|
|
1018
1021
|
|
|
1019
1022
|
# query parameters
|
|
1020
1023
|
query_params = {}
|
|
@@ -1038,50 +1041,46 @@ module PureCloud
|
|
|
1038
1041
|
|
|
1039
1042
|
|
|
1040
1043
|
auth_names = ['PureCloud Auth']
|
|
1041
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1044
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
|
1042
1045
|
:header_params => header_params,
|
|
1043
1046
|
:query_params => query_params,
|
|
1044
1047
|
:form_params => form_params,
|
|
1045
1048
|
:body => post_body,
|
|
1046
|
-
:auth_names => auth_names
|
|
1049
|
+
:auth_names => auth_names,
|
|
1050
|
+
:return_type => 'Conversation')
|
|
1047
1051
|
if @api_client.config.debugging
|
|
1048
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1052
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_calls_call_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1049
1053
|
end
|
|
1050
1054
|
return data, status_code, headers
|
|
1051
1055
|
end
|
|
1052
1056
|
|
|
1053
|
-
#
|
|
1057
|
+
# Update conversation
|
|
1054
1058
|
#
|
|
1055
|
-
# @param
|
|
1056
|
-
# @param participant_id participant ID
|
|
1059
|
+
# @param call_id
|
|
1057
1060
|
# @param [Hash] opts the optional parameters
|
|
1058
|
-
# @option opts [
|
|
1059
|
-
# @return [
|
|
1060
|
-
def
|
|
1061
|
-
|
|
1062
|
-
return
|
|
1061
|
+
# @option opts [Conversation] :body Conversation
|
|
1062
|
+
# @return [Conversation]
|
|
1063
|
+
def patch_calls_call_id(call_id, opts = {})
|
|
1064
|
+
data, status_code, headers = patch_calls_call_id_with_http_info(call_id, opts)
|
|
1065
|
+
return data
|
|
1063
1066
|
end
|
|
1064
1067
|
|
|
1065
|
-
#
|
|
1068
|
+
# Update conversation
|
|
1066
1069
|
#
|
|
1067
|
-
# @param
|
|
1068
|
-
# @param participant_id participant ID
|
|
1070
|
+
# @param call_id
|
|
1069
1071
|
# @param [Hash] opts the optional parameters
|
|
1070
|
-
# @option opts [
|
|
1071
|
-
# @return [Array<(
|
|
1072
|
-
def
|
|
1072
|
+
# @option opts [Conversation] :body Conversation
|
|
1073
|
+
# @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
|
|
1074
|
+
def patch_calls_call_id_with_http_info(call_id, opts = {})
|
|
1073
1075
|
if @api_client.config.debugging
|
|
1074
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1076
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_calls_call_id ..."
|
|
1075
1077
|
end
|
|
1076
1078
|
|
|
1077
|
-
# verify the required parameter '
|
|
1078
|
-
fail "Missing the required parameter '
|
|
1079
|
-
|
|
1080
|
-
# verify the required parameter 'participant_id' is set
|
|
1081
|
-
fail "Missing the required parameter 'participant_id' when calling post_participants_participant_id_replace_0" if participant_id.nil?
|
|
1079
|
+
# verify the required parameter 'call_id' is set
|
|
1080
|
+
fail "Missing the required parameter 'call_id' when calling patch_calls_call_id" if call_id.nil?
|
|
1082
1081
|
|
|
1083
1082
|
# resource path
|
|
1084
|
-
path = "/api/v2/calls/
|
|
1083
|
+
path = "/api/v2/conversations/calls/{callId}".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s)
|
|
1085
1084
|
|
|
1086
1085
|
# query parameters
|
|
1087
1086
|
query_params = {}
|
|
@@ -1105,54 +1104,49 @@ module PureCloud
|
|
|
1105
1104
|
|
|
1106
1105
|
|
|
1107
1106
|
auth_names = ['PureCloud Auth']
|
|
1108
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1107
|
+
data, status_code, headers = @api_client.call_api(:PATCH, path,
|
|
1109
1108
|
:header_params => header_params,
|
|
1110
1109
|
:query_params => query_params,
|
|
1111
1110
|
:form_params => form_params,
|
|
1112
1111
|
:body => post_body,
|
|
1113
|
-
:auth_names => auth_names
|
|
1112
|
+
:auth_names => auth_names,
|
|
1113
|
+
:return_type => 'Conversation')
|
|
1114
1114
|
if @api_client.config.debugging
|
|
1115
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1115
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_calls_call_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1116
1116
|
end
|
|
1117
1117
|
return data, status_code, headers
|
|
1118
1118
|
end
|
|
1119
1119
|
|
|
1120
|
-
#
|
|
1120
|
+
# Add participants to a conversation
|
|
1121
1121
|
#
|
|
1122
|
-
# @param
|
|
1123
|
-
# @param participant_id participant ID
|
|
1122
|
+
# @param call_id
|
|
1124
1123
|
# @param [Hash] opts the optional parameters
|
|
1125
|
-
# @option opts [
|
|
1126
|
-
# @return [
|
|
1127
|
-
def
|
|
1128
|
-
data, status_code, headers =
|
|
1124
|
+
# @option opts [Conversation] :body Conversation
|
|
1125
|
+
# @return [Conversation]
|
|
1126
|
+
def post_calls_call_id_participants(call_id, opts = {})
|
|
1127
|
+
data, status_code, headers = post_calls_call_id_participants_with_http_info(call_id, opts)
|
|
1129
1128
|
return data
|
|
1130
1129
|
end
|
|
1131
1130
|
|
|
1132
|
-
#
|
|
1131
|
+
# Add participants to a conversation
|
|
1133
1132
|
#
|
|
1134
|
-
# @param
|
|
1135
|
-
# @param participant_id participant ID
|
|
1133
|
+
# @param call_id
|
|
1136
1134
|
# @param [Hash] opts the optional parameters
|
|
1137
|
-
# @option opts [
|
|
1138
|
-
# @return [Array<(
|
|
1139
|
-
def
|
|
1135
|
+
# @option opts [Conversation] :body Conversation
|
|
1136
|
+
# @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
|
|
1137
|
+
def post_calls_call_id_participants_with_http_info(call_id, opts = {})
|
|
1140
1138
|
if @api_client.config.debugging
|
|
1141
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1139
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_calls_call_id_participants ..."
|
|
1142
1140
|
end
|
|
1143
1141
|
|
|
1144
|
-
# verify the required parameter '
|
|
1145
|
-
fail "Missing the required parameter '
|
|
1146
|
-
|
|
1147
|
-
# verify the required parameter 'participant_id' is set
|
|
1148
|
-
fail "Missing the required parameter 'participant_id' when calling get_participants_participant_id_wrapup_0" if participant_id.nil?
|
|
1142
|
+
# verify the required parameter 'call_id' is set
|
|
1143
|
+
fail "Missing the required parameter 'call_id' when calling post_calls_call_id_participants" if call_id.nil?
|
|
1149
1144
|
|
|
1150
1145
|
# resource path
|
|
1151
|
-
path = "/api/v2/calls/
|
|
1146
|
+
path = "/api/v2/conversations/calls/{callId}/participants".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s)
|
|
1152
1147
|
|
|
1153
1148
|
# query parameters
|
|
1154
1149
|
query_params = {}
|
|
1155
|
-
query_params[:'provisional'] = opts[:'provisional'] if opts[:'provisional']
|
|
1156
1150
|
|
|
1157
1151
|
# header parameters
|
|
1158
1152
|
header_params = {}
|
|
@@ -1169,53 +1163,55 @@ module PureCloud
|
|
|
1169
1163
|
form_params = {}
|
|
1170
1164
|
|
|
1171
1165
|
# http body (model)
|
|
1172
|
-
post_body =
|
|
1166
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
1173
1167
|
|
|
1174
1168
|
|
|
1175
1169
|
auth_names = ['PureCloud Auth']
|
|
1176
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1170
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
|
1177
1171
|
:header_params => header_params,
|
|
1178
1172
|
:query_params => query_params,
|
|
1179
1173
|
:form_params => form_params,
|
|
1180
1174
|
:body => post_body,
|
|
1181
1175
|
:auth_names => auth_names,
|
|
1182
|
-
:return_type => '
|
|
1176
|
+
:return_type => 'Conversation')
|
|
1183
1177
|
if @api_client.config.debugging
|
|
1184
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1178
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_calls_call_id_participants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1185
1179
|
end
|
|
1186
1180
|
return data, status_code, headers
|
|
1187
1181
|
end
|
|
1188
1182
|
|
|
1189
|
-
#
|
|
1183
|
+
# Update conversation participant
|
|
1190
1184
|
#
|
|
1191
|
-
# @param
|
|
1192
|
-
# @param participant_id
|
|
1185
|
+
# @param call_id
|
|
1186
|
+
# @param participant_id
|
|
1193
1187
|
# @param [Hash] opts the optional parameters
|
|
1194
|
-
# @
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1188
|
+
# @option opts [MediaParticipantRequest] :body
|
|
1189
|
+
# @return [nil]
|
|
1190
|
+
def patch_calls_call_id_participants_participant_id(call_id, participant_id, opts = {})
|
|
1191
|
+
patch_calls_call_id_participants_participant_id_with_http_info(call_id, participant_id, opts)
|
|
1192
|
+
return nil
|
|
1198
1193
|
end
|
|
1199
1194
|
|
|
1200
|
-
#
|
|
1195
|
+
# Update conversation participant
|
|
1201
1196
|
#
|
|
1202
|
-
# @param
|
|
1203
|
-
# @param participant_id
|
|
1197
|
+
# @param call_id
|
|
1198
|
+
# @param participant_id
|
|
1204
1199
|
# @param [Hash] opts the optional parameters
|
|
1205
|
-
# @
|
|
1206
|
-
|
|
1200
|
+
# @option opts [MediaParticipantRequest] :body
|
|
1201
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
1202
|
+
def patch_calls_call_id_participants_participant_id_with_http_info(call_id, participant_id, opts = {})
|
|
1207
1203
|
if @api_client.config.debugging
|
|
1208
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1204
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_calls_call_id_participants_participant_id ..."
|
|
1209
1205
|
end
|
|
1210
1206
|
|
|
1211
|
-
# verify the required parameter '
|
|
1212
|
-
fail "Missing the required parameter '
|
|
1207
|
+
# verify the required parameter 'call_id' is set
|
|
1208
|
+
fail "Missing the required parameter 'call_id' when calling patch_calls_call_id_participants_participant_id" if call_id.nil?
|
|
1213
1209
|
|
|
1214
1210
|
# verify the required parameter 'participant_id' is set
|
|
1215
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
1211
|
+
fail "Missing the required parameter 'participant_id' when calling patch_calls_call_id_participants_participant_id" if participant_id.nil?
|
|
1216
1212
|
|
|
1217
1213
|
# resource path
|
|
1218
|
-
path = "/api/v2/calls/participants/{participantId}
|
|
1214
|
+
path = "/api/v2/conversations/calls/{callId}/participants/{participantId}".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
1219
1215
|
|
|
1220
1216
|
# query parameters
|
|
1221
1217
|
query_params = {}
|
|
@@ -1235,53 +1231,54 @@ module PureCloud
|
|
|
1235
1231
|
form_params = {}
|
|
1236
1232
|
|
|
1237
1233
|
# http body (model)
|
|
1238
|
-
post_body =
|
|
1234
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
1239
1235
|
|
|
1240
1236
|
|
|
1241
1237
|
auth_names = ['PureCloud Auth']
|
|
1242
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1238
|
+
data, status_code, headers = @api_client.call_api(:PATCH, path,
|
|
1243
1239
|
:header_params => header_params,
|
|
1244
1240
|
:query_params => query_params,
|
|
1245
1241
|
:form_params => form_params,
|
|
1246
1242
|
:body => post_body,
|
|
1247
|
-
:auth_names => auth_names
|
|
1248
|
-
:return_type => 'WrapupCode')
|
|
1243
|
+
:auth_names => auth_names)
|
|
1249
1244
|
if @api_client.config.debugging
|
|
1250
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1245
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_calls_call_id_participants_participant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1251
1246
|
end
|
|
1252
1247
|
return data, status_code, headers
|
|
1253
1248
|
end
|
|
1254
1249
|
|
|
1255
|
-
#
|
|
1250
|
+
# Update the attributes on a conversation participant.
|
|
1256
1251
|
#
|
|
1257
|
-
# @param
|
|
1258
|
-
# @param participant_id
|
|
1252
|
+
# @param call_id
|
|
1253
|
+
# @param participant_id
|
|
1259
1254
|
# @param [Hash] opts the optional parameters
|
|
1260
|
-
# @
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1255
|
+
# @option opts [ParticipantAttributes] :body
|
|
1256
|
+
# @return [nil]
|
|
1257
|
+
def patch_calls_call_id_participants_participant_id_attributes(call_id, participant_id, opts = {})
|
|
1258
|
+
patch_calls_call_id_participants_participant_id_attributes_with_http_info(call_id, participant_id, opts)
|
|
1259
|
+
return nil
|
|
1264
1260
|
end
|
|
1265
1261
|
|
|
1266
|
-
#
|
|
1262
|
+
# Update the attributes on a conversation participant.
|
|
1267
1263
|
#
|
|
1268
|
-
# @param
|
|
1269
|
-
# @param participant_id
|
|
1264
|
+
# @param call_id
|
|
1265
|
+
# @param participant_id
|
|
1270
1266
|
# @param [Hash] opts the optional parameters
|
|
1271
|
-
# @
|
|
1272
|
-
|
|
1267
|
+
# @option opts [ParticipantAttributes] :body
|
|
1268
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
1269
|
+
def patch_calls_call_id_participants_participant_id_attributes_with_http_info(call_id, participant_id, opts = {})
|
|
1273
1270
|
if @api_client.config.debugging
|
|
1274
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1271
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_calls_call_id_participants_participant_id_attributes ..."
|
|
1275
1272
|
end
|
|
1276
1273
|
|
|
1277
|
-
# verify the required parameter '
|
|
1278
|
-
fail "Missing the required parameter '
|
|
1274
|
+
# verify the required parameter 'call_id' is set
|
|
1275
|
+
fail "Missing the required parameter 'call_id' when calling patch_calls_call_id_participants_participant_id_attributes" if call_id.nil?
|
|
1279
1276
|
|
|
1280
1277
|
# verify the required parameter 'participant_id' is set
|
|
1281
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
1278
|
+
fail "Missing the required parameter 'participant_id' when calling patch_calls_call_id_participants_participant_id_attributes" if participant_id.nil?
|
|
1282
1279
|
|
|
1283
1280
|
# resource path
|
|
1284
|
-
path = "/api/v2/calls/{
|
|
1281
|
+
path = "/api/v2/conversations/calls/{callId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
1285
1282
|
|
|
1286
1283
|
# query parameters
|
|
1287
1284
|
query_params = {}
|
|
@@ -1301,55 +1298,54 @@ module PureCloud
|
|
|
1301
1298
|
form_params = {}
|
|
1302
1299
|
|
|
1303
1300
|
# http body (model)
|
|
1304
|
-
post_body =
|
|
1301
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
1305
1302
|
|
|
1306
1303
|
|
|
1307
1304
|
auth_names = ['PureCloud Auth']
|
|
1308
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1305
|
+
data, status_code, headers = @api_client.call_api(:PATCH, path,
|
|
1309
1306
|
:header_params => header_params,
|
|
1310
1307
|
:query_params => query_params,
|
|
1311
1308
|
:form_params => form_params,
|
|
1312
1309
|
:body => post_body,
|
|
1313
|
-
:auth_names => auth_names
|
|
1314
|
-
:return_type => 'CallConversation')
|
|
1310
|
+
:auth_names => auth_names)
|
|
1315
1311
|
if @api_client.config.debugging
|
|
1316
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1312
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_calls_call_id_participants_participant_id_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1317
1313
|
end
|
|
1318
1314
|
return data, status_code, headers
|
|
1319
1315
|
end
|
|
1320
1316
|
|
|
1321
|
-
#
|
|
1317
|
+
# Initiate and update consult transfer
|
|
1322
1318
|
#
|
|
1323
|
-
# @param
|
|
1324
|
-
# @param participant_id
|
|
1319
|
+
# @param call_id
|
|
1320
|
+
# @param participant_id
|
|
1325
1321
|
# @param [Hash] opts the optional parameters
|
|
1326
|
-
# @option opts [
|
|
1327
|
-
# @return [
|
|
1328
|
-
def
|
|
1329
|
-
data, status_code, headers =
|
|
1322
|
+
# @option opts [ConsultTransfer] :body Destination address & initial speak to
|
|
1323
|
+
# @return [ConsultTransferResponse]
|
|
1324
|
+
def post_calls_call_id_participants_participant_id_consult(call_id, participant_id, opts = {})
|
|
1325
|
+
data, status_code, headers = post_calls_call_id_participants_participant_id_consult_with_http_info(call_id, participant_id, opts)
|
|
1330
1326
|
return data
|
|
1331
1327
|
end
|
|
1332
1328
|
|
|
1333
|
-
#
|
|
1329
|
+
# Initiate and update consult transfer
|
|
1334
1330
|
#
|
|
1335
|
-
# @param
|
|
1336
|
-
# @param participant_id
|
|
1331
|
+
# @param call_id
|
|
1332
|
+
# @param participant_id
|
|
1337
1333
|
# @param [Hash] opts the optional parameters
|
|
1338
|
-
# @option opts [
|
|
1339
|
-
# @return [Array<(
|
|
1340
|
-
def
|
|
1334
|
+
# @option opts [ConsultTransfer] :body Destination address & initial speak to
|
|
1335
|
+
# @return [Array<(ConsultTransferResponse, Fixnum, Hash)>] ConsultTransferResponse data, response status code and response headers
|
|
1336
|
+
def post_calls_call_id_participants_participant_id_consult_with_http_info(call_id, participant_id, opts = {})
|
|
1341
1337
|
if @api_client.config.debugging
|
|
1342
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1338
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_calls_call_id_participants_participant_id_consult ..."
|
|
1343
1339
|
end
|
|
1344
1340
|
|
|
1345
|
-
# verify the required parameter '
|
|
1346
|
-
fail "Missing the required parameter '
|
|
1341
|
+
# verify the required parameter 'call_id' is set
|
|
1342
|
+
fail "Missing the required parameter 'call_id' when calling post_calls_call_id_participants_participant_id_consult" if call_id.nil?
|
|
1347
1343
|
|
|
1348
1344
|
# verify the required parameter 'participant_id' is set
|
|
1349
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
1345
|
+
fail "Missing the required parameter 'participant_id' when calling post_calls_call_id_participants_participant_id_consult" if participant_id.nil?
|
|
1350
1346
|
|
|
1351
1347
|
# resource path
|
|
1352
|
-
path = "/api/v2/calls/{
|
|
1348
|
+
path = "/api/v2/conversations/calls/{callId}/participants/{participantId}/consult".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
1353
1349
|
|
|
1354
1350
|
# query parameters
|
|
1355
1351
|
query_params = {}
|
|
@@ -1379,45 +1375,43 @@ module PureCloud
|
|
|
1379
1375
|
:form_params => form_params,
|
|
1380
1376
|
:body => post_body,
|
|
1381
1377
|
:auth_names => auth_names,
|
|
1382
|
-
:return_type => '
|
|
1378
|
+
:return_type => 'ConsultTransferResponse')
|
|
1383
1379
|
if @api_client.config.debugging
|
|
1384
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1380
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_calls_call_id_participants_participant_id_consult\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1385
1381
|
end
|
|
1386
1382
|
return data, status_code, headers
|
|
1387
1383
|
end
|
|
1388
1384
|
|
|
1389
|
-
#
|
|
1385
|
+
# Cancel the transfer
|
|
1390
1386
|
#
|
|
1391
|
-
# @param
|
|
1392
|
-
# @param participant_id
|
|
1387
|
+
# @param call_id
|
|
1388
|
+
# @param participant_id
|
|
1393
1389
|
# @param [Hash] opts the optional parameters
|
|
1394
|
-
# @
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
data, status_code, headers = patch_conversation_id_with_http_info(conversation_id, participant_id, opts)
|
|
1390
|
+
# @return [String]
|
|
1391
|
+
def delete_calls_call_id_participants_participant_id_consult(call_id, participant_id, opts = {})
|
|
1392
|
+
data, status_code, headers = delete_calls_call_id_participants_participant_id_consult_with_http_info(call_id, participant_id, opts)
|
|
1398
1393
|
return data
|
|
1399
1394
|
end
|
|
1400
1395
|
|
|
1401
|
-
#
|
|
1396
|
+
# Cancel the transfer
|
|
1402
1397
|
#
|
|
1403
|
-
# @param
|
|
1404
|
-
# @param participant_id
|
|
1398
|
+
# @param call_id
|
|
1399
|
+
# @param participant_id
|
|
1405
1400
|
# @param [Hash] opts the optional parameters
|
|
1406
|
-
# @
|
|
1407
|
-
|
|
1408
|
-
def patch_conversation_id_with_http_info(conversation_id, participant_id, opts = {})
|
|
1401
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
1402
|
+
def delete_calls_call_id_participants_participant_id_consult_with_http_info(call_id, participant_id, opts = {})
|
|
1409
1403
|
if @api_client.config.debugging
|
|
1410
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1404
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#delete_calls_call_id_participants_participant_id_consult ..."
|
|
1411
1405
|
end
|
|
1412
1406
|
|
|
1413
|
-
# verify the required parameter '
|
|
1414
|
-
fail "Missing the required parameter '
|
|
1407
|
+
# verify the required parameter 'call_id' is set
|
|
1408
|
+
fail "Missing the required parameter 'call_id' when calling delete_calls_call_id_participants_participant_id_consult" if call_id.nil?
|
|
1415
1409
|
|
|
1416
1410
|
# verify the required parameter 'participant_id' is set
|
|
1417
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
1411
|
+
fail "Missing the required parameter 'participant_id' when calling delete_calls_call_id_participants_participant_id_consult" if participant_id.nil?
|
|
1418
1412
|
|
|
1419
1413
|
# resource path
|
|
1420
|
-
path = "/api/v2/calls/{
|
|
1414
|
+
path = "/api/v2/conversations/calls/{callId}/participants/{participantId}/consult".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
1421
1415
|
|
|
1422
1416
|
# query parameters
|
|
1423
1417
|
query_params = {}
|
|
@@ -1437,55 +1431,55 @@ module PureCloud
|
|
|
1437
1431
|
form_params = {}
|
|
1438
1432
|
|
|
1439
1433
|
# http body (model)
|
|
1440
|
-
post_body =
|
|
1434
|
+
post_body = nil
|
|
1441
1435
|
|
|
1442
1436
|
|
|
1443
1437
|
auth_names = ['PureCloud Auth']
|
|
1444
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1438
|
+
data, status_code, headers = @api_client.call_api(:DELETE, path,
|
|
1445
1439
|
:header_params => header_params,
|
|
1446
1440
|
:query_params => query_params,
|
|
1447
1441
|
:form_params => form_params,
|
|
1448
1442
|
:body => post_body,
|
|
1449
1443
|
:auth_names => auth_names,
|
|
1450
|
-
:return_type => '
|
|
1444
|
+
:return_type => 'String')
|
|
1451
1445
|
if @api_client.config.debugging
|
|
1452
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1446
|
+
@api_client.config.logger.debug "API called: ConversationsApi#delete_calls_call_id_participants_participant_id_consult\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1453
1447
|
end
|
|
1454
1448
|
return data, status_code, headers
|
|
1455
1449
|
end
|
|
1456
1450
|
|
|
1457
|
-
#
|
|
1451
|
+
# Change who can speak
|
|
1458
1452
|
#
|
|
1459
|
-
# @param
|
|
1460
|
-
# @param participant_id
|
|
1453
|
+
# @param call_id
|
|
1454
|
+
# @param participant_id
|
|
1461
1455
|
# @param [Hash] opts the optional parameters
|
|
1462
|
-
# @option opts [
|
|
1463
|
-
# @return [
|
|
1464
|
-
def
|
|
1465
|
-
data, status_code, headers =
|
|
1456
|
+
# @option opts [ConsultTransferUpdate] :body new speak to
|
|
1457
|
+
# @return [ConsultTransferResponse]
|
|
1458
|
+
def patch_calls_call_id_participants_participant_id_consult(call_id, participant_id, opts = {})
|
|
1459
|
+
data, status_code, headers = patch_calls_call_id_participants_participant_id_consult_with_http_info(call_id, participant_id, opts)
|
|
1466
1460
|
return data
|
|
1467
1461
|
end
|
|
1468
1462
|
|
|
1469
|
-
#
|
|
1463
|
+
# Change who can speak
|
|
1470
1464
|
#
|
|
1471
|
-
# @param
|
|
1472
|
-
# @param participant_id
|
|
1465
|
+
# @param call_id
|
|
1466
|
+
# @param participant_id
|
|
1473
1467
|
# @param [Hash] opts the optional parameters
|
|
1474
|
-
# @option opts [
|
|
1475
|
-
# @return [Array<(
|
|
1476
|
-
def
|
|
1468
|
+
# @option opts [ConsultTransferUpdate] :body new speak to
|
|
1469
|
+
# @return [Array<(ConsultTransferResponse, Fixnum, Hash)>] ConsultTransferResponse data, response status code and response headers
|
|
1470
|
+
def patch_calls_call_id_participants_participant_id_consult_with_http_info(call_id, participant_id, opts = {})
|
|
1477
1471
|
if @api_client.config.debugging
|
|
1478
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1472
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_calls_call_id_participants_participant_id_consult ..."
|
|
1479
1473
|
end
|
|
1480
1474
|
|
|
1481
|
-
# verify the required parameter '
|
|
1482
|
-
fail "Missing the required parameter '
|
|
1475
|
+
# verify the required parameter 'call_id' is set
|
|
1476
|
+
fail "Missing the required parameter 'call_id' when calling patch_calls_call_id_participants_participant_id_consult" if call_id.nil?
|
|
1483
1477
|
|
|
1484
1478
|
# verify the required parameter 'participant_id' is set
|
|
1485
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
1479
|
+
fail "Missing the required parameter 'participant_id' when calling patch_calls_call_id_participants_participant_id_consult" if participant_id.nil?
|
|
1486
1480
|
|
|
1487
1481
|
# resource path
|
|
1488
|
-
path = "/api/v2/calls/{
|
|
1482
|
+
path = "/api/v2/conversations/calls/{callId}/participants/{participantId}/consult".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
1489
1483
|
|
|
1490
1484
|
# query parameters
|
|
1491
1485
|
query_params = {}
|
|
@@ -1509,51 +1503,49 @@ module PureCloud
|
|
|
1509
1503
|
|
|
1510
1504
|
|
|
1511
1505
|
auth_names = ['PureCloud Auth']
|
|
1512
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1506
|
+
data, status_code, headers = @api_client.call_api(:PATCH, path,
|
|
1513
1507
|
:header_params => header_params,
|
|
1514
1508
|
:query_params => query_params,
|
|
1515
1509
|
:form_params => form_params,
|
|
1516
1510
|
:body => post_body,
|
|
1517
1511
|
:auth_names => auth_names,
|
|
1518
|
-
:return_type => '
|
|
1512
|
+
:return_type => 'ConsultTransferResponse')
|
|
1519
1513
|
if @api_client.config.debugging
|
|
1520
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1514
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_calls_call_id_participants_participant_id_consult\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1521
1515
|
end
|
|
1522
1516
|
return data, status_code, headers
|
|
1523
1517
|
end
|
|
1524
1518
|
|
|
1525
|
-
#
|
|
1519
|
+
# Listen in on the conversation from the point of view of a given participant.
|
|
1526
1520
|
#
|
|
1527
|
-
# @param
|
|
1528
|
-
# @param participant_id
|
|
1521
|
+
# @param call_id
|
|
1522
|
+
# @param participant_id
|
|
1529
1523
|
# @param [Hash] opts the optional parameters
|
|
1530
|
-
# @
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
return data
|
|
1524
|
+
# @return [nil]
|
|
1525
|
+
def post_calls_call_id_participants_participant_id_monitor(call_id, participant_id, opts = {})
|
|
1526
|
+
post_calls_call_id_participants_participant_id_monitor_with_http_info(call_id, participant_id, opts)
|
|
1527
|
+
return nil
|
|
1535
1528
|
end
|
|
1536
1529
|
|
|
1537
|
-
#
|
|
1530
|
+
# Listen in on the conversation from the point of view of a given participant.
|
|
1538
1531
|
#
|
|
1539
|
-
# @param
|
|
1540
|
-
# @param participant_id
|
|
1532
|
+
# @param call_id
|
|
1533
|
+
# @param participant_id
|
|
1541
1534
|
# @param [Hash] opts the optional parameters
|
|
1542
|
-
# @
|
|
1543
|
-
|
|
1544
|
-
def post_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {})
|
|
1535
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
1536
|
+
def post_calls_call_id_participants_participant_id_monitor_with_http_info(call_id, participant_id, opts = {})
|
|
1545
1537
|
if @api_client.config.debugging
|
|
1546
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1538
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_calls_call_id_participants_participant_id_monitor ..."
|
|
1547
1539
|
end
|
|
1548
1540
|
|
|
1549
|
-
# verify the required parameter '
|
|
1550
|
-
fail "Missing the required parameter '
|
|
1541
|
+
# verify the required parameter 'call_id' is set
|
|
1542
|
+
fail "Missing the required parameter 'call_id' when calling post_calls_call_id_participants_participant_id_monitor" if call_id.nil?
|
|
1551
1543
|
|
|
1552
1544
|
# verify the required parameter 'participant_id' is set
|
|
1553
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
1545
|
+
fail "Missing the required parameter 'participant_id' when calling post_calls_call_id_participants_participant_id_monitor" if participant_id.nil?
|
|
1554
1546
|
|
|
1555
1547
|
# resource path
|
|
1556
|
-
path = "/api/v2/calls/{
|
|
1548
|
+
path = "/api/v2/conversations/calls/{callId}/participants/{participantId}/monitor".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
1557
1549
|
|
|
1558
1550
|
# query parameters
|
|
1559
1551
|
query_params = {}
|
|
@@ -1573,7 +1565,7 @@ module PureCloud
|
|
|
1573
1565
|
form_params = {}
|
|
1574
1566
|
|
|
1575
1567
|
# http body (model)
|
|
1576
|
-
post_body =
|
|
1568
|
+
post_body = nil
|
|
1577
1569
|
|
|
1578
1570
|
|
|
1579
1571
|
auth_names = ['PureCloud Auth']
|
|
@@ -1582,44 +1574,45 @@ module PureCloud
|
|
|
1582
1574
|
:query_params => query_params,
|
|
1583
1575
|
:form_params => form_params,
|
|
1584
1576
|
:body => post_body,
|
|
1585
|
-
:auth_names => auth_names
|
|
1586
|
-
:return_type => 'ConsultTransferResponse')
|
|
1577
|
+
:auth_names => auth_names)
|
|
1587
1578
|
if @api_client.config.debugging
|
|
1588
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1579
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_calls_call_id_participants_participant_id_monitor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1589
1580
|
end
|
|
1590
1581
|
return data, status_code, headers
|
|
1591
1582
|
end
|
|
1592
1583
|
|
|
1593
|
-
#
|
|
1584
|
+
# Replace this participant with the specified user and/or address
|
|
1594
1585
|
#
|
|
1595
|
-
# @param
|
|
1596
|
-
# @param participant_id
|
|
1586
|
+
# @param call_id
|
|
1587
|
+
# @param participant_id
|
|
1597
1588
|
# @param [Hash] opts the optional parameters
|
|
1598
|
-
# @
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1589
|
+
# @option opts [TransferRequest] :body
|
|
1590
|
+
# @return [nil]
|
|
1591
|
+
def post_calls_call_id_participants_participant_id_replace(call_id, participant_id, opts = {})
|
|
1592
|
+
post_calls_call_id_participants_participant_id_replace_with_http_info(call_id, participant_id, opts)
|
|
1593
|
+
return nil
|
|
1602
1594
|
end
|
|
1603
1595
|
|
|
1604
|
-
#
|
|
1596
|
+
# Replace this participant with the specified user and/or address
|
|
1605
1597
|
#
|
|
1606
|
-
# @param
|
|
1607
|
-
# @param participant_id
|
|
1598
|
+
# @param call_id
|
|
1599
|
+
# @param participant_id
|
|
1608
1600
|
# @param [Hash] opts the optional parameters
|
|
1609
|
-
# @
|
|
1610
|
-
|
|
1601
|
+
# @option opts [TransferRequest] :body
|
|
1602
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
1603
|
+
def post_calls_call_id_participants_participant_id_replace_with_http_info(call_id, participant_id, opts = {})
|
|
1611
1604
|
if @api_client.config.debugging
|
|
1612
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1605
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_calls_call_id_participants_participant_id_replace ..."
|
|
1613
1606
|
end
|
|
1614
1607
|
|
|
1615
|
-
# verify the required parameter '
|
|
1616
|
-
fail "Missing the required parameter '
|
|
1608
|
+
# verify the required parameter 'call_id' is set
|
|
1609
|
+
fail "Missing the required parameter 'call_id' when calling post_calls_call_id_participants_participant_id_replace" if call_id.nil?
|
|
1617
1610
|
|
|
1618
1611
|
# verify the required parameter 'participant_id' is set
|
|
1619
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
1612
|
+
fail "Missing the required parameter 'participant_id' when calling post_calls_call_id_participants_participant_id_replace" if participant_id.nil?
|
|
1620
1613
|
|
|
1621
1614
|
# resource path
|
|
1622
|
-
path = "/api/v2/calls/{
|
|
1615
|
+
path = "/api/v2/conversations/calls/{callId}/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
1623
1616
|
|
|
1624
1617
|
# query parameters
|
|
1625
1618
|
query_params = {}
|
|
@@ -1639,58 +1632,58 @@ module PureCloud
|
|
|
1639
1632
|
form_params = {}
|
|
1640
1633
|
|
|
1641
1634
|
# http body (model)
|
|
1642
|
-
post_body =
|
|
1635
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
1643
1636
|
|
|
1644
1637
|
|
|
1645
1638
|
auth_names = ['PureCloud Auth']
|
|
1646
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1639
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
|
1647
1640
|
:header_params => header_params,
|
|
1648
1641
|
:query_params => query_params,
|
|
1649
1642
|
:form_params => form_params,
|
|
1650
1643
|
:body => post_body,
|
|
1651
|
-
:auth_names => auth_names
|
|
1652
|
-
:return_type => 'String')
|
|
1644
|
+
:auth_names => auth_names)
|
|
1653
1645
|
if @api_client.config.debugging
|
|
1654
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1646
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_calls_call_id_participants_participant_id_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1655
1647
|
end
|
|
1656
1648
|
return data, status_code, headers
|
|
1657
1649
|
end
|
|
1658
1650
|
|
|
1659
|
-
#
|
|
1651
|
+
# Get the wrap-up for this conversation participant.
|
|
1660
1652
|
#
|
|
1661
|
-
# @param
|
|
1662
|
-
# @param participant_id
|
|
1653
|
+
# @param call_id
|
|
1654
|
+
# @param participant_id
|
|
1663
1655
|
# @param [Hash] opts the optional parameters
|
|
1664
|
-
# @option opts [
|
|
1665
|
-
# @return [
|
|
1666
|
-
def
|
|
1667
|
-
data, status_code, headers =
|
|
1656
|
+
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
1657
|
+
# @return [WrapupCode]
|
|
1658
|
+
def get_calls_call_id_participants_participant_id_wrapup(call_id, participant_id, opts = {})
|
|
1659
|
+
data, status_code, headers = get_calls_call_id_participants_participant_id_wrapup_with_http_info(call_id, participant_id, opts)
|
|
1668
1660
|
return data
|
|
1669
1661
|
end
|
|
1670
1662
|
|
|
1671
|
-
#
|
|
1663
|
+
# Get the wrap-up for this conversation participant.
|
|
1672
1664
|
#
|
|
1673
|
-
# @param
|
|
1674
|
-
# @param participant_id
|
|
1665
|
+
# @param call_id
|
|
1666
|
+
# @param participant_id
|
|
1675
1667
|
# @param [Hash] opts the optional parameters
|
|
1676
|
-
# @option opts [
|
|
1677
|
-
# @return [Array<(
|
|
1678
|
-
def
|
|
1668
|
+
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
1669
|
+
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
1670
|
+
def get_calls_call_id_participants_participant_id_wrapup_with_http_info(call_id, participant_id, opts = {})
|
|
1679
1671
|
if @api_client.config.debugging
|
|
1680
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1672
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_calls_call_id_participants_participant_id_wrapup ..."
|
|
1681
1673
|
end
|
|
1682
1674
|
|
|
1683
|
-
# verify the required parameter '
|
|
1684
|
-
fail "Missing the required parameter '
|
|
1675
|
+
# verify the required parameter 'call_id' is set
|
|
1676
|
+
fail "Missing the required parameter 'call_id' when calling get_calls_call_id_participants_participant_id_wrapup" if call_id.nil?
|
|
1685
1677
|
|
|
1686
1678
|
# verify the required parameter 'participant_id' is set
|
|
1687
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
1679
|
+
fail "Missing the required parameter 'participant_id' when calling get_calls_call_id_participants_participant_id_wrapup" if participant_id.nil?
|
|
1688
1680
|
|
|
1689
1681
|
# resource path
|
|
1690
|
-
path = "/api/v2/calls/{
|
|
1682
|
+
path = "/api/v2/conversations/calls/{callId}/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
1691
1683
|
|
|
1692
1684
|
# query parameters
|
|
1693
1685
|
query_params = {}
|
|
1686
|
+
query_params[:'provisional'] = opts[:'provisional'] if opts[:'provisional']
|
|
1694
1687
|
|
|
1695
1688
|
# header parameters
|
|
1696
1689
|
header_params = {}
|
|
@@ -1707,53 +1700,53 @@ module PureCloud
|
|
|
1707
1700
|
form_params = {}
|
|
1708
1701
|
|
|
1709
1702
|
# http body (model)
|
|
1710
|
-
post_body =
|
|
1703
|
+
post_body = nil
|
|
1711
1704
|
|
|
1712
1705
|
|
|
1713
1706
|
auth_names = ['PureCloud Auth']
|
|
1714
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1707
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
1715
1708
|
:header_params => header_params,
|
|
1716
1709
|
:query_params => query_params,
|
|
1717
1710
|
:form_params => form_params,
|
|
1718
1711
|
:body => post_body,
|
|
1719
1712
|
:auth_names => auth_names,
|
|
1720
|
-
:return_type => '
|
|
1713
|
+
:return_type => 'WrapupCode')
|
|
1721
1714
|
if @api_client.config.debugging
|
|
1722
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1715
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_calls_call_id_participants_participant_id_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1723
1716
|
end
|
|
1724
1717
|
return data, status_code, headers
|
|
1725
1718
|
end
|
|
1726
1719
|
|
|
1727
|
-
#
|
|
1720
|
+
# Get list of wrapup codes for this conversation participant
|
|
1728
1721
|
#
|
|
1729
|
-
# @param
|
|
1730
|
-
# @param participant_id
|
|
1722
|
+
# @param call_id
|
|
1723
|
+
# @param participant_id
|
|
1731
1724
|
# @param [Hash] opts the optional parameters
|
|
1732
|
-
# @return [
|
|
1733
|
-
def
|
|
1734
|
-
|
|
1735
|
-
return
|
|
1725
|
+
# @return [WrapupCode]
|
|
1726
|
+
def get_calls_call_id_participants_participant_id_wrapupcodes(call_id, participant_id, opts = {})
|
|
1727
|
+
data, status_code, headers = get_calls_call_id_participants_participant_id_wrapupcodes_with_http_info(call_id, participant_id, opts)
|
|
1728
|
+
return data
|
|
1736
1729
|
end
|
|
1737
1730
|
|
|
1738
|
-
#
|
|
1731
|
+
# Get list of wrapup codes for this conversation participant
|
|
1739
1732
|
#
|
|
1740
|
-
# @param
|
|
1741
|
-
# @param participant_id
|
|
1733
|
+
# @param call_id
|
|
1734
|
+
# @param participant_id
|
|
1742
1735
|
# @param [Hash] opts the optional parameters
|
|
1743
|
-
# @return [Array<(
|
|
1744
|
-
def
|
|
1736
|
+
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
1737
|
+
def get_calls_call_id_participants_participant_id_wrapupcodes_with_http_info(call_id, participant_id, opts = {})
|
|
1745
1738
|
if @api_client.config.debugging
|
|
1746
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1739
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_calls_call_id_participants_participant_id_wrapupcodes ..."
|
|
1747
1740
|
end
|
|
1748
1741
|
|
|
1749
|
-
# verify the required parameter '
|
|
1750
|
-
fail "Missing the required parameter '
|
|
1742
|
+
# verify the required parameter 'call_id' is set
|
|
1743
|
+
fail "Missing the required parameter 'call_id' when calling get_calls_call_id_participants_participant_id_wrapupcodes" if call_id.nil?
|
|
1751
1744
|
|
|
1752
1745
|
# verify the required parameter 'participant_id' is set
|
|
1753
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
1746
|
+
fail "Missing the required parameter 'participant_id' when calling get_calls_call_id_participants_participant_id_wrapupcodes" if participant_id.nil?
|
|
1754
1747
|
|
|
1755
1748
|
# resource path
|
|
1756
|
-
path = "/api/v2/calls/{
|
|
1749
|
+
path = "/api/v2/conversations/calls/{callId}/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'callId' + '}', call_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
1757
1750
|
|
|
1758
1751
|
# query parameters
|
|
1759
1752
|
query_params = {}
|
|
@@ -1777,48 +1770,39 @@ module PureCloud
|
|
|
1777
1770
|
|
|
1778
1771
|
|
|
1779
1772
|
auth_names = ['PureCloud Auth']
|
|
1780
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1773
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
1781
1774
|
:header_params => header_params,
|
|
1782
1775
|
:query_params => query_params,
|
|
1783
1776
|
:form_params => form_params,
|
|
1784
1777
|
:body => post_body,
|
|
1785
|
-
:auth_names => auth_names
|
|
1778
|
+
:auth_names => auth_names,
|
|
1779
|
+
:return_type => 'WrapupCode')
|
|
1786
1780
|
if @api_client.config.debugging
|
|
1787
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1781
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_calls_call_id_participants_participant_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1788
1782
|
end
|
|
1789
1783
|
return data, status_code, headers
|
|
1790
1784
|
end
|
|
1791
1785
|
|
|
1792
|
-
# Get conversations
|
|
1786
|
+
# Get recent chat conversations
|
|
1793
1787
|
#
|
|
1794
|
-
# @param conversation_id conversation ID
|
|
1795
|
-
# @param participant_id participant ID
|
|
1796
1788
|
# @param [Hash] opts the optional parameters
|
|
1797
1789
|
# @return [ChatConversationEntityListing]
|
|
1798
|
-
def get_chats(
|
|
1799
|
-
data, status_code, headers = get_chats_with_http_info(
|
|
1790
|
+
def get_chats(opts = {})
|
|
1791
|
+
data, status_code, headers = get_chats_with_http_info(opts)
|
|
1800
1792
|
return data
|
|
1801
1793
|
end
|
|
1802
1794
|
|
|
1803
|
-
# Get conversations
|
|
1795
|
+
# Get recent chat conversations
|
|
1804
1796
|
#
|
|
1805
|
-
# @param conversation_id conversation ID
|
|
1806
|
-
# @param participant_id participant ID
|
|
1807
1797
|
# @param [Hash] opts the optional parameters
|
|
1808
1798
|
# @return [Array<(ChatConversationEntityListing, Fixnum, Hash)>] ChatConversationEntityListing data, response status code and response headers
|
|
1809
|
-
def get_chats_with_http_info(
|
|
1799
|
+
def get_chats_with_http_info(opts = {})
|
|
1810
1800
|
if @api_client.config.debugging
|
|
1811
1801
|
@api_client.config.logger.debug "Calling API: ConversationsApi#get_chats ..."
|
|
1812
1802
|
end
|
|
1813
1803
|
|
|
1814
|
-
# verify the required parameter 'conversation_id' is set
|
|
1815
|
-
fail "Missing the required parameter 'conversation_id' when calling get_chats" if conversation_id.nil?
|
|
1816
|
-
|
|
1817
|
-
# verify the required parameter 'participant_id' is set
|
|
1818
|
-
fail "Missing the required parameter 'participant_id' when calling get_chats" if participant_id.nil?
|
|
1819
|
-
|
|
1820
1804
|
# resource path
|
|
1821
|
-
path = "/api/v2/chats".sub('{format}','json')
|
|
1805
|
+
path = "/api/v2/conversations/chats".sub('{format}','json')
|
|
1822
1806
|
|
|
1823
1807
|
# query parameters
|
|
1824
1808
|
query_params = {}
|
|
@@ -1855,38 +1839,99 @@ module PureCloud
|
|
|
1855
1839
|
return data, status_code, headers
|
|
1856
1840
|
end
|
|
1857
1841
|
|
|
1842
|
+
# Get chat conversation
|
|
1843
|
+
#
|
|
1844
|
+
# @param chat_id
|
|
1845
|
+
# @param [Hash] opts the optional parameters
|
|
1846
|
+
# @return [ChatConversation]
|
|
1847
|
+
def get_chats_chat_id(chat_id, opts = {})
|
|
1848
|
+
data, status_code, headers = get_chats_chat_id_with_http_info(chat_id, opts)
|
|
1849
|
+
return data
|
|
1850
|
+
end
|
|
1851
|
+
|
|
1852
|
+
# Get chat conversation
|
|
1853
|
+
#
|
|
1854
|
+
# @param chat_id
|
|
1855
|
+
# @param [Hash] opts the optional parameters
|
|
1856
|
+
# @return [Array<(ChatConversation, Fixnum, Hash)>] ChatConversation data, response status code and response headers
|
|
1857
|
+
def get_chats_chat_id_with_http_info(chat_id, opts = {})
|
|
1858
|
+
if @api_client.config.debugging
|
|
1859
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_chats_chat_id ..."
|
|
1860
|
+
end
|
|
1861
|
+
|
|
1862
|
+
# verify the required parameter 'chat_id' is set
|
|
1863
|
+
fail "Missing the required parameter 'chat_id' when calling get_chats_chat_id" if chat_id.nil?
|
|
1864
|
+
|
|
1865
|
+
# resource path
|
|
1866
|
+
path = "/api/v2/conversations/chats/{chatId}".sub('{format}','json').sub('{' + 'chatId' + '}', chat_id.to_s)
|
|
1867
|
+
|
|
1868
|
+
# query parameters
|
|
1869
|
+
query_params = {}
|
|
1870
|
+
|
|
1871
|
+
# header parameters
|
|
1872
|
+
header_params = {}
|
|
1873
|
+
|
|
1874
|
+
# HTTP header 'Accept' (if needed)
|
|
1875
|
+
_header_accept = ['application/json']
|
|
1876
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
1877
|
+
|
|
1878
|
+
# HTTP header 'Content-Type'
|
|
1879
|
+
_header_content_type = ['application/json']
|
|
1880
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
1881
|
+
|
|
1882
|
+
# form parameters
|
|
1883
|
+
form_params = {}
|
|
1884
|
+
|
|
1885
|
+
# http body (model)
|
|
1886
|
+
post_body = nil
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
auth_names = ['PureCloud Auth']
|
|
1890
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
1891
|
+
:header_params => header_params,
|
|
1892
|
+
:query_params => query_params,
|
|
1893
|
+
:form_params => form_params,
|
|
1894
|
+
:body => post_body,
|
|
1895
|
+
:auth_names => auth_names,
|
|
1896
|
+
:return_type => 'ChatConversation')
|
|
1897
|
+
if @api_client.config.debugging
|
|
1898
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_chats_chat_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1899
|
+
end
|
|
1900
|
+
return data, status_code, headers
|
|
1901
|
+
end
|
|
1902
|
+
|
|
1858
1903
|
# Update conversation participant
|
|
1859
1904
|
#
|
|
1860
|
-
# @param
|
|
1861
|
-
# @param participant_id
|
|
1905
|
+
# @param chat_id
|
|
1906
|
+
# @param participant_id
|
|
1862
1907
|
# @param [Hash] opts the optional parameters
|
|
1863
1908
|
# @option opts [MediaParticipantRequest] :body
|
|
1864
1909
|
# @return [nil]
|
|
1865
|
-
def
|
|
1866
|
-
|
|
1910
|
+
def patch_chats_chat_id_participants_participant_id(chat_id, participant_id, opts = {})
|
|
1911
|
+
patch_chats_chat_id_participants_participant_id_with_http_info(chat_id, participant_id, opts)
|
|
1867
1912
|
return nil
|
|
1868
1913
|
end
|
|
1869
1914
|
|
|
1870
1915
|
# Update conversation participant
|
|
1871
1916
|
#
|
|
1872
|
-
# @param
|
|
1873
|
-
# @param participant_id
|
|
1917
|
+
# @param chat_id
|
|
1918
|
+
# @param participant_id
|
|
1874
1919
|
# @param [Hash] opts the optional parameters
|
|
1875
1920
|
# @option opts [MediaParticipantRequest] :body
|
|
1876
1921
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
1877
|
-
def
|
|
1922
|
+
def patch_chats_chat_id_participants_participant_id_with_http_info(chat_id, participant_id, opts = {})
|
|
1878
1923
|
if @api_client.config.debugging
|
|
1879
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1924
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_chats_chat_id_participants_participant_id ..."
|
|
1880
1925
|
end
|
|
1881
1926
|
|
|
1882
|
-
# verify the required parameter '
|
|
1883
|
-
fail "Missing the required parameter '
|
|
1927
|
+
# verify the required parameter 'chat_id' is set
|
|
1928
|
+
fail "Missing the required parameter 'chat_id' when calling patch_chats_chat_id_participants_participant_id" if chat_id.nil?
|
|
1884
1929
|
|
|
1885
1930
|
# verify the required parameter 'participant_id' is set
|
|
1886
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
1931
|
+
fail "Missing the required parameter 'participant_id' when calling patch_chats_chat_id_participants_participant_id" if participant_id.nil?
|
|
1887
1932
|
|
|
1888
1933
|
# resource path
|
|
1889
|
-
path = "/api/v2/chats/participants/{participantId}".sub('{format}','json').sub('{' + '
|
|
1934
|
+
path = "/api/v2/conversations/chats/{chatId}/participants/{participantId}".sub('{format}','json').sub('{' + 'chatId' + '}', chat_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
1890
1935
|
|
|
1891
1936
|
# query parameters
|
|
1892
1937
|
query_params = {}
|
|
@@ -1917,43 +1962,43 @@ module PureCloud
|
|
|
1917
1962
|
:body => post_body,
|
|
1918
1963
|
:auth_names => auth_names)
|
|
1919
1964
|
if @api_client.config.debugging
|
|
1920
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
1965
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_chats_chat_id_participants_participant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1921
1966
|
end
|
|
1922
1967
|
return data, status_code, headers
|
|
1923
1968
|
end
|
|
1924
1969
|
|
|
1925
1970
|
# Update the attributes on a conversation participant.
|
|
1926
1971
|
#
|
|
1927
|
-
# @param
|
|
1928
|
-
# @param participant_id
|
|
1972
|
+
# @param chat_id
|
|
1973
|
+
# @param participant_id
|
|
1929
1974
|
# @param [Hash] opts the optional parameters
|
|
1930
1975
|
# @option opts [ParticipantAttributes] :body
|
|
1931
1976
|
# @return [nil]
|
|
1932
|
-
def
|
|
1933
|
-
|
|
1977
|
+
def patch_chats_chat_id_participants_participant_id_attributes(chat_id, participant_id, opts = {})
|
|
1978
|
+
patch_chats_chat_id_participants_participant_id_attributes_with_http_info(chat_id, participant_id, opts)
|
|
1934
1979
|
return nil
|
|
1935
1980
|
end
|
|
1936
1981
|
|
|
1937
1982
|
# Update the attributes on a conversation participant.
|
|
1938
1983
|
#
|
|
1939
|
-
# @param
|
|
1940
|
-
# @param participant_id
|
|
1984
|
+
# @param chat_id
|
|
1985
|
+
# @param participant_id
|
|
1941
1986
|
# @param [Hash] opts the optional parameters
|
|
1942
1987
|
# @option opts [ParticipantAttributes] :body
|
|
1943
1988
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
1944
|
-
def
|
|
1989
|
+
def patch_chats_chat_id_participants_participant_id_attributes_with_http_info(chat_id, participant_id, opts = {})
|
|
1945
1990
|
if @api_client.config.debugging
|
|
1946
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
1991
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_chats_chat_id_participants_participant_id_attributes ..."
|
|
1947
1992
|
end
|
|
1948
1993
|
|
|
1949
|
-
# verify the required parameter '
|
|
1950
|
-
fail "Missing the required parameter '
|
|
1994
|
+
# verify the required parameter 'chat_id' is set
|
|
1995
|
+
fail "Missing the required parameter 'chat_id' when calling patch_chats_chat_id_participants_participant_id_attributes" if chat_id.nil?
|
|
1951
1996
|
|
|
1952
1997
|
# verify the required parameter 'participant_id' is set
|
|
1953
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
1998
|
+
fail "Missing the required parameter 'participant_id' when calling patch_chats_chat_id_participants_participant_id_attributes" if participant_id.nil?
|
|
1954
1999
|
|
|
1955
2000
|
# resource path
|
|
1956
|
-
path = "/api/v2/chats/participants/{participantId}/attributes".sub('{format}','json').sub('{' + '
|
|
2001
|
+
path = "/api/v2/conversations/chats/{chatId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'chatId' + '}', chat_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
1957
2002
|
|
|
1958
2003
|
# query parameters
|
|
1959
2004
|
query_params = {}
|
|
@@ -1984,43 +2029,43 @@ module PureCloud
|
|
|
1984
2029
|
:body => post_body,
|
|
1985
2030
|
:auth_names => auth_names)
|
|
1986
2031
|
if @api_client.config.debugging
|
|
1987
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2032
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_chats_chat_id_participants_participant_id_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1988
2033
|
end
|
|
1989
2034
|
return data, status_code, headers
|
|
1990
2035
|
end
|
|
1991
2036
|
|
|
1992
2037
|
# Replace this participant with the specified user and/or address
|
|
1993
2038
|
#
|
|
1994
|
-
# @param
|
|
1995
|
-
# @param participant_id
|
|
2039
|
+
# @param chat_id
|
|
2040
|
+
# @param participant_id
|
|
1996
2041
|
# @param [Hash] opts the optional parameters
|
|
1997
2042
|
# @option opts [TransferRequest] :body
|
|
1998
2043
|
# @return [nil]
|
|
1999
|
-
def
|
|
2000
|
-
|
|
2044
|
+
def post_chats_chat_id_participants_participant_id_replace(chat_id, participant_id, opts = {})
|
|
2045
|
+
post_chats_chat_id_participants_participant_id_replace_with_http_info(chat_id, participant_id, opts)
|
|
2001
2046
|
return nil
|
|
2002
2047
|
end
|
|
2003
2048
|
|
|
2004
2049
|
# Replace this participant with the specified user and/or address
|
|
2005
2050
|
#
|
|
2006
|
-
# @param
|
|
2007
|
-
# @param participant_id
|
|
2051
|
+
# @param chat_id
|
|
2052
|
+
# @param participant_id
|
|
2008
2053
|
# @param [Hash] opts the optional parameters
|
|
2009
2054
|
# @option opts [TransferRequest] :body
|
|
2010
2055
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
2011
|
-
def
|
|
2056
|
+
def post_chats_chat_id_participants_participant_id_replace_with_http_info(chat_id, participant_id, opts = {})
|
|
2012
2057
|
if @api_client.config.debugging
|
|
2013
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2058
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_chats_chat_id_participants_participant_id_replace ..."
|
|
2014
2059
|
end
|
|
2015
2060
|
|
|
2016
|
-
# verify the required parameter '
|
|
2017
|
-
fail "Missing the required parameter '
|
|
2061
|
+
# verify the required parameter 'chat_id' is set
|
|
2062
|
+
fail "Missing the required parameter 'chat_id' when calling post_chats_chat_id_participants_participant_id_replace" if chat_id.nil?
|
|
2018
2063
|
|
|
2019
2064
|
# verify the required parameter 'participant_id' is set
|
|
2020
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
2065
|
+
fail "Missing the required parameter 'participant_id' when calling post_chats_chat_id_participants_participant_id_replace" if participant_id.nil?
|
|
2021
2066
|
|
|
2022
2067
|
# resource path
|
|
2023
|
-
path = "/api/v2/chats/participants/{participantId}/replace".sub('{format}','json').sub('{' + '
|
|
2068
|
+
path = "/api/v2/conversations/chats/{chatId}/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'chatId' + '}', chat_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
2024
2069
|
|
|
2025
2070
|
# query parameters
|
|
2026
2071
|
query_params = {}
|
|
@@ -2051,43 +2096,43 @@ module PureCloud
|
|
|
2051
2096
|
:body => post_body,
|
|
2052
2097
|
:auth_names => auth_names)
|
|
2053
2098
|
if @api_client.config.debugging
|
|
2054
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2099
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_chats_chat_id_participants_participant_id_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2055
2100
|
end
|
|
2056
2101
|
return data, status_code, headers
|
|
2057
2102
|
end
|
|
2058
2103
|
|
|
2059
2104
|
# Get the wrap-up for this conversation participant.
|
|
2060
2105
|
#
|
|
2061
|
-
# @param
|
|
2062
|
-
# @param participant_id
|
|
2106
|
+
# @param chat_id
|
|
2107
|
+
# @param participant_id
|
|
2063
2108
|
# @param [Hash] opts the optional parameters
|
|
2064
2109
|
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
2065
2110
|
# @return [WrapupCode]
|
|
2066
|
-
def
|
|
2067
|
-
data, status_code, headers =
|
|
2111
|
+
def get_chats_chat_id_participants_participant_id_wrapup(chat_id, participant_id, opts = {})
|
|
2112
|
+
data, status_code, headers = get_chats_chat_id_participants_participant_id_wrapup_with_http_info(chat_id, participant_id, opts)
|
|
2068
2113
|
return data
|
|
2069
2114
|
end
|
|
2070
2115
|
|
|
2071
2116
|
# Get the wrap-up for this conversation participant.
|
|
2072
2117
|
#
|
|
2073
|
-
# @param
|
|
2074
|
-
# @param participant_id
|
|
2118
|
+
# @param chat_id
|
|
2119
|
+
# @param participant_id
|
|
2075
2120
|
# @param [Hash] opts the optional parameters
|
|
2076
2121
|
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
2077
2122
|
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
2078
|
-
def
|
|
2123
|
+
def get_chats_chat_id_participants_participant_id_wrapup_with_http_info(chat_id, participant_id, opts = {})
|
|
2079
2124
|
if @api_client.config.debugging
|
|
2080
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2125
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_chats_chat_id_participants_participant_id_wrapup ..."
|
|
2081
2126
|
end
|
|
2082
2127
|
|
|
2083
|
-
# verify the required parameter '
|
|
2084
|
-
fail "Missing the required parameter '
|
|
2128
|
+
# verify the required parameter 'chat_id' is set
|
|
2129
|
+
fail "Missing the required parameter 'chat_id' when calling get_chats_chat_id_participants_participant_id_wrapup" if chat_id.nil?
|
|
2085
2130
|
|
|
2086
2131
|
# verify the required parameter 'participant_id' is set
|
|
2087
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
2132
|
+
fail "Missing the required parameter 'participant_id' when calling get_chats_chat_id_participants_participant_id_wrapup" if participant_id.nil?
|
|
2088
2133
|
|
|
2089
2134
|
# resource path
|
|
2090
|
-
path = "/api/v2/chats/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + '
|
|
2135
|
+
path = "/api/v2/conversations/chats/{chatId}/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'chatId' + '}', chat_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
2091
2136
|
|
|
2092
2137
|
# query parameters
|
|
2093
2138
|
query_params = {}
|
|
@@ -2120,41 +2165,41 @@ module PureCloud
|
|
|
2120
2165
|
:auth_names => auth_names,
|
|
2121
2166
|
:return_type => 'WrapupCode')
|
|
2122
2167
|
if @api_client.config.debugging
|
|
2123
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2168
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_chats_chat_id_participants_participant_id_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2124
2169
|
end
|
|
2125
2170
|
return data, status_code, headers
|
|
2126
2171
|
end
|
|
2127
2172
|
|
|
2128
2173
|
# Get list of wrapup codes for this conversation participant
|
|
2129
2174
|
#
|
|
2130
|
-
# @param
|
|
2131
|
-
# @param participant_id
|
|
2175
|
+
# @param chat_id
|
|
2176
|
+
# @param participant_id
|
|
2132
2177
|
# @param [Hash] opts the optional parameters
|
|
2133
2178
|
# @return [WrapupCode]
|
|
2134
|
-
def
|
|
2135
|
-
data, status_code, headers =
|
|
2179
|
+
def get_chats_chat_id_participants_participant_id_wrapupcodes(chat_id, participant_id, opts = {})
|
|
2180
|
+
data, status_code, headers = get_chats_chat_id_participants_participant_id_wrapupcodes_with_http_info(chat_id, participant_id, opts)
|
|
2136
2181
|
return data
|
|
2137
2182
|
end
|
|
2138
2183
|
|
|
2139
2184
|
# Get list of wrapup codes for this conversation participant
|
|
2140
2185
|
#
|
|
2141
|
-
# @param
|
|
2142
|
-
# @param participant_id
|
|
2186
|
+
# @param chat_id
|
|
2187
|
+
# @param participant_id
|
|
2143
2188
|
# @param [Hash] opts the optional parameters
|
|
2144
2189
|
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
2145
|
-
def
|
|
2190
|
+
def get_chats_chat_id_participants_participant_id_wrapupcodes_with_http_info(chat_id, participant_id, opts = {})
|
|
2146
2191
|
if @api_client.config.debugging
|
|
2147
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2192
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_chats_chat_id_participants_participant_id_wrapupcodes ..."
|
|
2148
2193
|
end
|
|
2149
2194
|
|
|
2150
|
-
# verify the required parameter '
|
|
2151
|
-
fail "Missing the required parameter '
|
|
2195
|
+
# verify the required parameter 'chat_id' is set
|
|
2196
|
+
fail "Missing the required parameter 'chat_id' when calling get_chats_chat_id_participants_participant_id_wrapupcodes" if chat_id.nil?
|
|
2152
2197
|
|
|
2153
2198
|
# verify the required parameter 'participant_id' is set
|
|
2154
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
2199
|
+
fail "Missing the required parameter 'participant_id' when calling get_chats_chat_id_participants_participant_id_wrapupcodes" if participant_id.nil?
|
|
2155
2200
|
|
|
2156
2201
|
# resource path
|
|
2157
|
-
path = "/api/v2/chats/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + '
|
|
2202
|
+
path = "/api/v2/conversations/chats/{chatId}/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'chatId' + '}', chat_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
2158
2203
|
|
|
2159
2204
|
# query parameters
|
|
2160
2205
|
query_params = {}
|
|
@@ -2186,41 +2231,31 @@ module PureCloud
|
|
|
2186
2231
|
:auth_names => auth_names,
|
|
2187
2232
|
:return_type => 'WrapupCode')
|
|
2188
2233
|
if @api_client.config.debugging
|
|
2189
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2234
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_chats_chat_id_participants_participant_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2190
2235
|
end
|
|
2191
2236
|
return data, status_code, headers
|
|
2192
2237
|
end
|
|
2193
2238
|
|
|
2194
|
-
# Get
|
|
2239
|
+
# Get recent email conversations
|
|
2195
2240
|
#
|
|
2196
|
-
# @param conversation_id conversation ID
|
|
2197
|
-
# @param participant_id participant ID
|
|
2198
2241
|
# @param [Hash] opts the optional parameters
|
|
2199
|
-
# @return [
|
|
2200
|
-
def
|
|
2201
|
-
data, status_code, headers =
|
|
2242
|
+
# @return [EmailConversationEntityListing]
|
|
2243
|
+
def get_emails(opts = {})
|
|
2244
|
+
data, status_code, headers = get_emails_with_http_info(opts)
|
|
2202
2245
|
return data
|
|
2203
2246
|
end
|
|
2204
2247
|
|
|
2205
|
-
# Get
|
|
2248
|
+
# Get recent email conversations
|
|
2206
2249
|
#
|
|
2207
|
-
# @param conversation_id conversation ID
|
|
2208
|
-
# @param participant_id participant ID
|
|
2209
2250
|
# @param [Hash] opts the optional parameters
|
|
2210
|
-
# @return [Array<(
|
|
2211
|
-
def
|
|
2251
|
+
# @return [Array<(EmailConversationEntityListing, Fixnum, Hash)>] EmailConversationEntityListing data, response status code and response headers
|
|
2252
|
+
def get_emails_with_http_info(opts = {})
|
|
2212
2253
|
if @api_client.config.debugging
|
|
2213
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2254
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_emails ..."
|
|
2214
2255
|
end
|
|
2215
2256
|
|
|
2216
|
-
# verify the required parameter 'conversation_id' is set
|
|
2217
|
-
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_1" if conversation_id.nil?
|
|
2218
|
-
|
|
2219
|
-
# verify the required parameter 'participant_id' is set
|
|
2220
|
-
fail "Missing the required parameter 'participant_id' when calling get_conversation_id_1" if participant_id.nil?
|
|
2221
|
-
|
|
2222
2257
|
# resource path
|
|
2223
|
-
path = "/api/v2/
|
|
2258
|
+
path = "/api/v2/conversations/emails".sub('{format}','json')
|
|
2224
2259
|
|
|
2225
2260
|
# query parameters
|
|
2226
2261
|
query_params = {}
|
|
@@ -2250,39 +2285,41 @@ module PureCloud
|
|
|
2250
2285
|
:form_params => form_params,
|
|
2251
2286
|
:body => post_body,
|
|
2252
2287
|
:auth_names => auth_names,
|
|
2253
|
-
:return_type => '
|
|
2288
|
+
:return_type => 'EmailConversationEntityListing')
|
|
2254
2289
|
if @api_client.config.debugging
|
|
2255
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2290
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_emails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2256
2291
|
end
|
|
2257
2292
|
return data, status_code, headers
|
|
2258
2293
|
end
|
|
2259
2294
|
|
|
2260
|
-
# Get
|
|
2295
|
+
# Get email conversation
|
|
2261
2296
|
#
|
|
2297
|
+
# @param email_id
|
|
2262
2298
|
# @param [Hash] opts the optional parameters
|
|
2263
|
-
# @
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
data, status_code, headers = get_conversations_with_http_info(opts)
|
|
2299
|
+
# @return [EmailConversation]
|
|
2300
|
+
def get_emails_email_id(email_id, opts = {})
|
|
2301
|
+
data, status_code, headers = get_emails_email_id_with_http_info(email_id, opts)
|
|
2267
2302
|
return data
|
|
2268
2303
|
end
|
|
2269
2304
|
|
|
2270
|
-
# Get
|
|
2305
|
+
# Get email conversation
|
|
2271
2306
|
#
|
|
2307
|
+
# @param email_id
|
|
2272
2308
|
# @param [Hash] opts the optional parameters
|
|
2273
|
-
# @
|
|
2274
|
-
|
|
2275
|
-
def get_conversations_with_http_info(opts = {})
|
|
2309
|
+
# @return [Array<(EmailConversation, Fixnum, Hash)>] EmailConversation data, response status code and response headers
|
|
2310
|
+
def get_emails_email_id_with_http_info(email_id, opts = {})
|
|
2276
2311
|
if @api_client.config.debugging
|
|
2277
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2312
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_emails_email_id ..."
|
|
2278
2313
|
end
|
|
2279
2314
|
|
|
2315
|
+
# verify the required parameter 'email_id' is set
|
|
2316
|
+
fail "Missing the required parameter 'email_id' when calling get_emails_email_id" if email_id.nil?
|
|
2317
|
+
|
|
2280
2318
|
# resource path
|
|
2281
|
-
path = "/api/v2/conversations".sub('{format}','json')
|
|
2319
|
+
path = "/api/v2/conversations/emails/{emailId}".sub('{format}','json').sub('{' + 'emailId' + '}', email_id.to_s)
|
|
2282
2320
|
|
|
2283
2321
|
# query parameters
|
|
2284
2322
|
query_params = {}
|
|
2285
|
-
query_params[:'communicationType'] = opts[:'communication_type'] if opts[:'communication_type']
|
|
2286
2323
|
|
|
2287
2324
|
# header parameters
|
|
2288
2325
|
header_params = {}
|
|
@@ -2309,35 +2346,38 @@ module PureCloud
|
|
|
2309
2346
|
:form_params => form_params,
|
|
2310
2347
|
:body => post_body,
|
|
2311
2348
|
:auth_names => auth_names,
|
|
2312
|
-
:return_type => '
|
|
2349
|
+
:return_type => 'EmailConversation')
|
|
2313
2350
|
if @api_client.config.debugging
|
|
2314
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2351
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_emails_email_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2315
2352
|
end
|
|
2316
2353
|
return data, status_code, headers
|
|
2317
2354
|
end
|
|
2318
2355
|
|
|
2319
|
-
#
|
|
2356
|
+
# Get conversation messages
|
|
2320
2357
|
#
|
|
2358
|
+
# @param email_id
|
|
2321
2359
|
# @param [Hash] opts the optional parameters
|
|
2322
|
-
# @
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
data, status_code, headers = post_faxes_with_http_info(opts)
|
|
2360
|
+
# @return [EmailMessageListing]
|
|
2361
|
+
def get_emails_email_id_messages(email_id, opts = {})
|
|
2362
|
+
data, status_code, headers = get_emails_email_id_messages_with_http_info(email_id, opts)
|
|
2326
2363
|
return data
|
|
2327
2364
|
end
|
|
2328
2365
|
|
|
2329
|
-
#
|
|
2366
|
+
# Get conversation messages
|
|
2330
2367
|
#
|
|
2368
|
+
# @param email_id
|
|
2331
2369
|
# @param [Hash] opts the optional parameters
|
|
2332
|
-
# @
|
|
2333
|
-
|
|
2334
|
-
def post_faxes_with_http_info(opts = {})
|
|
2370
|
+
# @return [Array<(EmailMessageListing, Fixnum, Hash)>] EmailMessageListing data, response status code and response headers
|
|
2371
|
+
def get_emails_email_id_messages_with_http_info(email_id, opts = {})
|
|
2335
2372
|
if @api_client.config.debugging
|
|
2336
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2373
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_emails_email_id_messages ..."
|
|
2337
2374
|
end
|
|
2338
2375
|
|
|
2376
|
+
# verify the required parameter 'email_id' is set
|
|
2377
|
+
fail "Missing the required parameter 'email_id' when calling get_emails_email_id_messages" if email_id.nil?
|
|
2378
|
+
|
|
2339
2379
|
# resource path
|
|
2340
|
-
path = "/api/v2/conversations/
|
|
2380
|
+
path = "/api/v2/conversations/emails/{emailId}/messages".sub('{format}','json').sub('{' + 'emailId' + '}', email_id.to_s)
|
|
2341
2381
|
|
|
2342
2382
|
# query parameters
|
|
2343
2383
|
query_params = {}
|
|
@@ -2357,48 +2397,50 @@ module PureCloud
|
|
|
2357
2397
|
form_params = {}
|
|
2358
2398
|
|
|
2359
2399
|
# http body (model)
|
|
2360
|
-
post_body =
|
|
2400
|
+
post_body = nil
|
|
2361
2401
|
|
|
2362
2402
|
|
|
2363
2403
|
auth_names = ['PureCloud Auth']
|
|
2364
|
-
data, status_code, headers = @api_client.call_api(:
|
|
2404
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
2365
2405
|
:header_params => header_params,
|
|
2366
2406
|
:query_params => query_params,
|
|
2367
2407
|
:form_params => form_params,
|
|
2368
2408
|
:body => post_body,
|
|
2369
2409
|
:auth_names => auth_names,
|
|
2370
|
-
:return_type => '
|
|
2410
|
+
:return_type => 'EmailMessageListing')
|
|
2371
2411
|
if @api_client.config.debugging
|
|
2372
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2412
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_emails_email_id_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2373
2413
|
end
|
|
2374
2414
|
return data, status_code, headers
|
|
2375
2415
|
end
|
|
2376
2416
|
|
|
2377
|
-
#
|
|
2417
|
+
# Send an email reply
|
|
2378
2418
|
#
|
|
2379
|
-
# @param
|
|
2419
|
+
# @param email_id
|
|
2380
2420
|
# @param [Hash] opts the optional parameters
|
|
2381
|
-
# @
|
|
2382
|
-
|
|
2383
|
-
|
|
2421
|
+
# @option opts [EmailMessage] :body Reply
|
|
2422
|
+
# @return [EmailMessage]
|
|
2423
|
+
def post_emails_email_id_messages(email_id, opts = {})
|
|
2424
|
+
data, status_code, headers = post_emails_email_id_messages_with_http_info(email_id, opts)
|
|
2384
2425
|
return data
|
|
2385
2426
|
end
|
|
2386
2427
|
|
|
2387
|
-
#
|
|
2428
|
+
# Send an email reply
|
|
2388
2429
|
#
|
|
2389
|
-
# @param
|
|
2430
|
+
# @param email_id
|
|
2390
2431
|
# @param [Hash] opts the optional parameters
|
|
2391
|
-
# @
|
|
2392
|
-
|
|
2432
|
+
# @option opts [EmailMessage] :body Reply
|
|
2433
|
+
# @return [Array<(EmailMessage, Fixnum, Hash)>] EmailMessage data, response status code and response headers
|
|
2434
|
+
def post_emails_email_id_messages_with_http_info(email_id, opts = {})
|
|
2393
2435
|
if @api_client.config.debugging
|
|
2394
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2436
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_emails_email_id_messages ..."
|
|
2395
2437
|
end
|
|
2396
2438
|
|
|
2397
|
-
# verify the required parameter '
|
|
2398
|
-
fail "Missing the required parameter '
|
|
2439
|
+
# verify the required parameter 'email_id' is set
|
|
2440
|
+
fail "Missing the required parameter 'email_id' when calling post_emails_email_id_messages" if email_id.nil?
|
|
2399
2441
|
|
|
2400
2442
|
# resource path
|
|
2401
|
-
path = "/api/v2/conversations/{
|
|
2443
|
+
path = "/api/v2/conversations/emails/{emailId}/messages".sub('{format}','json').sub('{' + 'emailId' + '}', email_id.to_s)
|
|
2402
2444
|
|
|
2403
2445
|
# query parameters
|
|
2404
2446
|
query_params = {}
|
|
@@ -2418,55 +2460,48 @@ module PureCloud
|
|
|
2418
2460
|
form_params = {}
|
|
2419
2461
|
|
|
2420
2462
|
# http body (model)
|
|
2421
|
-
post_body =
|
|
2463
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
2422
2464
|
|
|
2423
2465
|
|
|
2424
2466
|
auth_names = ['PureCloud Auth']
|
|
2425
|
-
data, status_code, headers = @api_client.call_api(:
|
|
2467
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
|
2426
2468
|
:header_params => header_params,
|
|
2427
2469
|
:query_params => query_params,
|
|
2428
2470
|
:form_params => form_params,
|
|
2429
2471
|
:body => post_body,
|
|
2430
2472
|
:auth_names => auth_names,
|
|
2431
|
-
:return_type => '
|
|
2473
|
+
:return_type => 'EmailMessage')
|
|
2432
2474
|
if @api_client.config.debugging
|
|
2433
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2475
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_emails_email_id_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2434
2476
|
end
|
|
2435
2477
|
return data, status_code, headers
|
|
2436
2478
|
end
|
|
2437
2479
|
|
|
2438
|
-
#
|
|
2439
|
-
#
|
|
2440
|
-
# @param
|
|
2441
|
-
# @param participant_id participant ID
|
|
2480
|
+
# Get conversation draft reply
|
|
2481
|
+
#
|
|
2482
|
+
# @param email_id
|
|
2442
2483
|
# @param [Hash] opts the optional parameters
|
|
2443
|
-
# @
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
return nil
|
|
2484
|
+
# @return [EmailMessage]
|
|
2485
|
+
def get_emails_email_id_messages_draft(email_id, opts = {})
|
|
2486
|
+
data, status_code, headers = get_emails_email_id_messages_draft_with_http_info(email_id, opts)
|
|
2487
|
+
return data
|
|
2448
2488
|
end
|
|
2449
2489
|
|
|
2450
|
-
#
|
|
2451
|
-
#
|
|
2452
|
-
# @param
|
|
2453
|
-
# @param participant_id participant ID
|
|
2490
|
+
# Get conversation draft reply
|
|
2491
|
+
#
|
|
2492
|
+
# @param email_id
|
|
2454
2493
|
# @param [Hash] opts the optional parameters
|
|
2455
|
-
# @
|
|
2456
|
-
|
|
2457
|
-
def patch_conversation_id_participants_participant_id_with_http_info(conversation_id, participant_id, opts = {})
|
|
2494
|
+
# @return [Array<(EmailMessage, Fixnum, Hash)>] EmailMessage data, response status code and response headers
|
|
2495
|
+
def get_emails_email_id_messages_draft_with_http_info(email_id, opts = {})
|
|
2458
2496
|
if @api_client.config.debugging
|
|
2459
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2497
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_emails_email_id_messages_draft ..."
|
|
2460
2498
|
end
|
|
2461
2499
|
|
|
2462
|
-
# verify the required parameter '
|
|
2463
|
-
fail "Missing the required parameter '
|
|
2464
|
-
|
|
2465
|
-
# verify the required parameter 'participant_id' is set
|
|
2466
|
-
fail "Missing the required parameter 'participant_id' when calling patch_conversation_id_participants_participant_id" if participant_id.nil?
|
|
2500
|
+
# verify the required parameter 'email_id' is set
|
|
2501
|
+
fail "Missing the required parameter 'email_id' when calling get_emails_email_id_messages_draft" if email_id.nil?
|
|
2467
2502
|
|
|
2468
2503
|
# resource path
|
|
2469
|
-
path = "/api/v2/conversations/{
|
|
2504
|
+
path = "/api/v2/conversations/emails/{emailId}/messages/draft".sub('{format}','json').sub('{' + 'emailId' + '}', email_id.to_s)
|
|
2470
2505
|
|
|
2471
2506
|
# query parameters
|
|
2472
2507
|
query_params = {}
|
|
@@ -2486,54 +2521,50 @@ module PureCloud
|
|
|
2486
2521
|
form_params = {}
|
|
2487
2522
|
|
|
2488
2523
|
# http body (model)
|
|
2489
|
-
post_body =
|
|
2524
|
+
post_body = nil
|
|
2490
2525
|
|
|
2491
2526
|
|
|
2492
2527
|
auth_names = ['PureCloud Auth']
|
|
2493
|
-
data, status_code, headers = @api_client.call_api(:
|
|
2528
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
2494
2529
|
:header_params => header_params,
|
|
2495
2530
|
:query_params => query_params,
|
|
2496
2531
|
:form_params => form_params,
|
|
2497
2532
|
:body => post_body,
|
|
2498
|
-
:auth_names => auth_names
|
|
2533
|
+
:auth_names => auth_names,
|
|
2534
|
+
:return_type => 'EmailMessage')
|
|
2499
2535
|
if @api_client.config.debugging
|
|
2500
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2536
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_emails_email_id_messages_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2501
2537
|
end
|
|
2502
2538
|
return data, status_code, headers
|
|
2503
2539
|
end
|
|
2504
2540
|
|
|
2505
|
-
# Update
|
|
2541
|
+
# Update conversation draft reply
|
|
2506
2542
|
#
|
|
2507
|
-
# @param
|
|
2508
|
-
# @param participant_id participant ID
|
|
2543
|
+
# @param email_id
|
|
2509
2544
|
# @param [Hash] opts the optional parameters
|
|
2510
|
-
# @option opts [
|
|
2511
|
-
# @return [
|
|
2512
|
-
def
|
|
2513
|
-
|
|
2514
|
-
return
|
|
2545
|
+
# @option opts [EmailMessage] :body Draft
|
|
2546
|
+
# @return [EmailMessage]
|
|
2547
|
+
def put_emails_email_id_messages_draft(email_id, opts = {})
|
|
2548
|
+
data, status_code, headers = put_emails_email_id_messages_draft_with_http_info(email_id, opts)
|
|
2549
|
+
return data
|
|
2515
2550
|
end
|
|
2516
2551
|
|
|
2517
|
-
# Update
|
|
2552
|
+
# Update conversation draft reply
|
|
2518
2553
|
#
|
|
2519
|
-
# @param
|
|
2520
|
-
# @param participant_id participant ID
|
|
2554
|
+
# @param email_id
|
|
2521
2555
|
# @param [Hash] opts the optional parameters
|
|
2522
|
-
# @option opts [
|
|
2523
|
-
# @return [Array<(
|
|
2524
|
-
def
|
|
2556
|
+
# @option opts [EmailMessage] :body Draft
|
|
2557
|
+
# @return [Array<(EmailMessage, Fixnum, Hash)>] EmailMessage data, response status code and response headers
|
|
2558
|
+
def put_emails_email_id_messages_draft_with_http_info(email_id, opts = {})
|
|
2525
2559
|
if @api_client.config.debugging
|
|
2526
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2560
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#put_emails_email_id_messages_draft ..."
|
|
2527
2561
|
end
|
|
2528
2562
|
|
|
2529
|
-
# verify the required parameter '
|
|
2530
|
-
fail "Missing the required parameter '
|
|
2531
|
-
|
|
2532
|
-
# verify the required parameter 'participant_id' is set
|
|
2533
|
-
fail "Missing the required parameter 'participant_id' when calling patch_conversation_id_participants_participant_id_attributes" if participant_id.nil?
|
|
2563
|
+
# verify the required parameter 'email_id' is set
|
|
2564
|
+
fail "Missing the required parameter 'email_id' when calling put_emails_email_id_messages_draft" if email_id.nil?
|
|
2534
2565
|
|
|
2535
2566
|
# resource path
|
|
2536
|
-
path = "/api/v2/conversations/{
|
|
2567
|
+
path = "/api/v2/conversations/emails/{emailId}/messages/draft".sub('{format}','json').sub('{' + 'emailId' + '}', email_id.to_s)
|
|
2537
2568
|
|
|
2538
2569
|
# query parameters
|
|
2539
2570
|
query_params = {}
|
|
@@ -2557,640 +2588,52 @@ module PureCloud
|
|
|
2557
2588
|
|
|
2558
2589
|
|
|
2559
2590
|
auth_names = ['PureCloud Auth']
|
|
2560
|
-
data, status_code, headers = @api_client.call_api(:
|
|
2591
|
+
data, status_code, headers = @api_client.call_api(:PUT, path,
|
|
2561
2592
|
:header_params => header_params,
|
|
2562
2593
|
:query_params => query_params,
|
|
2563
2594
|
:form_params => form_params,
|
|
2564
2595
|
:body => post_body,
|
|
2565
|
-
:auth_names => auth_names
|
|
2596
|
+
:auth_names => auth_names,
|
|
2597
|
+
:return_type => 'EmailMessage')
|
|
2566
2598
|
if @api_client.config.debugging
|
|
2567
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2599
|
+
@api_client.config.logger.debug "API called: ConversationsApi#put_emails_email_id_messages_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2568
2600
|
end
|
|
2569
2601
|
return data, status_code, headers
|
|
2570
2602
|
end
|
|
2571
2603
|
|
|
2572
|
-
#
|
|
2604
|
+
# Delete attachment from draft
|
|
2573
2605
|
#
|
|
2574
|
-
# @param
|
|
2575
|
-
# @param
|
|
2606
|
+
# @param email_id
|
|
2607
|
+
# @param attachment_id
|
|
2576
2608
|
# @param [Hash] opts the optional parameters
|
|
2577
|
-
# @
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
return nil
|
|
2609
|
+
# @return [String]
|
|
2610
|
+
def delete_emails_email_id_messages_draft_attachments_attachment_id(email_id, attachment_id, opts = {})
|
|
2611
|
+
data, status_code, headers = delete_emails_email_id_messages_draft_attachments_attachment_id_with_http_info(email_id, attachment_id, opts)
|
|
2612
|
+
return data
|
|
2582
2613
|
end
|
|
2583
2614
|
|
|
2584
|
-
#
|
|
2615
|
+
# Delete attachment from draft
|
|
2585
2616
|
#
|
|
2586
|
-
# @param
|
|
2587
|
-
# @param
|
|
2617
|
+
# @param email_id
|
|
2618
|
+
# @param attachment_id
|
|
2588
2619
|
# @param [Hash] opts the optional parameters
|
|
2589
|
-
# @
|
|
2590
|
-
|
|
2591
|
-
def post_conversation_id_participants_participant_id_callbacks_with_http_info(conversation_id, participant_id, opts = {})
|
|
2620
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
2621
|
+
def delete_emails_email_id_messages_draft_attachments_attachment_id_with_http_info(email_id, attachment_id, opts = {})
|
|
2592
2622
|
if @api_client.config.debugging
|
|
2593
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2623
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#delete_emails_email_id_messages_draft_attachments_attachment_id ..."
|
|
2594
2624
|
end
|
|
2595
2625
|
|
|
2596
|
-
# verify the required parameter '
|
|
2597
|
-
fail "Missing the required parameter '
|
|
2598
|
-
|
|
2599
|
-
# verify the required parameter 'participant_id' is set
|
|
2600
|
-
fail "Missing the required parameter 'participant_id' when calling post_conversation_id_participants_participant_id_callbacks" if participant_id.nil?
|
|
2601
|
-
|
|
2602
|
-
# resource path
|
|
2603
|
-
path = "/api/v2/conversations/{conversationId}/participants/{participantId}/callbacks".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
2604
|
-
|
|
2605
|
-
# query parameters
|
|
2606
|
-
query_params = {}
|
|
2607
|
-
|
|
2608
|
-
# header parameters
|
|
2609
|
-
header_params = {}
|
|
2610
|
-
|
|
2611
|
-
# HTTP header 'Accept' (if needed)
|
|
2612
|
-
_header_accept = ['application/json']
|
|
2613
|
-
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
2614
|
-
|
|
2615
|
-
# HTTP header 'Content-Type'
|
|
2616
|
-
_header_content_type = ['application/json']
|
|
2617
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
2618
|
-
|
|
2619
|
-
# form parameters
|
|
2620
|
-
form_params = {}
|
|
2621
|
-
|
|
2622
|
-
# http body (model)
|
|
2623
|
-
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
auth_names = ['PureCloud Auth']
|
|
2627
|
-
data, status_code, headers = @api_client.call_api(:POST, path,
|
|
2628
|
-
:header_params => header_params,
|
|
2629
|
-
:query_params => query_params,
|
|
2630
|
-
:form_params => form_params,
|
|
2631
|
-
:body => post_body,
|
|
2632
|
-
:auth_names => auth_names)
|
|
2633
|
-
if @api_client.config.debugging
|
|
2634
|
-
@api_client.config.logger.debug "API called: ConversationsApi#post_conversation_id_participants_participant_id_callbacks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2635
|
-
end
|
|
2636
|
-
return data, status_code, headers
|
|
2637
|
-
end
|
|
2638
|
-
|
|
2639
|
-
# Replace this participant with the specified user and/or address
|
|
2640
|
-
#
|
|
2641
|
-
# @param conversation_id conversation ID
|
|
2642
|
-
# @param participant_id participant ID
|
|
2643
|
-
# @param [Hash] opts the optional parameters
|
|
2644
|
-
# @option opts [TransferRequest] :body
|
|
2645
|
-
# @return [nil]
|
|
2646
|
-
def post_conversation_id_participants_participant_id_replace(conversation_id, participant_id, opts = {})
|
|
2647
|
-
post_conversation_id_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts)
|
|
2648
|
-
return nil
|
|
2649
|
-
end
|
|
2650
|
-
|
|
2651
|
-
# Replace this participant with the specified user and/or address
|
|
2652
|
-
#
|
|
2653
|
-
# @param conversation_id conversation ID
|
|
2654
|
-
# @param participant_id participant ID
|
|
2655
|
-
# @param [Hash] opts the optional parameters
|
|
2656
|
-
# @option opts [TransferRequest] :body
|
|
2657
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
2658
|
-
def post_conversation_id_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts = {})
|
|
2659
|
-
if @api_client.config.debugging
|
|
2660
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#post_conversation_id_participants_participant_id_replace ..."
|
|
2661
|
-
end
|
|
2662
|
-
|
|
2663
|
-
# verify the required parameter 'conversation_id' is set
|
|
2664
|
-
fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_participants_participant_id_replace" if conversation_id.nil?
|
|
2665
|
-
|
|
2666
|
-
# verify the required parameter 'participant_id' is set
|
|
2667
|
-
fail "Missing the required parameter 'participant_id' when calling post_conversation_id_participants_participant_id_replace" if participant_id.nil?
|
|
2668
|
-
|
|
2669
|
-
# resource path
|
|
2670
|
-
path = "/api/v2/conversations/{conversationId}/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
2671
|
-
|
|
2672
|
-
# query parameters
|
|
2673
|
-
query_params = {}
|
|
2674
|
-
|
|
2675
|
-
# header parameters
|
|
2676
|
-
header_params = {}
|
|
2677
|
-
|
|
2678
|
-
# HTTP header 'Accept' (if needed)
|
|
2679
|
-
_header_accept = ['application/json']
|
|
2680
|
-
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
2681
|
-
|
|
2682
|
-
# HTTP header 'Content-Type'
|
|
2683
|
-
_header_content_type = ['application/json']
|
|
2684
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
2685
|
-
|
|
2686
|
-
# form parameters
|
|
2687
|
-
form_params = {}
|
|
2688
|
-
|
|
2689
|
-
# http body (model)
|
|
2690
|
-
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
auth_names = ['PureCloud Auth']
|
|
2694
|
-
data, status_code, headers = @api_client.call_api(:POST, path,
|
|
2695
|
-
:header_params => header_params,
|
|
2696
|
-
:query_params => query_params,
|
|
2697
|
-
:form_params => form_params,
|
|
2698
|
-
:body => post_body,
|
|
2699
|
-
:auth_names => auth_names)
|
|
2700
|
-
if @api_client.config.debugging
|
|
2701
|
-
@api_client.config.logger.debug "API called: ConversationsApi#post_conversation_id_participants_participant_id_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2702
|
-
end
|
|
2703
|
-
return data, status_code, headers
|
|
2704
|
-
end
|
|
2705
|
-
|
|
2706
|
-
# Get the wrap-up for this conversation participant.
|
|
2707
|
-
#
|
|
2708
|
-
# @param conversation_id conversation ID
|
|
2709
|
-
# @param participant_id participant ID
|
|
2710
|
-
# @param [Hash] opts the optional parameters
|
|
2711
|
-
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
2712
|
-
# @return [WrapupCode]
|
|
2713
|
-
def get_conversation_id_participants_participant_id_wrapup(conversation_id, participant_id, opts = {})
|
|
2714
|
-
data, status_code, headers = get_conversation_id_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts)
|
|
2715
|
-
return data
|
|
2716
|
-
end
|
|
2717
|
-
|
|
2718
|
-
# Get the wrap-up for this conversation participant.
|
|
2719
|
-
#
|
|
2720
|
-
# @param conversation_id conversation ID
|
|
2721
|
-
# @param participant_id participant ID
|
|
2722
|
-
# @param [Hash] opts the optional parameters
|
|
2723
|
-
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
2724
|
-
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
2725
|
-
def get_conversation_id_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts = {})
|
|
2726
|
-
if @api_client.config.debugging
|
|
2727
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id_participants_participant_id_wrapup ..."
|
|
2728
|
-
end
|
|
2729
|
-
|
|
2730
|
-
# verify the required parameter 'conversation_id' is set
|
|
2731
|
-
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_participants_participant_id_wrapup" if conversation_id.nil?
|
|
2732
|
-
|
|
2733
|
-
# verify the required parameter 'participant_id' is set
|
|
2734
|
-
fail "Missing the required parameter 'participant_id' when calling get_conversation_id_participants_participant_id_wrapup" if participant_id.nil?
|
|
2735
|
-
|
|
2736
|
-
# resource path
|
|
2737
|
-
path = "/api/v2/conversations/{conversationId}/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
2738
|
-
|
|
2739
|
-
# query parameters
|
|
2740
|
-
query_params = {}
|
|
2741
|
-
query_params[:'provisional'] = opts[:'provisional'] if opts[:'provisional']
|
|
2742
|
-
|
|
2743
|
-
# header parameters
|
|
2744
|
-
header_params = {}
|
|
2745
|
-
|
|
2746
|
-
# HTTP header 'Accept' (if needed)
|
|
2747
|
-
_header_accept = ['application/json']
|
|
2748
|
-
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
2749
|
-
|
|
2750
|
-
# HTTP header 'Content-Type'
|
|
2751
|
-
_header_content_type = ['application/json']
|
|
2752
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
2753
|
-
|
|
2754
|
-
# form parameters
|
|
2755
|
-
form_params = {}
|
|
2756
|
-
|
|
2757
|
-
# http body (model)
|
|
2758
|
-
post_body = nil
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
auth_names = ['PureCloud Auth']
|
|
2762
|
-
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
2763
|
-
:header_params => header_params,
|
|
2764
|
-
:query_params => query_params,
|
|
2765
|
-
:form_params => form_params,
|
|
2766
|
-
:body => post_body,
|
|
2767
|
-
:auth_names => auth_names,
|
|
2768
|
-
:return_type => 'WrapupCode')
|
|
2769
|
-
if @api_client.config.debugging
|
|
2770
|
-
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id_participants_participant_id_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2771
|
-
end
|
|
2772
|
-
return data, status_code, headers
|
|
2773
|
-
end
|
|
2774
|
-
|
|
2775
|
-
# Get list of wrapup codes for this conversation participant
|
|
2776
|
-
#
|
|
2777
|
-
# @param conversation_id conversation ID
|
|
2778
|
-
# @param participant_id participant ID
|
|
2779
|
-
# @param [Hash] opts the optional parameters
|
|
2780
|
-
# @return [WrapupCode]
|
|
2781
|
-
def get_conversation_id_participants_participant_id_wrapupcodes(conversation_id, participant_id, opts = {})
|
|
2782
|
-
data, status_code, headers = get_conversation_id_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts)
|
|
2783
|
-
return data
|
|
2784
|
-
end
|
|
2785
|
-
|
|
2786
|
-
# Get list of wrapup codes for this conversation participant
|
|
2787
|
-
#
|
|
2788
|
-
# @param conversation_id conversation ID
|
|
2789
|
-
# @param participant_id participant ID
|
|
2790
|
-
# @param [Hash] opts the optional parameters
|
|
2791
|
-
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
2792
|
-
def get_conversation_id_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts = {})
|
|
2793
|
-
if @api_client.config.debugging
|
|
2794
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id_participants_participant_id_wrapupcodes ..."
|
|
2795
|
-
end
|
|
2796
|
-
|
|
2797
|
-
# verify the required parameter 'conversation_id' is set
|
|
2798
|
-
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_participants_participant_id_wrapupcodes" if conversation_id.nil?
|
|
2799
|
-
|
|
2800
|
-
# verify the required parameter 'participant_id' is set
|
|
2801
|
-
fail "Missing the required parameter 'participant_id' when calling get_conversation_id_participants_participant_id_wrapupcodes" if participant_id.nil?
|
|
2802
|
-
|
|
2803
|
-
# resource path
|
|
2804
|
-
path = "/api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
2805
|
-
|
|
2806
|
-
# query parameters
|
|
2807
|
-
query_params = {}
|
|
2808
|
-
|
|
2809
|
-
# header parameters
|
|
2810
|
-
header_params = {}
|
|
2811
|
-
|
|
2812
|
-
# HTTP header 'Accept' (if needed)
|
|
2813
|
-
_header_accept = ['application/json']
|
|
2814
|
-
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
2815
|
-
|
|
2816
|
-
# HTTP header 'Content-Type'
|
|
2817
|
-
_header_content_type = ['application/json']
|
|
2818
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
2819
|
-
|
|
2820
|
-
# form parameters
|
|
2821
|
-
form_params = {}
|
|
2822
|
-
|
|
2823
|
-
# http body (model)
|
|
2824
|
-
post_body = nil
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
auth_names = ['PureCloud Auth']
|
|
2828
|
-
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
2829
|
-
:header_params => header_params,
|
|
2830
|
-
:query_params => query_params,
|
|
2831
|
-
:form_params => form_params,
|
|
2832
|
-
:body => post_body,
|
|
2833
|
-
:auth_names => auth_names,
|
|
2834
|
-
:return_type => 'WrapupCode')
|
|
2835
|
-
if @api_client.config.debugging
|
|
2836
|
-
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id_participants_participant_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2837
|
-
end
|
|
2838
|
-
return data, status_code, headers
|
|
2839
|
-
end
|
|
2840
|
-
|
|
2841
|
-
# Get conversations
|
|
2842
|
-
#
|
|
2843
|
-
# @param attachment_id attachment ID
|
|
2844
|
-
# @param message_id message ID
|
|
2845
|
-
# @param conversation_id conversation ID
|
|
2846
|
-
# @param participant_id participant ID
|
|
2847
|
-
# @param [Hash] opts the optional parameters
|
|
2848
|
-
# @return [EmailConversationEntityListing]
|
|
2849
|
-
def get_emails(attachment_id, message_id, conversation_id, participant_id, opts = {})
|
|
2850
|
-
data, status_code, headers = get_emails_with_http_info(attachment_id, message_id, conversation_id, participant_id, opts)
|
|
2851
|
-
return data
|
|
2852
|
-
end
|
|
2853
|
-
|
|
2854
|
-
# Get conversations
|
|
2855
|
-
#
|
|
2856
|
-
# @param attachment_id attachment ID
|
|
2857
|
-
# @param message_id message ID
|
|
2858
|
-
# @param conversation_id conversation ID
|
|
2859
|
-
# @param participant_id participant ID
|
|
2860
|
-
# @param [Hash] opts the optional parameters
|
|
2861
|
-
# @return [Array<(EmailConversationEntityListing, Fixnum, Hash)>] EmailConversationEntityListing data, response status code and response headers
|
|
2862
|
-
def get_emails_with_http_info(attachment_id, message_id, conversation_id, participant_id, opts = {})
|
|
2863
|
-
if @api_client.config.debugging
|
|
2864
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#get_emails ..."
|
|
2865
|
-
end
|
|
2866
|
-
|
|
2867
|
-
# verify the required parameter 'attachment_id' is set
|
|
2868
|
-
fail "Missing the required parameter 'attachment_id' when calling get_emails" if attachment_id.nil?
|
|
2869
|
-
|
|
2870
|
-
# verify the required parameter 'message_id' is set
|
|
2871
|
-
fail "Missing the required parameter 'message_id' when calling get_emails" if message_id.nil?
|
|
2872
|
-
|
|
2873
|
-
# verify the required parameter 'conversation_id' is set
|
|
2874
|
-
fail "Missing the required parameter 'conversation_id' when calling get_emails" if conversation_id.nil?
|
|
2875
|
-
|
|
2876
|
-
# verify the required parameter 'participant_id' is set
|
|
2877
|
-
fail "Missing the required parameter 'participant_id' when calling get_emails" if participant_id.nil?
|
|
2878
|
-
|
|
2879
|
-
# resource path
|
|
2880
|
-
path = "/api/v2/emails".sub('{format}','json').sub('{' + 'attachmentId' + '}', attachment_id.to_s).sub('{' + 'messageId' + '}', message_id.to_s).sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
2881
|
-
|
|
2882
|
-
# query parameters
|
|
2883
|
-
query_params = {}
|
|
2884
|
-
|
|
2885
|
-
# header parameters
|
|
2886
|
-
header_params = {}
|
|
2887
|
-
|
|
2888
|
-
# HTTP header 'Accept' (if needed)
|
|
2889
|
-
_header_accept = ['application/json']
|
|
2890
|
-
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
2891
|
-
|
|
2892
|
-
# HTTP header 'Content-Type'
|
|
2893
|
-
_header_content_type = ['application/json']
|
|
2894
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
2895
|
-
|
|
2896
|
-
# form parameters
|
|
2897
|
-
form_params = {}
|
|
2898
|
-
|
|
2899
|
-
# http body (model)
|
|
2900
|
-
post_body = nil
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
auth_names = ['PureCloud Auth']
|
|
2904
|
-
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
2905
|
-
:header_params => header_params,
|
|
2906
|
-
:query_params => query_params,
|
|
2907
|
-
:form_params => form_params,
|
|
2908
|
-
:body => post_body,
|
|
2909
|
-
:auth_names => auth_names,
|
|
2910
|
-
:return_type => 'EmailConversationEntityListing')
|
|
2911
|
-
if @api_client.config.debugging
|
|
2912
|
-
@api_client.config.logger.debug "API called: ConversationsApi#get_emails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2913
|
-
end
|
|
2914
|
-
return data, status_code, headers
|
|
2915
|
-
end
|
|
2916
|
-
|
|
2917
|
-
# Update conversation participant
|
|
2918
|
-
#
|
|
2919
|
-
# @param attachment_id attachment ID
|
|
2920
|
-
# @param message_id message ID
|
|
2921
|
-
# @param conversation_id conversation ID
|
|
2922
|
-
# @param participant_id participant ID
|
|
2923
|
-
# @param [Hash] opts the optional parameters
|
|
2924
|
-
# @option opts [MediaParticipantRequest] :body
|
|
2925
|
-
# @return [nil]
|
|
2926
|
-
def patch_participants_participant_id_2(attachment_id, message_id, conversation_id, participant_id, opts = {})
|
|
2927
|
-
patch_participants_participant_id_2_with_http_info(attachment_id, message_id, conversation_id, participant_id, opts)
|
|
2928
|
-
return nil
|
|
2929
|
-
end
|
|
2930
|
-
|
|
2931
|
-
# Update conversation participant
|
|
2932
|
-
#
|
|
2933
|
-
# @param attachment_id attachment ID
|
|
2934
|
-
# @param message_id message ID
|
|
2935
|
-
# @param conversation_id conversation ID
|
|
2936
|
-
# @param participant_id participant ID
|
|
2937
|
-
# @param [Hash] opts the optional parameters
|
|
2938
|
-
# @option opts [MediaParticipantRequest] :body
|
|
2939
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
2940
|
-
def patch_participants_participant_id_2_with_http_info(attachment_id, message_id, conversation_id, participant_id, opts = {})
|
|
2941
|
-
if @api_client.config.debugging
|
|
2942
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_participants_participant_id_2 ..."
|
|
2943
|
-
end
|
|
2944
|
-
|
|
2945
|
-
# verify the required parameter 'attachment_id' is set
|
|
2946
|
-
fail "Missing the required parameter 'attachment_id' when calling patch_participants_participant_id_2" if attachment_id.nil?
|
|
2947
|
-
|
|
2948
|
-
# verify the required parameter 'message_id' is set
|
|
2949
|
-
fail "Missing the required parameter 'message_id' when calling patch_participants_participant_id_2" if message_id.nil?
|
|
2950
|
-
|
|
2951
|
-
# verify the required parameter 'conversation_id' is set
|
|
2952
|
-
fail "Missing the required parameter 'conversation_id' when calling patch_participants_participant_id_2" if conversation_id.nil?
|
|
2953
|
-
|
|
2954
|
-
# verify the required parameter 'participant_id' is set
|
|
2955
|
-
fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id_2" if participant_id.nil?
|
|
2956
|
-
|
|
2957
|
-
# resource path
|
|
2958
|
-
path = "/api/v2/emails/participants/{participantId}".sub('{format}','json').sub('{' + 'attachmentId' + '}', attachment_id.to_s).sub('{' + 'messageId' + '}', message_id.to_s).sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
2959
|
-
|
|
2960
|
-
# query parameters
|
|
2961
|
-
query_params = {}
|
|
2962
|
-
|
|
2963
|
-
# header parameters
|
|
2964
|
-
header_params = {}
|
|
2965
|
-
|
|
2966
|
-
# HTTP header 'Accept' (if needed)
|
|
2967
|
-
_header_accept = ['application/json']
|
|
2968
|
-
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
2969
|
-
|
|
2970
|
-
# HTTP header 'Content-Type'
|
|
2971
|
-
_header_content_type = ['application/json']
|
|
2972
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
2973
|
-
|
|
2974
|
-
# form parameters
|
|
2975
|
-
form_params = {}
|
|
2976
|
-
|
|
2977
|
-
# http body (model)
|
|
2978
|
-
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
auth_names = ['PureCloud Auth']
|
|
2982
|
-
data, status_code, headers = @api_client.call_api(:PATCH, path,
|
|
2983
|
-
:header_params => header_params,
|
|
2984
|
-
:query_params => query_params,
|
|
2985
|
-
:form_params => form_params,
|
|
2986
|
-
:body => post_body,
|
|
2987
|
-
:auth_names => auth_names)
|
|
2988
|
-
if @api_client.config.debugging
|
|
2989
|
-
@api_client.config.logger.debug "API called: ConversationsApi#patch_participants_participant_id_2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2990
|
-
end
|
|
2991
|
-
return data, status_code, headers
|
|
2992
|
-
end
|
|
2993
|
-
|
|
2994
|
-
# Update the attributes on a conversation participant.
|
|
2995
|
-
#
|
|
2996
|
-
# @param attachment_id attachment ID
|
|
2997
|
-
# @param message_id message ID
|
|
2998
|
-
# @param conversation_id conversation ID
|
|
2999
|
-
# @param participant_id participant ID
|
|
3000
|
-
# @param [Hash] opts the optional parameters
|
|
3001
|
-
# @option opts [ParticipantAttributes] :body
|
|
3002
|
-
# @return [nil]
|
|
3003
|
-
def patch_participants_participant_id_attributes_2(attachment_id, message_id, conversation_id, participant_id, opts = {})
|
|
3004
|
-
patch_participants_participant_id_attributes_2_with_http_info(attachment_id, message_id, conversation_id, participant_id, opts)
|
|
3005
|
-
return nil
|
|
3006
|
-
end
|
|
3007
|
-
|
|
3008
|
-
# Update the attributes on a conversation participant.
|
|
3009
|
-
#
|
|
3010
|
-
# @param attachment_id attachment ID
|
|
3011
|
-
# @param message_id message ID
|
|
3012
|
-
# @param conversation_id conversation ID
|
|
3013
|
-
# @param participant_id participant ID
|
|
3014
|
-
# @param [Hash] opts the optional parameters
|
|
3015
|
-
# @option opts [ParticipantAttributes] :body
|
|
3016
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
3017
|
-
def patch_participants_participant_id_attributes_2_with_http_info(attachment_id, message_id, conversation_id, participant_id, opts = {})
|
|
3018
|
-
if @api_client.config.debugging
|
|
3019
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_participants_participant_id_attributes_2 ..."
|
|
3020
|
-
end
|
|
3021
|
-
|
|
3022
|
-
# verify the required parameter 'attachment_id' is set
|
|
3023
|
-
fail "Missing the required parameter 'attachment_id' when calling patch_participants_participant_id_attributes_2" if attachment_id.nil?
|
|
3024
|
-
|
|
3025
|
-
# verify the required parameter 'message_id' is set
|
|
3026
|
-
fail "Missing the required parameter 'message_id' when calling patch_participants_participant_id_attributes_2" if message_id.nil?
|
|
3027
|
-
|
|
3028
|
-
# verify the required parameter 'conversation_id' is set
|
|
3029
|
-
fail "Missing the required parameter 'conversation_id' when calling patch_participants_participant_id_attributes_2" if conversation_id.nil?
|
|
3030
|
-
|
|
3031
|
-
# verify the required parameter 'participant_id' is set
|
|
3032
|
-
fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id_attributes_2" if participant_id.nil?
|
|
3033
|
-
|
|
3034
|
-
# resource path
|
|
3035
|
-
path = "/api/v2/emails/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'attachmentId' + '}', attachment_id.to_s).sub('{' + 'messageId' + '}', message_id.to_s).sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
3036
|
-
|
|
3037
|
-
# query parameters
|
|
3038
|
-
query_params = {}
|
|
3039
|
-
|
|
3040
|
-
# header parameters
|
|
3041
|
-
header_params = {}
|
|
3042
|
-
|
|
3043
|
-
# HTTP header 'Accept' (if needed)
|
|
3044
|
-
_header_accept = ['application/json']
|
|
3045
|
-
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
3046
|
-
|
|
3047
|
-
# HTTP header 'Content-Type'
|
|
3048
|
-
_header_content_type = ['application/json']
|
|
3049
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
3050
|
-
|
|
3051
|
-
# form parameters
|
|
3052
|
-
form_params = {}
|
|
3053
|
-
|
|
3054
|
-
# http body (model)
|
|
3055
|
-
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
auth_names = ['PureCloud Auth']
|
|
3059
|
-
data, status_code, headers = @api_client.call_api(:PATCH, path,
|
|
3060
|
-
:header_params => header_params,
|
|
3061
|
-
:query_params => query_params,
|
|
3062
|
-
:form_params => form_params,
|
|
3063
|
-
:body => post_body,
|
|
3064
|
-
:auth_names => auth_names)
|
|
3065
|
-
if @api_client.config.debugging
|
|
3066
|
-
@api_client.config.logger.debug "API called: ConversationsApi#patch_participants_participant_id_attributes_2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3067
|
-
end
|
|
3068
|
-
return data, status_code, headers
|
|
3069
|
-
end
|
|
3070
|
-
|
|
3071
|
-
# Replace this participant with the specified user and/or address
|
|
3072
|
-
#
|
|
3073
|
-
# @param attachment_id attachment ID
|
|
3074
|
-
# @param message_id message ID
|
|
3075
|
-
# @param conversation_id conversation ID
|
|
3076
|
-
# @param participant_id participant ID
|
|
3077
|
-
# @param [Hash] opts the optional parameters
|
|
3078
|
-
# @option opts [TransferRequest] :body
|
|
3079
|
-
# @return [nil]
|
|
3080
|
-
def post_participants_participant_id_replace_2(attachment_id, message_id, conversation_id, participant_id, opts = {})
|
|
3081
|
-
post_participants_participant_id_replace_2_with_http_info(attachment_id, message_id, conversation_id, participant_id, opts)
|
|
3082
|
-
return nil
|
|
3083
|
-
end
|
|
3084
|
-
|
|
3085
|
-
# Replace this participant with the specified user and/or address
|
|
3086
|
-
#
|
|
3087
|
-
# @param attachment_id attachment ID
|
|
3088
|
-
# @param message_id message ID
|
|
3089
|
-
# @param conversation_id conversation ID
|
|
3090
|
-
# @param participant_id participant ID
|
|
3091
|
-
# @param [Hash] opts the optional parameters
|
|
3092
|
-
# @option opts [TransferRequest] :body
|
|
3093
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
3094
|
-
def post_participants_participant_id_replace_2_with_http_info(attachment_id, message_id, conversation_id, participant_id, opts = {})
|
|
3095
|
-
if @api_client.config.debugging
|
|
3096
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#post_participants_participant_id_replace_2 ..."
|
|
3097
|
-
end
|
|
3098
|
-
|
|
3099
|
-
# verify the required parameter 'attachment_id' is set
|
|
3100
|
-
fail "Missing the required parameter 'attachment_id' when calling post_participants_participant_id_replace_2" if attachment_id.nil?
|
|
3101
|
-
|
|
3102
|
-
# verify the required parameter 'message_id' is set
|
|
3103
|
-
fail "Missing the required parameter 'message_id' when calling post_participants_participant_id_replace_2" if message_id.nil?
|
|
3104
|
-
|
|
3105
|
-
# verify the required parameter 'conversation_id' is set
|
|
3106
|
-
fail "Missing the required parameter 'conversation_id' when calling post_participants_participant_id_replace_2" if conversation_id.nil?
|
|
3107
|
-
|
|
3108
|
-
# verify the required parameter 'participant_id' is set
|
|
3109
|
-
fail "Missing the required parameter 'participant_id' when calling post_participants_participant_id_replace_2" if participant_id.nil?
|
|
3110
|
-
|
|
3111
|
-
# resource path
|
|
3112
|
-
path = "/api/v2/emails/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'attachmentId' + '}', attachment_id.to_s).sub('{' + 'messageId' + '}', message_id.to_s).sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
3113
|
-
|
|
3114
|
-
# query parameters
|
|
3115
|
-
query_params = {}
|
|
3116
|
-
|
|
3117
|
-
# header parameters
|
|
3118
|
-
header_params = {}
|
|
3119
|
-
|
|
3120
|
-
# HTTP header 'Accept' (if needed)
|
|
3121
|
-
_header_accept = ['application/json']
|
|
3122
|
-
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
3123
|
-
|
|
3124
|
-
# HTTP header 'Content-Type'
|
|
3125
|
-
_header_content_type = ['application/json']
|
|
3126
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
3127
|
-
|
|
3128
|
-
# form parameters
|
|
3129
|
-
form_params = {}
|
|
3130
|
-
|
|
3131
|
-
# http body (model)
|
|
3132
|
-
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
auth_names = ['PureCloud Auth']
|
|
3136
|
-
data, status_code, headers = @api_client.call_api(:POST, path,
|
|
3137
|
-
:header_params => header_params,
|
|
3138
|
-
:query_params => query_params,
|
|
3139
|
-
:form_params => form_params,
|
|
3140
|
-
:body => post_body,
|
|
3141
|
-
:auth_names => auth_names)
|
|
3142
|
-
if @api_client.config.debugging
|
|
3143
|
-
@api_client.config.logger.debug "API called: ConversationsApi#post_participants_participant_id_replace_2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3144
|
-
end
|
|
3145
|
-
return data, status_code, headers
|
|
3146
|
-
end
|
|
3147
|
-
|
|
3148
|
-
# Get the wrap-up for this conversation participant.
|
|
3149
|
-
#
|
|
3150
|
-
# @param attachment_id attachment ID
|
|
3151
|
-
# @param message_id message ID
|
|
3152
|
-
# @param conversation_id conversation ID
|
|
3153
|
-
# @param participant_id participant ID
|
|
3154
|
-
# @param [Hash] opts the optional parameters
|
|
3155
|
-
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
3156
|
-
# @return [WrapupCode]
|
|
3157
|
-
def get_participants_participant_id_wrapup_2(attachment_id, message_id, conversation_id, participant_id, opts = {})
|
|
3158
|
-
data, status_code, headers = get_participants_participant_id_wrapup_2_with_http_info(attachment_id, message_id, conversation_id, participant_id, opts)
|
|
3159
|
-
return data
|
|
3160
|
-
end
|
|
3161
|
-
|
|
3162
|
-
# Get the wrap-up for this conversation participant.
|
|
3163
|
-
#
|
|
3164
|
-
# @param attachment_id attachment ID
|
|
3165
|
-
# @param message_id message ID
|
|
3166
|
-
# @param conversation_id conversation ID
|
|
3167
|
-
# @param participant_id participant ID
|
|
3168
|
-
# @param [Hash] opts the optional parameters
|
|
3169
|
-
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
3170
|
-
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
3171
|
-
def get_participants_participant_id_wrapup_2_with_http_info(attachment_id, message_id, conversation_id, participant_id, opts = {})
|
|
3172
|
-
if @api_client.config.debugging
|
|
3173
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#get_participants_participant_id_wrapup_2 ..."
|
|
3174
|
-
end
|
|
2626
|
+
# verify the required parameter 'email_id' is set
|
|
2627
|
+
fail "Missing the required parameter 'email_id' when calling delete_emails_email_id_messages_draft_attachments_attachment_id" if email_id.nil?
|
|
3175
2628
|
|
|
3176
2629
|
# verify the required parameter 'attachment_id' is set
|
|
3177
|
-
fail "Missing the required parameter 'attachment_id' when calling
|
|
3178
|
-
|
|
3179
|
-
# verify the required parameter 'message_id' is set
|
|
3180
|
-
fail "Missing the required parameter 'message_id' when calling get_participants_participant_id_wrapup_2" if message_id.nil?
|
|
3181
|
-
|
|
3182
|
-
# verify the required parameter 'conversation_id' is set
|
|
3183
|
-
fail "Missing the required parameter 'conversation_id' when calling get_participants_participant_id_wrapup_2" if conversation_id.nil?
|
|
3184
|
-
|
|
3185
|
-
# verify the required parameter 'participant_id' is set
|
|
3186
|
-
fail "Missing the required parameter 'participant_id' when calling get_participants_participant_id_wrapup_2" if participant_id.nil?
|
|
2630
|
+
fail "Missing the required parameter 'attachment_id' when calling delete_emails_email_id_messages_draft_attachments_attachment_id" if attachment_id.nil?
|
|
3187
2631
|
|
|
3188
2632
|
# resource path
|
|
3189
|
-
path = "/api/v2/emails/
|
|
2633
|
+
path = "/api/v2/conversations/emails/{emailId}/messages/draft/attachments/{attachmentId}".sub('{format}','json').sub('{' + 'emailId' + '}', email_id.to_s).sub('{' + 'attachmentId' + '}', attachment_id.to_s)
|
|
3190
2634
|
|
|
3191
2635
|
# query parameters
|
|
3192
2636
|
query_params = {}
|
|
3193
|
-
query_params[:'provisional'] = opts[:'provisional'] if opts[:'provisional']
|
|
3194
2637
|
|
|
3195
2638
|
# header parameters
|
|
3196
2639
|
header_params = {}
|
|
@@ -3211,59 +2654,49 @@ module PureCloud
|
|
|
3211
2654
|
|
|
3212
2655
|
|
|
3213
2656
|
auth_names = ['PureCloud Auth']
|
|
3214
|
-
data, status_code, headers = @api_client.call_api(:
|
|
2657
|
+
data, status_code, headers = @api_client.call_api(:DELETE, path,
|
|
3215
2658
|
:header_params => header_params,
|
|
3216
2659
|
:query_params => query_params,
|
|
3217
2660
|
:form_params => form_params,
|
|
3218
2661
|
:body => post_body,
|
|
3219
2662
|
:auth_names => auth_names,
|
|
3220
|
-
:return_type => '
|
|
2663
|
+
:return_type => 'String')
|
|
3221
2664
|
if @api_client.config.debugging
|
|
3222
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2665
|
+
@api_client.config.logger.debug "API called: ConversationsApi#delete_emails_email_id_messages_draft_attachments_attachment_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3223
2666
|
end
|
|
3224
2667
|
return data, status_code, headers
|
|
3225
2668
|
end
|
|
3226
2669
|
|
|
3227
|
-
# Get
|
|
2670
|
+
# Get conversation message
|
|
3228
2671
|
#
|
|
3229
|
-
# @param
|
|
3230
|
-
# @param message_id
|
|
3231
|
-
# @param conversation_id conversation ID
|
|
3232
|
-
# @param participant_id participant ID
|
|
2672
|
+
# @param email_id
|
|
2673
|
+
# @param message_id
|
|
3233
2674
|
# @param [Hash] opts the optional parameters
|
|
3234
|
-
# @return [
|
|
3235
|
-
def
|
|
3236
|
-
data, status_code, headers =
|
|
2675
|
+
# @return [EmailMessage]
|
|
2676
|
+
def get_emails_email_id_messages_message_id(email_id, message_id, opts = {})
|
|
2677
|
+
data, status_code, headers = get_emails_email_id_messages_message_id_with_http_info(email_id, message_id, opts)
|
|
3237
2678
|
return data
|
|
3238
2679
|
end
|
|
3239
2680
|
|
|
3240
|
-
# Get
|
|
2681
|
+
# Get conversation message
|
|
3241
2682
|
#
|
|
3242
|
-
# @param
|
|
3243
|
-
# @param message_id
|
|
3244
|
-
# @param conversation_id conversation ID
|
|
3245
|
-
# @param participant_id participant ID
|
|
2683
|
+
# @param email_id
|
|
2684
|
+
# @param message_id
|
|
3246
2685
|
# @param [Hash] opts the optional parameters
|
|
3247
|
-
# @return [Array<(
|
|
3248
|
-
def
|
|
2686
|
+
# @return [Array<(EmailMessage, Fixnum, Hash)>] EmailMessage data, response status code and response headers
|
|
2687
|
+
def get_emails_email_id_messages_message_id_with_http_info(email_id, message_id, opts = {})
|
|
3249
2688
|
if @api_client.config.debugging
|
|
3250
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2689
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_emails_email_id_messages_message_id ..."
|
|
3251
2690
|
end
|
|
3252
2691
|
|
|
3253
|
-
# verify the required parameter '
|
|
3254
|
-
fail "Missing the required parameter '
|
|
2692
|
+
# verify the required parameter 'email_id' is set
|
|
2693
|
+
fail "Missing the required parameter 'email_id' when calling get_emails_email_id_messages_message_id" if email_id.nil?
|
|
3255
2694
|
|
|
3256
2695
|
# verify the required parameter 'message_id' is set
|
|
3257
|
-
fail "Missing the required parameter 'message_id' when calling
|
|
3258
|
-
|
|
3259
|
-
# verify the required parameter 'conversation_id' is set
|
|
3260
|
-
fail "Missing the required parameter 'conversation_id' when calling get_participants_participant_id_wrapupcodes_2" if conversation_id.nil?
|
|
3261
|
-
|
|
3262
|
-
# verify the required parameter 'participant_id' is set
|
|
3263
|
-
fail "Missing the required parameter 'participant_id' when calling get_participants_participant_id_wrapupcodes_2" if participant_id.nil?
|
|
2696
|
+
fail "Missing the required parameter 'message_id' when calling get_emails_email_id_messages_message_id" if message_id.nil?
|
|
3264
2697
|
|
|
3265
2698
|
# resource path
|
|
3266
|
-
path = "/api/v2/emails/
|
|
2699
|
+
path = "/api/v2/conversations/emails/{emailId}/messages/{messageId}".sub('{format}','json').sub('{' + 'emailId' + '}', email_id.to_s).sub('{' + 'messageId' + '}', message_id.to_s)
|
|
3267
2700
|
|
|
3268
2701
|
# query parameters
|
|
3269
2702
|
query_params = {}
|
|
@@ -3293,53 +2726,45 @@ module PureCloud
|
|
|
3293
2726
|
:form_params => form_params,
|
|
3294
2727
|
:body => post_body,
|
|
3295
2728
|
:auth_names => auth_names,
|
|
3296
|
-
:return_type => '
|
|
2729
|
+
:return_type => 'EmailMessage')
|
|
3297
2730
|
if @api_client.config.debugging
|
|
3298
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2731
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_emails_email_id_messages_message_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3299
2732
|
end
|
|
3300
2733
|
return data, status_code, headers
|
|
3301
2734
|
end
|
|
3302
2735
|
|
|
3303
|
-
#
|
|
2736
|
+
# Update conversation participant
|
|
3304
2737
|
#
|
|
3305
|
-
# @param
|
|
3306
|
-
# @param
|
|
3307
|
-
# @param conversation_id conversation ID
|
|
3308
|
-
# @param participant_id participant ID
|
|
2738
|
+
# @param email_id
|
|
2739
|
+
# @param participant_id
|
|
3309
2740
|
# @param [Hash] opts the optional parameters
|
|
3310
|
-
# @
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
2741
|
+
# @option opts [MediaParticipantRequest] :body
|
|
2742
|
+
# @return [nil]
|
|
2743
|
+
def patch_emails_email_id_participants_participant_id(email_id, participant_id, opts = {})
|
|
2744
|
+
patch_emails_email_id_participants_participant_id_with_http_info(email_id, participant_id, opts)
|
|
2745
|
+
return nil
|
|
3314
2746
|
end
|
|
3315
2747
|
|
|
3316
|
-
#
|
|
2748
|
+
# Update conversation participant
|
|
3317
2749
|
#
|
|
3318
|
-
# @param
|
|
3319
|
-
# @param
|
|
3320
|
-
# @param conversation_id conversation ID
|
|
3321
|
-
# @param participant_id participant ID
|
|
2750
|
+
# @param email_id
|
|
2751
|
+
# @param participant_id
|
|
3322
2752
|
# @param [Hash] opts the optional parameters
|
|
3323
|
-
# @
|
|
3324
|
-
|
|
2753
|
+
# @option opts [MediaParticipantRequest] :body
|
|
2754
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
2755
|
+
def patch_emails_email_id_participants_participant_id_with_http_info(email_id, participant_id, opts = {})
|
|
3325
2756
|
if @api_client.config.debugging
|
|
3326
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2757
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_emails_email_id_participants_participant_id ..."
|
|
3327
2758
|
end
|
|
3328
2759
|
|
|
3329
|
-
# verify the required parameter '
|
|
3330
|
-
fail "Missing the required parameter '
|
|
3331
|
-
|
|
3332
|
-
# verify the required parameter 'message_id' is set
|
|
3333
|
-
fail "Missing the required parameter 'message_id' when calling get_conversation_id_3" if message_id.nil?
|
|
3334
|
-
|
|
3335
|
-
# verify the required parameter 'conversation_id' is set
|
|
3336
|
-
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_3" if conversation_id.nil?
|
|
2760
|
+
# verify the required parameter 'email_id' is set
|
|
2761
|
+
fail "Missing the required parameter 'email_id' when calling patch_emails_email_id_participants_participant_id" if email_id.nil?
|
|
3337
2762
|
|
|
3338
2763
|
# verify the required parameter 'participant_id' is set
|
|
3339
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
2764
|
+
fail "Missing the required parameter 'participant_id' when calling patch_emails_email_id_participants_participant_id" if participant_id.nil?
|
|
3340
2765
|
|
|
3341
2766
|
# resource path
|
|
3342
|
-
path = "/api/v2/emails/{
|
|
2767
|
+
path = "/api/v2/conversations/emails/{emailId}/participants/{participantId}".sub('{format}','json').sub('{' + 'emailId' + '}', email_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
3343
2768
|
|
|
3344
2769
|
# query parameters
|
|
3345
2770
|
query_params = {}
|
|
@@ -3359,63 +2784,54 @@ module PureCloud
|
|
|
3359
2784
|
form_params = {}
|
|
3360
2785
|
|
|
3361
2786
|
# http body (model)
|
|
3362
|
-
post_body =
|
|
2787
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
3363
2788
|
|
|
3364
2789
|
|
|
3365
2790
|
auth_names = ['PureCloud Auth']
|
|
3366
|
-
data, status_code, headers = @api_client.call_api(:
|
|
2791
|
+
data, status_code, headers = @api_client.call_api(:PATCH, path,
|
|
3367
2792
|
:header_params => header_params,
|
|
3368
2793
|
:query_params => query_params,
|
|
3369
2794
|
:form_params => form_params,
|
|
3370
2795
|
:body => post_body,
|
|
3371
|
-
:auth_names => auth_names
|
|
3372
|
-
:return_type => 'EmailConversation')
|
|
2796
|
+
:auth_names => auth_names)
|
|
3373
2797
|
if @api_client.config.debugging
|
|
3374
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2798
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_emails_email_id_participants_participant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3375
2799
|
end
|
|
3376
2800
|
return data, status_code, headers
|
|
3377
2801
|
end
|
|
3378
2802
|
|
|
3379
|
-
#
|
|
2803
|
+
# Update the attributes on a conversation participant.
|
|
3380
2804
|
#
|
|
3381
|
-
# @param
|
|
3382
|
-
# @param
|
|
3383
|
-
# @param conversation_id conversation ID
|
|
3384
|
-
# @param participant_id participant ID
|
|
2805
|
+
# @param email_id
|
|
2806
|
+
# @param participant_id
|
|
3385
2807
|
# @param [Hash] opts the optional parameters
|
|
3386
|
-
# @
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
2808
|
+
# @option opts [ParticipantAttributes] :body
|
|
2809
|
+
# @return [nil]
|
|
2810
|
+
def patch_emails_email_id_participants_participant_id_attributes(email_id, participant_id, opts = {})
|
|
2811
|
+
patch_emails_email_id_participants_participant_id_attributes_with_http_info(email_id, participant_id, opts)
|
|
2812
|
+
return nil
|
|
3390
2813
|
end
|
|
3391
2814
|
|
|
3392
|
-
#
|
|
2815
|
+
# Update the attributes on a conversation participant.
|
|
3393
2816
|
#
|
|
3394
|
-
# @param
|
|
3395
|
-
# @param
|
|
3396
|
-
# @param conversation_id conversation ID
|
|
3397
|
-
# @param participant_id participant ID
|
|
2817
|
+
# @param email_id
|
|
2818
|
+
# @param participant_id
|
|
3398
2819
|
# @param [Hash] opts the optional parameters
|
|
3399
|
-
# @
|
|
3400
|
-
|
|
2820
|
+
# @option opts [ParticipantAttributes] :body
|
|
2821
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
2822
|
+
def patch_emails_email_id_participants_participant_id_attributes_with_http_info(email_id, participant_id, opts = {})
|
|
3401
2823
|
if @api_client.config.debugging
|
|
3402
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2824
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_emails_email_id_participants_participant_id_attributes ..."
|
|
3403
2825
|
end
|
|
3404
2826
|
|
|
3405
|
-
# verify the required parameter '
|
|
3406
|
-
fail "Missing the required parameter '
|
|
3407
|
-
|
|
3408
|
-
# verify the required parameter 'message_id' is set
|
|
3409
|
-
fail "Missing the required parameter 'message_id' when calling get_conversation_id_messages" if message_id.nil?
|
|
3410
|
-
|
|
3411
|
-
# verify the required parameter 'conversation_id' is set
|
|
3412
|
-
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_messages" if conversation_id.nil?
|
|
2827
|
+
# verify the required parameter 'email_id' is set
|
|
2828
|
+
fail "Missing the required parameter 'email_id' when calling patch_emails_email_id_participants_participant_id_attributes" if email_id.nil?
|
|
3413
2829
|
|
|
3414
2830
|
# verify the required parameter 'participant_id' is set
|
|
3415
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
2831
|
+
fail "Missing the required parameter 'participant_id' when calling patch_emails_email_id_participants_participant_id_attributes" if participant_id.nil?
|
|
3416
2832
|
|
|
3417
2833
|
# resource path
|
|
3418
|
-
path = "/api/v2/emails/{
|
|
2834
|
+
path = "/api/v2/conversations/emails/{emailId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'emailId' + '}', email_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
3419
2835
|
|
|
3420
2836
|
# query parameters
|
|
3421
2837
|
query_params = {}
|
|
@@ -3435,65 +2851,54 @@ module PureCloud
|
|
|
3435
2851
|
form_params = {}
|
|
3436
2852
|
|
|
3437
2853
|
# http body (model)
|
|
3438
|
-
post_body =
|
|
2854
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
3439
2855
|
|
|
3440
2856
|
|
|
3441
2857
|
auth_names = ['PureCloud Auth']
|
|
3442
|
-
data, status_code, headers = @api_client.call_api(:
|
|
2858
|
+
data, status_code, headers = @api_client.call_api(:PATCH, path,
|
|
3443
2859
|
:header_params => header_params,
|
|
3444
2860
|
:query_params => query_params,
|
|
3445
2861
|
:form_params => form_params,
|
|
3446
2862
|
:body => post_body,
|
|
3447
|
-
:auth_names => auth_names
|
|
3448
|
-
:return_type => 'EmailMessageListing')
|
|
2863
|
+
:auth_names => auth_names)
|
|
3449
2864
|
if @api_client.config.debugging
|
|
3450
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2865
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_emails_email_id_participants_participant_id_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3451
2866
|
end
|
|
3452
2867
|
return data, status_code, headers
|
|
3453
2868
|
end
|
|
3454
2869
|
|
|
3455
|
-
#
|
|
2870
|
+
# Replace this participant with the specified user and/or address
|
|
3456
2871
|
#
|
|
3457
|
-
# @param
|
|
3458
|
-
# @param
|
|
3459
|
-
# @param conversation_id conversation ID
|
|
3460
|
-
# @param participant_id participant ID
|
|
2872
|
+
# @param email_id
|
|
2873
|
+
# @param participant_id
|
|
3461
2874
|
# @param [Hash] opts the optional parameters
|
|
3462
|
-
# @option opts [
|
|
3463
|
-
# @return [
|
|
3464
|
-
def
|
|
3465
|
-
|
|
3466
|
-
return
|
|
2875
|
+
# @option opts [TransferRequest] :body
|
|
2876
|
+
# @return [nil]
|
|
2877
|
+
def post_emails_email_id_participants_participant_id_replace(email_id, participant_id, opts = {})
|
|
2878
|
+
post_emails_email_id_participants_participant_id_replace_with_http_info(email_id, participant_id, opts)
|
|
2879
|
+
return nil
|
|
3467
2880
|
end
|
|
3468
2881
|
|
|
3469
|
-
#
|
|
2882
|
+
# Replace this participant with the specified user and/or address
|
|
3470
2883
|
#
|
|
3471
|
-
# @param
|
|
3472
|
-
# @param
|
|
3473
|
-
# @param conversation_id conversation ID
|
|
3474
|
-
# @param participant_id participant ID
|
|
2884
|
+
# @param email_id
|
|
2885
|
+
# @param participant_id
|
|
3475
2886
|
# @param [Hash] opts the optional parameters
|
|
3476
|
-
# @option opts [
|
|
3477
|
-
# @return [Array<(
|
|
3478
|
-
def
|
|
2887
|
+
# @option opts [TransferRequest] :body
|
|
2888
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
2889
|
+
def post_emails_email_id_participants_participant_id_replace_with_http_info(email_id, participant_id, opts = {})
|
|
3479
2890
|
if @api_client.config.debugging
|
|
3480
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2891
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_emails_email_id_participants_participant_id_replace ..."
|
|
3481
2892
|
end
|
|
3482
2893
|
|
|
3483
|
-
# verify the required parameter '
|
|
3484
|
-
fail "Missing the required parameter '
|
|
3485
|
-
|
|
3486
|
-
# verify the required parameter 'message_id' is set
|
|
3487
|
-
fail "Missing the required parameter 'message_id' when calling post_conversation_id_messages" if message_id.nil?
|
|
3488
|
-
|
|
3489
|
-
# verify the required parameter 'conversation_id' is set
|
|
3490
|
-
fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_messages" if conversation_id.nil?
|
|
2894
|
+
# verify the required parameter 'email_id' is set
|
|
2895
|
+
fail "Missing the required parameter 'email_id' when calling post_emails_email_id_participants_participant_id_replace" if email_id.nil?
|
|
3491
2896
|
|
|
3492
2897
|
# verify the required parameter 'participant_id' is set
|
|
3493
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
2898
|
+
fail "Missing the required parameter 'participant_id' when calling post_emails_email_id_participants_participant_id_replace" if participant_id.nil?
|
|
3494
2899
|
|
|
3495
2900
|
# resource path
|
|
3496
|
-
path = "/api/v2/emails/{
|
|
2901
|
+
path = "/api/v2/conversations/emails/{emailId}/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'emailId' + '}', email_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
3497
2902
|
|
|
3498
2903
|
# query parameters
|
|
3499
2904
|
query_params = {}
|
|
@@ -3522,57 +2927,49 @@ module PureCloud
|
|
|
3522
2927
|
:query_params => query_params,
|
|
3523
2928
|
:form_params => form_params,
|
|
3524
2929
|
:body => post_body,
|
|
3525
|
-
:auth_names => auth_names
|
|
3526
|
-
:return_type => 'EmailMessage')
|
|
2930
|
+
:auth_names => auth_names)
|
|
3527
2931
|
if @api_client.config.debugging
|
|
3528
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
2932
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_emails_email_id_participants_participant_id_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3529
2933
|
end
|
|
3530
2934
|
return data, status_code, headers
|
|
3531
2935
|
end
|
|
3532
2936
|
|
|
3533
|
-
# Get conversation
|
|
2937
|
+
# Get the wrap-up for this conversation participant.
|
|
3534
2938
|
#
|
|
3535
|
-
# @param
|
|
3536
|
-
# @param
|
|
3537
|
-
# @param conversation_id conversation ID
|
|
3538
|
-
# @param participant_id participant ID
|
|
2939
|
+
# @param email_id
|
|
2940
|
+
# @param participant_id
|
|
3539
2941
|
# @param [Hash] opts the optional parameters
|
|
3540
|
-
# @
|
|
3541
|
-
|
|
3542
|
-
|
|
2942
|
+
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
2943
|
+
# @return [WrapupCode]
|
|
2944
|
+
def get_emails_email_id_participants_participant_id_wrapup(email_id, participant_id, opts = {})
|
|
2945
|
+
data, status_code, headers = get_emails_email_id_participants_participant_id_wrapup_with_http_info(email_id, participant_id, opts)
|
|
3543
2946
|
return data
|
|
3544
2947
|
end
|
|
3545
2948
|
|
|
3546
|
-
# Get conversation
|
|
2949
|
+
# Get the wrap-up for this conversation participant.
|
|
3547
2950
|
#
|
|
3548
|
-
# @param
|
|
3549
|
-
# @param
|
|
3550
|
-
# @param conversation_id conversation ID
|
|
3551
|
-
# @param participant_id participant ID
|
|
2951
|
+
# @param email_id
|
|
2952
|
+
# @param participant_id
|
|
3552
2953
|
# @param [Hash] opts the optional parameters
|
|
3553
|
-
# @
|
|
3554
|
-
|
|
2954
|
+
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
2955
|
+
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
2956
|
+
def get_emails_email_id_participants_participant_id_wrapup_with_http_info(email_id, participant_id, opts = {})
|
|
3555
2957
|
if @api_client.config.debugging
|
|
3556
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
2958
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_emails_email_id_participants_participant_id_wrapup ..."
|
|
3557
2959
|
end
|
|
3558
2960
|
|
|
3559
|
-
# verify the required parameter '
|
|
3560
|
-
fail "Missing the required parameter '
|
|
3561
|
-
|
|
3562
|
-
# verify the required parameter 'message_id' is set
|
|
3563
|
-
fail "Missing the required parameter 'message_id' when calling get_conversation_id_messages_draft" if message_id.nil?
|
|
3564
|
-
|
|
3565
|
-
# verify the required parameter 'conversation_id' is set
|
|
3566
|
-
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_messages_draft" if conversation_id.nil?
|
|
2961
|
+
# verify the required parameter 'email_id' is set
|
|
2962
|
+
fail "Missing the required parameter 'email_id' when calling get_emails_email_id_participants_participant_id_wrapup" if email_id.nil?
|
|
3567
2963
|
|
|
3568
2964
|
# verify the required parameter 'participant_id' is set
|
|
3569
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
2965
|
+
fail "Missing the required parameter 'participant_id' when calling get_emails_email_id_participants_participant_id_wrapup" if participant_id.nil?
|
|
3570
2966
|
|
|
3571
2967
|
# resource path
|
|
3572
|
-
path = "/api/v2/emails/{
|
|
2968
|
+
path = "/api/v2/conversations/emails/{emailId}/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'emailId' + '}', email_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
3573
2969
|
|
|
3574
2970
|
# query parameters
|
|
3575
2971
|
query_params = {}
|
|
2972
|
+
query_params[:'provisional'] = opts[:'provisional'] if opts[:'provisional']
|
|
3576
2973
|
|
|
3577
2974
|
# header parameters
|
|
3578
2975
|
header_params = {}
|
|
@@ -3599,55 +2996,43 @@ module PureCloud
|
|
|
3599
2996
|
:form_params => form_params,
|
|
3600
2997
|
:body => post_body,
|
|
3601
2998
|
:auth_names => auth_names,
|
|
3602
|
-
:return_type => '
|
|
2999
|
+
:return_type => 'WrapupCode')
|
|
3603
3000
|
if @api_client.config.debugging
|
|
3604
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3001
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_emails_email_id_participants_participant_id_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3605
3002
|
end
|
|
3606
3003
|
return data, status_code, headers
|
|
3607
3004
|
end
|
|
3608
3005
|
|
|
3609
|
-
#
|
|
3006
|
+
# Get list of wrapup codes for this conversation participant
|
|
3610
3007
|
#
|
|
3611
|
-
# @param
|
|
3612
|
-
# @param
|
|
3613
|
-
# @param conversation_id conversation ID
|
|
3614
|
-
# @param participant_id participant ID
|
|
3008
|
+
# @param email_id
|
|
3009
|
+
# @param participant_id
|
|
3615
3010
|
# @param [Hash] opts the optional parameters
|
|
3616
|
-
# @
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
data, status_code, headers = put_conversation_id_messages_draft_with_http_info(attachment_id, message_id, conversation_id, participant_id, opts)
|
|
3011
|
+
# @return [WrapupCode]
|
|
3012
|
+
def get_emails_email_id_participants_participant_id_wrapupcodes(email_id, participant_id, opts = {})
|
|
3013
|
+
data, status_code, headers = get_emails_email_id_participants_participant_id_wrapupcodes_with_http_info(email_id, participant_id, opts)
|
|
3620
3014
|
return data
|
|
3621
3015
|
end
|
|
3622
3016
|
|
|
3623
|
-
#
|
|
3017
|
+
# Get list of wrapup codes for this conversation participant
|
|
3624
3018
|
#
|
|
3625
|
-
# @param
|
|
3626
|
-
# @param
|
|
3627
|
-
# @param conversation_id conversation ID
|
|
3628
|
-
# @param participant_id participant ID
|
|
3019
|
+
# @param email_id
|
|
3020
|
+
# @param participant_id
|
|
3629
3021
|
# @param [Hash] opts the optional parameters
|
|
3630
|
-
# @
|
|
3631
|
-
|
|
3632
|
-
def put_conversation_id_messages_draft_with_http_info(attachment_id, message_id, conversation_id, participant_id, opts = {})
|
|
3022
|
+
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
3023
|
+
def get_emails_email_id_participants_participant_id_wrapupcodes_with_http_info(email_id, participant_id, opts = {})
|
|
3633
3024
|
if @api_client.config.debugging
|
|
3634
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3025
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_emails_email_id_participants_participant_id_wrapupcodes ..."
|
|
3635
3026
|
end
|
|
3636
3027
|
|
|
3637
|
-
# verify the required parameter '
|
|
3638
|
-
fail "Missing the required parameter '
|
|
3639
|
-
|
|
3640
|
-
# verify the required parameter 'message_id' is set
|
|
3641
|
-
fail "Missing the required parameter 'message_id' when calling put_conversation_id_messages_draft" if message_id.nil?
|
|
3642
|
-
|
|
3643
|
-
# verify the required parameter 'conversation_id' is set
|
|
3644
|
-
fail "Missing the required parameter 'conversation_id' when calling put_conversation_id_messages_draft" if conversation_id.nil?
|
|
3028
|
+
# verify the required parameter 'email_id' is set
|
|
3029
|
+
fail "Missing the required parameter 'email_id' when calling get_emails_email_id_participants_participant_id_wrapupcodes" if email_id.nil?
|
|
3645
3030
|
|
|
3646
3031
|
# verify the required parameter 'participant_id' is set
|
|
3647
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
3032
|
+
fail "Missing the required parameter 'participant_id' when calling get_emails_email_id_participants_participant_id_wrapupcodes" if participant_id.nil?
|
|
3648
3033
|
|
|
3649
3034
|
# resource path
|
|
3650
|
-
path = "/api/v2/emails/{
|
|
3035
|
+
path = "/api/v2/conversations/emails/{emailId}/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'emailId' + '}', email_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
3651
3036
|
|
|
3652
3037
|
# query parameters
|
|
3653
3038
|
query_params = {}
|
|
@@ -3667,63 +3052,45 @@ module PureCloud
|
|
|
3667
3052
|
form_params = {}
|
|
3668
3053
|
|
|
3669
3054
|
# http body (model)
|
|
3670
|
-
post_body =
|
|
3055
|
+
post_body = nil
|
|
3671
3056
|
|
|
3672
3057
|
|
|
3673
3058
|
auth_names = ['PureCloud Auth']
|
|
3674
|
-
data, status_code, headers = @api_client.call_api(:
|
|
3059
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
3675
3060
|
:header_params => header_params,
|
|
3676
3061
|
:query_params => query_params,
|
|
3677
3062
|
:form_params => form_params,
|
|
3678
3063
|
:body => post_body,
|
|
3679
3064
|
:auth_names => auth_names,
|
|
3680
|
-
:return_type => '
|
|
3065
|
+
:return_type => 'WrapupCode')
|
|
3681
3066
|
if @api_client.config.debugging
|
|
3682
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3067
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_emails_email_id_participants_participant_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3683
3068
|
end
|
|
3684
3069
|
return data, status_code, headers
|
|
3685
3070
|
end
|
|
3686
3071
|
|
|
3687
|
-
#
|
|
3072
|
+
# Create Fax Conversation
|
|
3688
3073
|
#
|
|
3689
|
-
# @param attachment_id attachment ID
|
|
3690
|
-
# @param message_id message ID
|
|
3691
|
-
# @param conversation_id conversation ID
|
|
3692
|
-
# @param participant_id participant ID
|
|
3693
3074
|
# @param [Hash] opts the optional parameters
|
|
3694
|
-
# @
|
|
3695
|
-
|
|
3696
|
-
|
|
3075
|
+
# @option opts [FaxSendRequest] :body Fax
|
|
3076
|
+
# @return [FaxSendResponse]
|
|
3077
|
+
def post_faxes(opts = {})
|
|
3078
|
+
data, status_code, headers = post_faxes_with_http_info(opts)
|
|
3697
3079
|
return data
|
|
3698
3080
|
end
|
|
3699
3081
|
|
|
3700
|
-
#
|
|
3082
|
+
# Create Fax Conversation
|
|
3701
3083
|
#
|
|
3702
|
-
# @param attachment_id attachment ID
|
|
3703
|
-
# @param message_id message ID
|
|
3704
|
-
# @param conversation_id conversation ID
|
|
3705
|
-
# @param participant_id participant ID
|
|
3706
3084
|
# @param [Hash] opts the optional parameters
|
|
3707
|
-
# @
|
|
3708
|
-
|
|
3085
|
+
# @option opts [FaxSendRequest] :body Fax
|
|
3086
|
+
# @return [Array<(FaxSendResponse, Fixnum, Hash)>] FaxSendResponse data, response status code and response headers
|
|
3087
|
+
def post_faxes_with_http_info(opts = {})
|
|
3709
3088
|
if @api_client.config.debugging
|
|
3710
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3089
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_faxes ..."
|
|
3711
3090
|
end
|
|
3712
3091
|
|
|
3713
|
-
# verify the required parameter 'attachment_id' is set
|
|
3714
|
-
fail "Missing the required parameter 'attachment_id' when calling delete_conversation_id_messages_draft_attachments_attachment_id" if attachment_id.nil?
|
|
3715
|
-
|
|
3716
|
-
# verify the required parameter 'message_id' is set
|
|
3717
|
-
fail "Missing the required parameter 'message_id' when calling delete_conversation_id_messages_draft_attachments_attachment_id" if message_id.nil?
|
|
3718
|
-
|
|
3719
|
-
# verify the required parameter 'conversation_id' is set
|
|
3720
|
-
fail "Missing the required parameter 'conversation_id' when calling delete_conversation_id_messages_draft_attachments_attachment_id" if conversation_id.nil?
|
|
3721
|
-
|
|
3722
|
-
# verify the required parameter 'participant_id' is set
|
|
3723
|
-
fail "Missing the required parameter 'participant_id' when calling delete_conversation_id_messages_draft_attachments_attachment_id" if participant_id.nil?
|
|
3724
|
-
|
|
3725
3092
|
# resource path
|
|
3726
|
-
path = "/api/v2/
|
|
3093
|
+
path = "/api/v2/conversations/faxes".sub('{format}','json')
|
|
3727
3094
|
|
|
3728
3095
|
# query parameters
|
|
3729
3096
|
query_params = {}
|
|
@@ -3743,63 +3110,43 @@ module PureCloud
|
|
|
3743
3110
|
form_params = {}
|
|
3744
3111
|
|
|
3745
3112
|
# http body (model)
|
|
3746
|
-
post_body =
|
|
3113
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
3747
3114
|
|
|
3748
3115
|
|
|
3749
3116
|
auth_names = ['PureCloud Auth']
|
|
3750
|
-
data, status_code, headers = @api_client.call_api(:
|
|
3117
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
|
3751
3118
|
:header_params => header_params,
|
|
3752
3119
|
:query_params => query_params,
|
|
3753
3120
|
:form_params => form_params,
|
|
3754
3121
|
:body => post_body,
|
|
3755
3122
|
:auth_names => auth_names,
|
|
3756
|
-
:return_type => '
|
|
3123
|
+
:return_type => 'FaxSendResponse')
|
|
3757
3124
|
if @api_client.config.debugging
|
|
3758
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3125
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_faxes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3759
3126
|
end
|
|
3760
3127
|
return data, status_code, headers
|
|
3761
3128
|
end
|
|
3762
3129
|
|
|
3763
|
-
# Get
|
|
3130
|
+
# Get recent video conversations
|
|
3764
3131
|
#
|
|
3765
|
-
# @param attachment_id attachment ID
|
|
3766
|
-
# @param message_id message ID
|
|
3767
|
-
# @param conversation_id conversation ID
|
|
3768
|
-
# @param participant_id participant ID
|
|
3769
3132
|
# @param [Hash] opts the optional parameters
|
|
3770
|
-
# @return [
|
|
3771
|
-
def
|
|
3772
|
-
data, status_code, headers =
|
|
3133
|
+
# @return [VideoConversationEntityListing]
|
|
3134
|
+
def get_videos(opts = {})
|
|
3135
|
+
data, status_code, headers = get_videos_with_http_info(opts)
|
|
3773
3136
|
return data
|
|
3774
3137
|
end
|
|
3775
3138
|
|
|
3776
|
-
# Get
|
|
3139
|
+
# Get recent video conversations
|
|
3777
3140
|
#
|
|
3778
|
-
# @param attachment_id attachment ID
|
|
3779
|
-
# @param message_id message ID
|
|
3780
|
-
# @param conversation_id conversation ID
|
|
3781
|
-
# @param participant_id participant ID
|
|
3782
3141
|
# @param [Hash] opts the optional parameters
|
|
3783
|
-
# @return [Array<(
|
|
3784
|
-
def
|
|
3142
|
+
# @return [Array<(VideoConversationEntityListing, Fixnum, Hash)>] VideoConversationEntityListing data, response status code and response headers
|
|
3143
|
+
def get_videos_with_http_info(opts = {})
|
|
3785
3144
|
if @api_client.config.debugging
|
|
3786
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3145
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_videos ..."
|
|
3787
3146
|
end
|
|
3788
3147
|
|
|
3789
|
-
# verify the required parameter 'attachment_id' is set
|
|
3790
|
-
fail "Missing the required parameter 'attachment_id' when calling get_conversation_id_messages_message_id" if attachment_id.nil?
|
|
3791
|
-
|
|
3792
|
-
# verify the required parameter 'message_id' is set
|
|
3793
|
-
fail "Missing the required parameter 'message_id' when calling get_conversation_id_messages_message_id" if message_id.nil?
|
|
3794
|
-
|
|
3795
|
-
# verify the required parameter 'conversation_id' is set
|
|
3796
|
-
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_messages_message_id" if conversation_id.nil?
|
|
3797
|
-
|
|
3798
|
-
# verify the required parameter 'participant_id' is set
|
|
3799
|
-
fail "Missing the required parameter 'participant_id' when calling get_conversation_id_messages_message_id" if participant_id.nil?
|
|
3800
|
-
|
|
3801
3148
|
# resource path
|
|
3802
|
-
path = "/api/v2/
|
|
3149
|
+
path = "/api/v2/conversations/videos".sub('{format}','json')
|
|
3803
3150
|
|
|
3804
3151
|
# query parameters
|
|
3805
3152
|
query_params = {}
|
|
@@ -3829,43 +3176,38 @@ module PureCloud
|
|
|
3829
3176
|
:form_params => form_params,
|
|
3830
3177
|
:body => post_body,
|
|
3831
3178
|
:auth_names => auth_names,
|
|
3832
|
-
:return_type => '
|
|
3179
|
+
:return_type => 'VideoConversationEntityListing')
|
|
3833
3180
|
if @api_client.config.debugging
|
|
3834
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3181
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_videos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3835
3182
|
end
|
|
3836
3183
|
return data, status_code, headers
|
|
3837
3184
|
end
|
|
3838
3185
|
|
|
3839
|
-
# Get
|
|
3186
|
+
# Get video conversation
|
|
3840
3187
|
#
|
|
3841
|
-
# @param
|
|
3842
|
-
# @param participant_id participant ID
|
|
3188
|
+
# @param video_id
|
|
3843
3189
|
# @param [Hash] opts the optional parameters
|
|
3844
|
-
# @return [
|
|
3845
|
-
def
|
|
3846
|
-
data, status_code, headers =
|
|
3190
|
+
# @return [VideoConversation]
|
|
3191
|
+
def get_videos_video_id(video_id, opts = {})
|
|
3192
|
+
data, status_code, headers = get_videos_video_id_with_http_info(video_id, opts)
|
|
3847
3193
|
return data
|
|
3848
3194
|
end
|
|
3849
3195
|
|
|
3850
|
-
# Get
|
|
3196
|
+
# Get video conversation
|
|
3851
3197
|
#
|
|
3852
|
-
# @param
|
|
3853
|
-
# @param participant_id participant ID
|
|
3198
|
+
# @param video_id
|
|
3854
3199
|
# @param [Hash] opts the optional parameters
|
|
3855
|
-
# @return [Array<(
|
|
3856
|
-
def
|
|
3200
|
+
# @return [Array<(VideoConversation, Fixnum, Hash)>] VideoConversation data, response status code and response headers
|
|
3201
|
+
def get_videos_video_id_with_http_info(video_id, opts = {})
|
|
3857
3202
|
if @api_client.config.debugging
|
|
3858
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3203
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_videos_video_id ..."
|
|
3859
3204
|
end
|
|
3860
3205
|
|
|
3861
|
-
# verify the required parameter '
|
|
3862
|
-
fail "Missing the required parameter '
|
|
3863
|
-
|
|
3864
|
-
# verify the required parameter 'participant_id' is set
|
|
3865
|
-
fail "Missing the required parameter 'participant_id' when calling get_socials" if participant_id.nil?
|
|
3206
|
+
# verify the required parameter 'video_id' is set
|
|
3207
|
+
fail "Missing the required parameter 'video_id' when calling get_videos_video_id" if video_id.nil?
|
|
3866
3208
|
|
|
3867
3209
|
# resource path
|
|
3868
|
-
path = "/api/v2/
|
|
3210
|
+
path = "/api/v2/conversations/videos/{videoId}".sub('{format}','json').sub('{' + 'videoId' + '}', video_id.to_s)
|
|
3869
3211
|
|
|
3870
3212
|
# query parameters
|
|
3871
3213
|
query_params = {}
|
|
@@ -3895,45 +3237,45 @@ module PureCloud
|
|
|
3895
3237
|
:form_params => form_params,
|
|
3896
3238
|
:body => post_body,
|
|
3897
3239
|
:auth_names => auth_names,
|
|
3898
|
-
:return_type => '
|
|
3240
|
+
:return_type => 'VideoConversation')
|
|
3899
3241
|
if @api_client.config.debugging
|
|
3900
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3242
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_videos_video_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3901
3243
|
end
|
|
3902
3244
|
return data, status_code, headers
|
|
3903
3245
|
end
|
|
3904
3246
|
|
|
3905
3247
|
# Update conversation participant
|
|
3906
3248
|
#
|
|
3907
|
-
# @param
|
|
3908
|
-
# @param participant_id
|
|
3249
|
+
# @param video_id
|
|
3250
|
+
# @param participant_id
|
|
3909
3251
|
# @param [Hash] opts the optional parameters
|
|
3910
3252
|
# @option opts [MediaParticipantRequest] :body
|
|
3911
3253
|
# @return [nil]
|
|
3912
|
-
def
|
|
3913
|
-
|
|
3254
|
+
def patch_videos_video_id_participants_participant_id(video_id, participant_id, opts = {})
|
|
3255
|
+
patch_videos_video_id_participants_participant_id_with_http_info(video_id, participant_id, opts)
|
|
3914
3256
|
return nil
|
|
3915
3257
|
end
|
|
3916
3258
|
|
|
3917
3259
|
# Update conversation participant
|
|
3918
3260
|
#
|
|
3919
|
-
# @param
|
|
3920
|
-
# @param participant_id
|
|
3261
|
+
# @param video_id
|
|
3262
|
+
# @param participant_id
|
|
3921
3263
|
# @param [Hash] opts the optional parameters
|
|
3922
3264
|
# @option opts [MediaParticipantRequest] :body
|
|
3923
3265
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
3924
|
-
def
|
|
3266
|
+
def patch_videos_video_id_participants_participant_id_with_http_info(video_id, participant_id, opts = {})
|
|
3925
3267
|
if @api_client.config.debugging
|
|
3926
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3268
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_videos_video_id_participants_participant_id ..."
|
|
3927
3269
|
end
|
|
3928
3270
|
|
|
3929
|
-
# verify the required parameter '
|
|
3930
|
-
fail "Missing the required parameter '
|
|
3271
|
+
# verify the required parameter 'video_id' is set
|
|
3272
|
+
fail "Missing the required parameter 'video_id' when calling patch_videos_video_id_participants_participant_id" if video_id.nil?
|
|
3931
3273
|
|
|
3932
3274
|
# verify the required parameter 'participant_id' is set
|
|
3933
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
3275
|
+
fail "Missing the required parameter 'participant_id' when calling patch_videos_video_id_participants_participant_id" if participant_id.nil?
|
|
3934
3276
|
|
|
3935
3277
|
# resource path
|
|
3936
|
-
path = "/api/v2/
|
|
3278
|
+
path = "/api/v2/conversations/videos/{videoId}/participants/{participantId}".sub('{format}','json').sub('{' + 'videoId' + '}', video_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
3937
3279
|
|
|
3938
3280
|
# query parameters
|
|
3939
3281
|
query_params = {}
|
|
@@ -3964,43 +3306,43 @@ module PureCloud
|
|
|
3964
3306
|
:body => post_body,
|
|
3965
3307
|
:auth_names => auth_names)
|
|
3966
3308
|
if @api_client.config.debugging
|
|
3967
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3309
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_videos_video_id_participants_participant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3968
3310
|
end
|
|
3969
3311
|
return data, status_code, headers
|
|
3970
3312
|
end
|
|
3971
3313
|
|
|
3972
3314
|
# Update the attributes on a conversation participant.
|
|
3973
3315
|
#
|
|
3974
|
-
# @param
|
|
3975
|
-
# @param participant_id
|
|
3316
|
+
# @param video_id
|
|
3317
|
+
# @param participant_id
|
|
3976
3318
|
# @param [Hash] opts the optional parameters
|
|
3977
3319
|
# @option opts [ParticipantAttributes] :body
|
|
3978
3320
|
# @return [nil]
|
|
3979
|
-
def
|
|
3980
|
-
|
|
3321
|
+
def patch_videos_video_id_participants_participant_id_attributes(video_id, participant_id, opts = {})
|
|
3322
|
+
patch_videos_video_id_participants_participant_id_attributes_with_http_info(video_id, participant_id, opts)
|
|
3981
3323
|
return nil
|
|
3982
3324
|
end
|
|
3983
3325
|
|
|
3984
3326
|
# Update the attributes on a conversation participant.
|
|
3985
3327
|
#
|
|
3986
|
-
# @param
|
|
3987
|
-
# @param participant_id
|
|
3328
|
+
# @param video_id
|
|
3329
|
+
# @param participant_id
|
|
3988
3330
|
# @param [Hash] opts the optional parameters
|
|
3989
3331
|
# @option opts [ParticipantAttributes] :body
|
|
3990
3332
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
3991
|
-
def
|
|
3333
|
+
def patch_videos_video_id_participants_participant_id_attributes_with_http_info(video_id, participant_id, opts = {})
|
|
3992
3334
|
if @api_client.config.debugging
|
|
3993
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3335
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_videos_video_id_participants_participant_id_attributes ..."
|
|
3994
3336
|
end
|
|
3995
3337
|
|
|
3996
|
-
# verify the required parameter '
|
|
3997
|
-
fail "Missing the required parameter '
|
|
3338
|
+
# verify the required parameter 'video_id' is set
|
|
3339
|
+
fail "Missing the required parameter 'video_id' when calling patch_videos_video_id_participants_participant_id_attributes" if video_id.nil?
|
|
3998
3340
|
|
|
3999
3341
|
# verify the required parameter 'participant_id' is set
|
|
4000
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
3342
|
+
fail "Missing the required parameter 'participant_id' when calling patch_videos_video_id_participants_participant_id_attributes" if participant_id.nil?
|
|
4001
3343
|
|
|
4002
3344
|
# resource path
|
|
4003
|
-
path = "/api/v2/
|
|
3345
|
+
path = "/api/v2/conversations/videos/{videoId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'videoId' + '}', video_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
4004
3346
|
|
|
4005
3347
|
# query parameters
|
|
4006
3348
|
query_params = {}
|
|
@@ -4031,43 +3373,43 @@ module PureCloud
|
|
|
4031
3373
|
:body => post_body,
|
|
4032
3374
|
:auth_names => auth_names)
|
|
4033
3375
|
if @api_client.config.debugging
|
|
4034
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3376
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_videos_video_id_participants_participant_id_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4035
3377
|
end
|
|
4036
3378
|
return data, status_code, headers
|
|
4037
3379
|
end
|
|
4038
3380
|
|
|
4039
3381
|
# Replace this participant with the specified user and/or address
|
|
4040
3382
|
#
|
|
4041
|
-
# @param
|
|
4042
|
-
# @param participant_id
|
|
3383
|
+
# @param video_id
|
|
3384
|
+
# @param participant_id
|
|
4043
3385
|
# @param [Hash] opts the optional parameters
|
|
4044
3386
|
# @option opts [TransferRequest] :body
|
|
4045
3387
|
# @return [nil]
|
|
4046
|
-
def
|
|
4047
|
-
|
|
3388
|
+
def post_videos_video_id_participants_participant_id_replace(video_id, participant_id, opts = {})
|
|
3389
|
+
post_videos_video_id_participants_participant_id_replace_with_http_info(video_id, participant_id, opts)
|
|
4048
3390
|
return nil
|
|
4049
3391
|
end
|
|
4050
3392
|
|
|
4051
3393
|
# Replace this participant with the specified user and/or address
|
|
4052
3394
|
#
|
|
4053
|
-
# @param
|
|
4054
|
-
# @param participant_id
|
|
3395
|
+
# @param video_id
|
|
3396
|
+
# @param participant_id
|
|
4055
3397
|
# @param [Hash] opts the optional parameters
|
|
4056
3398
|
# @option opts [TransferRequest] :body
|
|
4057
3399
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
4058
|
-
def
|
|
3400
|
+
def post_videos_video_id_participants_participant_id_replace_with_http_info(video_id, participant_id, opts = {})
|
|
4059
3401
|
if @api_client.config.debugging
|
|
4060
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3402
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_videos_video_id_participants_participant_id_replace ..."
|
|
4061
3403
|
end
|
|
4062
3404
|
|
|
4063
|
-
# verify the required parameter '
|
|
4064
|
-
fail "Missing the required parameter '
|
|
3405
|
+
# verify the required parameter 'video_id' is set
|
|
3406
|
+
fail "Missing the required parameter 'video_id' when calling post_videos_video_id_participants_participant_id_replace" if video_id.nil?
|
|
4065
3407
|
|
|
4066
3408
|
# verify the required parameter 'participant_id' is set
|
|
4067
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
3409
|
+
fail "Missing the required parameter 'participant_id' when calling post_videos_video_id_participants_participant_id_replace" if participant_id.nil?
|
|
4068
3410
|
|
|
4069
3411
|
# resource path
|
|
4070
|
-
path = "/api/v2/
|
|
3412
|
+
path = "/api/v2/conversations/videos/{videoId}/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'videoId' + '}', video_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
4071
3413
|
|
|
4072
3414
|
# query parameters
|
|
4073
3415
|
query_params = {}
|
|
@@ -4098,43 +3440,43 @@ module PureCloud
|
|
|
4098
3440
|
:body => post_body,
|
|
4099
3441
|
:auth_names => auth_names)
|
|
4100
3442
|
if @api_client.config.debugging
|
|
4101
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3443
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_videos_video_id_participants_participant_id_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4102
3444
|
end
|
|
4103
3445
|
return data, status_code, headers
|
|
4104
3446
|
end
|
|
4105
3447
|
|
|
4106
3448
|
# Get the wrap-up for this conversation participant.
|
|
4107
3449
|
#
|
|
4108
|
-
# @param
|
|
4109
|
-
# @param participant_id
|
|
3450
|
+
# @param video_id
|
|
3451
|
+
# @param participant_id
|
|
4110
3452
|
# @param [Hash] opts the optional parameters
|
|
4111
3453
|
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
4112
3454
|
# @return [WrapupCode]
|
|
4113
|
-
def
|
|
4114
|
-
data, status_code, headers =
|
|
3455
|
+
def get_videos_video_id_participants_participant_id_wrapup(video_id, participant_id, opts = {})
|
|
3456
|
+
data, status_code, headers = get_videos_video_id_participants_participant_id_wrapup_with_http_info(video_id, participant_id, opts)
|
|
4115
3457
|
return data
|
|
4116
3458
|
end
|
|
4117
3459
|
|
|
4118
3460
|
# Get the wrap-up for this conversation participant.
|
|
4119
3461
|
#
|
|
4120
|
-
# @param
|
|
4121
|
-
# @param participant_id
|
|
3462
|
+
# @param video_id
|
|
3463
|
+
# @param participant_id
|
|
4122
3464
|
# @param [Hash] opts the optional parameters
|
|
4123
3465
|
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
4124
3466
|
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
4125
|
-
def
|
|
3467
|
+
def get_videos_video_id_participants_participant_id_wrapup_with_http_info(video_id, participant_id, opts = {})
|
|
4126
3468
|
if @api_client.config.debugging
|
|
4127
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3469
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_videos_video_id_participants_participant_id_wrapup ..."
|
|
4128
3470
|
end
|
|
4129
3471
|
|
|
4130
|
-
# verify the required parameter '
|
|
4131
|
-
fail "Missing the required parameter '
|
|
3472
|
+
# verify the required parameter 'video_id' is set
|
|
3473
|
+
fail "Missing the required parameter 'video_id' when calling get_videos_video_id_participants_participant_id_wrapup" if video_id.nil?
|
|
4132
3474
|
|
|
4133
3475
|
# verify the required parameter 'participant_id' is set
|
|
4134
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
3476
|
+
fail "Missing the required parameter 'participant_id' when calling get_videos_video_id_participants_participant_id_wrapup" if participant_id.nil?
|
|
4135
3477
|
|
|
4136
3478
|
# resource path
|
|
4137
|
-
path = "/api/v2/
|
|
3479
|
+
path = "/api/v2/conversations/videos/{videoId}/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'videoId' + '}', video_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
4138
3480
|
|
|
4139
3481
|
# query parameters
|
|
4140
3482
|
query_params = {}
|
|
@@ -4167,41 +3509,41 @@ module PureCloud
|
|
|
4167
3509
|
:auth_names => auth_names,
|
|
4168
3510
|
:return_type => 'WrapupCode')
|
|
4169
3511
|
if @api_client.config.debugging
|
|
4170
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3512
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_videos_video_id_participants_participant_id_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4171
3513
|
end
|
|
4172
3514
|
return data, status_code, headers
|
|
4173
3515
|
end
|
|
4174
3516
|
|
|
4175
3517
|
# Get list of wrapup codes for this conversation participant
|
|
4176
3518
|
#
|
|
4177
|
-
# @param
|
|
4178
|
-
# @param participant_id
|
|
3519
|
+
# @param video_id
|
|
3520
|
+
# @param participant_id
|
|
4179
3521
|
# @param [Hash] opts the optional parameters
|
|
4180
3522
|
# @return [WrapupCode]
|
|
4181
|
-
def
|
|
4182
|
-
data, status_code, headers =
|
|
3523
|
+
def get_videos_video_id_participants_participant_id_wrapupcodes(video_id, participant_id, opts = {})
|
|
3524
|
+
data, status_code, headers = get_videos_video_id_participants_participant_id_wrapupcodes_with_http_info(video_id, participant_id, opts)
|
|
4183
3525
|
return data
|
|
4184
3526
|
end
|
|
4185
3527
|
|
|
4186
3528
|
# Get list of wrapup codes for this conversation participant
|
|
4187
3529
|
#
|
|
4188
|
-
# @param
|
|
4189
|
-
# @param participant_id
|
|
3530
|
+
# @param video_id
|
|
3531
|
+
# @param participant_id
|
|
4190
3532
|
# @param [Hash] opts the optional parameters
|
|
4191
3533
|
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
4192
|
-
def
|
|
3534
|
+
def get_videos_video_id_participants_participant_id_wrapupcodes_with_http_info(video_id, participant_id, opts = {})
|
|
4193
3535
|
if @api_client.config.debugging
|
|
4194
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3536
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_videos_video_id_participants_participant_id_wrapupcodes ..."
|
|
4195
3537
|
end
|
|
4196
3538
|
|
|
4197
|
-
# verify the required parameter '
|
|
4198
|
-
fail "Missing the required parameter '
|
|
3539
|
+
# verify the required parameter 'video_id' is set
|
|
3540
|
+
fail "Missing the required parameter 'video_id' when calling get_videos_video_id_participants_participant_id_wrapupcodes" if video_id.nil?
|
|
4199
3541
|
|
|
4200
3542
|
# verify the required parameter 'participant_id' is set
|
|
4201
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
3543
|
+
fail "Missing the required parameter 'participant_id' when calling get_videos_video_id_participants_participant_id_wrapupcodes" if participant_id.nil?
|
|
4202
3544
|
|
|
4203
3545
|
# resource path
|
|
4204
|
-
path = "/api/v2/
|
|
3546
|
+
path = "/api/v2/conversations/videos/{videoId}/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'videoId' + '}', video_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
4205
3547
|
|
|
4206
3548
|
# query parameters
|
|
4207
3549
|
query_params = {}
|
|
@@ -4233,41 +3575,36 @@ module PureCloud
|
|
|
4233
3575
|
:auth_names => auth_names,
|
|
4234
3576
|
:return_type => 'WrapupCode')
|
|
4235
3577
|
if @api_client.config.debugging
|
|
4236
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3578
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_videos_video_id_participants_participant_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4237
3579
|
end
|
|
4238
3580
|
return data, status_code, headers
|
|
4239
3581
|
end
|
|
4240
3582
|
|
|
4241
|
-
# Get
|
|
3583
|
+
# Get conversation
|
|
4242
3584
|
#
|
|
4243
3585
|
# @param conversation_id conversation ID
|
|
4244
|
-
# @param participant_id participant ID
|
|
4245
3586
|
# @param [Hash] opts the optional parameters
|
|
4246
|
-
# @return [
|
|
4247
|
-
def
|
|
4248
|
-
data, status_code, headers =
|
|
3587
|
+
# @return [Conversation]
|
|
3588
|
+
def get_conversation_id(conversation_id, opts = {})
|
|
3589
|
+
data, status_code, headers = get_conversation_id_with_http_info(conversation_id, opts)
|
|
4249
3590
|
return data
|
|
4250
3591
|
end
|
|
4251
3592
|
|
|
4252
|
-
# Get
|
|
3593
|
+
# Get conversation
|
|
4253
3594
|
#
|
|
4254
3595
|
# @param conversation_id conversation ID
|
|
4255
|
-
# @param participant_id participant ID
|
|
4256
3596
|
# @param [Hash] opts the optional parameters
|
|
4257
|
-
# @return [Array<(
|
|
4258
|
-
def
|
|
3597
|
+
# @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
|
|
3598
|
+
def get_conversation_id_with_http_info(conversation_id, opts = {})
|
|
4259
3599
|
if @api_client.config.debugging
|
|
4260
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3600
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id ..."
|
|
4261
3601
|
end
|
|
4262
3602
|
|
|
4263
3603
|
# verify the required parameter 'conversation_id' is set
|
|
4264
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
|
4265
|
-
|
|
4266
|
-
# verify the required parameter 'participant_id' is set
|
|
4267
|
-
fail "Missing the required parameter 'participant_id' when calling get_conversation_id_4" if participant_id.nil?
|
|
3604
|
+
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id" if conversation_id.nil?
|
|
4268
3605
|
|
|
4269
3606
|
# resource path
|
|
4270
|
-
path = "/api/v2/
|
|
3607
|
+
path = "/api/v2/conversations/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
|
|
4271
3608
|
|
|
4272
3609
|
# query parameters
|
|
4273
3610
|
query_params = {}
|
|
@@ -4297,43 +3634,45 @@ module PureCloud
|
|
|
4297
3634
|
:form_params => form_params,
|
|
4298
3635
|
:body => post_body,
|
|
4299
3636
|
:auth_names => auth_names,
|
|
4300
|
-
:return_type => '
|
|
3637
|
+
:return_type => 'Conversation')
|
|
4301
3638
|
if @api_client.config.debugging
|
|
4302
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3639
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4303
3640
|
end
|
|
4304
3641
|
return data, status_code, headers
|
|
4305
3642
|
end
|
|
4306
3643
|
|
|
4307
|
-
#
|
|
4308
|
-
#
|
|
3644
|
+
# Update a participant.
|
|
3645
|
+
# Update conversation participant.
|
|
4309
3646
|
# @param conversation_id conversation ID
|
|
4310
3647
|
# @param participant_id participant ID
|
|
4311
3648
|
# @param [Hash] opts the optional parameters
|
|
4312
|
-
# @
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
3649
|
+
# @option opts [MediaParticipantRequest] :body
|
|
3650
|
+
# @return [nil]
|
|
3651
|
+
def patch_conversation_id_participants_participant_id(conversation_id, participant_id, opts = {})
|
|
3652
|
+
patch_conversation_id_participants_participant_id_with_http_info(conversation_id, participant_id, opts)
|
|
3653
|
+
return nil
|
|
4316
3654
|
end
|
|
4317
3655
|
|
|
4318
|
-
#
|
|
4319
|
-
#
|
|
3656
|
+
# Update a participant.
|
|
3657
|
+
# Update conversation participant.
|
|
4320
3658
|
# @param conversation_id conversation ID
|
|
4321
3659
|
# @param participant_id participant ID
|
|
4322
3660
|
# @param [Hash] opts the optional parameters
|
|
4323
|
-
# @
|
|
4324
|
-
|
|
3661
|
+
# @option opts [MediaParticipantRequest] :body
|
|
3662
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
3663
|
+
def patch_conversation_id_participants_participant_id_with_http_info(conversation_id, participant_id, opts = {})
|
|
4325
3664
|
if @api_client.config.debugging
|
|
4326
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3665
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_conversation_id_participants_participant_id ..."
|
|
4327
3666
|
end
|
|
4328
3667
|
|
|
4329
3668
|
# verify the required parameter 'conversation_id' is set
|
|
4330
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
|
3669
|
+
fail "Missing the required parameter 'conversation_id' when calling patch_conversation_id_participants_participant_id" if conversation_id.nil?
|
|
4331
3670
|
|
|
4332
3671
|
# verify the required parameter 'participant_id' is set
|
|
4333
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
3672
|
+
fail "Missing the required parameter 'participant_id' when calling patch_conversation_id_participants_participant_id" if participant_id.nil?
|
|
4334
3673
|
|
|
4335
3674
|
# resource path
|
|
4336
|
-
path = "/api/v2/
|
|
3675
|
+
path = "/api/v2/conversations/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
4337
3676
|
|
|
4338
3677
|
# query parameters
|
|
4339
3678
|
query_params = {}
|
|
@@ -4353,55 +3692,54 @@ module PureCloud
|
|
|
4353
3692
|
form_params = {}
|
|
4354
3693
|
|
|
4355
3694
|
# http body (model)
|
|
4356
|
-
post_body =
|
|
3695
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
4357
3696
|
|
|
4358
3697
|
|
|
4359
3698
|
auth_names = ['PureCloud Auth']
|
|
4360
|
-
data, status_code, headers = @api_client.call_api(:
|
|
3699
|
+
data, status_code, headers = @api_client.call_api(:PATCH, path,
|
|
4361
3700
|
:header_params => header_params,
|
|
4362
3701
|
:query_params => query_params,
|
|
4363
3702
|
:form_params => form_params,
|
|
4364
3703
|
:body => post_body,
|
|
4365
|
-
:auth_names => auth_names
|
|
4366
|
-
:return_type => 'VideoConversationEntityListing')
|
|
3704
|
+
:auth_names => auth_names)
|
|
4367
3705
|
if @api_client.config.debugging
|
|
4368
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3706
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_conversation_id_participants_participant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4369
3707
|
end
|
|
4370
3708
|
return data, status_code, headers
|
|
4371
3709
|
end
|
|
4372
3710
|
|
|
4373
|
-
# Update conversation participant
|
|
3711
|
+
# Update the attributes on a conversation participant.
|
|
4374
3712
|
#
|
|
4375
3713
|
# @param conversation_id conversation ID
|
|
4376
3714
|
# @param participant_id participant ID
|
|
4377
3715
|
# @param [Hash] opts the optional parameters
|
|
4378
|
-
# @option opts [
|
|
3716
|
+
# @option opts [ParticipantAttributes] :body
|
|
4379
3717
|
# @return [nil]
|
|
4380
|
-
def
|
|
4381
|
-
|
|
3718
|
+
def patch_conversation_id_participants_participant_id_attributes(conversation_id, participant_id, opts = {})
|
|
3719
|
+
patch_conversation_id_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts)
|
|
4382
3720
|
return nil
|
|
4383
3721
|
end
|
|
4384
3722
|
|
|
4385
|
-
# Update conversation participant
|
|
3723
|
+
# Update the attributes on a conversation participant.
|
|
4386
3724
|
#
|
|
4387
3725
|
# @param conversation_id conversation ID
|
|
4388
3726
|
# @param participant_id participant ID
|
|
4389
3727
|
# @param [Hash] opts the optional parameters
|
|
4390
|
-
# @option opts [
|
|
3728
|
+
# @option opts [ParticipantAttributes] :body
|
|
4391
3729
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
4392
|
-
def
|
|
3730
|
+
def patch_conversation_id_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts = {})
|
|
4393
3731
|
if @api_client.config.debugging
|
|
4394
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3732
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#patch_conversation_id_participants_participant_id_attributes ..."
|
|
4395
3733
|
end
|
|
4396
3734
|
|
|
4397
3735
|
# verify the required parameter 'conversation_id' is set
|
|
4398
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
|
3736
|
+
fail "Missing the required parameter 'conversation_id' when calling patch_conversation_id_participants_participant_id_attributes" if conversation_id.nil?
|
|
4399
3737
|
|
|
4400
3738
|
# verify the required parameter 'participant_id' is set
|
|
4401
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
3739
|
+
fail "Missing the required parameter 'participant_id' when calling patch_conversation_id_participants_participant_id_attributes" if participant_id.nil?
|
|
4402
3740
|
|
|
4403
3741
|
# resource path
|
|
4404
|
-
path = "/api/v2/
|
|
3742
|
+
path = "/api/v2/conversations/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
4405
3743
|
|
|
4406
3744
|
# query parameters
|
|
4407
3745
|
query_params = {}
|
|
@@ -4432,43 +3770,43 @@ module PureCloud
|
|
|
4432
3770
|
:body => post_body,
|
|
4433
3771
|
:auth_names => auth_names)
|
|
4434
3772
|
if @api_client.config.debugging
|
|
4435
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3773
|
+
@api_client.config.logger.debug "API called: ConversationsApi#patch_conversation_id_participants_participant_id_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4436
3774
|
end
|
|
4437
3775
|
return data, status_code, headers
|
|
4438
3776
|
end
|
|
4439
3777
|
|
|
4440
|
-
#
|
|
3778
|
+
# Create a new callback for the specified participant on the conversation.
|
|
4441
3779
|
#
|
|
4442
3780
|
# @param conversation_id conversation ID
|
|
4443
3781
|
# @param participant_id participant ID
|
|
4444
3782
|
# @param [Hash] opts the optional parameters
|
|
4445
|
-
# @option opts [
|
|
3783
|
+
# @option opts [CreateCallbackCommand] :body
|
|
4446
3784
|
# @return [nil]
|
|
4447
|
-
def
|
|
4448
|
-
|
|
3785
|
+
def post_conversation_id_participants_participant_id_callbacks(conversation_id, participant_id, opts = {})
|
|
3786
|
+
post_conversation_id_participants_participant_id_callbacks_with_http_info(conversation_id, participant_id, opts)
|
|
4449
3787
|
return nil
|
|
4450
3788
|
end
|
|
4451
3789
|
|
|
4452
|
-
#
|
|
3790
|
+
# Create a new callback for the specified participant on the conversation.
|
|
4453
3791
|
#
|
|
4454
3792
|
# @param conversation_id conversation ID
|
|
4455
3793
|
# @param participant_id participant ID
|
|
4456
3794
|
# @param [Hash] opts the optional parameters
|
|
4457
|
-
# @option opts [
|
|
3795
|
+
# @option opts [CreateCallbackCommand] :body
|
|
4458
3796
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
4459
|
-
def
|
|
3797
|
+
def post_conversation_id_participants_participant_id_callbacks_with_http_info(conversation_id, participant_id, opts = {})
|
|
4460
3798
|
if @api_client.config.debugging
|
|
4461
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3799
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_conversation_id_participants_participant_id_callbacks ..."
|
|
4462
3800
|
end
|
|
4463
3801
|
|
|
4464
3802
|
# verify the required parameter 'conversation_id' is set
|
|
4465
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
|
3803
|
+
fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_participants_participant_id_callbacks" if conversation_id.nil?
|
|
4466
3804
|
|
|
4467
3805
|
# verify the required parameter 'participant_id' is set
|
|
4468
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
3806
|
+
fail "Missing the required parameter 'participant_id' when calling post_conversation_id_participants_participant_id_callbacks" if participant_id.nil?
|
|
4469
3807
|
|
|
4470
3808
|
# resource path
|
|
4471
|
-
path = "/api/v2/
|
|
3809
|
+
path = "/api/v2/conversations/{conversationId}/participants/{participantId}/callbacks".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
4472
3810
|
|
|
4473
3811
|
# query parameters
|
|
4474
3812
|
query_params = {}
|
|
@@ -4492,14 +3830,14 @@ module PureCloud
|
|
|
4492
3830
|
|
|
4493
3831
|
|
|
4494
3832
|
auth_names = ['PureCloud Auth']
|
|
4495
|
-
data, status_code, headers = @api_client.call_api(:
|
|
3833
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
|
4496
3834
|
:header_params => header_params,
|
|
4497
3835
|
:query_params => query_params,
|
|
4498
3836
|
:form_params => form_params,
|
|
4499
3837
|
:body => post_body,
|
|
4500
3838
|
:auth_names => auth_names)
|
|
4501
3839
|
if @api_client.config.debugging
|
|
4502
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3840
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_conversation_id_participants_participant_id_callbacks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4503
3841
|
end
|
|
4504
3842
|
return data, status_code, headers
|
|
4505
3843
|
end
|
|
@@ -4511,8 +3849,8 @@ module PureCloud
|
|
|
4511
3849
|
# @param [Hash] opts the optional parameters
|
|
4512
3850
|
# @option opts [TransferRequest] :body
|
|
4513
3851
|
# @return [nil]
|
|
4514
|
-
def
|
|
4515
|
-
|
|
3852
|
+
def post_conversation_id_participants_participant_id_replace(conversation_id, participant_id, opts = {})
|
|
3853
|
+
post_conversation_id_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts)
|
|
4516
3854
|
return nil
|
|
4517
3855
|
end
|
|
4518
3856
|
|
|
@@ -4523,19 +3861,19 @@ module PureCloud
|
|
|
4523
3861
|
# @param [Hash] opts the optional parameters
|
|
4524
3862
|
# @option opts [TransferRequest] :body
|
|
4525
3863
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
4526
|
-
def
|
|
3864
|
+
def post_conversation_id_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts = {})
|
|
4527
3865
|
if @api_client.config.debugging
|
|
4528
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3866
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#post_conversation_id_participants_participant_id_replace ..."
|
|
4529
3867
|
end
|
|
4530
3868
|
|
|
4531
3869
|
# verify the required parameter 'conversation_id' is set
|
|
4532
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
|
3870
|
+
fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_participants_participant_id_replace" if conversation_id.nil?
|
|
4533
3871
|
|
|
4534
3872
|
# verify the required parameter 'participant_id' is set
|
|
4535
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
3873
|
+
fail "Missing the required parameter 'participant_id' when calling post_conversation_id_participants_participant_id_replace" if participant_id.nil?
|
|
4536
3874
|
|
|
4537
3875
|
# resource path
|
|
4538
|
-
path = "/api/v2/
|
|
3876
|
+
path = "/api/v2/conversations/{conversationId}/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
4539
3877
|
|
|
4540
3878
|
# query parameters
|
|
4541
3879
|
query_params = {}
|
|
@@ -4566,7 +3904,7 @@ module PureCloud
|
|
|
4566
3904
|
:body => post_body,
|
|
4567
3905
|
:auth_names => auth_names)
|
|
4568
3906
|
if @api_client.config.debugging
|
|
4569
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3907
|
+
@api_client.config.logger.debug "API called: ConversationsApi#post_conversation_id_participants_participant_id_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4570
3908
|
end
|
|
4571
3909
|
return data, status_code, headers
|
|
4572
3910
|
end
|
|
@@ -4578,8 +3916,8 @@ module PureCloud
|
|
|
4578
3916
|
# @param [Hash] opts the optional parameters
|
|
4579
3917
|
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
4580
3918
|
# @return [WrapupCode]
|
|
4581
|
-
def
|
|
4582
|
-
data, status_code, headers =
|
|
3919
|
+
def get_conversation_id_participants_participant_id_wrapup(conversation_id, participant_id, opts = {})
|
|
3920
|
+
data, status_code, headers = get_conversation_id_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts)
|
|
4583
3921
|
return data
|
|
4584
3922
|
end
|
|
4585
3923
|
|
|
@@ -4590,19 +3928,19 @@ module PureCloud
|
|
|
4590
3928
|
# @param [Hash] opts the optional parameters
|
|
4591
3929
|
# @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
|
|
4592
3930
|
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
4593
|
-
def
|
|
3931
|
+
def get_conversation_id_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts = {})
|
|
4594
3932
|
if @api_client.config.debugging
|
|
4595
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
3933
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id_participants_participant_id_wrapup ..."
|
|
4596
3934
|
end
|
|
4597
3935
|
|
|
4598
3936
|
# verify the required parameter 'conversation_id' is set
|
|
4599
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
|
3937
|
+
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_participants_participant_id_wrapup" if conversation_id.nil?
|
|
4600
3938
|
|
|
4601
3939
|
# verify the required parameter 'participant_id' is set
|
|
4602
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
3940
|
+
fail "Missing the required parameter 'participant_id' when calling get_conversation_id_participants_participant_id_wrapup" if participant_id.nil?
|
|
4603
3941
|
|
|
4604
3942
|
# resource path
|
|
4605
|
-
path = "/api/v2/
|
|
3943
|
+
path = "/api/v2/conversations/{conversationId}/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
4606
3944
|
|
|
4607
3945
|
# query parameters
|
|
4608
3946
|
query_params = {}
|
|
@@ -4635,7 +3973,7 @@ module PureCloud
|
|
|
4635
3973
|
:auth_names => auth_names,
|
|
4636
3974
|
:return_type => 'WrapupCode')
|
|
4637
3975
|
if @api_client.config.debugging
|
|
4638
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
3976
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id_participants_participant_id_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4639
3977
|
end
|
|
4640
3978
|
return data, status_code, headers
|
|
4641
3979
|
end
|
|
@@ -4646,8 +3984,8 @@ module PureCloud
|
|
|
4646
3984
|
# @param participant_id participant ID
|
|
4647
3985
|
# @param [Hash] opts the optional parameters
|
|
4648
3986
|
# @return [WrapupCode]
|
|
4649
|
-
def
|
|
4650
|
-
data, status_code, headers =
|
|
3987
|
+
def get_conversation_id_participants_participant_id_wrapupcodes(conversation_id, participant_id, opts = {})
|
|
3988
|
+
data, status_code, headers = get_conversation_id_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts)
|
|
4651
3989
|
return data
|
|
4652
3990
|
end
|
|
4653
3991
|
|
|
@@ -4657,19 +3995,19 @@ module PureCloud
|
|
|
4657
3995
|
# @param participant_id participant ID
|
|
4658
3996
|
# @param [Hash] opts the optional parameters
|
|
4659
3997
|
# @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers
|
|
4660
|
-
def
|
|
3998
|
+
def get_conversation_id_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts = {})
|
|
4661
3999
|
if @api_client.config.debugging
|
|
4662
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#
|
|
4000
|
+
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id_participants_participant_id_wrapupcodes ..."
|
|
4663
4001
|
end
|
|
4664
4002
|
|
|
4665
4003
|
# verify the required parameter 'conversation_id' is set
|
|
4666
|
-
fail "Missing the required parameter 'conversation_id' when calling
|
|
4004
|
+
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_participants_participant_id_wrapupcodes" if conversation_id.nil?
|
|
4667
4005
|
|
|
4668
4006
|
# verify the required parameter 'participant_id' is set
|
|
4669
|
-
fail "Missing the required parameter 'participant_id' when calling
|
|
4007
|
+
fail "Missing the required parameter 'participant_id' when calling get_conversation_id_participants_participant_id_wrapupcodes" if participant_id.nil?
|
|
4670
4008
|
|
|
4671
4009
|
# resource path
|
|
4672
|
-
path = "/api/v2/
|
|
4010
|
+
path = "/api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
4673
4011
|
|
|
4674
4012
|
# query parameters
|
|
4675
4013
|
query_params = {}
|
|
@@ -4701,73 +4039,7 @@ module PureCloud
|
|
|
4701
4039
|
:auth_names => auth_names,
|
|
4702
4040
|
:return_type => 'WrapupCode')
|
|
4703
4041
|
if @api_client.config.debugging
|
|
4704
|
-
@api_client.config.logger.debug "API called: ConversationsApi#
|
|
4705
|
-
end
|
|
4706
|
-
return data, status_code, headers
|
|
4707
|
-
end
|
|
4708
|
-
|
|
4709
|
-
# Get video conversation
|
|
4710
|
-
#
|
|
4711
|
-
# @param conversation_id conversation ID
|
|
4712
|
-
# @param participant_id participant ID
|
|
4713
|
-
# @param [Hash] opts the optional parameters
|
|
4714
|
-
# @return [VideoConversation]
|
|
4715
|
-
def get_conversation_id_5(conversation_id, participant_id, opts = {})
|
|
4716
|
-
data, status_code, headers = get_conversation_id_5_with_http_info(conversation_id, participant_id, opts)
|
|
4717
|
-
return data
|
|
4718
|
-
end
|
|
4719
|
-
|
|
4720
|
-
# Get video conversation
|
|
4721
|
-
#
|
|
4722
|
-
# @param conversation_id conversation ID
|
|
4723
|
-
# @param participant_id participant ID
|
|
4724
|
-
# @param [Hash] opts the optional parameters
|
|
4725
|
-
# @return [Array<(VideoConversation, Fixnum, Hash)>] VideoConversation data, response status code and response headers
|
|
4726
|
-
def get_conversation_id_5_with_http_info(conversation_id, participant_id, opts = {})
|
|
4727
|
-
if @api_client.config.debugging
|
|
4728
|
-
@api_client.config.logger.debug "Calling API: ConversationsApi#get_conversation_id_5 ..."
|
|
4729
|
-
end
|
|
4730
|
-
|
|
4731
|
-
# verify the required parameter 'conversation_id' is set
|
|
4732
|
-
fail "Missing the required parameter 'conversation_id' when calling get_conversation_id_5" if conversation_id.nil?
|
|
4733
|
-
|
|
4734
|
-
# verify the required parameter 'participant_id' is set
|
|
4735
|
-
fail "Missing the required parameter 'participant_id' when calling get_conversation_id_5" if participant_id.nil?
|
|
4736
|
-
|
|
4737
|
-
# resource path
|
|
4738
|
-
path = "/api/v2/videos/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
|
|
4739
|
-
|
|
4740
|
-
# query parameters
|
|
4741
|
-
query_params = {}
|
|
4742
|
-
|
|
4743
|
-
# header parameters
|
|
4744
|
-
header_params = {}
|
|
4745
|
-
|
|
4746
|
-
# HTTP header 'Accept' (if needed)
|
|
4747
|
-
_header_accept = ['application/json']
|
|
4748
|
-
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
|
4749
|
-
|
|
4750
|
-
# HTTP header 'Content-Type'
|
|
4751
|
-
_header_content_type = ['application/json']
|
|
4752
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
|
4753
|
-
|
|
4754
|
-
# form parameters
|
|
4755
|
-
form_params = {}
|
|
4756
|
-
|
|
4757
|
-
# http body (model)
|
|
4758
|
-
post_body = nil
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
auth_names = ['PureCloud Auth']
|
|
4762
|
-
data, status_code, headers = @api_client.call_api(:GET, path,
|
|
4763
|
-
:header_params => header_params,
|
|
4764
|
-
:query_params => query_params,
|
|
4765
|
-
:form_params => form_params,
|
|
4766
|
-
:body => post_body,
|
|
4767
|
-
:auth_names => auth_names,
|
|
4768
|
-
:return_type => 'VideoConversation')
|
|
4769
|
-
if @api_client.config.debugging
|
|
4770
|
-
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id_5\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4042
|
+
@api_client.config.logger.debug "API called: ConversationsApi#get_conversation_id_participants_participant_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4771
4043
|
end
|
|
4772
4044
|
return data, status_code, headers
|
|
4773
4045
|
end
|