freeclimb 3.0.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/Gemfile +4 -2
- data/Gemfile.lock +38 -19
- data/README.md +37 -35
- data/docs/AccountRequest.md +9 -8
- data/docs/AccountResult.md +27 -26
- data/docs/AccountResultAllOf.md +19 -18
- data/docs/AddToConference.md +25 -24
- data/docs/AddToConferenceAllOf.md +25 -24
- data/docs/ApplicationList.md +21 -20
- data/docs/ApplicationListAllOf.md +7 -6
- data/docs/ApplicationRequest.md +19 -18
- data/docs/ApplicationResult.md +31 -30
- data/docs/ApplicationResultAllOf.md +23 -22
- data/docs/AvailableNumber.md +17 -16
- data/docs/AvailableNumberList.md +21 -20
- data/docs/AvailableNumberListAllOf.md +7 -6
- data/docs/BuyIncomingNumberRequest.md +11 -10
- data/docs/CallList.md +21 -20
- data/docs/CallListAllOf.md +7 -6
- data/docs/CallResult.md +43 -44
- data/docs/CallResultAllOf.md +35 -36
- data/docs/Capabilities.md +26 -0
- data/docs/ConferenceList.md +21 -20
- data/docs/ConferenceListAllOf.md +7 -6
- data/docs/ConferenceParticipantList.md +21 -20
- data/docs/ConferenceParticipantListAllOf.md +7 -6
- data/docs/ConferenceParticipantResult.md +25 -24
- data/docs/ConferenceParticipantResultAllOf.md +17 -16
- data/docs/ConferenceResult.md +33 -32
- data/docs/ConferenceResultAllOf.md +25 -24
- data/docs/CreateConference.md +17 -16
- data/docs/CreateConferenceAllOf.md +17 -16
- data/docs/CreateConferenceRequest.md +15 -14
- data/docs/DefaultApi.md +1629 -629
- data/docs/Dequeue.md +3 -4
- data/docs/Enqueue.md +13 -12
- data/docs/EnqueueAllOf.md +13 -12
- data/docs/FilterLogsRequest.md +7 -6
- data/docs/GetDigits.md +23 -22
- data/docs/GetDigitsAllOf.md +23 -22
- data/docs/GetSpeech.md +31 -30
- data/docs/GetSpeechAllOf.md +31 -30
- data/docs/Hangup.md +7 -6
- data/docs/HangupAllOf.md +7 -6
- data/docs/IncomingNumberList.md +21 -20
- data/docs/IncomingNumberListAllOf.md +7 -6
- data/docs/IncomingNumberRequest.md +9 -8
- data/docs/IncomingNumberResult.md +33 -30
- data/docs/IncomingNumberResultAllOf.md +25 -22
- data/docs/LogList.md +21 -20
- data/docs/LogListAllOf.md +7 -6
- data/docs/LogResult.md +19 -18
- data/docs/MakeCallRequest.md +25 -24
- data/docs/MessageRequest.md +23 -22
- data/docs/MessageRequestAllOf.md +15 -14
- data/docs/MessageResult.md +29 -28
- data/docs/MessageResultAllOf.md +21 -20
- data/docs/MessagesList.md +21 -20
- data/docs/MessagesListAllOf.md +7 -6
- data/docs/MutableResourceModel.md +13 -12
- data/docs/OutDial.md +25 -24
- data/docs/OutDialAllOf.md +25 -24
- data/docs/PaginationModel.md +19 -18
- data/docs/Pause.md +7 -6
- data/docs/PauseAllOf.md +7 -6
- data/docs/PerclCommand.md +7 -6
- data/docs/PerclScript.md +7 -6
- data/docs/Play.md +13 -12
- data/docs/PlayAllOf.md +13 -12
- data/docs/PlayEarlyMedia.md +7 -6
- data/docs/PlayEarlyMediaAllOf.md +7 -6
- data/docs/QueueList.md +21 -20
- data/docs/QueueListAllOf.md +7 -6
- data/docs/QueueMember.md +15 -14
- data/docs/QueueMemberList.md +21 -20
- data/docs/QueueMemberListAllOf.md +7 -6
- data/docs/QueueRequest.md +9 -8
- data/docs/QueueResult.md +27 -26
- data/docs/QueueResultAllOf.md +19 -18
- data/docs/RecordUtterance.md +19 -18
- data/docs/RecordUtteranceAllOf.md +19 -18
- data/docs/RecordingList.md +21 -20
- data/docs/RecordingListAllOf.md +7 -6
- data/docs/RecordingResult.md +23 -22
- data/docs/RecordingResultAllOf.md +15 -14
- data/docs/Redirect.md +7 -6
- data/docs/RedirectAllOf.md +7 -6
- data/docs/Reject.md +7 -6
- data/docs/RejectAllOf.md +7 -6
- data/docs/RemoveFromConference.md +7 -6
- data/docs/RemoveFromConferenceAllOf.md +7 -6
- data/docs/Say.md +15 -14
- data/docs/SayAllOf.md +15 -14
- data/docs/SendDigits.md +11 -10
- data/docs/SendDigitsAllOf.md +11 -10
- data/docs/SetListen.md +9 -8
- data/docs/SetListenAllOf.md +9 -8
- data/docs/SetTalk.md +9 -8
- data/docs/SetTalkAllOf.md +9 -8
- data/docs/Sms.md +13 -12
- data/docs/SmsAllOf.md +13 -12
- data/docs/StartRecordCall.md +3 -4
- data/docs/TerminateConference.md +7 -6
- data/docs/TerminateConferenceAllOf.md +7 -6
- data/docs/UpdateCallRequest.md +7 -6
- data/docs/UpdateConferenceParticipantRequest.md +9 -8
- data/docs/UpdateConferenceRequest.md +11 -10
- data/freeclimb.gemspec +3 -4
- data/lib/freeclimb/api/default_api.rb +449 -263
- data/lib/freeclimb/api_client.rb +55 -51
- data/lib/freeclimb/api_error.rb +2 -2
- data/lib/freeclimb/configuration.rb +41 -11
- data/lib/freeclimb/models/account_request.rb +20 -8
- data/lib/freeclimb/models/account_result.rb +39 -8
- data/lib/freeclimb/models/account_result_all_of.rb +39 -8
- data/lib/freeclimb/models/add_to_conference.rb +21 -8
- data/lib/freeclimb/models/add_to_conference_all_of.rb +20 -8
- data/lib/freeclimb/models/application_list.rb +28 -8
- data/lib/freeclimb/models/application_list_all_of.rb +21 -8
- data/lib/freeclimb/models/application_request.rb +20 -8
- data/lib/freeclimb/models/application_result.rb +29 -8
- data/lib/freeclimb/models/application_result_all_of.rb +29 -8
- data/lib/freeclimb/models/available_number.rb +35 -19
- data/lib/freeclimb/models/available_number_list.rb +28 -8
- data/lib/freeclimb/models/available_number_list_all_of.rb +21 -8
- data/lib/freeclimb/models/buy_incoming_number_request.rb +20 -8
- data/lib/freeclimb/models/call_list.rb +28 -8
- data/lib/freeclimb/models/call_list_all_of.rb +21 -8
- data/lib/freeclimb/models/call_result.rb +36 -21
- data/lib/freeclimb/models/call_result_all_of.rb +36 -21
- data/lib/freeclimb/models/capabilities.rb +265 -0
- data/lib/freeclimb/models/conference_list.rb +28 -8
- data/lib/freeclimb/models/conference_list_all_of.rb +21 -8
- data/lib/freeclimb/models/conference_participant_list.rb +28 -8
- data/lib/freeclimb/models/conference_participant_list_all_of.rb +21 -8
- data/lib/freeclimb/models/conference_participant_result.rb +26 -8
- data/lib/freeclimb/models/conference_participant_result_all_of.rb +26 -8
- data/lib/freeclimb/models/conference_result.rb +30 -8
- data/lib/freeclimb/models/conference_result_all_of.rb +30 -8
- data/lib/freeclimb/models/create_conference.rb +21 -8
- data/lib/freeclimb/models/create_conference_all_of.rb +20 -8
- data/lib/freeclimb/models/create_conference_request.rb +20 -8
- data/lib/freeclimb/models/dequeue.rb +21 -8
- data/lib/freeclimb/models/enqueue.rb +21 -8
- data/lib/freeclimb/models/enqueue_all_of.rb +20 -8
- data/lib/freeclimb/models/filter_logs_request.rb +20 -8
- data/lib/freeclimb/models/get_digits.rb +21 -8
- data/lib/freeclimb/models/get_digits_all_of.rb +20 -8
- data/lib/freeclimb/models/get_speech.rb +21 -8
- data/lib/freeclimb/models/get_speech_all_of.rb +20 -8
- data/lib/freeclimb/models/hangup.rb +21 -8
- data/lib/freeclimb/models/hangup_all_of.rb +20 -8
- data/lib/freeclimb/models/incoming_number_list.rb +28 -8
- data/lib/freeclimb/models/incoming_number_list_all_of.rb +21 -8
- data/lib/freeclimb/models/incoming_number_request.rb +20 -8
- data/lib/freeclimb/models/incoming_number_result.rb +39 -9
- data/lib/freeclimb/models/incoming_number_result_all_of.rb +39 -9
- data/lib/freeclimb/models/log_list.rb +28 -8
- data/lib/freeclimb/models/log_list_all_of.rb +21 -8
- data/lib/freeclimb/models/log_result.rb +27 -8
- data/lib/freeclimb/models/make_call_request.rb +22 -8
- data/lib/freeclimb/models/message_request.rb +20 -8
- data/lib/freeclimb/models/message_request_all_of.rb +20 -8
- data/lib/freeclimb/models/message_result.rb +28 -8
- data/lib/freeclimb/models/message_result_all_of.rb +28 -8
- data/lib/freeclimb/models/messages_list.rb +28 -8
- data/lib/freeclimb/models/messages_list_all_of.rb +21 -8
- data/lib/freeclimb/models/mutable_resource_model.rb +20 -8
- data/lib/freeclimb/models/out_dial.rb +21 -8
- data/lib/freeclimb/models/out_dial_all_of.rb +20 -8
- data/lib/freeclimb/models/pagination_model.rb +27 -8
- data/lib/freeclimb/models/pause.rb +21 -8
- data/lib/freeclimb/models/pause_all_of.rb +20 -8
- data/lib/freeclimb/models/percl_command.rb +39 -8
- data/lib/freeclimb/models/percl_script.rb +24 -8
- data/lib/freeclimb/models/play.rb +21 -8
- data/lib/freeclimb/models/play_all_of.rb +20 -8
- data/lib/freeclimb/models/play_early_media.rb +21 -8
- data/lib/freeclimb/models/play_early_media_all_of.rb +20 -8
- data/lib/freeclimb/models/queue_list.rb +28 -8
- data/lib/freeclimb/models/queue_list_all_of.rb +21 -8
- data/lib/freeclimb/models/queue_member.rb +25 -8
- data/lib/freeclimb/models/queue_member_list.rb +28 -8
- data/lib/freeclimb/models/queue_member_list_all_of.rb +21 -8
- data/lib/freeclimb/models/queue_request.rb +22 -8
- data/lib/freeclimb/models/queue_result.rb +27 -8
- data/lib/freeclimb/models/queue_result_all_of.rb +27 -8
- data/lib/freeclimb/models/record_utterance.rb +21 -8
- data/lib/freeclimb/models/record_utterance_all_of.rb +20 -8
- data/lib/freeclimb/models/recording_list.rb +28 -8
- data/lib/freeclimb/models/recording_list_all_of.rb +21 -8
- data/lib/freeclimb/models/recording_result.rb +25 -8
- data/lib/freeclimb/models/recording_result_all_of.rb +25 -8
- data/lib/freeclimb/models/redirect.rb +21 -8
- data/lib/freeclimb/models/redirect_all_of.rb +20 -8
- data/lib/freeclimb/models/reject.rb +21 -8
- data/lib/freeclimb/models/reject_all_of.rb +20 -8
- data/lib/freeclimb/models/remove_from_conference.rb +21 -8
- data/lib/freeclimb/models/remove_from_conference_all_of.rb +20 -8
- data/lib/freeclimb/models/say.rb +21 -8
- data/lib/freeclimb/models/say_all_of.rb +20 -8
- data/lib/freeclimb/models/send_digits.rb +21 -8
- data/lib/freeclimb/models/send_digits_all_of.rb +20 -8
- data/lib/freeclimb/models/set_listen.rb +21 -8
- data/lib/freeclimb/models/set_listen_all_of.rb +20 -8
- data/lib/freeclimb/models/set_talk.rb +21 -8
- data/lib/freeclimb/models/set_talk_all_of.rb +20 -8
- data/lib/freeclimb/models/sms.rb +21 -8
- data/lib/freeclimb/models/sms_all_of.rb +20 -8
- data/lib/freeclimb/models/start_record_call.rb +21 -8
- data/lib/freeclimb/models/terminate_conference.rb +21 -8
- data/lib/freeclimb/models/terminate_conference_all_of.rb +20 -8
- data/lib/freeclimb/models/update_call_request.rb +20 -8
- data/lib/freeclimb/models/update_conference_participant_request.rb +20 -8
- data/lib/freeclimb/models/update_conference_request.rb +20 -8
- data/lib/freeclimb/version.rb +3 -3
- data/lib/freeclimb.rb +25 -53
- data/spec/api/default_api_spec.rb +1095 -668
- data/spec/api_client_spec.rb +7 -7
- data/spec/configuration_spec.rb +13 -5
- data/spec/factories.rb +80 -0
- data/spec/models/account_request_spec.rb +20 -13
- data/spec/models/account_result_spec.rb +81 -12
- data/spec/models/add_to_conference_spec.rb +7 -14
- data/spec/models/application_list_spec.rb +55 -12
- data/spec/models/application_request_spec.rb +49 -12
- data/spec/models/application_result_spec.rb +85 -12
- data/spec/models/available_number_list_spec.rb +55 -13
- data/spec/models/available_number_spec.rb +43 -12
- data/spec/models/buy_incoming_number_request_spec.rb +25 -12
- data/spec/models/call_list_spec.rb +55 -13
- data/spec/models/call_result_spec.rb +124 -12
- data/spec/models/capabilities_spec.rb +58 -0
- data/spec/models/conference_list_spec.rb +55 -12
- data/spec/models/conference_participant_list_spec.rb +55 -12
- data/spec/models/conference_participant_result_spec.rb +67 -12
- data/spec/models/conference_result_spec.rb +99 -13
- data/spec/models/create_conference_request_spec.rb +41 -13
- data/spec/models/create_conference_spec.rb +7 -14
- data/spec/models/dequeue_spec.rb +7 -14
- data/spec/models/enqueue_spec.rb +7 -14
- data/spec/models/filter_logs_request_spec.rb +15 -14
- data/spec/models/get_digits_spec.rb +13 -14
- data/spec/models/get_speech_spec.rb +8 -15
- data/spec/models/hangup_spec.rb +5 -12
- data/spec/models/incoming_number_list_spec.rb +55 -13
- data/spec/models/incoming_number_request_spec.rb +20 -13
- data/spec/models/incoming_number_result_spec.rb +91 -13
- data/spec/models/log_list_spec.rb +55 -12
- data/spec/models/log_result_spec.rb +53 -12
- data/spec/models/make_call_request_spec.rb +67 -12
- data/spec/models/message_request_spec.rb +61 -13
- data/spec/models/message_result_spec.rb +83 -12
- data/spec/models/messages_list_spec.rb +55 -12
- data/spec/models/mutable_resource_model_spec.rb +31 -13
- data/spec/models/out_dial_spec.rb +13 -14
- data/spec/models/pagination_model_spec.rb +49 -12
- data/spec/models/pause_spec.rb +7 -14
- data/spec/models/percl_command_spec.rb +7 -14
- data/spec/models/percl_script_spec.rb +7 -14
- data/spec/models/play_early_media_spec.rb +7 -14
- data/spec/models/play_spec.rb +13 -14
- data/spec/models/queue_list_spec.rb +54 -12
- data/spec/models/queue_member_list_spec.rb +55 -12
- data/spec/models/queue_member_spec.rb +37 -13
- data/spec/models/queue_request_spec.rb +20 -14
- data/spec/models/queue_result_spec.rb +73 -12
- data/spec/models/record_utterance_spec.rb +13 -14
- data/spec/models/recording_list_spec.rb +55 -12
- data/spec/models/recording_result_spec.rb +61 -12
- data/spec/models/redirect_spec.rb +7 -14
- data/spec/models/reject_spec.rb +5 -12
- data/spec/models/remove_from_conference_spec.rb +7 -14
- data/spec/models/say_spec.rb +8 -15
- data/spec/models/send_digits_spec.rb +13 -14
- data/spec/models/set_listen_spec.rb +7 -14
- data/spec/models/set_talk_spec.rb +7 -14
- data/spec/models/sms_spec.rb +7 -14
- data/spec/models/start_record_call_spec.rb +7 -14
- data/spec/models/terminate_conference_spec.rb +7 -14
- data/spec/models/update_call_request_spec.rb +19 -14
- data/spec/models/update_conference_participant_request_spec.rb +20 -13
- data/spec/models/update_conference_request_spec.rb +29 -12
- data/spec/quickstart_spec.rb +10 -0
- data/spec/spec_helper.rb +62 -7
- metadata +17 -38
- data/freeclimb-2.0.3.gem +0 -0
- data/freeclimb-2.1.0.gem +0 -0
- data/freeclimb-2.1.1.gem +0 -0
- data/freeclimb-2.1.2.gem +0 -0
- data/freeclimb-2.2.0.gem +0 -0
- data/freeclimb-3.0.0.gem +0 -0
- data/lib/freeclimb/utils.rb +0 -34
- data/spec/api/web_mocks.rb +0 -473
@@ -4,9 +4,9 @@
|
|
4
4
|
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
|
-
|
7
|
+
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,69 +15,15 @@ require 'cgi'
|
|
15
15
|
module Freeclimb
|
16
16
|
class DefaultApi
|
17
17
|
attr_accessor :api_client
|
18
|
+
attr_accessor :account_id
|
18
19
|
|
19
20
|
def initialize(api_client = ApiClient.default, account_id = nil)
|
20
21
|
@api_client = api_client
|
21
|
-
|
22
|
+
@account_id = account_id
|
23
|
+
if @account_id.nil?
|
22
24
|
@account_id = api_client.config.username
|
23
|
-
else
|
24
|
-
@account_id = account_id
|
25
25
|
end
|
26
26
|
end
|
27
|
-
# Get an Account
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [AccountResult]
|
30
|
-
def get_an_account(opts = {})
|
31
|
-
data, _status_code, _headers = get_an_account_with_http_info(opts)
|
32
|
-
data
|
33
|
-
end
|
34
|
-
|
35
|
-
# Get an Account
|
36
|
-
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(AccountResult, Integer, Hash)>] AccountResult data, response status code and response headers
|
38
|
-
def get_an_account_with_http_info(opts = {})
|
39
|
-
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.get_an_account ...'
|
41
|
-
end
|
42
|
-
# resource path
|
43
|
-
local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
44
|
-
|
45
|
-
# query parameters
|
46
|
-
query_params = opts[:query_params] || {}
|
47
|
-
|
48
|
-
# header parameters
|
49
|
-
header_params = opts[:header_params] || {}
|
50
|
-
# HTTP header 'Accept' (if needed)
|
51
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
52
|
-
|
53
|
-
# form parameters
|
54
|
-
form_params = opts[:form_params] || {}
|
55
|
-
|
56
|
-
# http body (model)
|
57
|
-
post_body = opts[:body]
|
58
|
-
|
59
|
-
# return_type
|
60
|
-
return_type = opts[:return_type] || 'AccountResult'
|
61
|
-
|
62
|
-
# auth_names
|
63
|
-
auth_names = opts[:auth_names] || ['fc']
|
64
|
-
|
65
|
-
new_options = opts.merge(
|
66
|
-
:header_params => header_params,
|
67
|
-
:query_params => query_params,
|
68
|
-
:form_params => form_params,
|
69
|
-
:body => post_body,
|
70
|
-
:auth_names => auth_names,
|
71
|
-
:return_type => return_type
|
72
|
-
)
|
73
|
-
|
74
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
75
|
-
if @api_client.config.debugging
|
76
|
-
@api_client.config.logger.debug "API called: DefaultApi#get_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
77
|
-
end
|
78
|
-
return data, status_code, headers
|
79
|
-
end
|
80
|
-
|
81
27
|
# Buy a Phone Number
|
82
28
|
# @param buy_incoming_number_request [BuyIncomingNumberRequest] Incoming Number transaction details
|
83
29
|
# @param [Hash] opts the optional parameters
|
@@ -95,12 +41,13 @@ module Freeclimb
|
|
95
41
|
if @api_client.config.debugging
|
96
42
|
@api_client.config.logger.debug 'Calling API: DefaultApi.buy_a_phone_number ...'
|
97
43
|
end
|
44
|
+
|
98
45
|
# verify the required parameter 'buy_incoming_number_request' is set
|
99
46
|
if @api_client.config.client_side_validation && buy_incoming_number_request.nil?
|
100
47
|
fail ArgumentError, "Missing the required parameter 'buy_incoming_number_request' when calling DefaultApi.buy_a_phone_number"
|
101
48
|
end
|
102
49
|
# resource path
|
103
|
-
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(
|
50
|
+
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
104
51
|
|
105
52
|
# query parameters
|
106
53
|
query_params = opts[:query_params] || {}
|
@@ -110,21 +57,25 @@ module Freeclimb
|
|
110
57
|
# HTTP header 'Accept' (if needed)
|
111
58
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
112
59
|
# HTTP header 'Content-Type'
|
113
|
-
|
60
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
61
|
+
if !content_type.nil?
|
62
|
+
header_params['Content-Type'] = content_type
|
63
|
+
end
|
114
64
|
|
115
65
|
# form parameters
|
116
66
|
form_params = opts[:form_params] || {}
|
117
67
|
|
118
68
|
# http body (model)
|
119
|
-
post_body = opts[:
|
69
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(buy_incoming_number_request)
|
120
70
|
|
121
71
|
# return_type
|
122
|
-
return_type = opts[:
|
72
|
+
return_type = opts[:debug_return_type] || 'IncomingNumberResult'
|
123
73
|
|
124
74
|
# auth_names
|
125
|
-
auth_names = opts[:
|
75
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
126
76
|
|
127
77
|
new_options = opts.merge(
|
78
|
+
:operation => :"DefaultApi.buy_a_phone_number",
|
128
79
|
:header_params => header_params,
|
129
80
|
:query_params => query_params,
|
130
81
|
:form_params => form_params,
|
@@ -158,7 +109,7 @@ module Freeclimb
|
|
158
109
|
@api_client.config.logger.debug 'Calling API: DefaultApi.create_a_conference ...'
|
159
110
|
end
|
160
111
|
# resource path
|
161
|
-
local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(
|
112
|
+
local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
162
113
|
|
163
114
|
# query parameters
|
164
115
|
query_params = opts[:query_params] || {}
|
@@ -168,21 +119,25 @@ module Freeclimb
|
|
168
119
|
# HTTP header 'Accept' (if needed)
|
169
120
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
170
121
|
# HTTP header 'Content-Type'
|
171
|
-
|
122
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
123
|
+
if !content_type.nil?
|
124
|
+
header_params['Content-Type'] = content_type
|
125
|
+
end
|
172
126
|
|
173
127
|
# form parameters
|
174
128
|
form_params = opts[:form_params] || {}
|
175
129
|
|
176
130
|
# http body (model)
|
177
|
-
post_body = opts[:
|
131
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_conference_request'])
|
178
132
|
|
179
133
|
# return_type
|
180
|
-
return_type = opts[:
|
134
|
+
return_type = opts[:debug_return_type] || 'ConferenceResult'
|
181
135
|
|
182
136
|
# auth_names
|
183
|
-
auth_names = opts[:
|
137
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
184
138
|
|
185
139
|
new_options = opts.merge(
|
140
|
+
:operation => :"DefaultApi.create_a_conference",
|
186
141
|
:header_params => header_params,
|
187
142
|
:query_params => query_params,
|
188
143
|
:form_params => form_params,
|
@@ -216,7 +171,7 @@ module Freeclimb
|
|
216
171
|
@api_client.config.logger.debug 'Calling API: DefaultApi.create_a_queue ...'
|
217
172
|
end
|
218
173
|
# resource path
|
219
|
-
local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(
|
174
|
+
local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
220
175
|
|
221
176
|
# query parameters
|
222
177
|
query_params = opts[:query_params] || {}
|
@@ -226,21 +181,25 @@ module Freeclimb
|
|
226
181
|
# HTTP header 'Accept' (if needed)
|
227
182
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
228
183
|
# HTTP header 'Content-Type'
|
229
|
-
|
184
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
185
|
+
if !content_type.nil?
|
186
|
+
header_params['Content-Type'] = content_type
|
187
|
+
end
|
230
188
|
|
231
189
|
# form parameters
|
232
190
|
form_params = opts[:form_params] || {}
|
233
191
|
|
234
192
|
# http body (model)
|
235
|
-
post_body = opts[:
|
193
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'queue_request'])
|
236
194
|
|
237
195
|
# return_type
|
238
|
-
return_type = opts[:
|
196
|
+
return_type = opts[:debug_return_type] || 'QueueResult'
|
239
197
|
|
240
198
|
# auth_names
|
241
|
-
auth_names = opts[:
|
199
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
242
200
|
|
243
201
|
new_options = opts.merge(
|
202
|
+
:operation => :"DefaultApi.create_a_queue",
|
244
203
|
:header_params => header_params,
|
245
204
|
:query_params => query_params,
|
246
205
|
:form_params => form_params,
|
@@ -274,7 +233,7 @@ module Freeclimb
|
|
274
233
|
@api_client.config.logger.debug 'Calling API: DefaultApi.create_an_application ...'
|
275
234
|
end
|
276
235
|
# resource path
|
277
|
-
local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(
|
236
|
+
local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
278
237
|
|
279
238
|
# query parameters
|
280
239
|
query_params = opts[:query_params] || {}
|
@@ -284,21 +243,25 @@ module Freeclimb
|
|
284
243
|
# HTTP header 'Accept' (if needed)
|
285
244
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
286
245
|
# HTTP header 'Content-Type'
|
287
|
-
|
246
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
247
|
+
if !content_type.nil?
|
248
|
+
header_params['Content-Type'] = content_type
|
249
|
+
end
|
288
250
|
|
289
251
|
# form parameters
|
290
252
|
form_params = opts[:form_params] || {}
|
291
253
|
|
292
254
|
# http body (model)
|
293
|
-
post_body = opts[:
|
255
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])
|
294
256
|
|
295
257
|
# return_type
|
296
|
-
return_type = opts[:
|
258
|
+
return_type = opts[:debug_return_type] || 'ApplicationResult'
|
297
259
|
|
298
260
|
# auth_names
|
299
|
-
auth_names = opts[:
|
261
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
300
262
|
|
301
263
|
new_options = opts.merge(
|
264
|
+
:operation => :"DefaultApi.create_an_application",
|
302
265
|
:header_params => header_params,
|
303
266
|
:query_params => query_params,
|
304
267
|
:form_params => form_params,
|
@@ -331,12 +294,13 @@ module Freeclimb
|
|
331
294
|
if @api_client.config.debugging
|
332
295
|
@api_client.config.logger.debug 'Calling API: DefaultApi.delete_a_recording ...'
|
333
296
|
end
|
297
|
+
|
334
298
|
# verify the required parameter 'recording_id' is set
|
335
299
|
if @api_client.config.client_side_validation && recording_id.nil?
|
336
300
|
fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.delete_a_recording"
|
337
301
|
end
|
338
302
|
# resource path
|
339
|
-
local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
303
|
+
local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
|
340
304
|
|
341
305
|
# query parameters
|
342
306
|
query_params = opts[:query_params] || {}
|
@@ -348,15 +312,16 @@ module Freeclimb
|
|
348
312
|
form_params = opts[:form_params] || {}
|
349
313
|
|
350
314
|
# http body (model)
|
351
|
-
post_body = opts[:
|
315
|
+
post_body = opts[:debug_body]
|
352
316
|
|
353
317
|
# return_type
|
354
|
-
return_type = opts[:
|
318
|
+
return_type = opts[:debug_return_type]
|
355
319
|
|
356
320
|
# auth_names
|
357
|
-
auth_names = opts[:
|
321
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
358
322
|
|
359
323
|
new_options = opts.merge(
|
324
|
+
:operation => :"DefaultApi.delete_a_recording",
|
360
325
|
:header_params => header_params,
|
361
326
|
:query_params => query_params,
|
362
327
|
:form_params => form_params,
|
@@ -389,12 +354,13 @@ module Freeclimb
|
|
389
354
|
if @api_client.config.debugging
|
390
355
|
@api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_application ...'
|
391
356
|
end
|
357
|
+
|
392
358
|
# verify the required parameter 'application_id' is set
|
393
359
|
if @api_client.config.client_side_validation && application_id.nil?
|
394
360
|
fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.delete_an_application"
|
395
361
|
end
|
396
362
|
# resource path
|
397
|
-
local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
363
|
+
local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
|
398
364
|
|
399
365
|
# query parameters
|
400
366
|
query_params = opts[:query_params] || {}
|
@@ -406,15 +372,16 @@ module Freeclimb
|
|
406
372
|
form_params = opts[:form_params] || {}
|
407
373
|
|
408
374
|
# http body (model)
|
409
|
-
post_body = opts[:
|
375
|
+
post_body = opts[:debug_body]
|
410
376
|
|
411
377
|
# return_type
|
412
|
-
return_type = opts[:
|
378
|
+
return_type = opts[:debug_return_type]
|
413
379
|
|
414
380
|
# auth_names
|
415
|
-
auth_names = opts[:
|
381
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
416
382
|
|
417
383
|
new_options = opts.merge(
|
384
|
+
:operation => :"DefaultApi.delete_an_application",
|
418
385
|
:header_params => header_params,
|
419
386
|
:query_params => query_params,
|
420
387
|
:form_params => form_params,
|
@@ -447,12 +414,13 @@ module Freeclimb
|
|
447
414
|
if @api_client.config.debugging
|
448
415
|
@api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_incoming_number ...'
|
449
416
|
end
|
417
|
+
|
450
418
|
# verify the required parameter 'phone_number_id' is set
|
451
419
|
if @api_client.config.client_side_validation && phone_number_id.nil?
|
452
420
|
fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.delete_an_incoming_number"
|
453
421
|
end
|
454
422
|
# resource path
|
455
|
-
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
423
|
+
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
|
456
424
|
|
457
425
|
# query parameters
|
458
426
|
query_params = opts[:query_params] || {}
|
@@ -464,15 +432,16 @@ module Freeclimb
|
|
464
432
|
form_params = opts[:form_params] || {}
|
465
433
|
|
466
434
|
# http body (model)
|
467
|
-
post_body = opts[:
|
435
|
+
post_body = opts[:debug_body]
|
468
436
|
|
469
437
|
# return_type
|
470
|
-
return_type = opts[:
|
438
|
+
return_type = opts[:debug_return_type]
|
471
439
|
|
472
440
|
# auth_names
|
473
|
-
auth_names = opts[:
|
441
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
474
442
|
|
475
443
|
new_options = opts.merge(
|
444
|
+
:operation => :"DefaultApi.delete_an_incoming_number",
|
476
445
|
:header_params => header_params,
|
477
446
|
:query_params => query_params,
|
478
447
|
:form_params => form_params,
|
@@ -507,16 +476,18 @@ module Freeclimb
|
|
507
476
|
if @api_client.config.debugging
|
508
477
|
@api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_a_member ...'
|
509
478
|
end
|
479
|
+
|
510
480
|
# verify the required parameter 'queue_id' is set
|
511
481
|
if @api_client.config.client_side_validation && queue_id.nil?
|
512
482
|
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.dequeue_a_member"
|
513
483
|
end
|
484
|
+
|
514
485
|
# verify the required parameter 'call_id' is set
|
515
486
|
if @api_client.config.client_side_validation && call_id.nil?
|
516
487
|
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.dequeue_a_member"
|
517
488
|
end
|
518
489
|
# resource path
|
519
|
-
local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
490
|
+
local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
|
520
491
|
|
521
492
|
# query parameters
|
522
493
|
query_params = opts[:query_params] || {}
|
@@ -530,15 +501,16 @@ module Freeclimb
|
|
530
501
|
form_params = opts[:form_params] || {}
|
531
502
|
|
532
503
|
# http body (model)
|
533
|
-
post_body = opts[:
|
504
|
+
post_body = opts[:debug_body]
|
534
505
|
|
535
506
|
# return_type
|
536
|
-
return_type = opts[:
|
507
|
+
return_type = opts[:debug_return_type] || 'QueueMember'
|
537
508
|
|
538
509
|
# auth_names
|
539
|
-
auth_names = opts[:
|
510
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
540
511
|
|
541
512
|
new_options = opts.merge(
|
513
|
+
:operation => :"DefaultApi.dequeue_a_member",
|
542
514
|
:header_params => header_params,
|
543
515
|
:query_params => query_params,
|
544
516
|
:form_params => form_params,
|
@@ -571,12 +543,13 @@ module Freeclimb
|
|
571
543
|
if @api_client.config.debugging
|
572
544
|
@api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_head_member ...'
|
573
545
|
end
|
546
|
+
|
574
547
|
# verify the required parameter 'queue_id' is set
|
575
548
|
if @api_client.config.client_side_validation && queue_id.nil?
|
576
549
|
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.dequeue_head_member"
|
577
550
|
end
|
578
551
|
# resource path
|
579
|
-
local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(
|
552
|
+
local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
|
580
553
|
|
581
554
|
# query parameters
|
582
555
|
query_params = opts[:query_params] || {}
|
@@ -590,15 +563,16 @@ module Freeclimb
|
|
590
563
|
form_params = opts[:form_params] || {}
|
591
564
|
|
592
565
|
# http body (model)
|
593
|
-
post_body = opts[:
|
566
|
+
post_body = opts[:debug_body]
|
594
567
|
|
595
568
|
# return_type
|
596
|
-
return_type = opts[:
|
569
|
+
return_type = opts[:debug_return_type] || 'QueueMember'
|
597
570
|
|
598
571
|
# auth_names
|
599
|
-
auth_names = opts[:
|
572
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
600
573
|
|
601
574
|
new_options = opts.merge(
|
575
|
+
:operation => :"DefaultApi.dequeue_head_member",
|
602
576
|
:header_params => header_params,
|
603
577
|
:query_params => query_params,
|
604
578
|
:form_params => form_params,
|
@@ -631,12 +605,13 @@ module Freeclimb
|
|
631
605
|
if @api_client.config.debugging
|
632
606
|
@api_client.config.logger.debug 'Calling API: DefaultApi.download_a_recording_file ...'
|
633
607
|
end
|
608
|
+
|
634
609
|
# verify the required parameter 'recording_id' is set
|
635
610
|
if @api_client.config.client_side_validation && recording_id.nil?
|
636
611
|
fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.download_a_recording_file"
|
637
612
|
end
|
638
613
|
# resource path
|
639
|
-
local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Download'.sub('{' + 'accountId' + '}', CGI.escape(
|
614
|
+
local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Download'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
|
640
615
|
|
641
616
|
# query parameters
|
642
617
|
query_params = opts[:query_params] || {}
|
@@ -650,15 +625,16 @@ module Freeclimb
|
|
650
625
|
form_params = opts[:form_params] || {}
|
651
626
|
|
652
627
|
# http body (model)
|
653
|
-
post_body = opts[:
|
628
|
+
post_body = opts[:debug_body]
|
654
629
|
|
655
630
|
# return_type
|
656
|
-
return_type = opts[:
|
631
|
+
return_type = opts[:debug_return_type] || 'File'
|
657
632
|
|
658
633
|
# auth_names
|
659
|
-
auth_names = opts[:
|
634
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
660
635
|
|
661
636
|
new_options = opts.merge(
|
637
|
+
:operation => :"DefaultApi.download_a_recording_file",
|
662
638
|
:header_params => header_params,
|
663
639
|
:query_params => query_params,
|
664
640
|
:form_params => form_params,
|
@@ -691,12 +667,13 @@ module Freeclimb
|
|
691
667
|
if @api_client.config.debugging
|
692
668
|
@api_client.config.logger.debug 'Calling API: DefaultApi.filter_logs ...'
|
693
669
|
end
|
670
|
+
|
694
671
|
# verify the required parameter 'filter_logs_request' is set
|
695
672
|
if @api_client.config.client_side_validation && filter_logs_request.nil?
|
696
673
|
fail ArgumentError, "Missing the required parameter 'filter_logs_request' when calling DefaultApi.filter_logs"
|
697
674
|
end
|
698
675
|
# resource path
|
699
|
-
local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(
|
676
|
+
local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
700
677
|
|
701
678
|
# query parameters
|
702
679
|
query_params = opts[:query_params] || {}
|
@@ -706,21 +683,25 @@ module Freeclimb
|
|
706
683
|
# HTTP header 'Accept' (if needed)
|
707
684
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
708
685
|
# HTTP header 'Content-Type'
|
709
|
-
|
686
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
687
|
+
if !content_type.nil?
|
688
|
+
header_params['Content-Type'] = content_type
|
689
|
+
end
|
710
690
|
|
711
691
|
# form parameters
|
712
692
|
form_params = opts[:form_params] || {}
|
713
693
|
|
714
694
|
# http body (model)
|
715
|
-
post_body = opts[:
|
695
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(filter_logs_request)
|
716
696
|
|
717
697
|
# return_type
|
718
|
-
return_type = opts[:
|
698
|
+
return_type = opts[:debug_return_type] || 'LogList'
|
719
699
|
|
720
700
|
# auth_names
|
721
|
-
auth_names = opts[:
|
701
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
722
702
|
|
723
703
|
new_options = opts.merge(
|
704
|
+
:operation => :"DefaultApi.filter_logs",
|
724
705
|
:header_params => header_params,
|
725
706
|
:query_params => query_params,
|
726
707
|
:form_params => form_params,
|
@@ -753,12 +734,13 @@ module Freeclimb
|
|
753
734
|
if @api_client.config.debugging
|
754
735
|
@api_client.config.logger.debug 'Calling API: DefaultApi.get_a_call ...'
|
755
736
|
end
|
737
|
+
|
756
738
|
# verify the required parameter 'call_id' is set
|
757
739
|
if @api_client.config.client_side_validation && call_id.nil?
|
758
740
|
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_call"
|
759
741
|
end
|
760
742
|
# resource path
|
761
|
-
local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
743
|
+
local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
|
762
744
|
|
763
745
|
# query parameters
|
764
746
|
query_params = opts[:query_params] || {}
|
@@ -772,15 +754,16 @@ module Freeclimb
|
|
772
754
|
form_params = opts[:form_params] || {}
|
773
755
|
|
774
756
|
# http body (model)
|
775
|
-
post_body = opts[:
|
757
|
+
post_body = opts[:debug_body]
|
776
758
|
|
777
759
|
# return_type
|
778
|
-
return_type = opts[:
|
760
|
+
return_type = opts[:debug_return_type] || 'CallResult'
|
779
761
|
|
780
762
|
# auth_names
|
781
|
-
auth_names = opts[:
|
763
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
782
764
|
|
783
765
|
new_options = opts.merge(
|
766
|
+
:operation => :"DefaultApi.get_a_call",
|
784
767
|
:header_params => header_params,
|
785
768
|
:query_params => query_params,
|
786
769
|
:form_params => form_params,
|
@@ -813,12 +796,13 @@ module Freeclimb
|
|
813
796
|
if @api_client.config.debugging
|
814
797
|
@api_client.config.logger.debug 'Calling API: DefaultApi.get_a_conference ...'
|
815
798
|
end
|
799
|
+
|
816
800
|
# verify the required parameter 'conference_id' is set
|
817
801
|
if @api_client.config.client_side_validation && conference_id.nil?
|
818
802
|
fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.get_a_conference"
|
819
803
|
end
|
820
804
|
# resource path
|
821
|
-
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
805
|
+
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
|
822
806
|
|
823
807
|
# query parameters
|
824
808
|
query_params = opts[:query_params] || {}
|
@@ -832,15 +816,16 @@ module Freeclimb
|
|
832
816
|
form_params = opts[:form_params] || {}
|
833
817
|
|
834
818
|
# http body (model)
|
835
|
-
post_body = opts[:
|
819
|
+
post_body = opts[:debug_body]
|
836
820
|
|
837
821
|
# return_type
|
838
|
-
return_type = opts[:
|
822
|
+
return_type = opts[:debug_return_type] || 'ConferenceResult'
|
839
823
|
|
840
824
|
# auth_names
|
841
|
-
auth_names = opts[:
|
825
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
842
826
|
|
843
827
|
new_options = opts.merge(
|
828
|
+
:operation => :"DefaultApi.get_a_conference",
|
844
829
|
:header_params => header_params,
|
845
830
|
:query_params => query_params,
|
846
831
|
:form_params => form_params,
|
@@ -875,16 +860,18 @@ module Freeclimb
|
|
875
860
|
if @api_client.config.debugging
|
876
861
|
@api_client.config.logger.debug 'Calling API: DefaultApi.get_a_member ...'
|
877
862
|
end
|
863
|
+
|
878
864
|
# verify the required parameter 'queue_id' is set
|
879
865
|
if @api_client.config.client_side_validation && queue_id.nil?
|
880
866
|
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_a_member"
|
881
867
|
end
|
868
|
+
|
882
869
|
# verify the required parameter 'call_id' is set
|
883
870
|
if @api_client.config.client_side_validation && call_id.nil?
|
884
871
|
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_member"
|
885
872
|
end
|
886
873
|
# resource path
|
887
|
-
local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
874
|
+
local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
|
888
875
|
|
889
876
|
# query parameters
|
890
877
|
query_params = opts[:query_params] || {}
|
@@ -898,15 +885,16 @@ module Freeclimb
|
|
898
885
|
form_params = opts[:form_params] || {}
|
899
886
|
|
900
887
|
# http body (model)
|
901
|
-
post_body = opts[:
|
888
|
+
post_body = opts[:debug_body]
|
902
889
|
|
903
890
|
# return_type
|
904
|
-
return_type = opts[:
|
891
|
+
return_type = opts[:debug_return_type] || 'QueueMember'
|
905
892
|
|
906
893
|
# auth_names
|
907
|
-
auth_names = opts[:
|
894
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
908
895
|
|
909
896
|
new_options = opts.merge(
|
897
|
+
:operation => :"DefaultApi.get_a_member",
|
910
898
|
:header_params => header_params,
|
911
899
|
:query_params => query_params,
|
912
900
|
:form_params => form_params,
|
@@ -941,16 +929,18 @@ module Freeclimb
|
|
941
929
|
if @api_client.config.debugging
|
942
930
|
@api_client.config.logger.debug 'Calling API: DefaultApi.get_a_participant ...'
|
943
931
|
end
|
932
|
+
|
944
933
|
# verify the required parameter 'conference_id' is set
|
945
934
|
if @api_client.config.client_side_validation && conference_id.nil?
|
946
935
|
fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.get_a_participant"
|
947
936
|
end
|
937
|
+
|
948
938
|
# verify the required parameter 'call_id' is set
|
949
939
|
if @api_client.config.client_side_validation && call_id.nil?
|
950
940
|
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_participant"
|
951
941
|
end
|
952
942
|
# resource path
|
953
|
-
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
943
|
+
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
|
954
944
|
|
955
945
|
# query parameters
|
956
946
|
query_params = opts[:query_params] || {}
|
@@ -964,15 +954,16 @@ module Freeclimb
|
|
964
954
|
form_params = opts[:form_params] || {}
|
965
955
|
|
966
956
|
# http body (model)
|
967
|
-
post_body = opts[:
|
957
|
+
post_body = opts[:debug_body]
|
968
958
|
|
969
959
|
# return_type
|
970
|
-
return_type = opts[:
|
960
|
+
return_type = opts[:debug_return_type] || 'ConferenceParticipantResult'
|
971
961
|
|
972
962
|
# auth_names
|
973
|
-
auth_names = opts[:
|
963
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
974
964
|
|
975
965
|
new_options = opts.merge(
|
966
|
+
:operation => :"DefaultApi.get_a_participant",
|
976
967
|
:header_params => header_params,
|
977
968
|
:query_params => query_params,
|
978
969
|
:form_params => form_params,
|
@@ -1005,12 +996,13 @@ module Freeclimb
|
|
1005
996
|
if @api_client.config.debugging
|
1006
997
|
@api_client.config.logger.debug 'Calling API: DefaultApi.get_a_queue ...'
|
1007
998
|
end
|
999
|
+
|
1008
1000
|
# verify the required parameter 'queue_id' is set
|
1009
1001
|
if @api_client.config.client_side_validation && queue_id.nil?
|
1010
1002
|
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_a_queue"
|
1011
1003
|
end
|
1012
1004
|
# resource path
|
1013
|
-
local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
1005
|
+
local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
|
1014
1006
|
|
1015
1007
|
# query parameters
|
1016
1008
|
query_params = opts[:query_params] || {}
|
@@ -1024,15 +1016,16 @@ module Freeclimb
|
|
1024
1016
|
form_params = opts[:form_params] || {}
|
1025
1017
|
|
1026
1018
|
# http body (model)
|
1027
|
-
post_body = opts[:
|
1019
|
+
post_body = opts[:debug_body]
|
1028
1020
|
|
1029
1021
|
# return_type
|
1030
|
-
return_type = opts[:
|
1022
|
+
return_type = opts[:debug_return_type] || 'QueueResult'
|
1031
1023
|
|
1032
1024
|
# auth_names
|
1033
|
-
auth_names = opts[:
|
1025
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1034
1026
|
|
1035
1027
|
new_options = opts.merge(
|
1028
|
+
:operation => :"DefaultApi.get_a_queue",
|
1036
1029
|
:header_params => header_params,
|
1037
1030
|
:query_params => query_params,
|
1038
1031
|
:form_params => form_params,
|
@@ -1065,12 +1058,13 @@ module Freeclimb
|
|
1065
1058
|
if @api_client.config.debugging
|
1066
1059
|
@api_client.config.logger.debug 'Calling API: DefaultApi.get_a_recording ...'
|
1067
1060
|
end
|
1061
|
+
|
1068
1062
|
# verify the required parameter 'recording_id' is set
|
1069
1063
|
if @api_client.config.client_side_validation && recording_id.nil?
|
1070
1064
|
fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.get_a_recording"
|
1071
1065
|
end
|
1072
1066
|
# resource path
|
1073
|
-
local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
1067
|
+
local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
|
1074
1068
|
|
1075
1069
|
# query parameters
|
1076
1070
|
query_params = opts[:query_params] || {}
|
@@ -1084,15 +1078,16 @@ module Freeclimb
|
|
1084
1078
|
form_params = opts[:form_params] || {}
|
1085
1079
|
|
1086
1080
|
# http body (model)
|
1087
|
-
post_body = opts[:
|
1081
|
+
post_body = opts[:debug_body]
|
1088
1082
|
|
1089
1083
|
# return_type
|
1090
|
-
return_type = opts[:
|
1084
|
+
return_type = opts[:debug_return_type] || 'RecordingResult'
|
1091
1085
|
|
1092
1086
|
# auth_names
|
1093
|
-
auth_names = opts[:
|
1087
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1094
1088
|
|
1095
1089
|
new_options = opts.merge(
|
1090
|
+
:operation => :"DefaultApi.get_a_recording",
|
1096
1091
|
:header_params => header_params,
|
1097
1092
|
:query_params => query_params,
|
1098
1093
|
:form_params => form_params,
|
@@ -1108,6 +1103,61 @@ module Freeclimb
|
|
1108
1103
|
return data, status_code, headers
|
1109
1104
|
end
|
1110
1105
|
|
1106
|
+
# Get an Account
|
1107
|
+
# @param [Hash] opts the optional parameters
|
1108
|
+
# @return [AccountResult]
|
1109
|
+
def get_an_account(opts = {})
|
1110
|
+
data, _status_code, _headers = get_an_account_with_http_info(opts)
|
1111
|
+
data
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
# Get an Account
|
1115
|
+
# @param [Hash] opts the optional parameters
|
1116
|
+
# @return [Array<(AccountResult, Integer, Hash)>] AccountResult data, response status code and response headers
|
1117
|
+
def get_an_account_with_http_info(opts = {})
|
1118
|
+
if @api_client.config.debugging
|
1119
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_an_account ...'
|
1120
|
+
end
|
1121
|
+
# resource path
|
1122
|
+
local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
1123
|
+
|
1124
|
+
# query parameters
|
1125
|
+
query_params = opts[:query_params] || {}
|
1126
|
+
|
1127
|
+
# header parameters
|
1128
|
+
header_params = opts[:header_params] || {}
|
1129
|
+
# HTTP header 'Accept' (if needed)
|
1130
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1131
|
+
|
1132
|
+
# form parameters
|
1133
|
+
form_params = opts[:form_params] || {}
|
1134
|
+
|
1135
|
+
# http body (model)
|
1136
|
+
post_body = opts[:debug_body]
|
1137
|
+
|
1138
|
+
# return_type
|
1139
|
+
return_type = opts[:debug_return_type] || 'AccountResult'
|
1140
|
+
|
1141
|
+
# auth_names
|
1142
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1143
|
+
|
1144
|
+
new_options = opts.merge(
|
1145
|
+
:operation => :"DefaultApi.get_an_account",
|
1146
|
+
:header_params => header_params,
|
1147
|
+
:query_params => query_params,
|
1148
|
+
:form_params => form_params,
|
1149
|
+
:body => post_body,
|
1150
|
+
:auth_names => auth_names,
|
1151
|
+
:return_type => return_type
|
1152
|
+
)
|
1153
|
+
|
1154
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1155
|
+
if @api_client.config.debugging
|
1156
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1157
|
+
end
|
1158
|
+
return data, status_code, headers
|
1159
|
+
end
|
1160
|
+
|
1111
1161
|
# Get an Application
|
1112
1162
|
# @param application_id [String] A string that uniquely identifies this application resource.
|
1113
1163
|
# @param [Hash] opts the optional parameters
|
@@ -1125,12 +1175,13 @@ module Freeclimb
|
|
1125
1175
|
if @api_client.config.debugging
|
1126
1176
|
@api_client.config.logger.debug 'Calling API: DefaultApi.get_an_application ...'
|
1127
1177
|
end
|
1178
|
+
|
1128
1179
|
# verify the required parameter 'application_id' is set
|
1129
1180
|
if @api_client.config.client_side_validation && application_id.nil?
|
1130
1181
|
fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.get_an_application"
|
1131
1182
|
end
|
1132
1183
|
# resource path
|
1133
|
-
local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
1184
|
+
local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
|
1134
1185
|
|
1135
1186
|
# query parameters
|
1136
1187
|
query_params = opts[:query_params] || {}
|
@@ -1144,15 +1195,16 @@ module Freeclimb
|
|
1144
1195
|
form_params = opts[:form_params] || {}
|
1145
1196
|
|
1146
1197
|
# http body (model)
|
1147
|
-
post_body = opts[:
|
1198
|
+
post_body = opts[:debug_body]
|
1148
1199
|
|
1149
1200
|
# return_type
|
1150
|
-
return_type = opts[:
|
1201
|
+
return_type = opts[:debug_return_type] || 'ApplicationResult'
|
1151
1202
|
|
1152
1203
|
# auth_names
|
1153
|
-
auth_names = opts[:
|
1204
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1154
1205
|
|
1155
1206
|
new_options = opts.merge(
|
1207
|
+
:operation => :"DefaultApi.get_an_application",
|
1156
1208
|
:header_params => header_params,
|
1157
1209
|
:query_params => query_params,
|
1158
1210
|
:form_params => form_params,
|
@@ -1185,12 +1237,13 @@ module Freeclimb
|
|
1185
1237
|
if @api_client.config.debugging
|
1186
1238
|
@api_client.config.logger.debug 'Calling API: DefaultApi.get_an_incoming_number ...'
|
1187
1239
|
end
|
1240
|
+
|
1188
1241
|
# verify the required parameter 'phone_number_id' is set
|
1189
1242
|
if @api_client.config.client_side_validation && phone_number_id.nil?
|
1190
1243
|
fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.get_an_incoming_number"
|
1191
1244
|
end
|
1192
1245
|
# resource path
|
1193
|
-
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
1246
|
+
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
|
1194
1247
|
|
1195
1248
|
# query parameters
|
1196
1249
|
query_params = opts[:query_params] || {}
|
@@ -1204,15 +1257,16 @@ module Freeclimb
|
|
1204
1257
|
form_params = opts[:form_params] || {}
|
1205
1258
|
|
1206
1259
|
# http body (model)
|
1207
|
-
post_body = opts[:
|
1260
|
+
post_body = opts[:debug_body]
|
1208
1261
|
|
1209
1262
|
# return_type
|
1210
|
-
return_type = opts[:
|
1263
|
+
return_type = opts[:debug_return_type] || 'IncomingNumberResult'
|
1211
1264
|
|
1212
1265
|
# auth_names
|
1213
|
-
auth_names = opts[:
|
1266
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1214
1267
|
|
1215
1268
|
new_options = opts.merge(
|
1269
|
+
:operation => :"DefaultApi.get_an_incoming_number",
|
1216
1270
|
:header_params => header_params,
|
1217
1271
|
:query_params => query_params,
|
1218
1272
|
:form_params => form_params,
|
@@ -1245,12 +1299,13 @@ module Freeclimb
|
|
1245
1299
|
if @api_client.config.debugging
|
1246
1300
|
@api_client.config.logger.debug 'Calling API: DefaultApi.get_an_sms_message ...'
|
1247
1301
|
end
|
1302
|
+
|
1248
1303
|
# verify the required parameter 'message_id' is set
|
1249
1304
|
if @api_client.config.client_side_validation && message_id.nil?
|
1250
1305
|
fail ArgumentError, "Missing the required parameter 'message_id' when calling DefaultApi.get_an_sms_message"
|
1251
1306
|
end
|
1252
1307
|
# resource path
|
1253
|
-
local_var_path = '/Accounts/{accountId}/Messages/{messageId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
1308
|
+
local_var_path = '/Accounts/{accountId}/Messages/{messageId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
|
1254
1309
|
|
1255
1310
|
# query parameters
|
1256
1311
|
query_params = opts[:query_params] || {}
|
@@ -1264,15 +1319,16 @@ module Freeclimb
|
|
1264
1319
|
form_params = opts[:form_params] || {}
|
1265
1320
|
|
1266
1321
|
# http body (model)
|
1267
|
-
post_body = opts[:
|
1322
|
+
post_body = opts[:debug_body]
|
1268
1323
|
|
1269
1324
|
# return_type
|
1270
|
-
return_type = opts[:
|
1325
|
+
return_type = opts[:debug_return_type] || 'MessageResult'
|
1271
1326
|
|
1272
1327
|
# auth_names
|
1273
|
-
auth_names = opts[:
|
1328
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1274
1329
|
|
1275
1330
|
new_options = opts.merge(
|
1331
|
+
:operation => :"DefaultApi.get_an_sms_message",
|
1276
1332
|
:header_params => header_params,
|
1277
1333
|
:query_params => query_params,
|
1278
1334
|
:form_params => form_params,
|
@@ -1305,12 +1361,13 @@ module Freeclimb
|
|
1305
1361
|
if @api_client.config.debugging
|
1306
1362
|
@api_client.config.logger.debug 'Calling API: DefaultApi.get_head_member ...'
|
1307
1363
|
end
|
1364
|
+
|
1308
1365
|
# verify the required parameter 'queue_id' is set
|
1309
1366
|
if @api_client.config.client_side_validation && queue_id.nil?
|
1310
1367
|
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_head_member"
|
1311
1368
|
end
|
1312
1369
|
# resource path
|
1313
|
-
local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(
|
1370
|
+
local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
|
1314
1371
|
|
1315
1372
|
# query parameters
|
1316
1373
|
query_params = opts[:query_params] || {}
|
@@ -1324,15 +1381,16 @@ module Freeclimb
|
|
1324
1381
|
form_params = opts[:form_params] || {}
|
1325
1382
|
|
1326
1383
|
# http body (model)
|
1327
|
-
post_body = opts[:
|
1384
|
+
post_body = opts[:debug_body]
|
1328
1385
|
|
1329
1386
|
# return_type
|
1330
|
-
return_type = opts[:
|
1387
|
+
return_type = opts[:debug_return_type] || 'QueueMember'
|
1331
1388
|
|
1332
1389
|
# auth_names
|
1333
|
-
auth_names = opts[:
|
1390
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1334
1391
|
|
1335
1392
|
new_options = opts.merge(
|
1393
|
+
:operation => :"DefaultApi.get_head_member",
|
1336
1394
|
:header_params => header_params,
|
1337
1395
|
:query_params => query_params,
|
1338
1396
|
:form_params => form_params,
|
@@ -1366,7 +1424,7 @@ module Freeclimb
|
|
1366
1424
|
@api_client.config.logger.debug 'Calling API: DefaultApi.list_active_queues ...'
|
1367
1425
|
end
|
1368
1426
|
# resource path
|
1369
|
-
local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(
|
1427
|
+
local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
1370
1428
|
|
1371
1429
|
# query parameters
|
1372
1430
|
query_params = opts[:query_params] || {}
|
@@ -1381,15 +1439,16 @@ module Freeclimb
|
|
1381
1439
|
form_params = opts[:form_params] || {}
|
1382
1440
|
|
1383
1441
|
# http body (model)
|
1384
|
-
post_body = opts[:
|
1442
|
+
post_body = opts[:debug_body]
|
1385
1443
|
|
1386
1444
|
# return_type
|
1387
|
-
return_type = opts[:
|
1445
|
+
return_type = opts[:debug_return_type] || 'QueueList'
|
1388
1446
|
|
1389
1447
|
# auth_names
|
1390
|
-
auth_names = opts[:
|
1448
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1391
1449
|
|
1392
1450
|
new_options = opts.merge(
|
1451
|
+
:operation => :"DefaultApi.list_active_queues",
|
1393
1452
|
:header_params => header_params,
|
1394
1453
|
:query_params => query_params,
|
1395
1454
|
:form_params => form_params,
|
@@ -1421,7 +1480,7 @@ module Freeclimb
|
|
1421
1480
|
@api_client.config.logger.debug 'Calling API: DefaultApi.list_all_account_logs ...'
|
1422
1481
|
end
|
1423
1482
|
# resource path
|
1424
|
-
local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(
|
1483
|
+
local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
1425
1484
|
|
1426
1485
|
# query parameters
|
1427
1486
|
query_params = opts[:query_params] || {}
|
@@ -1435,15 +1494,16 @@ module Freeclimb
|
|
1435
1494
|
form_params = opts[:form_params] || {}
|
1436
1495
|
|
1437
1496
|
# http body (model)
|
1438
|
-
post_body = opts[:
|
1497
|
+
post_body = opts[:debug_body]
|
1439
1498
|
|
1440
1499
|
# return_type
|
1441
|
-
return_type = opts[:
|
1500
|
+
return_type = opts[:debug_return_type] || 'LogList'
|
1442
1501
|
|
1443
1502
|
# auth_names
|
1444
|
-
auth_names = opts[:
|
1503
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1445
1504
|
|
1446
1505
|
new_options = opts.merge(
|
1506
|
+
:operation => :"DefaultApi.list_all_account_logs",
|
1447
1507
|
:header_params => header_params,
|
1448
1508
|
:query_params => query_params,
|
1449
1509
|
:form_params => form_params,
|
@@ -1463,8 +1523,8 @@ module Freeclimb
|
|
1463
1523
|
# @param [Hash] opts the optional parameters
|
1464
1524
|
# @option opts [String] :_alias Return only applications with aliases that exactly match this value.
|
1465
1525
|
# @return [ApplicationList]
|
1466
|
-
def
|
1467
|
-
data, _status_code, _headers =
|
1526
|
+
def list_applications(opts = {})
|
1527
|
+
data, _status_code, _headers = list_applications_with_http_info(opts)
|
1468
1528
|
data
|
1469
1529
|
end
|
1470
1530
|
|
@@ -1472,12 +1532,12 @@ module Freeclimb
|
|
1472
1532
|
# @param [Hash] opts the optional parameters
|
1473
1533
|
# @option opts [String] :_alias Return only applications with aliases that exactly match this value.
|
1474
1534
|
# @return [Array<(ApplicationList, Integer, Hash)>] ApplicationList data, response status code and response headers
|
1475
|
-
def
|
1535
|
+
def list_applications_with_http_info(opts = {})
|
1476
1536
|
if @api_client.config.debugging
|
1477
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.
|
1537
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_applications ...'
|
1478
1538
|
end
|
1479
1539
|
# resource path
|
1480
|
-
local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(
|
1540
|
+
local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
1481
1541
|
|
1482
1542
|
# query parameters
|
1483
1543
|
query_params = opts[:query_params] || {}
|
@@ -1492,15 +1552,16 @@ module Freeclimb
|
|
1492
1552
|
form_params = opts[:form_params] || {}
|
1493
1553
|
|
1494
1554
|
# http body (model)
|
1495
|
-
post_body = opts[:
|
1555
|
+
post_body = opts[:debug_body]
|
1496
1556
|
|
1497
1557
|
# return_type
|
1498
|
-
return_type = opts[:
|
1558
|
+
return_type = opts[:debug_return_type] || 'ApplicationList'
|
1499
1559
|
|
1500
1560
|
# auth_names
|
1501
|
-
auth_names = opts[:
|
1561
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1502
1562
|
|
1503
1563
|
new_options = opts.merge(
|
1564
|
+
:operation => :"DefaultApi.list_applications",
|
1504
1565
|
:header_params => header_params,
|
1505
1566
|
:query_params => query_params,
|
1506
1567
|
:form_params => form_params,
|
@@ -1511,15 +1572,23 @@ module Freeclimb
|
|
1511
1572
|
|
1512
1573
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1513
1574
|
if @api_client.config.debugging
|
1514
|
-
@api_client.config.logger.debug "API called: DefaultApi#
|
1575
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1515
1576
|
end
|
1516
1577
|
return data, status_code, headers
|
1517
1578
|
end
|
1518
1579
|
|
1519
1580
|
# List available numbers
|
1520
1581
|
# @param [Hash] opts the optional parameters
|
1521
|
-
# @option opts [String] :_alias Filter on numbers based on the formatted string of the phone number.
|
1522
1582
|
# @option opts [String] :phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format.
|
1583
|
+
# @option opts [String] :region State or province of this phone number.
|
1584
|
+
# @option opts [String] :country Country of this phone number.
|
1585
|
+
# @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
|
1586
|
+
# @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (default to true)
|
1587
|
+
# @option opts [Boolean] :capabilities_voice
|
1588
|
+
# @option opts [Boolean] :capabilities_sms
|
1589
|
+
# @option opts [Boolean] :capabilities_toll_free
|
1590
|
+
# @option opts [Boolean] :capabilities_ten_dlc
|
1591
|
+
# @option opts [Boolean] :capabilities_short_code
|
1523
1592
|
# @return [AvailableNumberList]
|
1524
1593
|
def list_available_numbers(opts = {})
|
1525
1594
|
data, _status_code, _headers = list_available_numbers_with_http_info(opts)
|
@@ -1528,8 +1597,16 @@ module Freeclimb
|
|
1528
1597
|
|
1529
1598
|
# List available numbers
|
1530
1599
|
# @param [Hash] opts the optional parameters
|
1531
|
-
# @option opts [String] :_alias Filter on numbers based on the formatted string of the phone number.
|
1532
1600
|
# @option opts [String] :phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format.
|
1601
|
+
# @option opts [String] :region State or province of this phone number.
|
1602
|
+
# @option opts [String] :country Country of this phone number.
|
1603
|
+
# @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
|
1604
|
+
# @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
|
1605
|
+
# @option opts [Boolean] :capabilities_voice
|
1606
|
+
# @option opts [Boolean] :capabilities_sms
|
1607
|
+
# @option opts [Boolean] :capabilities_toll_free
|
1608
|
+
# @option opts [Boolean] :capabilities_ten_dlc
|
1609
|
+
# @option opts [Boolean] :capabilities_short_code
|
1533
1610
|
# @return [Array<(AvailableNumberList, Integer, Hash)>] AvailableNumberList data, response status code and response headers
|
1534
1611
|
def list_available_numbers_with_http_info(opts = {})
|
1535
1612
|
if @api_client.config.debugging
|
@@ -1540,8 +1617,16 @@ module Freeclimb
|
|
1540
1617
|
|
1541
1618
|
# query parameters
|
1542
1619
|
query_params = opts[:query_params] || {}
|
1543
|
-
query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
|
1544
1620
|
query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
|
1621
|
+
query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
|
1622
|
+
query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
|
1623
|
+
query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
|
1624
|
+
query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
|
1625
|
+
query_params[:'capabilities.voice'] = opts[:'capabilities_voice'] if !opts[:'capabilities_voice'].nil?
|
1626
|
+
query_params[:'capabilities.sms'] = opts[:'capabilities_sms'] if !opts[:'capabilities_sms'].nil?
|
1627
|
+
query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
|
1628
|
+
query_params[:'capabilities.tenDLC'] = opts[:'capabilities_ten_dlc'] if !opts[:'capabilities_ten_dlc'].nil?
|
1629
|
+
query_params[:'capabilities.shortCode'] = opts[:'capabilities_short_code'] if !opts[:'capabilities_short_code'].nil?
|
1545
1630
|
|
1546
1631
|
# header parameters
|
1547
1632
|
header_params = opts[:header_params] || {}
|
@@ -1552,15 +1637,16 @@ module Freeclimb
|
|
1552
1637
|
form_params = opts[:form_params] || {}
|
1553
1638
|
|
1554
1639
|
# http body (model)
|
1555
|
-
post_body = opts[:
|
1640
|
+
post_body = opts[:debug_body]
|
1556
1641
|
|
1557
1642
|
# return_type
|
1558
|
-
return_type = opts[:
|
1643
|
+
return_type = opts[:debug_return_type] || 'AvailableNumberList'
|
1559
1644
|
|
1560
1645
|
# auth_names
|
1561
|
-
auth_names = opts[:
|
1646
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1562
1647
|
|
1563
1648
|
new_options = opts.merge(
|
1649
|
+
:operation => :"DefaultApi.list_available_numbers",
|
1564
1650
|
:header_params => header_params,
|
1565
1651
|
:query_params => query_params,
|
1566
1652
|
:form_params => form_params,
|
@@ -1593,12 +1679,13 @@ module Freeclimb
|
|
1593
1679
|
if @api_client.config.debugging
|
1594
1680
|
@api_client.config.logger.debug 'Calling API: DefaultApi.list_call_logs ...'
|
1595
1681
|
end
|
1682
|
+
|
1596
1683
|
# verify the required parameter 'call_id' is set
|
1597
1684
|
if @api_client.config.client_side_validation && call_id.nil?
|
1598
1685
|
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_logs"
|
1599
1686
|
end
|
1600
1687
|
# resource path
|
1601
|
-
local_var_path = '/Accounts/{accountId}/Calls/{callId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(
|
1688
|
+
local_var_path = '/Accounts/{accountId}/Calls/{callId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
|
1602
1689
|
|
1603
1690
|
# query parameters
|
1604
1691
|
query_params = opts[:query_params] || {}
|
@@ -1612,15 +1699,16 @@ module Freeclimb
|
|
1612
1699
|
form_params = opts[:form_params] || {}
|
1613
1700
|
|
1614
1701
|
# http body (model)
|
1615
|
-
post_body = opts[:
|
1702
|
+
post_body = opts[:debug_body]
|
1616
1703
|
|
1617
1704
|
# return_type
|
1618
|
-
return_type = opts[:
|
1705
|
+
return_type = opts[:debug_return_type] || 'LogList'
|
1619
1706
|
|
1620
1707
|
# auth_names
|
1621
|
-
auth_names = opts[:
|
1708
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1622
1709
|
|
1623
1710
|
new_options = opts.merge(
|
1711
|
+
:operation => :"DefaultApi.list_call_logs",
|
1624
1712
|
:header_params => header_params,
|
1625
1713
|
:query_params => query_params,
|
1626
1714
|
:form_params => form_params,
|
@@ -1655,12 +1743,13 @@ module Freeclimb
|
|
1655
1743
|
if @api_client.config.debugging
|
1656
1744
|
@api_client.config.logger.debug 'Calling API: DefaultApi.list_call_recordings ...'
|
1657
1745
|
end
|
1746
|
+
|
1658
1747
|
# verify the required parameter 'call_id' is set
|
1659
1748
|
if @api_client.config.client_side_validation && call_id.nil?
|
1660
1749
|
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_recordings"
|
1661
1750
|
end
|
1662
1751
|
# resource path
|
1663
|
-
local_var_path = '/Accounts/{accountId}/Calls/{callId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(
|
1752
|
+
local_var_path = '/Accounts/{accountId}/Calls/{callId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
|
1664
1753
|
|
1665
1754
|
# query parameters
|
1666
1755
|
query_params = opts[:query_params] || {}
|
@@ -1675,15 +1764,16 @@ module Freeclimb
|
|
1675
1764
|
form_params = opts[:form_params] || {}
|
1676
1765
|
|
1677
1766
|
# http body (model)
|
1678
|
-
post_body = opts[:
|
1767
|
+
post_body = opts[:debug_body]
|
1679
1768
|
|
1680
1769
|
# return_type
|
1681
|
-
return_type = opts[:
|
1770
|
+
return_type = opts[:debug_return_type] || 'RecordingList'
|
1682
1771
|
|
1683
1772
|
# auth_names
|
1684
|
-
auth_names = opts[:
|
1773
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1685
1774
|
|
1686
1775
|
new_options = opts.merge(
|
1776
|
+
:operation => :"DefaultApi.list_call_recordings",
|
1687
1777
|
:header_params => header_params,
|
1688
1778
|
:query_params => query_params,
|
1689
1779
|
:form_params => form_params,
|
@@ -1701,6 +1791,7 @@ module Freeclimb
|
|
1701
1791
|
|
1702
1792
|
# List Calls
|
1703
1793
|
# @param [Hash] opts the optional parameters
|
1794
|
+
# @option opts [Boolean] :active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (default to false)
|
1704
1795
|
# @option opts [String] :to Only show Calls to this phone number.
|
1705
1796
|
# @option opts [String] :from Only show Calls from this phone number.
|
1706
1797
|
# @option opts [String] :status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`.
|
@@ -1715,6 +1806,7 @@ module Freeclimb
|
|
1715
1806
|
|
1716
1807
|
# List Calls
|
1717
1808
|
# @param [Hash] opts the optional parameters
|
1809
|
+
# @option opts [Boolean] :active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query.
|
1718
1810
|
# @option opts [String] :to Only show Calls to this phone number.
|
1719
1811
|
# @option opts [String] :from Only show Calls from this phone number.
|
1720
1812
|
# @option opts [String] :status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`.
|
@@ -1727,10 +1819,11 @@ module Freeclimb
|
|
1727
1819
|
@api_client.config.logger.debug 'Calling API: DefaultApi.list_calls ...'
|
1728
1820
|
end
|
1729
1821
|
# resource path
|
1730
|
-
local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(
|
1822
|
+
local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
1731
1823
|
|
1732
1824
|
# query parameters
|
1733
1825
|
query_params = opts[:query_params] || {}
|
1826
|
+
query_params[:'active'] = opts[:'active'] if !opts[:'active'].nil?
|
1734
1827
|
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
1735
1828
|
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
1736
1829
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
@@ -1747,15 +1840,16 @@ module Freeclimb
|
|
1747
1840
|
form_params = opts[:form_params] || {}
|
1748
1841
|
|
1749
1842
|
# http body (model)
|
1750
|
-
post_body = opts[:
|
1843
|
+
post_body = opts[:debug_body]
|
1751
1844
|
|
1752
1845
|
# return_type
|
1753
|
-
return_type = opts[:
|
1846
|
+
return_type = opts[:debug_return_type] || 'CallList'
|
1754
1847
|
|
1755
1848
|
# auth_names
|
1756
|
-
auth_names = opts[:
|
1849
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1757
1850
|
|
1758
1851
|
new_options = opts.merge(
|
1852
|
+
:operation => :"DefaultApi.list_calls",
|
1759
1853
|
:header_params => header_params,
|
1760
1854
|
:query_params => query_params,
|
1761
1855
|
:form_params => form_params,
|
@@ -1795,7 +1889,7 @@ module Freeclimb
|
|
1795
1889
|
@api_client.config.logger.debug 'Calling API: DefaultApi.list_conferences ...'
|
1796
1890
|
end
|
1797
1891
|
# resource path
|
1798
|
-
local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(
|
1892
|
+
local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
1799
1893
|
|
1800
1894
|
# query parameters
|
1801
1895
|
query_params = opts[:query_params] || {}
|
@@ -1813,15 +1907,16 @@ module Freeclimb
|
|
1813
1907
|
form_params = opts[:form_params] || {}
|
1814
1908
|
|
1815
1909
|
# http body (model)
|
1816
|
-
post_body = opts[:
|
1910
|
+
post_body = opts[:debug_body]
|
1817
1911
|
|
1818
1912
|
# return_type
|
1819
|
-
return_type = opts[:
|
1913
|
+
return_type = opts[:debug_return_type] || 'ConferenceList'
|
1820
1914
|
|
1821
1915
|
# auth_names
|
1822
|
-
auth_names = opts[:
|
1916
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1823
1917
|
|
1824
1918
|
new_options = opts.merge(
|
1919
|
+
:operation => :"DefaultApi.list_conferences",
|
1825
1920
|
:header_params => header_params,
|
1826
1921
|
:query_params => query_params,
|
1827
1922
|
:form_params => form_params,
|
@@ -1841,6 +1936,17 @@ module Freeclimb
|
|
1841
1936
|
# @param [Hash] opts the optional parameters
|
1842
1937
|
# @option opts [String] :phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression.
|
1843
1938
|
# @option opts [String] :_alias Only show incoming phone numbers with aliases that exactly match this value.
|
1939
|
+
# @option opts [String] :region State or province of this phone number.
|
1940
|
+
# @option opts [String] :country Country of this phone number.
|
1941
|
+
# @option opts [String] :application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.
|
1942
|
+
# @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it. (default to false)
|
1943
|
+
# @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
|
1944
|
+
# @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (default to true)
|
1945
|
+
# @option opts [Boolean] :capabilities_voice
|
1946
|
+
# @option opts [Boolean] :capabilities_sms
|
1947
|
+
# @option opts [Boolean] :capabilities_toll_free
|
1948
|
+
# @option opts [Boolean] :capabilities_ten_dlc
|
1949
|
+
# @option opts [Boolean] :capabilities_short_code
|
1844
1950
|
# @return [IncomingNumberList]
|
1845
1951
|
def list_incoming_numbers(opts = {})
|
1846
1952
|
data, _status_code, _headers = list_incoming_numbers_with_http_info(opts)
|
@@ -1851,18 +1957,40 @@ module Freeclimb
|
|
1851
1957
|
# @param [Hash] opts the optional parameters
|
1852
1958
|
# @option opts [String] :phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression.
|
1853
1959
|
# @option opts [String] :_alias Only show incoming phone numbers with aliases that exactly match this value.
|
1960
|
+
# @option opts [String] :region State or province of this phone number.
|
1961
|
+
# @option opts [String] :country Country of this phone number.
|
1962
|
+
# @option opts [String] :application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.
|
1963
|
+
# @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it.
|
1964
|
+
# @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
|
1965
|
+
# @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
|
1966
|
+
# @option opts [Boolean] :capabilities_voice
|
1967
|
+
# @option opts [Boolean] :capabilities_sms
|
1968
|
+
# @option opts [Boolean] :capabilities_toll_free
|
1969
|
+
# @option opts [Boolean] :capabilities_ten_dlc
|
1970
|
+
# @option opts [Boolean] :capabilities_short_code
|
1854
1971
|
# @return [Array<(IncomingNumberList, Integer, Hash)>] IncomingNumberList data, response status code and response headers
|
1855
1972
|
def list_incoming_numbers_with_http_info(opts = {})
|
1856
1973
|
if @api_client.config.debugging
|
1857
1974
|
@api_client.config.logger.debug 'Calling API: DefaultApi.list_incoming_numbers ...'
|
1858
1975
|
end
|
1859
1976
|
# resource path
|
1860
|
-
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(
|
1977
|
+
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
1861
1978
|
|
1862
1979
|
# query parameters
|
1863
1980
|
query_params = opts[:query_params] || {}
|
1864
1981
|
query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
|
1865
1982
|
query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
|
1983
|
+
query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
|
1984
|
+
query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
|
1985
|
+
query_params[:'applicationId'] = opts[:'application_id'] if !opts[:'application_id'].nil?
|
1986
|
+
query_params[:'hasApplication'] = opts[:'has_application'] if !opts[:'has_application'].nil?
|
1987
|
+
query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
|
1988
|
+
query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
|
1989
|
+
query_params[:'capabilities.voice'] = opts[:'capabilities_voice'] if !opts[:'capabilities_voice'].nil?
|
1990
|
+
query_params[:'capabilities.sms'] = opts[:'capabilities_sms'] if !opts[:'capabilities_sms'].nil?
|
1991
|
+
query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
|
1992
|
+
query_params[:'capabilities.tenDLC'] = opts[:'capabilities_ten_dlc'] if !opts[:'capabilities_ten_dlc'].nil?
|
1993
|
+
query_params[:'capabilities.shortCode'] = opts[:'capabilities_short_code'] if !opts[:'capabilities_short_code'].nil?
|
1866
1994
|
|
1867
1995
|
# header parameters
|
1868
1996
|
header_params = opts[:header_params] || {}
|
@@ -1873,15 +2001,16 @@ module Freeclimb
|
|
1873
2001
|
form_params = opts[:form_params] || {}
|
1874
2002
|
|
1875
2003
|
# http body (model)
|
1876
|
-
post_body = opts[:
|
2004
|
+
post_body = opts[:debug_body]
|
1877
2005
|
|
1878
2006
|
# return_type
|
1879
|
-
return_type = opts[:
|
2007
|
+
return_type = opts[:debug_return_type] || 'IncomingNumberList'
|
1880
2008
|
|
1881
2009
|
# auth_names
|
1882
|
-
auth_names = opts[:
|
2010
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1883
2011
|
|
1884
2012
|
new_options = opts.merge(
|
2013
|
+
:operation => :"DefaultApi.list_incoming_numbers",
|
1885
2014
|
:header_params => header_params,
|
1886
2015
|
:query_params => query_params,
|
1887
2016
|
:form_params => form_params,
|
@@ -1914,12 +2043,13 @@ module Freeclimb
|
|
1914
2043
|
if @api_client.config.debugging
|
1915
2044
|
@api_client.config.logger.debug 'Calling API: DefaultApi.list_members ...'
|
1916
2045
|
end
|
2046
|
+
|
1917
2047
|
# verify the required parameter 'queue_id' is set
|
1918
2048
|
if @api_client.config.client_side_validation && queue_id.nil?
|
1919
2049
|
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.list_members"
|
1920
2050
|
end
|
1921
2051
|
# resource path
|
1922
|
-
local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members'.sub('{' + 'accountId' + '}', CGI.escape(
|
2052
|
+
local_var_path = '/Accounts/{accountId}/Queues/{queueId}/Members'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
|
1923
2053
|
|
1924
2054
|
# query parameters
|
1925
2055
|
query_params = opts[:query_params] || {}
|
@@ -1933,15 +2063,16 @@ module Freeclimb
|
|
1933
2063
|
form_params = opts[:form_params] || {}
|
1934
2064
|
|
1935
2065
|
# http body (model)
|
1936
|
-
post_body = opts[:
|
2066
|
+
post_body = opts[:debug_body]
|
1937
2067
|
|
1938
2068
|
# return_type
|
1939
|
-
return_type = opts[:
|
2069
|
+
return_type = opts[:debug_return_type] || 'QueueMemberList'
|
1940
2070
|
|
1941
2071
|
# auth_names
|
1942
|
-
auth_names = opts[:
|
2072
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
1943
2073
|
|
1944
2074
|
new_options = opts.merge(
|
2075
|
+
:operation => :"DefaultApi.list_members",
|
1945
2076
|
:header_params => header_params,
|
1946
2077
|
:query_params => query_params,
|
1947
2078
|
:form_params => form_params,
|
@@ -1978,12 +2109,13 @@ module Freeclimb
|
|
1978
2109
|
if @api_client.config.debugging
|
1979
2110
|
@api_client.config.logger.debug 'Calling API: DefaultApi.list_participants ...'
|
1980
2111
|
end
|
2112
|
+
|
1981
2113
|
# verify the required parameter 'conference_id' is set
|
1982
2114
|
if @api_client.config.client_side_validation && conference_id.nil?
|
1983
2115
|
fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.list_participants"
|
1984
2116
|
end
|
1985
2117
|
# resource path
|
1986
|
-
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants'.sub('{' + 'accountId' + '}', CGI.escape(
|
2118
|
+
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
|
1987
2119
|
|
1988
2120
|
# query parameters
|
1989
2121
|
query_params = opts[:query_params] || {}
|
@@ -1999,15 +2131,16 @@ module Freeclimb
|
|
1999
2131
|
form_params = opts[:form_params] || {}
|
2000
2132
|
|
2001
2133
|
# http body (model)
|
2002
|
-
post_body = opts[:
|
2134
|
+
post_body = opts[:debug_body]
|
2003
2135
|
|
2004
2136
|
# return_type
|
2005
|
-
return_type = opts[:
|
2137
|
+
return_type = opts[:debug_return_type] || 'ConferenceParticipantList'
|
2006
2138
|
|
2007
2139
|
# auth_names
|
2008
|
-
auth_names = opts[:
|
2140
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2009
2141
|
|
2010
2142
|
new_options = opts.merge(
|
2143
|
+
:operation => :"DefaultApi.list_participants",
|
2011
2144
|
:header_params => header_params,
|
2012
2145
|
:query_params => query_params,
|
2013
2146
|
:form_params => form_params,
|
@@ -2045,7 +2178,7 @@ module Freeclimb
|
|
2045
2178
|
@api_client.config.logger.debug 'Calling API: DefaultApi.list_recordings ...'
|
2046
2179
|
end
|
2047
2180
|
# resource path
|
2048
|
-
local_var_path = '/Accounts/{accountId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(
|
2181
|
+
local_var_path = '/Accounts/{accountId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
2049
2182
|
|
2050
2183
|
# query parameters
|
2051
2184
|
query_params = opts[:query_params] || {}
|
@@ -2062,15 +2195,16 @@ module Freeclimb
|
|
2062
2195
|
form_params = opts[:form_params] || {}
|
2063
2196
|
|
2064
2197
|
# http body (model)
|
2065
|
-
post_body = opts[:
|
2198
|
+
post_body = opts[:debug_body]
|
2066
2199
|
|
2067
2200
|
# return_type
|
2068
|
-
return_type = opts[:
|
2201
|
+
return_type = opts[:debug_return_type] || 'RecordingList'
|
2069
2202
|
|
2070
2203
|
# auth_names
|
2071
|
-
auth_names = opts[:
|
2204
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2072
2205
|
|
2073
2206
|
new_options = opts.merge(
|
2207
|
+
:operation => :"DefaultApi.list_recordings",
|
2074
2208
|
:header_params => header_params,
|
2075
2209
|
:query_params => query_params,
|
2076
2210
|
:form_params => form_params,
|
@@ -2093,7 +2227,6 @@ module Freeclimb
|
|
2093
2227
|
# @option opts [String] :begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.
|
2094
2228
|
# @option opts [String] :end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*..
|
2095
2229
|
# @option opts [String] :direction Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb.
|
2096
|
-
# @option opts [String] :account_id String that uniquely identifies this account resource.
|
2097
2230
|
# @return [MessagesList]
|
2098
2231
|
def list_sms_messages(opts = {})
|
2099
2232
|
data, _status_code, _headers = list_sms_messages_with_http_info(opts)
|
@@ -2107,14 +2240,17 @@ module Freeclimb
|
|
2107
2240
|
# @option opts [String] :begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.
|
2108
2241
|
# @option opts [String] :end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*..
|
2109
2242
|
# @option opts [String] :direction Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb.
|
2110
|
-
# @option opts [String] :account_id String that uniquely identifies this account resource.
|
2111
2243
|
# @return [Array<(MessagesList, Integer, Hash)>] MessagesList data, response status code and response headers
|
2112
2244
|
def list_sms_messages_with_http_info(opts = {})
|
2113
2245
|
if @api_client.config.debugging
|
2114
2246
|
@api_client.config.logger.debug 'Calling API: DefaultApi.list_sms_messages ...'
|
2115
2247
|
end
|
2248
|
+
allowable_values = ["inbound", "outbound"]
|
2249
|
+
if @api_client.config.client_side_validation && opts[:'direction'] && !allowable_values.include?(opts[:'direction'])
|
2250
|
+
fail ArgumentError, "invalid value for \"direction\", must be one of #{allowable_values}"
|
2251
|
+
end
|
2116
2252
|
# resource path
|
2117
|
-
local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(
|
2253
|
+
local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
2118
2254
|
|
2119
2255
|
# query parameters
|
2120
2256
|
query_params = opts[:query_params] || {}
|
@@ -2123,7 +2259,6 @@ module Freeclimb
|
|
2123
2259
|
query_params[:'beginTime'] = opts[:'begin_time'] if !opts[:'begin_time'].nil?
|
2124
2260
|
query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
|
2125
2261
|
query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
|
2126
|
-
query_params[:'accountID'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
2127
2262
|
|
2128
2263
|
# header parameters
|
2129
2264
|
header_params = opts[:header_params] || {}
|
@@ -2134,15 +2269,16 @@ module Freeclimb
|
|
2134
2269
|
form_params = opts[:form_params] || {}
|
2135
2270
|
|
2136
2271
|
# http body (model)
|
2137
|
-
post_body = opts[:
|
2272
|
+
post_body = opts[:debug_body]
|
2138
2273
|
|
2139
2274
|
# return_type
|
2140
|
-
return_type = opts[:
|
2275
|
+
return_type = opts[:debug_return_type] || 'MessagesList'
|
2141
2276
|
|
2142
2277
|
# auth_names
|
2143
|
-
auth_names = opts[:
|
2278
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2144
2279
|
|
2145
2280
|
new_options = opts.merge(
|
2281
|
+
:operation => :"DefaultApi.list_sms_messages",
|
2146
2282
|
:header_params => header_params,
|
2147
2283
|
:query_params => query_params,
|
2148
2284
|
:form_params => form_params,
|
@@ -2176,7 +2312,7 @@ module Freeclimb
|
|
2176
2312
|
@api_client.config.logger.debug 'Calling API: DefaultApi.make_a_call ...'
|
2177
2313
|
end
|
2178
2314
|
# resource path
|
2179
|
-
local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(
|
2315
|
+
local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
2180
2316
|
|
2181
2317
|
# query parameters
|
2182
2318
|
query_params = opts[:query_params] || {}
|
@@ -2186,21 +2322,25 @@ module Freeclimb
|
|
2186
2322
|
# HTTP header 'Accept' (if needed)
|
2187
2323
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2188
2324
|
# HTTP header 'Content-Type'
|
2189
|
-
|
2325
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2326
|
+
if !content_type.nil?
|
2327
|
+
header_params['Content-Type'] = content_type
|
2328
|
+
end
|
2190
2329
|
|
2191
2330
|
# form parameters
|
2192
2331
|
form_params = opts[:form_params] || {}
|
2193
2332
|
|
2194
2333
|
# http body (model)
|
2195
|
-
post_body = opts[:
|
2334
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'make_call_request'])
|
2196
2335
|
|
2197
2336
|
# return_type
|
2198
|
-
return_type = opts[:
|
2337
|
+
return_type = opts[:debug_return_type] || 'CallResult'
|
2199
2338
|
|
2200
2339
|
# auth_names
|
2201
|
-
auth_names = opts[:
|
2340
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2202
2341
|
|
2203
2342
|
new_options = opts.merge(
|
2343
|
+
:operation => :"DefaultApi.make_a_call",
|
2204
2344
|
:header_params => header_params,
|
2205
2345
|
:query_params => query_params,
|
2206
2346
|
:form_params => form_params,
|
@@ -2235,16 +2375,18 @@ module Freeclimb
|
|
2235
2375
|
if @api_client.config.debugging
|
2236
2376
|
@api_client.config.logger.debug 'Calling API: DefaultApi.remove_a_participant ...'
|
2237
2377
|
end
|
2378
|
+
|
2238
2379
|
# verify the required parameter 'conference_id' is set
|
2239
2380
|
if @api_client.config.client_side_validation && conference_id.nil?
|
2240
2381
|
fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.remove_a_participant"
|
2241
2382
|
end
|
2383
|
+
|
2242
2384
|
# verify the required parameter 'call_id' is set
|
2243
2385
|
if @api_client.config.client_side_validation && call_id.nil?
|
2244
2386
|
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.remove_a_participant"
|
2245
2387
|
end
|
2246
2388
|
# resource path
|
2247
|
-
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
2389
|
+
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
|
2248
2390
|
|
2249
2391
|
# query parameters
|
2250
2392
|
query_params = opts[:query_params] || {}
|
@@ -2256,15 +2398,16 @@ module Freeclimb
|
|
2256
2398
|
form_params = opts[:form_params] || {}
|
2257
2399
|
|
2258
2400
|
# http body (model)
|
2259
|
-
post_body = opts[:
|
2401
|
+
post_body = opts[:debug_body]
|
2260
2402
|
|
2261
2403
|
# return_type
|
2262
|
-
return_type = opts[:
|
2404
|
+
return_type = opts[:debug_return_type]
|
2263
2405
|
|
2264
2406
|
# auth_names
|
2265
|
-
auth_names = opts[:
|
2407
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2266
2408
|
|
2267
2409
|
new_options = opts.merge(
|
2410
|
+
:operation => :"DefaultApi.remove_a_participant",
|
2268
2411
|
:header_params => header_params,
|
2269
2412
|
:query_params => query_params,
|
2270
2413
|
:form_params => form_params,
|
@@ -2297,12 +2440,13 @@ module Freeclimb
|
|
2297
2440
|
if @api_client.config.debugging
|
2298
2441
|
@api_client.config.logger.debug 'Calling API: DefaultApi.send_an_sms_message ...'
|
2299
2442
|
end
|
2443
|
+
|
2300
2444
|
# verify the required parameter 'message_request' is set
|
2301
2445
|
if @api_client.config.client_side_validation && message_request.nil?
|
2302
2446
|
fail ArgumentError, "Missing the required parameter 'message_request' when calling DefaultApi.send_an_sms_message"
|
2303
2447
|
end
|
2304
2448
|
# resource path
|
2305
|
-
local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(
|
2449
|
+
local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
2306
2450
|
|
2307
2451
|
# query parameters
|
2308
2452
|
query_params = opts[:query_params] || {}
|
@@ -2312,21 +2456,25 @@ module Freeclimb
|
|
2312
2456
|
# HTTP header 'Accept' (if needed)
|
2313
2457
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2314
2458
|
# HTTP header 'Content-Type'
|
2315
|
-
|
2459
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2460
|
+
if !content_type.nil?
|
2461
|
+
header_params['Content-Type'] = content_type
|
2462
|
+
end
|
2316
2463
|
|
2317
2464
|
# form parameters
|
2318
2465
|
form_params = opts[:form_params] || {}
|
2319
2466
|
|
2320
2467
|
# http body (model)
|
2321
|
-
post_body = opts[:
|
2468
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(message_request)
|
2322
2469
|
|
2323
2470
|
# return_type
|
2324
|
-
return_type = opts[:
|
2471
|
+
return_type = opts[:debug_return_type] || 'MessageResult'
|
2325
2472
|
|
2326
2473
|
# auth_names
|
2327
|
-
auth_names = opts[:
|
2474
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2328
2475
|
|
2329
2476
|
new_options = opts.merge(
|
2477
|
+
:operation => :"DefaultApi.send_an_sms_message",
|
2330
2478
|
:header_params => header_params,
|
2331
2479
|
:query_params => query_params,
|
2332
2480
|
:form_params => form_params,
|
@@ -2359,12 +2507,13 @@ module Freeclimb
|
|
2359
2507
|
if @api_client.config.debugging
|
2360
2508
|
@api_client.config.logger.debug 'Calling API: DefaultApi.stream_a_recording_file ...'
|
2361
2509
|
end
|
2510
|
+
|
2362
2511
|
# verify the required parameter 'recording_id' is set
|
2363
2512
|
if @api_client.config.client_side_validation && recording_id.nil?
|
2364
2513
|
fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.stream_a_recording_file"
|
2365
2514
|
end
|
2366
2515
|
# resource path
|
2367
|
-
local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Stream'.sub('{' + 'accountId' + '}', CGI.escape(
|
2516
|
+
local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Stream'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
|
2368
2517
|
|
2369
2518
|
# query parameters
|
2370
2519
|
query_params = opts[:query_params] || {}
|
@@ -2378,15 +2527,16 @@ module Freeclimb
|
|
2378
2527
|
form_params = opts[:form_params] || {}
|
2379
2528
|
|
2380
2529
|
# http body (model)
|
2381
|
-
post_body = opts[:
|
2530
|
+
post_body = opts[:debug_body]
|
2382
2531
|
|
2383
2532
|
# return_type
|
2384
|
-
return_type = opts[:
|
2533
|
+
return_type = opts[:debug_return_type] || 'File'
|
2385
2534
|
|
2386
2535
|
# auth_names
|
2387
|
-
auth_names = opts[:
|
2536
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2388
2537
|
|
2389
2538
|
new_options = opts.merge(
|
2539
|
+
:operation => :"DefaultApi.stream_a_recording_file",
|
2390
2540
|
:header_params => header_params,
|
2391
2541
|
:query_params => query_params,
|
2392
2542
|
:form_params => form_params,
|
@@ -2421,12 +2571,13 @@ module Freeclimb
|
|
2421
2571
|
if @api_client.config.debugging
|
2422
2572
|
@api_client.config.logger.debug 'Calling API: DefaultApi.update_a_conference ...'
|
2423
2573
|
end
|
2574
|
+
|
2424
2575
|
# verify the required parameter 'conference_id' is set
|
2425
2576
|
if @api_client.config.client_side_validation && conference_id.nil?
|
2426
2577
|
fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_conference"
|
2427
2578
|
end
|
2428
2579
|
# resource path
|
2429
|
-
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
2580
|
+
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
|
2430
2581
|
|
2431
2582
|
# query parameters
|
2432
2583
|
query_params = opts[:query_params] || {}
|
@@ -2436,21 +2587,25 @@ module Freeclimb
|
|
2436
2587
|
# HTTP header 'Accept' (if needed)
|
2437
2588
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2438
2589
|
# HTTP header 'Content-Type'
|
2439
|
-
|
2590
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2591
|
+
if !content_type.nil?
|
2592
|
+
header_params['Content-Type'] = content_type
|
2593
|
+
end
|
2440
2594
|
|
2441
2595
|
# form parameters
|
2442
2596
|
form_params = opts[:form_params] || {}
|
2443
2597
|
|
2444
2598
|
# http body (model)
|
2445
|
-
post_body = opts[:
|
2599
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_request'])
|
2446
2600
|
|
2447
2601
|
# return_type
|
2448
|
-
return_type = opts[:
|
2602
|
+
return_type = opts[:debug_return_type] || 'ConferenceResult'
|
2449
2603
|
|
2450
2604
|
# auth_names
|
2451
|
-
auth_names = opts[:
|
2605
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2452
2606
|
|
2453
2607
|
new_options = opts.merge(
|
2608
|
+
:operation => :"DefaultApi.update_a_conference",
|
2454
2609
|
:header_params => header_params,
|
2455
2610
|
:query_params => query_params,
|
2456
2611
|
:form_params => form_params,
|
@@ -2485,16 +2640,18 @@ module Freeclimb
|
|
2485
2640
|
if @api_client.config.debugging
|
2486
2641
|
@api_client.config.logger.debug 'Calling API: DefaultApi.update_a_live_call ...'
|
2487
2642
|
end
|
2643
|
+
|
2488
2644
|
# verify the required parameter 'call_id' is set
|
2489
2645
|
if @api_client.config.client_side_validation && call_id.nil?
|
2490
2646
|
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_live_call"
|
2491
2647
|
end
|
2648
|
+
|
2492
2649
|
# verify the required parameter 'update_call_request' is set
|
2493
2650
|
if @api_client.config.client_side_validation && update_call_request.nil?
|
2494
2651
|
fail ArgumentError, "Missing the required parameter 'update_call_request' when calling DefaultApi.update_a_live_call"
|
2495
2652
|
end
|
2496
2653
|
# resource path
|
2497
|
-
local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
2654
|
+
local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
|
2498
2655
|
|
2499
2656
|
# query parameters
|
2500
2657
|
query_params = opts[:query_params] || {}
|
@@ -2502,21 +2659,25 @@ module Freeclimb
|
|
2502
2659
|
# header parameters
|
2503
2660
|
header_params = opts[:header_params] || {}
|
2504
2661
|
# HTTP header 'Content-Type'
|
2505
|
-
|
2662
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2663
|
+
if !content_type.nil?
|
2664
|
+
header_params['Content-Type'] = content_type
|
2665
|
+
end
|
2506
2666
|
|
2507
2667
|
# form parameters
|
2508
2668
|
form_params = opts[:form_params] || {}
|
2509
2669
|
|
2510
2670
|
# http body (model)
|
2511
|
-
post_body = opts[:
|
2671
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_call_request)
|
2512
2672
|
|
2513
2673
|
# return_type
|
2514
|
-
return_type = opts[:
|
2674
|
+
return_type = opts[:debug_return_type]
|
2515
2675
|
|
2516
2676
|
# auth_names
|
2517
|
-
auth_names = opts[:
|
2677
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2518
2678
|
|
2519
2679
|
new_options = opts.merge(
|
2680
|
+
:operation => :"DefaultApi.update_a_live_call",
|
2520
2681
|
:header_params => header_params,
|
2521
2682
|
:query_params => query_params,
|
2522
2683
|
:form_params => form_params,
|
@@ -2553,16 +2714,18 @@ module Freeclimb
|
|
2553
2714
|
if @api_client.config.debugging
|
2554
2715
|
@api_client.config.logger.debug 'Calling API: DefaultApi.update_a_participant ...'
|
2555
2716
|
end
|
2717
|
+
|
2556
2718
|
# verify the required parameter 'conference_id' is set
|
2557
2719
|
if @api_client.config.client_side_validation && conference_id.nil?
|
2558
2720
|
fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_participant"
|
2559
2721
|
end
|
2722
|
+
|
2560
2723
|
# verify the required parameter 'call_id' is set
|
2561
2724
|
if @api_client.config.client_side_validation && call_id.nil?
|
2562
2725
|
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_participant"
|
2563
2726
|
end
|
2564
2727
|
# resource path
|
2565
|
-
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
2728
|
+
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
|
2566
2729
|
|
2567
2730
|
# query parameters
|
2568
2731
|
query_params = opts[:query_params] || {}
|
@@ -2572,21 +2735,25 @@ module Freeclimb
|
|
2572
2735
|
# HTTP header 'Accept' (if needed)
|
2573
2736
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2574
2737
|
# HTTP header 'Content-Type'
|
2575
|
-
|
2738
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2739
|
+
if !content_type.nil?
|
2740
|
+
header_params['Content-Type'] = content_type
|
2741
|
+
end
|
2576
2742
|
|
2577
2743
|
# form parameters
|
2578
2744
|
form_params = opts[:form_params] || {}
|
2579
2745
|
|
2580
2746
|
# http body (model)
|
2581
|
-
post_body = opts[:
|
2747
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_conference_participant_request'])
|
2582
2748
|
|
2583
2749
|
# return_type
|
2584
|
-
return_type = opts[:
|
2750
|
+
return_type = opts[:debug_return_type] || 'ConferenceParticipantResult'
|
2585
2751
|
|
2586
2752
|
# auth_names
|
2587
|
-
auth_names = opts[:
|
2753
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2588
2754
|
|
2589
2755
|
new_options = opts.merge(
|
2756
|
+
:operation => :"DefaultApi.update_a_participant",
|
2590
2757
|
:header_params => header_params,
|
2591
2758
|
:query_params => query_params,
|
2592
2759
|
:form_params => form_params,
|
@@ -2621,12 +2788,13 @@ module Freeclimb
|
|
2621
2788
|
if @api_client.config.debugging
|
2622
2789
|
@api_client.config.logger.debug 'Calling API: DefaultApi.update_a_queue ...'
|
2623
2790
|
end
|
2791
|
+
|
2624
2792
|
# verify the required parameter 'queue_id' is set
|
2625
2793
|
if @api_client.config.client_side_validation && queue_id.nil?
|
2626
2794
|
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.update_a_queue"
|
2627
2795
|
end
|
2628
2796
|
# resource path
|
2629
|
-
local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
2797
|
+
local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
|
2630
2798
|
|
2631
2799
|
# query parameters
|
2632
2800
|
query_params = opts[:query_params] || {}
|
@@ -2636,21 +2804,25 @@ module Freeclimb
|
|
2636
2804
|
# HTTP header 'Accept' (if needed)
|
2637
2805
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2638
2806
|
# HTTP header 'Content-Type'
|
2639
|
-
|
2807
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2808
|
+
if !content_type.nil?
|
2809
|
+
header_params['Content-Type'] = content_type
|
2810
|
+
end
|
2640
2811
|
|
2641
2812
|
# form parameters
|
2642
2813
|
form_params = opts[:form_params] || {}
|
2643
2814
|
|
2644
2815
|
# http body (model)
|
2645
|
-
post_body = opts[:
|
2816
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'queue_request'])
|
2646
2817
|
|
2647
2818
|
# return_type
|
2648
|
-
return_type = opts[:
|
2819
|
+
return_type = opts[:debug_return_type] || 'QueueResult'
|
2649
2820
|
|
2650
2821
|
# auth_names
|
2651
|
-
auth_names = opts[:
|
2822
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2652
2823
|
|
2653
2824
|
new_options = opts.merge(
|
2825
|
+
:operation => :"DefaultApi.update_a_queue",
|
2654
2826
|
:header_params => header_params,
|
2655
2827
|
:query_params => query_params,
|
2656
2828
|
:form_params => form_params,
|
@@ -2684,7 +2856,7 @@ module Freeclimb
|
|
2684
2856
|
@api_client.config.logger.debug 'Calling API: DefaultApi.update_an_account ...'
|
2685
2857
|
end
|
2686
2858
|
# resource path
|
2687
|
-
local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
2859
|
+
local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
|
2688
2860
|
|
2689
2861
|
# query parameters
|
2690
2862
|
query_params = opts[:query_params] || {}
|
@@ -2692,21 +2864,25 @@ module Freeclimb
|
|
2692
2864
|
# header parameters
|
2693
2865
|
header_params = opts[:header_params] || {}
|
2694
2866
|
# HTTP header 'Content-Type'
|
2695
|
-
|
2867
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2868
|
+
if !content_type.nil?
|
2869
|
+
header_params['Content-Type'] = content_type
|
2870
|
+
end
|
2696
2871
|
|
2697
2872
|
# form parameters
|
2698
2873
|
form_params = opts[:form_params] || {}
|
2699
2874
|
|
2700
2875
|
# http body (model)
|
2701
|
-
post_body = opts[:
|
2876
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'account_request'])
|
2702
2877
|
|
2703
2878
|
# return_type
|
2704
|
-
return_type = opts[:
|
2879
|
+
return_type = opts[:debug_return_type]
|
2705
2880
|
|
2706
2881
|
# auth_names
|
2707
|
-
auth_names = opts[:
|
2882
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2708
2883
|
|
2709
2884
|
new_options = opts.merge(
|
2885
|
+
:operation => :"DefaultApi.update_an_account",
|
2710
2886
|
:header_params => header_params,
|
2711
2887
|
:query_params => query_params,
|
2712
2888
|
:form_params => form_params,
|
@@ -2741,12 +2917,13 @@ module Freeclimb
|
|
2741
2917
|
if @api_client.config.debugging
|
2742
2918
|
@api_client.config.logger.debug 'Calling API: DefaultApi.update_an_application ...'
|
2743
2919
|
end
|
2920
|
+
|
2744
2921
|
# verify the required parameter 'application_id' is set
|
2745
2922
|
if @api_client.config.client_side_validation && application_id.nil?
|
2746
2923
|
fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.update_an_application"
|
2747
2924
|
end
|
2748
2925
|
# resource path
|
2749
|
-
local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
2926
|
+
local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
|
2750
2927
|
|
2751
2928
|
# query parameters
|
2752
2929
|
query_params = opts[:query_params] || {}
|
@@ -2756,21 +2933,25 @@ module Freeclimb
|
|
2756
2933
|
# HTTP header 'Accept' (if needed)
|
2757
2934
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2758
2935
|
# HTTP header 'Content-Type'
|
2759
|
-
|
2936
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2937
|
+
if !content_type.nil?
|
2938
|
+
header_params['Content-Type'] = content_type
|
2939
|
+
end
|
2760
2940
|
|
2761
2941
|
# form parameters
|
2762
2942
|
form_params = opts[:form_params] || {}
|
2763
2943
|
|
2764
2944
|
# http body (model)
|
2765
|
-
post_body = opts[:
|
2945
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])
|
2766
2946
|
|
2767
2947
|
# return_type
|
2768
|
-
return_type = opts[:
|
2948
|
+
return_type = opts[:debug_return_type] || 'ApplicationResult'
|
2769
2949
|
|
2770
2950
|
# auth_names
|
2771
|
-
auth_names = opts[:
|
2951
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2772
2952
|
|
2773
2953
|
new_options = opts.merge(
|
2954
|
+
:operation => :"DefaultApi.update_an_application",
|
2774
2955
|
:header_params => header_params,
|
2775
2956
|
:query_params => query_params,
|
2776
2957
|
:form_params => form_params,
|
@@ -2805,12 +2986,13 @@ module Freeclimb
|
|
2805
2986
|
if @api_client.config.debugging
|
2806
2987
|
@api_client.config.logger.debug 'Calling API: DefaultApi.update_an_incoming_number ...'
|
2807
2988
|
end
|
2989
|
+
|
2808
2990
|
# verify the required parameter 'phone_number_id' is set
|
2809
2991
|
if @api_client.config.client_side_validation && phone_number_id.nil?
|
2810
2992
|
fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.update_an_incoming_number"
|
2811
2993
|
end
|
2812
2994
|
# resource path
|
2813
|
-
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(
|
2995
|
+
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
|
2814
2996
|
|
2815
2997
|
# query parameters
|
2816
2998
|
query_params = opts[:query_params] || {}
|
@@ -2820,21 +3002,25 @@ module Freeclimb
|
|
2820
3002
|
# HTTP header 'Accept' (if needed)
|
2821
3003
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2822
3004
|
# HTTP header 'Content-Type'
|
2823
|
-
|
3005
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
3006
|
+
if !content_type.nil?
|
3007
|
+
header_params['Content-Type'] = content_type
|
3008
|
+
end
|
2824
3009
|
|
2825
3010
|
# form parameters
|
2826
3011
|
form_params = opts[:form_params] || {}
|
2827
3012
|
|
2828
3013
|
# http body (model)
|
2829
|
-
post_body = opts[:
|
3014
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'incoming_number_request'])
|
2830
3015
|
|
2831
3016
|
# return_type
|
2832
|
-
return_type = opts[:
|
3017
|
+
return_type = opts[:debug_return_type] || 'IncomingNumberResult'
|
2833
3018
|
|
2834
3019
|
# auth_names
|
2835
|
-
auth_names = opts[:
|
3020
|
+
auth_names = opts[:debug_auth_names] || ['fc']
|
2836
3021
|
|
2837
3022
|
new_options = opts.merge(
|
3023
|
+
:operation => :"DefaultApi.update_an_incoming_number",
|
2838
3024
|
:header_params => header_params,
|
2839
3025
|
:query_params => query_params,
|
2840
3026
|
:form_params => form_params,
|