Class: PureCloud::CallsApi
- Inherits:
-
Object
- Object
- PureCloud::CallsApi
- Defined in:
- lib/purecloud/api/calls_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_conversation_id_participants_participant_id_consult(conversation_id, participant_id, opts = {}) ⇒ String
Cancel the transfer.
-
#delete_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(String, Fixnum, Hash)>
Cancel the transfer.
-
#get_calls(conversation_id, participant_id, opts = {}) ⇒ CallConversationEntityListing
Get conversations.
-
#get_calls_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(CallConversationEntityListing, Fixnum, Hash)>
Get conversations.
-
#get_conversation_id(conversation_id, participant_id, opts = {}) ⇒ CallConversation
Get call conversation.
-
#get_conversation_id_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(CallConversation, Fixnum, Hash)>
Get call conversation.
-
#get_maximumconferenceparties(conversation_id, participant_id, opts = {}) ⇒ MaxParticipants
Get the maximum number of participants that this user can have on a conference.
-
#get_maximumconferenceparties_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(MaxParticipants, Fixnum, Hash)>
Get the maximum number of participants that this user can have on a conference.
-
#get_participants_participant_id_wrapup(conversation_id, participant_id, opts = {}) ⇒ WrapupCode
Get the wrap-up for this conversation participant.
-
#get_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(WrapupCode, Fixnum, Hash)>
Get the wrap-up for this conversation participant.
-
#get_participants_participant_id_wrapupcodes(conversation_id, participant_id, opts = {}) ⇒ WrapupCode
Get list of wrapup codes for this conversation participant.
-
#get_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(WrapupCode, Fixnum, Hash)>
Get list of wrapup codes for this conversation participant.
-
#initialize(api_client = ApiClient.default) ⇒ CallsApi
constructor
A new instance of CallsApi.
-
#patch_conversation_id(conversation_id, participant_id, opts = {}) ⇒ Conversation
Update conversation.
-
#patch_conversation_id_participants_participant_id_consult(conversation_id, participant_id, opts = {}) ⇒ ConsultTransferResponse
Change who can speak.
-
#patch_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(ConsultTransferResponse, Fixnum, Hash)>
Change who can speak.
-
#patch_conversation_id_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(Conversation, Fixnum, Hash)>
Update conversation.
-
#patch_participants_participant_id(conversation_id, participant_id, opts = {}) ⇒ nil
Update conversation participant.
-
#patch_participants_participant_id_attributes(conversation_id, participant_id, opts = {}) ⇒ nil
Update the attributes on a conversation participant.
-
#patch_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update the attributes on a conversation participant.
-
#patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update conversation participant.
-
#post_calls(conversation_id, participant_id, opts = {}) ⇒ CreateCallResponse
Create a call conversation.
-
#post_calls_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(CreateCallResponse, Fixnum, Hash)>
Create a call conversation.
-
#post_conversation_id(conversation_id, participant_id, opts = {}) ⇒ Conversation
Add a new call to a conversation.
-
#post_conversation_id_participants(conversation_id, participant_id, opts = {}) ⇒ Conversation
Add participants to a conversation.
-
#post_conversation_id_participants_participant_id_consult(conversation_id, participant_id, opts = {}) ⇒ ConsultTransferResponse
Initiate and update consult transfer.
-
#post_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(ConsultTransferResponse, Fixnum, Hash)>
Initiate and update consult transfer.
-
#post_conversation_id_participants_participant_id_monitor(conversation_id, participant_id, opts = {}) ⇒ nil
Listen in on the conversation from the point of view of a given participant.
-
#post_conversation_id_participants_participant_id_monitor_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Listen in on the conversation from the point of view of a given participant.
-
#post_conversation_id_participants_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(Conversation, Fixnum, Hash)>
Add participants to a conversation.
-
#post_conversation_id_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(Conversation, Fixnum, Hash)>
Add a new call to a conversation.
-
#post_participants_participant_id_replace(conversation_id, participant_id, opts = {}) ⇒ nil
Replace this participant with the specified user and/or address.
-
#post_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Replace this participant with the specified user and/or address.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
5 6 7 |
# File 'lib/purecloud/api/calls_api.rb', line 5 def api_client @api_client end |
Instance Method Details
#delete_conversation_id_participants_participant_id_consult(conversation_id, participant_id, opts = {}) ⇒ String
Cancel the transfer
891 892 893 894 |
# File 'lib/purecloud/api/calls_api.rb', line 891 def delete_conversation_id_participants_participant_id_consult(conversation_id, participant_id, opts = {}) data, status_code, headers = delete_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts) return data end |
#delete_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(String, Fixnum, Hash)>
Cancel the transfer
902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 |
# File 'lib/purecloud/api/calls_api.rb', line 902 def delete_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#delete_conversation_id_participants_participant_id_consult ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling delete_conversation_id_participants_participant_id_consult" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling delete_conversation_id_participants_participant_id_consult" if participant_id.nil? # resource path path = "/api/v2/calls/{conversationId}/participants/{participantId}/consult".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#delete_conversation_id_participants_participant_id_consult\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_calls(conversation_id, participant_id, opts = {}) ⇒ CallConversationEntityListing
Get conversations
17 18 19 20 |
# File 'lib/purecloud/api/calls_api.rb', line 17 def get_calls(conversation_id, participant_id, opts = {}) data, status_code, headers = get_calls_with_http_info(conversation_id, participant_id, opts) return data end |
#get_calls_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(CallConversationEntityListing, Fixnum, Hash)>
Get conversations
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/purecloud/api/calls_api.rb', line 28 def get_calls_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#get_calls ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling get_calls" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling get_calls" if participant_id.nil? # resource path path = "/api/v2/calls".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CallConversationEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#get_calls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_conversation_id(conversation_id, participant_id, opts = {}) ⇒ CallConversation
Get call conversation
553 554 555 556 |
# File 'lib/purecloud/api/calls_api.rb', line 553 def get_conversation_id(conversation_id, participant_id, opts = {}) data, status_code, headers = get_conversation_id_with_http_info(conversation_id, participant_id, opts) return data end |
#get_conversation_id_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(CallConversation, Fixnum, Hash)>
Get call conversation
564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 |
# File 'lib/purecloud/api/calls_api.rb', line 564 def get_conversation_id_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#get_conversation_id ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling get_conversation_id" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling get_conversation_id" if participant_id.nil? # resource path path = "/api/v2/calls/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CallConversation') if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#get_conversation_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_maximumconferenceparties(conversation_id, participant_id, opts = {}) ⇒ MaxParticipants
Get the maximum number of participants that this user can have on a conference
151 152 153 154 |
# File 'lib/purecloud/api/calls_api.rb', line 151 def get_maximumconferenceparties(conversation_id, participant_id, opts = {}) data, status_code, headers = get_maximumconferenceparties_with_http_info(conversation_id, participant_id, opts) return data end |
#get_maximumconferenceparties_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(MaxParticipants, Fixnum, Hash)>
Get the maximum number of participants that this user can have on a conference
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/purecloud/api/calls_api.rb', line 162 def get_maximumconferenceparties_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#get_maximumconferenceparties ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling get_maximumconferenceparties" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling get_maximumconferenceparties" if participant_id.nil? # resource path path = "/api/v2/calls/maximumconferenceparties".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'MaxParticipants') if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#get_maximumconferenceparties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_participants_participant_id_wrapup(conversation_id, participant_id, opts = {}) ⇒ WrapupCode
Get the wrap-up for this conversation participant.
419 420 421 422 |
# File 'lib/purecloud/api/calls_api.rb', line 419 def get_participants_participant_id_wrapup(conversation_id, participant_id, opts = {}) data, status_code, headers = get_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts) return data end |
#get_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(WrapupCode, Fixnum, Hash)>
Get the wrap-up for this conversation participant.
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 |
# File 'lib/purecloud/api/calls_api.rb', line 431 def get_participants_participant_id_wrapup_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#get_participants_participant_id_wrapup ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling get_participants_participant_id_wrapup" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling get_participants_participant_id_wrapup" if participant_id.nil? # resource path path = "/api/v2/calls/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} query_params[:'provisional'] = opts[:'provisional'] if opts[:'provisional'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WrapupCode') if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#get_participants_participant_id_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_participants_participant_id_wrapupcodes(conversation_id, participant_id, opts = {}) ⇒ WrapupCode
Get list of wrapup codes for this conversation participant
487 488 489 490 |
# File 'lib/purecloud/api/calls_api.rb', line 487 def get_participants_participant_id_wrapupcodes(conversation_id, participant_id, opts = {}) data, status_code, headers = get_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts) return data end |
#get_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(WrapupCode, Fixnum, Hash)>
Get list of wrapup codes for this conversation participant
498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 |
# File 'lib/purecloud/api/calls_api.rb', line 498 def get_participants_participant_id_wrapupcodes_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#get_participants_participant_id_wrapupcodes ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling get_participants_participant_id_wrapupcodes" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling get_participants_participant_id_wrapupcodes" if participant_id.nil? # resource path path = "/api/v2/calls/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WrapupCode') if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#get_participants_participant_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_conversation_id(conversation_id, participant_id, opts = {}) ⇒ Conversation
Update conversation
688 689 690 691 |
# File 'lib/purecloud/api/calls_api.rb', line 688 def patch_conversation_id(conversation_id, participant_id, opts = {}) data, status_code, headers = patch_conversation_id_with_http_info(conversation_id, participant_id, opts) return data end |
#patch_conversation_id_participants_participant_id_consult(conversation_id, participant_id, opts = {}) ⇒ ConsultTransferResponse
Change who can speak
958 959 960 961 |
# File 'lib/purecloud/api/calls_api.rb', line 958 def patch_conversation_id_participants_participant_id_consult(conversation_id, participant_id, opts = {}) data, status_code, headers = patch_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts) return data end |
#patch_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(ConsultTransferResponse, Fixnum, Hash)>
Change who can speak
970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 |
# File 'lib/purecloud/api/calls_api.rb', line 970 def patch_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#patch_conversation_id_participants_participant_id_consult ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling patch_conversation_id_participants_participant_id_consult" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling patch_conversation_id_participants_participant_id_consult" if participant_id.nil? # resource path path = "/api/v2/calls/{conversationId}/participants/{participantId}/consult".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PATCH, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ConsultTransferResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#patch_conversation_id_participants_participant_id_consult\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_conversation_id_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(Conversation, Fixnum, Hash)>
Update conversation
700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 |
# File 'lib/purecloud/api/calls_api.rb', line 700 def patch_conversation_id_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#patch_conversation_id ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling patch_conversation_id" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling patch_conversation_id" if participant_id.nil? # resource path path = "/api/v2/calls/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PATCH, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Conversation') if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#patch_conversation_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_participants_participant_id(conversation_id, participant_id, opts = {}) ⇒ nil
Update conversation participant
218 219 220 221 |
# File 'lib/purecloud/api/calls_api.rb', line 218 def patch_participants_participant_id(conversation_id, participant_id, opts = {}) patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts) return nil end |
#patch_participants_participant_id_attributes(conversation_id, participant_id, opts = {}) ⇒ nil
Update the attributes on a conversation participant.
285 286 287 288 |
# File 'lib/purecloud/api/calls_api.rb', line 285 def patch_participants_participant_id_attributes(conversation_id, participant_id, opts = {}) patch_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts) return nil end |
#patch_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update the attributes on a conversation participant.
297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 |
# File 'lib/purecloud/api/calls_api.rb', line 297 def patch_participants_participant_id_attributes_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#patch_participants_participant_id_attributes ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling patch_participants_participant_id_attributes" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id_attributes" if participant_id.nil? # resource path path = "/api/v2/calls/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PATCH, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#patch_participants_participant_id_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update conversation participant
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/purecloud/api/calls_api.rb', line 230 def patch_participants_participant_id_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#patch_participants_participant_id ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling patch_participants_participant_id" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling patch_participants_participant_id" if participant_id.nil? # resource path path = "/api/v2/calls/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PATCH, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#patch_participants_participant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_calls(conversation_id, participant_id, opts = {}) ⇒ CreateCallResponse
Create a call conversation
84 85 86 87 |
# File 'lib/purecloud/api/calls_api.rb', line 84 def post_calls(conversation_id, participant_id, opts = {}) data, status_code, headers = post_calls_with_http_info(conversation_id, participant_id, opts) return data end |
#post_calls_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(CreateCallResponse, Fixnum, Hash)>
Create a call conversation
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/purecloud/api/calls_api.rb', line 96 def post_calls_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#post_calls ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling post_calls" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling post_calls" if participant_id.nil? # resource path path = "/api/v2/calls".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CreateCallResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#post_calls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_conversation_id(conversation_id, participant_id, opts = {}) ⇒ Conversation
Add a new call to a conversation
620 621 622 623 |
# File 'lib/purecloud/api/calls_api.rb', line 620 def post_conversation_id(conversation_id, participant_id, opts = {}) data, status_code, headers = post_conversation_id_with_http_info(conversation_id, participant_id, opts) return data end |
#post_conversation_id_participants(conversation_id, participant_id, opts = {}) ⇒ Conversation
Add participants to a conversation
756 757 758 759 |
# File 'lib/purecloud/api/calls_api.rb', line 756 def post_conversation_id_participants(conversation_id, participant_id, opts = {}) data, status_code, headers = post_conversation_id_participants_with_http_info(conversation_id, participant_id, opts) return data end |
#post_conversation_id_participants_participant_id_consult(conversation_id, participant_id, opts = {}) ⇒ ConsultTransferResponse
Initiate and update consult transfer
824 825 826 827 |
# File 'lib/purecloud/api/calls_api.rb', line 824 def post_conversation_id_participants_participant_id_consult(conversation_id, participant_id, opts = {}) data, status_code, headers = post_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts) return data end |
#post_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(ConsultTransferResponse, Fixnum, Hash)>
Initiate and update consult transfer
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 |
# File 'lib/purecloud/api/calls_api.rb', line 836 def post_conversation_id_participants_participant_id_consult_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#post_conversation_id_participants_participant_id_consult ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_participants_participant_id_consult" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling post_conversation_id_participants_participant_id_consult" if participant_id.nil? # resource path path = "/api/v2/calls/{conversationId}/participants/{participantId}/consult".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ConsultTransferResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#post_conversation_id_participants_participant_id_consult\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_conversation_id_participants_participant_id_monitor(conversation_id, participant_id, opts = {}) ⇒ nil
Listen in on the conversation from the point of view of a given participant.
1025 1026 1027 1028 |
# File 'lib/purecloud/api/calls_api.rb', line 1025 def post_conversation_id_participants_participant_id_monitor(conversation_id, participant_id, opts = {}) post_conversation_id_participants_participant_id_monitor_with_http_info(conversation_id, participant_id, opts) return nil end |
#post_conversation_id_participants_participant_id_monitor_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Listen in on the conversation from the point of view of a given participant.
1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 |
# File 'lib/purecloud/api/calls_api.rb', line 1036 def post_conversation_id_participants_participant_id_monitor_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#post_conversation_id_participants_participant_id_monitor ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_participants_participant_id_monitor" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling post_conversation_id_participants_participant_id_monitor" if participant_id.nil? # resource path path = "/api/v2/calls/{conversationId}/participants/{participantId}/monitor".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#post_conversation_id_participants_participant_id_monitor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_conversation_id_participants_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(Conversation, Fixnum, Hash)>
Add participants to a conversation
768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 |
# File 'lib/purecloud/api/calls_api.rb', line 768 def post_conversation_id_participants_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#post_conversation_id_participants ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling post_conversation_id_participants" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling post_conversation_id_participants" if participant_id.nil? # resource path path = "/api/v2/calls/{conversationId}/participants".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Conversation') if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#post_conversation_id_participants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_conversation_id_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(Conversation, Fixnum, Hash)>
Add a new call to a conversation
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 |
# File 'lib/purecloud/api/calls_api.rb', line 632 def post_conversation_id_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#post_conversation_id ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling post_conversation_id" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling post_conversation_id" if participant_id.nil? # resource path path = "/api/v2/calls/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Conversation') if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#post_conversation_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_participants_participant_id_replace(conversation_id, participant_id, opts = {}) ⇒ nil
Replace this participant with the specified user and/or address
352 353 354 355 |
# File 'lib/purecloud/api/calls_api.rb', line 352 def post_participants_participant_id_replace(conversation_id, participant_id, opts = {}) post_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts) return nil end |
#post_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Replace this participant with the specified user and/or address
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 |
# File 'lib/purecloud/api/calls_api.rb', line 364 def post_participants_participant_id_replace_with_http_info(conversation_id, participant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CallsApi#post_participants_participant_id_replace ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling post_participants_participant_id_replace" if conversation_id.nil? # verify the required parameter 'participant_id' is set fail "Missing the required parameter 'participant_id' when calling post_participants_participant_id_replace" if participant_id.nil? # resource path path = "/api/v2/calls/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallsApi#post_participants_participant_id_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |