freeclimb 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +82 -0
- data/README.md +238 -0
- data/Rakefile +10 -0
- data/docs/AccountRequest.md +21 -0
- data/docs/AccountResult.md +37 -0
- data/docs/AccountResultAllOf.md +29 -0
- data/docs/ApplicationList.md +31 -0
- data/docs/ApplicationListAllOf.md +17 -0
- data/docs/ApplicationRequest.md +31 -0
- data/docs/ApplicationResult.md +41 -0
- data/docs/ApplicationResultAllOf.md +33 -0
- data/docs/AvailableNumber.md +27 -0
- data/docs/AvailableNumberList.md +31 -0
- data/docs/AvailableNumberListAllOf.md +17 -0
- data/docs/BuyIncomingNumberRequest.md +23 -0
- data/docs/CallList.md +31 -0
- data/docs/CallListAllOf.md +17 -0
- data/docs/CallResult.md +53 -0
- data/docs/CallResultAllOf.md +45 -0
- data/docs/ConferenceList.md +31 -0
- data/docs/ConferenceListAllOf.md +17 -0
- data/docs/ConferenceParticipantList.md +31 -0
- data/docs/ConferenceParticipantListAllOf.md +17 -0
- data/docs/ConferenceParticipantResult.md +35 -0
- data/docs/ConferenceParticipantResultAllOf.md +27 -0
- data/docs/ConferenceResult.md +43 -0
- data/docs/ConferenceResultAllOf.md +35 -0
- data/docs/CreateConferenceRequest.md +27 -0
- data/docs/DefaultApi.md +2504 -0
- data/docs/DequeueMemberRequest.md +17 -0
- data/docs/FilterLogsRequest.md +19 -0
- data/docs/IncomingNumberList.md +31 -0
- data/docs/IncomingNumberListAllOf.md +17 -0
- data/docs/IncomingNumberRequest.md +21 -0
- data/docs/IncomingNumberResult.md +41 -0
- data/docs/IncomingNumberResultAllOf.md +33 -0
- data/docs/LogList.md +31 -0
- data/docs/LogListAllOf.md +17 -0
- data/docs/LogResult.md +29 -0
- data/docs/MakeCallRequest.md +33 -0
- data/docs/MessageRequest.md +35 -0
- data/docs/MessageRequestAllOf.md +27 -0
- data/docs/MessageResult.md +39 -0
- data/docs/MessageResultAllOf.md +31 -0
- data/docs/MessagesList.md +31 -0
- data/docs/MessagesListAllOf.md +17 -0
- data/docs/MutableResourceModel.md +23 -0
- data/docs/PaginationModel.md +29 -0
- data/docs/Percl.md +697 -0
- data/docs/QueueList.md +31 -0
- data/docs/QueueListAllOf.md +17 -0
- data/docs/QueueMember.md +25 -0
- data/docs/QueueMemberList.md +31 -0
- data/docs/QueueMemberListAllOf.md +17 -0
- data/docs/QueueRequest.md +21 -0
- data/docs/QueueResult.md +37 -0
- data/docs/QueueResultAllOf.md +29 -0
- data/docs/RecordingList.md +31 -0
- data/docs/RecordingListAllOf.md +17 -0
- data/docs/RecordingResult.md +33 -0
- data/docs/RecordingResultAllOf.md +25 -0
- data/docs/UpdateCallRequest.md +19 -0
- data/docs/UpdateConferenceParticipantRequest.md +21 -0
- data/docs/UpdateConferenceRequest.md +23 -0
- data/freeclimb.gemspec +39 -0
- data/git_push.sh +58 -0
- data/lib/freeclimb.rb +99 -0
- data/lib/freeclimb/api/default_api.rb +2845 -0
- data/lib/freeclimb/api_client.rb +386 -0
- data/lib/freeclimb/api_error.rb +57 -0
- data/lib/freeclimb/configuration.rb +248 -0
- data/lib/freeclimb/models/account_request.rb +227 -0
- data/lib/freeclimb/models/account_result.rb +349 -0
- data/lib/freeclimb/models/account_result_all_of.rb +301 -0
- data/lib/freeclimb/models/application_list.rb +286 -0
- data/lib/freeclimb/models/application_list_all_of.rb +208 -0
- data/lib/freeclimb/models/application_request.rb +277 -0
- data/lib/freeclimb/models/application_result.rb +335 -0
- data/lib/freeclimb/models/application_result_all_of.rb +287 -0
- data/lib/freeclimb/models/available_number.rb +257 -0
- data/lib/freeclimb/models/available_number_list.rb +286 -0
- data/lib/freeclimb/models/available_number_list_all_of.rb +208 -0
- data/lib/freeclimb/models/buy_incoming_number_request.rb +242 -0
- data/lib/freeclimb/models/call_list.rb +286 -0
- data/lib/freeclimb/models/call_list_all_of.rb +208 -0
- data/lib/freeclimb/models/call_result.rb +429 -0
- data/lib/freeclimb/models/call_result_all_of.rb +381 -0
- data/lib/freeclimb/models/conference_list.rb +286 -0
- data/lib/freeclimb/models/conference_list_all_of.rb +208 -0
- data/lib/freeclimb/models/conference_participant_list.rb +286 -0
- data/lib/freeclimb/models/conference_participant_list_all_of.rb +208 -0
- data/lib/freeclimb/models/conference_participant_result.rb +305 -0
- data/lib/freeclimb/models/conference_participant_result_all_of.rb +257 -0
- data/lib/freeclimb/models/conference_result.rb +391 -0
- data/lib/freeclimb/models/conference_result_all_of.rb +343 -0
- data/lib/freeclimb/models/create_conference_request.rb +293 -0
- data/lib/freeclimb/models/dequeue_member_request.rb +207 -0
- data/lib/freeclimb/models/filter_logs_request.rb +222 -0
- data/lib/freeclimb/models/incoming_number_list.rb +286 -0
- data/lib/freeclimb/models/incoming_number_list_all_of.rb +208 -0
- data/lib/freeclimb/models/incoming_number_request.rb +227 -0
- data/lib/freeclimb/models/incoming_number_result.rb +335 -0
- data/lib/freeclimb/models/incoming_number_result_all_of.rb +287 -0
- data/lib/freeclimb/models/log_list.rb +286 -0
- data/lib/freeclimb/models/log_list_all_of.rb +208 -0
- data/lib/freeclimb/models/log_result.rb +301 -0
- data/lib/freeclimb/models/make_call_request.rb +302 -0
- data/lib/freeclimb/models/message_request.rb +320 -0
- data/lib/freeclimb/models/message_request_all_of.rb +272 -0
- data/lib/freeclimb/models/message_result.rb +359 -0
- data/lib/freeclimb/models/message_result_all_of.rb +311 -0
- data/lib/freeclimb/models/messages_list.rb +287 -0
- data/lib/freeclimb/models/messages_list_all_of.rb +209 -0
- data/lib/freeclimb/models/mutable_resource_model.rb +237 -0
- data/lib/freeclimb/models/pagination_model.rb +267 -0
- data/lib/freeclimb/models/queue_list.rb +286 -0
- data/lib/freeclimb/models/queue_list_all_of.rb +208 -0
- data/lib/freeclimb/models/queue_member.rb +247 -0
- data/lib/freeclimb/models/queue_member_list.rb +286 -0
- data/lib/freeclimb/models/queue_member_list_all_of.rb +208 -0
- data/lib/freeclimb/models/queue_request.rb +227 -0
- data/lib/freeclimb/models/queue_result.rb +315 -0
- data/lib/freeclimb/models/queue_result_all_of.rb +267 -0
- data/lib/freeclimb/models/recording_list.rb +286 -0
- data/lib/freeclimb/models/recording_list_all_of.rb +208 -0
- data/lib/freeclimb/models/recording_result.rb +295 -0
- data/lib/freeclimb/models/recording_result_all_of.rb +247 -0
- data/lib/freeclimb/models/update_call_request.rb +256 -0
- data/lib/freeclimb/models/update_conference_participant_request.rb +227 -0
- data/lib/freeclimb/models/update_conference_request.rb +273 -0
- data/lib/freeclimb/version.rb +15 -0
- data/lib/percl/calls.rb +43 -0
- data/lib/percl/conference_participants.rb +40 -0
- data/lib/percl/conferences.rb +21 -0
- data/lib/percl/ivr.rb +63 -0
- data/lib/percl/jsonable.rb +23 -0
- data/lib/percl/percl.rb +29 -0
- data/lib/percl/queue_members.rb +15 -0
- data/lib/percl/recordings.rb +15 -0
- data/lib/percl/sms.rb +11 -0
- data/spec/api/default_api_spec.rb +1151 -0
- data/spec/api/web_mocks.rb +473 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +34 -0
- data/spec/models/account_request_spec.rb +33 -0
- data/spec/models/account_result_spec.rb +33 -0
- data/spec/models/application_list_spec.rb +33 -0
- data/spec/models/application_request_spec.rb +33 -0
- data/spec/models/application_result_spec.rb +33 -0
- data/spec/models/available_number_list_spec.rb +34 -0
- data/spec/models/available_number_spec.rb +33 -0
- data/spec/models/buy_incoming_number_request_spec.rb +33 -0
- data/spec/models/call_list_spec.rb +34 -0
- data/spec/models/call_result_spec.rb +34 -0
- data/spec/models/conference_list_spec.rb +33 -0
- data/spec/models/conference_participant_list_spec.rb +33 -0
- data/spec/models/conference_participant_result_spec.rb +33 -0
- data/spec/models/conference_result_spec.rb +34 -0
- data/spec/models/create_conference_request_spec.rb +34 -0
- data/spec/models/dequeue_member_request_spec.rb +34 -0
- data/spec/models/filter_logs_request_spec.rb +33 -0
- data/spec/models/incoming_number_list_spec.rb +34 -0
- data/spec/models/incoming_number_request_spec.rb +33 -0
- data/spec/models/incoming_number_result_spec.rb +34 -0
- data/spec/models/log_list_spec.rb +33 -0
- data/spec/models/log_result_spec.rb +33 -0
- data/spec/models/make_call_request_spec.rb +33 -0
- data/spec/models/message_request_spec.rb +34 -0
- data/spec/models/message_result_spec.rb +33 -0
- data/spec/models/messages_list_spec.rb +33 -0
- data/spec/models/mutable_resource_model_spec.rb +34 -0
- data/spec/models/pagination_model_spec.rb +33 -0
- data/spec/models/queue_list_spec.rb +34 -0
- data/spec/models/queue_member_list_spec.rb +33 -0
- data/spec/models/queue_member_spec.rb +34 -0
- data/spec/models/queue_request_spec.rb +34 -0
- data/spec/models/queue_result_spec.rb +33 -0
- data/spec/models/recording_list_spec.rb +33 -0
- data/spec/models/recording_result_spec.rb +33 -0
- data/spec/models/update_call_request_spec.rb +33 -0
- data/spec/models/update_conference_participant_request_spec.rb +33 -0
- data/spec/models/update_conference_request_spec.rb +33 -0
- data/spec/percl/calls_spec.rb +111 -0
- data/spec/percl/conference_participant_spec.rb +96 -0
- data/spec/percl/conference_spec.rb +46 -0
- data/spec/percl/ivr_spec.rb +155 -0
- data/spec/percl/jsonable_spec.rb +28 -0
- data/spec/percl/percl_spec.rb +31 -0
- data/spec/percl/queue_members_spec.rb +35 -0
- data/spec/percl/recordings_spec.rb +32 -0
- data/spec/percl/sms_spec.rb +29 -0
- data/spec/spec_helper.rb +114 -0
- metadata +355 -0
data/git_push.sh
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=`git remote`
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
58
|
+
|
data/lib/freeclimb.rb
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
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
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'freeclimb/api_client'
|
15
|
+
require 'freeclimb/api_error'
|
16
|
+
require 'freeclimb/version'
|
17
|
+
require 'freeclimb/configuration'
|
18
|
+
require 'percl/percl'
|
19
|
+
# Models
|
20
|
+
require 'freeclimb/models/account_request'
|
21
|
+
require 'freeclimb/models/account_result'
|
22
|
+
require 'freeclimb/models/account_result_all_of'
|
23
|
+
require 'freeclimb/models/application_list'
|
24
|
+
require 'freeclimb/models/application_list_all_of'
|
25
|
+
require 'freeclimb/models/application_request'
|
26
|
+
require 'freeclimb/models/application_result'
|
27
|
+
require 'freeclimb/models/application_result_all_of'
|
28
|
+
require 'freeclimb/models/available_number'
|
29
|
+
require 'freeclimb/models/available_number_list'
|
30
|
+
require 'freeclimb/models/available_number_list_all_of'
|
31
|
+
require 'freeclimb/models/buy_incoming_number_request'
|
32
|
+
require 'freeclimb/models/call_list'
|
33
|
+
require 'freeclimb/models/call_list_all_of'
|
34
|
+
require 'freeclimb/models/call_result'
|
35
|
+
require 'freeclimb/models/call_result_all_of'
|
36
|
+
require 'freeclimb/models/conference_list'
|
37
|
+
require 'freeclimb/models/conference_list_all_of'
|
38
|
+
require 'freeclimb/models/conference_participant_list'
|
39
|
+
require 'freeclimb/models/conference_participant_list_all_of'
|
40
|
+
require 'freeclimb/models/conference_participant_result'
|
41
|
+
require 'freeclimb/models/conference_participant_result_all_of'
|
42
|
+
require 'freeclimb/models/conference_result'
|
43
|
+
require 'freeclimb/models/conference_result_all_of'
|
44
|
+
require 'freeclimb/models/create_conference_request'
|
45
|
+
require 'freeclimb/models/dequeue_member_request'
|
46
|
+
require 'freeclimb/models/filter_logs_request'
|
47
|
+
require 'freeclimb/models/incoming_number_list'
|
48
|
+
require 'freeclimb/models/incoming_number_list_all_of'
|
49
|
+
require 'freeclimb/models/incoming_number_request'
|
50
|
+
require 'freeclimb/models/incoming_number_result'
|
51
|
+
require 'freeclimb/models/incoming_number_result_all_of'
|
52
|
+
require 'freeclimb/models/log_list'
|
53
|
+
require 'freeclimb/models/log_list_all_of'
|
54
|
+
require 'freeclimb/models/log_result'
|
55
|
+
require 'freeclimb/models/make_call_request'
|
56
|
+
require 'freeclimb/models/message_request'
|
57
|
+
require 'freeclimb/models/message_request_all_of'
|
58
|
+
require 'freeclimb/models/message_result'
|
59
|
+
require 'freeclimb/models/message_result_all_of'
|
60
|
+
require 'freeclimb/models/messages_list'
|
61
|
+
require 'freeclimb/models/messages_list_all_of'
|
62
|
+
require 'freeclimb/models/mutable_resource_model'
|
63
|
+
require 'freeclimb/models/pagination_model'
|
64
|
+
require 'freeclimb/models/queue_list'
|
65
|
+
require 'freeclimb/models/queue_list_all_of'
|
66
|
+
require 'freeclimb/models/queue_member'
|
67
|
+
require 'freeclimb/models/queue_member_list'
|
68
|
+
require 'freeclimb/models/queue_member_list_all_of'
|
69
|
+
require 'freeclimb/models/queue_request'
|
70
|
+
require 'freeclimb/models/queue_result'
|
71
|
+
require 'freeclimb/models/queue_result_all_of'
|
72
|
+
require 'freeclimb/models/recording_list'
|
73
|
+
require 'freeclimb/models/recording_list_all_of'
|
74
|
+
require 'freeclimb/models/recording_result'
|
75
|
+
require 'freeclimb/models/recording_result_all_of'
|
76
|
+
require 'freeclimb/models/update_call_request'
|
77
|
+
require 'freeclimb/models/update_conference_participant_request'
|
78
|
+
require 'freeclimb/models/update_conference_request'
|
79
|
+
|
80
|
+
# APIs
|
81
|
+
require 'freeclimb/api/default_api'
|
82
|
+
|
83
|
+
module Freeclimb
|
84
|
+
class << self
|
85
|
+
# Customize default settings for the SDK using block.
|
86
|
+
# Freeclimb.configure do |config|
|
87
|
+
# config.username = "xxx"
|
88
|
+
# config.password = "xxx"
|
89
|
+
# end
|
90
|
+
# If no block given, return the default Configuration object.
|
91
|
+
def configure
|
92
|
+
if block_given?
|
93
|
+
yield(Configuration.default)
|
94
|
+
else
|
95
|
+
Configuration.default
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,2845 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
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
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Freeclimb
|
16
|
+
class DefaultApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default, account_id = nil)
|
20
|
+
@api_client = api_client
|
21
|
+
if account_id.nil?
|
22
|
+
@account_id = api_client.config.username
|
23
|
+
else
|
24
|
+
@account_id = account_id
|
25
|
+
end
|
26
|
+
end
|
27
|
+
# Buy a Phone Number
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @option opts [BuyIncomingNumberRequest] :buy_incoming_number_request Incoming Number transaction details
|
30
|
+
# @return [IncomingNumberResult]
|
31
|
+
def buy_a_phone_number(opts = {})
|
32
|
+
data, _status_code, _headers = buy_a_phone_number_with_http_info(opts)
|
33
|
+
data
|
34
|
+
end
|
35
|
+
|
36
|
+
# Buy a Phone Number
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [BuyIncomingNumberRequest] :buy_incoming_number_request Incoming Number transaction details
|
39
|
+
# @return [Array<(IncomingNumberResult, Integer, Hash)>] IncomingNumberResult data, response status code and response headers
|
40
|
+
def buy_a_phone_number_with_http_info(opts = {})
|
41
|
+
if @api_client.config.debugging
|
42
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.buy_a_phone_number ...'
|
43
|
+
end
|
44
|
+
# resource path
|
45
|
+
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
46
|
+
|
47
|
+
# query parameters
|
48
|
+
query_params = opts[:query_params] || {}
|
49
|
+
|
50
|
+
# header parameters
|
51
|
+
header_params = opts[:header_params] || {}
|
52
|
+
# HTTP header 'Accept' (if needed)
|
53
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
54
|
+
# HTTP header 'Content-Type'
|
55
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
56
|
+
|
57
|
+
# form parameters
|
58
|
+
form_params = opts[:form_params] || {}
|
59
|
+
|
60
|
+
# http body (model)
|
61
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'buy_incoming_number_request'])
|
62
|
+
|
63
|
+
# return_type
|
64
|
+
return_type = opts[:return_type] || 'IncomingNumberResult'
|
65
|
+
|
66
|
+
# auth_names
|
67
|
+
auth_names = opts[:auth_names] || ['fc']
|
68
|
+
|
69
|
+
new_options = opts.merge(
|
70
|
+
:header_params => header_params,
|
71
|
+
:query_params => query_params,
|
72
|
+
:form_params => form_params,
|
73
|
+
:body => post_body,
|
74
|
+
:auth_names => auth_names,
|
75
|
+
:return_type => return_type
|
76
|
+
)
|
77
|
+
|
78
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: DefaultApi#buy_a_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
|
85
|
+
# Create a Conference
|
86
|
+
# @param [Hash] opts the optional parameters
|
87
|
+
# @option opts [CreateConferenceRequest] :create_conference_request Conference to create
|
88
|
+
# @return [ConferenceResult]
|
89
|
+
def create_a_conference(opts = {})
|
90
|
+
data, _status_code, _headers = create_a_conference_with_http_info(opts)
|
91
|
+
data
|
92
|
+
end
|
93
|
+
|
94
|
+
# Create a Conference
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @option opts [CreateConferenceRequest] :create_conference_request Conference to create
|
97
|
+
# @return [Array<(ConferenceResult, Integer, Hash)>] ConferenceResult data, response status code and response headers
|
98
|
+
def create_a_conference_with_http_info(opts = {})
|
99
|
+
if @api_client.config.debugging
|
100
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.create_a_conference ...'
|
101
|
+
end
|
102
|
+
# resource path
|
103
|
+
local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
104
|
+
|
105
|
+
# query parameters
|
106
|
+
query_params = opts[:query_params] || {}
|
107
|
+
|
108
|
+
# header parameters
|
109
|
+
header_params = opts[:header_params] || {}
|
110
|
+
# HTTP header 'Accept' (if needed)
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
112
|
+
# HTTP header 'Content-Type'
|
113
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
114
|
+
|
115
|
+
# form parameters
|
116
|
+
form_params = opts[:form_params] || {}
|
117
|
+
|
118
|
+
# http body (model)
|
119
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'create_conference_request'])
|
120
|
+
|
121
|
+
# return_type
|
122
|
+
return_type = opts[:return_type] || 'ConferenceResult'
|
123
|
+
|
124
|
+
# auth_names
|
125
|
+
auth_names = opts[:auth_names] || ['fc']
|
126
|
+
|
127
|
+
new_options = opts.merge(
|
128
|
+
:header_params => header_params,
|
129
|
+
:query_params => query_params,
|
130
|
+
:form_params => form_params,
|
131
|
+
:body => post_body,
|
132
|
+
:auth_names => auth_names,
|
133
|
+
:return_type => return_type
|
134
|
+
)
|
135
|
+
|
136
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
137
|
+
if @api_client.config.debugging
|
138
|
+
@api_client.config.logger.debug "API called: DefaultApi#create_a_conference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
139
|
+
end
|
140
|
+
return data, status_code, headers
|
141
|
+
end
|
142
|
+
|
143
|
+
# Create a Queue
|
144
|
+
# @param [Hash] opts the optional parameters
|
145
|
+
# @option opts [QueueRequest] :queue_request Queue details used to create a queue
|
146
|
+
# @return [QueueResult]
|
147
|
+
def create_a_queue(opts = {})
|
148
|
+
data, _status_code, _headers = create_a_queue_with_http_info(opts)
|
149
|
+
data
|
150
|
+
end
|
151
|
+
|
152
|
+
# Create a Queue
|
153
|
+
# @param [Hash] opts the optional parameters
|
154
|
+
# @option opts [QueueRequest] :queue_request Queue details used to create a queue
|
155
|
+
# @return [Array<(QueueResult, Integer, Hash)>] QueueResult data, response status code and response headers
|
156
|
+
def create_a_queue_with_http_info(opts = {})
|
157
|
+
if @api_client.config.debugging
|
158
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.create_a_queue ...'
|
159
|
+
end
|
160
|
+
# resource path
|
161
|
+
local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
162
|
+
|
163
|
+
# query parameters
|
164
|
+
query_params = opts[:query_params] || {}
|
165
|
+
|
166
|
+
# header parameters
|
167
|
+
header_params = opts[:header_params] || {}
|
168
|
+
# HTTP header 'Accept' (if needed)
|
169
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
170
|
+
# HTTP header 'Content-Type'
|
171
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
172
|
+
|
173
|
+
# form parameters
|
174
|
+
form_params = opts[:form_params] || {}
|
175
|
+
|
176
|
+
# http body (model)
|
177
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'queue_request'])
|
178
|
+
|
179
|
+
# return_type
|
180
|
+
return_type = opts[:return_type] || 'QueueResult'
|
181
|
+
|
182
|
+
# auth_names
|
183
|
+
auth_names = opts[:auth_names] || ['fc']
|
184
|
+
|
185
|
+
new_options = opts.merge(
|
186
|
+
:header_params => header_params,
|
187
|
+
:query_params => query_params,
|
188
|
+
:form_params => form_params,
|
189
|
+
:body => post_body,
|
190
|
+
:auth_names => auth_names,
|
191
|
+
:return_type => return_type
|
192
|
+
)
|
193
|
+
|
194
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
195
|
+
if @api_client.config.debugging
|
196
|
+
@api_client.config.logger.debug "API called: DefaultApi#create_a_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
197
|
+
end
|
198
|
+
return data, status_code, headers
|
199
|
+
end
|
200
|
+
|
201
|
+
# Create an application
|
202
|
+
# @param [Hash] opts the optional parameters
|
203
|
+
# @option opts [ApplicationRequest] :application_request Application Details
|
204
|
+
# @return [ApplicationResult]
|
205
|
+
def create_an_application(opts = {})
|
206
|
+
data, _status_code, _headers = create_an_application_with_http_info(opts)
|
207
|
+
data
|
208
|
+
end
|
209
|
+
|
210
|
+
# Create an application
|
211
|
+
# @param [Hash] opts the optional parameters
|
212
|
+
# @option opts [ApplicationRequest] :application_request Application Details
|
213
|
+
# @return [Array<(ApplicationResult, Integer, Hash)>] ApplicationResult data, response status code and response headers
|
214
|
+
def create_an_application_with_http_info(opts = {})
|
215
|
+
if @api_client.config.debugging
|
216
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.create_an_application ...'
|
217
|
+
end
|
218
|
+
# resource path
|
219
|
+
local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
220
|
+
|
221
|
+
# query parameters
|
222
|
+
query_params = opts[:query_params] || {}
|
223
|
+
|
224
|
+
# header parameters
|
225
|
+
header_params = opts[:header_params] || {}
|
226
|
+
# HTTP header 'Accept' (if needed)
|
227
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
228
|
+
# HTTP header 'Content-Type'
|
229
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
230
|
+
|
231
|
+
# form parameters
|
232
|
+
form_params = opts[:form_params] || {}
|
233
|
+
|
234
|
+
# http body (model)
|
235
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'application_request'])
|
236
|
+
|
237
|
+
# return_type
|
238
|
+
return_type = opts[:return_type] || 'ApplicationResult'
|
239
|
+
|
240
|
+
# auth_names
|
241
|
+
auth_names = opts[:auth_names] || ['fc']
|
242
|
+
|
243
|
+
new_options = opts.merge(
|
244
|
+
:header_params => header_params,
|
245
|
+
:query_params => query_params,
|
246
|
+
:form_params => form_params,
|
247
|
+
:body => post_body,
|
248
|
+
:auth_names => auth_names,
|
249
|
+
:return_type => return_type
|
250
|
+
)
|
251
|
+
|
252
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
253
|
+
if @api_client.config.debugging
|
254
|
+
@api_client.config.logger.debug "API called: DefaultApi#create_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
255
|
+
end
|
256
|
+
return data, status_code, headers
|
257
|
+
end
|
258
|
+
|
259
|
+
# Delete a Recording
|
260
|
+
# @param recording_id [String] String that uniquely identifies this recording resource.
|
261
|
+
# @param [Hash] opts the optional parameters
|
262
|
+
# @return [nil]
|
263
|
+
def delete_a_recording(recording_id, opts = {})
|
264
|
+
delete_a_recording_with_http_info(recording_id, opts)
|
265
|
+
nil
|
266
|
+
end
|
267
|
+
|
268
|
+
# Delete a Recording
|
269
|
+
# @param recording_id [String] String that uniquely identifies this recording resource.
|
270
|
+
# @param [Hash] opts the optional parameters
|
271
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
272
|
+
def delete_a_recording_with_http_info(recording_id, opts = {})
|
273
|
+
if @api_client.config.debugging
|
274
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.delete_a_recording ...'
|
275
|
+
end
|
276
|
+
# verify the required parameter 'recording_id' is set
|
277
|
+
if @api_client.config.client_side_validation && recording_id.nil?
|
278
|
+
fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.delete_a_recording"
|
279
|
+
end
|
280
|
+
# resource path
|
281
|
+
local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
|
282
|
+
|
283
|
+
# query parameters
|
284
|
+
query_params = opts[:query_params] || {}
|
285
|
+
|
286
|
+
# header parameters
|
287
|
+
header_params = opts[:header_params] || {}
|
288
|
+
|
289
|
+
# form parameters
|
290
|
+
form_params = opts[:form_params] || {}
|
291
|
+
|
292
|
+
# http body (model)
|
293
|
+
post_body = opts[:body]
|
294
|
+
|
295
|
+
# return_type
|
296
|
+
return_type = opts[:return_type]
|
297
|
+
|
298
|
+
# auth_names
|
299
|
+
auth_names = opts[:auth_names] || ['fc']
|
300
|
+
|
301
|
+
new_options = opts.merge(
|
302
|
+
:header_params => header_params,
|
303
|
+
:query_params => query_params,
|
304
|
+
:form_params => form_params,
|
305
|
+
:body => post_body,
|
306
|
+
:auth_names => auth_names,
|
307
|
+
:return_type => return_type
|
308
|
+
)
|
309
|
+
|
310
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
311
|
+
if @api_client.config.debugging
|
312
|
+
@api_client.config.logger.debug "API called: DefaultApi#delete_a_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
313
|
+
end
|
314
|
+
return data, status_code, headers
|
315
|
+
end
|
316
|
+
|
317
|
+
# Delete an application
|
318
|
+
# @param application_id [String] String that uniquely identifies this application resource.
|
319
|
+
# @param [Hash] opts the optional parameters
|
320
|
+
# @return [nil]
|
321
|
+
def delete_an_application(application_id, opts = {})
|
322
|
+
delete_an_application_with_http_info(application_id, opts)
|
323
|
+
nil
|
324
|
+
end
|
325
|
+
|
326
|
+
# Delete an application
|
327
|
+
# @param application_id [String] String that uniquely identifies this application resource.
|
328
|
+
# @param [Hash] opts the optional parameters
|
329
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
330
|
+
def delete_an_application_with_http_info(application_id, opts = {})
|
331
|
+
if @api_client.config.debugging
|
332
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_application ...'
|
333
|
+
end
|
334
|
+
# verify the required parameter 'application_id' is set
|
335
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
336
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.delete_an_application"
|
337
|
+
end
|
338
|
+
# resource path
|
339
|
+
local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
|
340
|
+
|
341
|
+
# query parameters
|
342
|
+
query_params = opts[:query_params] || {}
|
343
|
+
|
344
|
+
# header parameters
|
345
|
+
header_params = opts[:header_params] || {}
|
346
|
+
|
347
|
+
# form parameters
|
348
|
+
form_params = opts[:form_params] || {}
|
349
|
+
|
350
|
+
# http body (model)
|
351
|
+
post_body = opts[:body]
|
352
|
+
|
353
|
+
# return_type
|
354
|
+
return_type = opts[:return_type]
|
355
|
+
|
356
|
+
# auth_names
|
357
|
+
auth_names = opts[:auth_names] || ['fc']
|
358
|
+
|
359
|
+
new_options = opts.merge(
|
360
|
+
:header_params => header_params,
|
361
|
+
:query_params => query_params,
|
362
|
+
:form_params => form_params,
|
363
|
+
:body => post_body,
|
364
|
+
:auth_names => auth_names,
|
365
|
+
:return_type => return_type
|
366
|
+
)
|
367
|
+
|
368
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
369
|
+
if @api_client.config.debugging
|
370
|
+
@api_client.config.logger.debug "API called: DefaultApi#delete_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
371
|
+
end
|
372
|
+
return data, status_code, headers
|
373
|
+
end
|
374
|
+
|
375
|
+
# Delete an Incoming Number
|
376
|
+
# @param phone_number_id [String] String that uniquely identifies this phone number resource.
|
377
|
+
# @param [Hash] opts the optional parameters
|
378
|
+
# @return [nil]
|
379
|
+
def delete_an_incoming_number(phone_number_id, opts = {})
|
380
|
+
delete_an_incoming_number_with_http_info(phone_number_id, opts)
|
381
|
+
nil
|
382
|
+
end
|
383
|
+
|
384
|
+
# Delete an Incoming Number
|
385
|
+
# @param phone_number_id [String] String that uniquely identifies this phone number resource.
|
386
|
+
# @param [Hash] opts the optional parameters
|
387
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
388
|
+
def delete_an_incoming_number_with_http_info(phone_number_id, opts = {})
|
389
|
+
if @api_client.config.debugging
|
390
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.delete_an_incoming_number ...'
|
391
|
+
end
|
392
|
+
# verify the required parameter 'phone_number_id' is set
|
393
|
+
if @api_client.config.client_side_validation && phone_number_id.nil?
|
394
|
+
fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.delete_an_incoming_number"
|
395
|
+
end
|
396
|
+
# resource path
|
397
|
+
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
|
398
|
+
|
399
|
+
# query parameters
|
400
|
+
query_params = opts[:query_params] || {}
|
401
|
+
|
402
|
+
# header parameters
|
403
|
+
header_params = opts[:header_params] || {}
|
404
|
+
|
405
|
+
# form parameters
|
406
|
+
form_params = opts[:form_params] || {}
|
407
|
+
|
408
|
+
# http body (model)
|
409
|
+
post_body = opts[:body]
|
410
|
+
|
411
|
+
# return_type
|
412
|
+
return_type = opts[:return_type]
|
413
|
+
|
414
|
+
# auth_names
|
415
|
+
auth_names = opts[:auth_names] || ['fc']
|
416
|
+
|
417
|
+
new_options = opts.merge(
|
418
|
+
:header_params => header_params,
|
419
|
+
:query_params => query_params,
|
420
|
+
:form_params => form_params,
|
421
|
+
:body => post_body,
|
422
|
+
:auth_names => auth_names,
|
423
|
+
:return_type => return_type
|
424
|
+
)
|
425
|
+
|
426
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
427
|
+
if @api_client.config.debugging
|
428
|
+
@api_client.config.logger.debug "API called: DefaultApi#delete_an_incoming_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
429
|
+
end
|
430
|
+
return data, status_code, headers
|
431
|
+
end
|
432
|
+
|
433
|
+
# Dequeue a Member
|
434
|
+
# @param queue_id [String] String that uniquely identifies the Queue that the Member belongs to.
|
435
|
+
# @param call_id [String] ID if the Call that the Member belongs to
|
436
|
+
# @param [Hash] opts the optional parameters
|
437
|
+
# @option opts [DequeueMemberRequest] :dequeue_member_request Dequeue member request details
|
438
|
+
# @return [QueueMember]
|
439
|
+
def dequeue_a_member(queue_id, call_id, opts = {})
|
440
|
+
data, _status_code, _headers = dequeue_a_member_with_http_info(queue_id, call_id, opts)
|
441
|
+
data
|
442
|
+
end
|
443
|
+
|
444
|
+
# Dequeue a Member
|
445
|
+
# @param queue_id [String] String that uniquely identifies the Queue that the Member belongs to.
|
446
|
+
# @param call_id [String] ID if the Call that the Member belongs to
|
447
|
+
# @param [Hash] opts the optional parameters
|
448
|
+
# @option opts [DequeueMemberRequest] :dequeue_member_request Dequeue member request details
|
449
|
+
# @return [Array<(QueueMember, Integer, Hash)>] QueueMember data, response status code and response headers
|
450
|
+
def dequeue_a_member_with_http_info(queue_id, call_id, opts = {})
|
451
|
+
if @api_client.config.debugging
|
452
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_a_member ...'
|
453
|
+
end
|
454
|
+
# verify the required parameter 'queue_id' is set
|
455
|
+
if @api_client.config.client_side_validation && queue_id.nil?
|
456
|
+
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.dequeue_a_member"
|
457
|
+
end
|
458
|
+
# verify the required parameter 'call_id' is set
|
459
|
+
if @api_client.config.client_side_validation && call_id.nil?
|
460
|
+
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.dequeue_a_member"
|
461
|
+
end
|
462
|
+
# resource path
|
463
|
+
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))
|
464
|
+
|
465
|
+
# query parameters
|
466
|
+
query_params = opts[:query_params] || {}
|
467
|
+
|
468
|
+
# header parameters
|
469
|
+
header_params = opts[:header_params] || {}
|
470
|
+
# HTTP header 'Accept' (if needed)
|
471
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
472
|
+
# HTTP header 'Content-Type'
|
473
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
474
|
+
|
475
|
+
# form parameters
|
476
|
+
form_params = opts[:form_params] || {}
|
477
|
+
|
478
|
+
# http body (model)
|
479
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'dequeue_member_request'])
|
480
|
+
|
481
|
+
# return_type
|
482
|
+
return_type = opts[:return_type] || 'QueueMember'
|
483
|
+
|
484
|
+
# auth_names
|
485
|
+
auth_names = opts[:auth_names] || ['fc']
|
486
|
+
|
487
|
+
new_options = opts.merge(
|
488
|
+
:header_params => header_params,
|
489
|
+
:query_params => query_params,
|
490
|
+
:form_params => form_params,
|
491
|
+
:body => post_body,
|
492
|
+
:auth_names => auth_names,
|
493
|
+
:return_type => return_type
|
494
|
+
)
|
495
|
+
|
496
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
497
|
+
if @api_client.config.debugging
|
498
|
+
@api_client.config.logger.debug "API called: DefaultApi#dequeue_a_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
499
|
+
end
|
500
|
+
return data, status_code, headers
|
501
|
+
end
|
502
|
+
|
503
|
+
# Dequeue Head Member
|
504
|
+
# @param queue_id [String] String that uniquely identifies this queue resource.
|
505
|
+
# @param [Hash] opts the optional parameters
|
506
|
+
# @option opts [DequeueMemberRequest] :dequeue_member_request Dequeue head member request details
|
507
|
+
# @return [QueueMember]
|
508
|
+
def dequeue_head_member(queue_id, opts = {})
|
509
|
+
data, _status_code, _headers = dequeue_head_member_with_http_info(queue_id, opts)
|
510
|
+
data
|
511
|
+
end
|
512
|
+
|
513
|
+
# Dequeue Head Member
|
514
|
+
# @param queue_id [String] String that uniquely identifies this queue resource.
|
515
|
+
# @param [Hash] opts the optional parameters
|
516
|
+
# @option opts [DequeueMemberRequest] :dequeue_member_request Dequeue head member request details
|
517
|
+
# @return [Array<(QueueMember, Integer, Hash)>] QueueMember data, response status code and response headers
|
518
|
+
def dequeue_head_member_with_http_info(queue_id, opts = {})
|
519
|
+
if @api_client.config.debugging
|
520
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.dequeue_head_member ...'
|
521
|
+
end
|
522
|
+
# verify the required parameter 'queue_id' is set
|
523
|
+
if @api_client.config.client_side_validation && queue_id.nil?
|
524
|
+
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.dequeue_head_member"
|
525
|
+
end
|
526
|
+
# resource path
|
527
|
+
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))
|
528
|
+
|
529
|
+
# query parameters
|
530
|
+
query_params = opts[:query_params] || {}
|
531
|
+
|
532
|
+
# header parameters
|
533
|
+
header_params = opts[:header_params] || {}
|
534
|
+
# HTTP header 'Accept' (if needed)
|
535
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
536
|
+
# HTTP header 'Content-Type'
|
537
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
538
|
+
|
539
|
+
# form parameters
|
540
|
+
form_params = opts[:form_params] || {}
|
541
|
+
|
542
|
+
# http body (model)
|
543
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'dequeue_member_request'])
|
544
|
+
|
545
|
+
# return_type
|
546
|
+
return_type = opts[:return_type] || 'QueueMember'
|
547
|
+
|
548
|
+
# auth_names
|
549
|
+
auth_names = opts[:auth_names] || ['fc']
|
550
|
+
|
551
|
+
new_options = opts.merge(
|
552
|
+
:header_params => header_params,
|
553
|
+
:query_params => query_params,
|
554
|
+
:form_params => form_params,
|
555
|
+
:body => post_body,
|
556
|
+
:auth_names => auth_names,
|
557
|
+
:return_type => return_type
|
558
|
+
)
|
559
|
+
|
560
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
561
|
+
if @api_client.config.debugging
|
562
|
+
@api_client.config.logger.debug "API called: DefaultApi#dequeue_head_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
563
|
+
end
|
564
|
+
return data, status_code, headers
|
565
|
+
end
|
566
|
+
|
567
|
+
# Download a Recording File
|
568
|
+
# @param recording_id [String] String that uniquely identifies this recording resource.
|
569
|
+
# @param [Hash] opts the optional parameters
|
570
|
+
# @return [File]
|
571
|
+
def download_a_recording_file(recording_id, opts = {})
|
572
|
+
data, _status_code, _headers = download_a_recording_file_with_http_info(recording_id, opts)
|
573
|
+
data
|
574
|
+
end
|
575
|
+
|
576
|
+
# Download a Recording File
|
577
|
+
# @param recording_id [String] String that uniquely identifies this recording resource.
|
578
|
+
# @param [Hash] opts the optional parameters
|
579
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
580
|
+
def download_a_recording_file_with_http_info(recording_id, opts = {})
|
581
|
+
if @api_client.config.debugging
|
582
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.download_a_recording_file ...'
|
583
|
+
end
|
584
|
+
# verify the required parameter 'recording_id' is set
|
585
|
+
if @api_client.config.client_side_validation && recording_id.nil?
|
586
|
+
fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.download_a_recording_file"
|
587
|
+
end
|
588
|
+
# resource path
|
589
|
+
local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Download'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
|
590
|
+
|
591
|
+
# query parameters
|
592
|
+
query_params = opts[:query_params] || {}
|
593
|
+
|
594
|
+
# header parameters
|
595
|
+
header_params = opts[:header_params] || {}
|
596
|
+
# HTTP header 'Accept' (if needed)
|
597
|
+
header_params['Accept'] = @api_client.select_header_accept(['audio/x-wav'])
|
598
|
+
|
599
|
+
# form parameters
|
600
|
+
form_params = opts[:form_params] || {}
|
601
|
+
|
602
|
+
# http body (model)
|
603
|
+
post_body = opts[:body]
|
604
|
+
|
605
|
+
# return_type
|
606
|
+
return_type = opts[:return_type] || 'File'
|
607
|
+
|
608
|
+
# auth_names
|
609
|
+
auth_names = opts[:auth_names] || ['fc']
|
610
|
+
|
611
|
+
new_options = opts.merge(
|
612
|
+
:header_params => header_params,
|
613
|
+
:query_params => query_params,
|
614
|
+
:form_params => form_params,
|
615
|
+
:body => post_body,
|
616
|
+
:auth_names => auth_names,
|
617
|
+
:return_type => return_type
|
618
|
+
)
|
619
|
+
|
620
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
621
|
+
if @api_client.config.debugging
|
622
|
+
@api_client.config.logger.debug "API called: DefaultApi#download_a_recording_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
623
|
+
end
|
624
|
+
return data, status_code, headers
|
625
|
+
end
|
626
|
+
|
627
|
+
# Filter Logs
|
628
|
+
# @param [Hash] opts the optional parameters
|
629
|
+
# @option opts [FilterLogsRequest] :filter_logs_request Filter logs request paramters
|
630
|
+
# @return [LogList]
|
631
|
+
def filter_logs(opts = {})
|
632
|
+
data, _status_code, _headers = filter_logs_with_http_info(opts)
|
633
|
+
data
|
634
|
+
end
|
635
|
+
|
636
|
+
# Filter Logs
|
637
|
+
# @param [Hash] opts the optional parameters
|
638
|
+
# @option opts [FilterLogsRequest] :filter_logs_request Filter logs request paramters
|
639
|
+
# @return [Array<(LogList, Integer, Hash)>] LogList data, response status code and response headers
|
640
|
+
def filter_logs_with_http_info(opts = {})
|
641
|
+
if @api_client.config.debugging
|
642
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.filter_logs ...'
|
643
|
+
end
|
644
|
+
# resource path
|
645
|
+
local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
646
|
+
|
647
|
+
# query parameters
|
648
|
+
query_params = opts[:query_params] || {}
|
649
|
+
|
650
|
+
# header parameters
|
651
|
+
header_params = opts[:header_params] || {}
|
652
|
+
# HTTP header 'Accept' (if needed)
|
653
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
654
|
+
# HTTP header 'Content-Type'
|
655
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
656
|
+
|
657
|
+
# form parameters
|
658
|
+
form_params = opts[:form_params] || {}
|
659
|
+
|
660
|
+
# http body (model)
|
661
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'filter_logs_request'])
|
662
|
+
|
663
|
+
# return_type
|
664
|
+
return_type = opts[:return_type] || 'LogList'
|
665
|
+
|
666
|
+
# auth_names
|
667
|
+
auth_names = opts[:auth_names] || ['fc']
|
668
|
+
|
669
|
+
new_options = opts.merge(
|
670
|
+
:header_params => header_params,
|
671
|
+
:query_params => query_params,
|
672
|
+
:form_params => form_params,
|
673
|
+
:body => post_body,
|
674
|
+
:auth_names => auth_names,
|
675
|
+
:return_type => return_type
|
676
|
+
)
|
677
|
+
|
678
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
679
|
+
if @api_client.config.debugging
|
680
|
+
@api_client.config.logger.debug "API called: DefaultApi#filter_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
681
|
+
end
|
682
|
+
return data, status_code, headers
|
683
|
+
end
|
684
|
+
|
685
|
+
# Get a Call
|
686
|
+
# @param call_id [String] String that uniquely identifies this call resource.
|
687
|
+
# @param [Hash] opts the optional parameters
|
688
|
+
# @return [CallResult]
|
689
|
+
def get_a_call(call_id, opts = {})
|
690
|
+
data, _status_code, _headers = get_a_call_with_http_info(call_id, opts)
|
691
|
+
data
|
692
|
+
end
|
693
|
+
|
694
|
+
# Get a Call
|
695
|
+
# @param call_id [String] String that uniquely identifies this call resource.
|
696
|
+
# @param [Hash] opts the optional parameters
|
697
|
+
# @return [Array<(CallResult, Integer, Hash)>] CallResult data, response status code and response headers
|
698
|
+
def get_a_call_with_http_info(call_id, opts = {})
|
699
|
+
if @api_client.config.debugging
|
700
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_a_call ...'
|
701
|
+
end
|
702
|
+
# verify the required parameter 'call_id' is set
|
703
|
+
if @api_client.config.client_side_validation && call_id.nil?
|
704
|
+
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_call"
|
705
|
+
end
|
706
|
+
# resource path
|
707
|
+
local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
|
708
|
+
|
709
|
+
# query parameters
|
710
|
+
query_params = opts[:query_params] || {}
|
711
|
+
|
712
|
+
# header parameters
|
713
|
+
header_params = opts[:header_params] || {}
|
714
|
+
# HTTP header 'Accept' (if needed)
|
715
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
716
|
+
|
717
|
+
# form parameters
|
718
|
+
form_params = opts[:form_params] || {}
|
719
|
+
|
720
|
+
# http body (model)
|
721
|
+
post_body = opts[:body]
|
722
|
+
|
723
|
+
# return_type
|
724
|
+
return_type = opts[:return_type] || 'CallResult'
|
725
|
+
|
726
|
+
# auth_names
|
727
|
+
auth_names = opts[:auth_names] || ['fc']
|
728
|
+
|
729
|
+
new_options = opts.merge(
|
730
|
+
:header_params => header_params,
|
731
|
+
:query_params => query_params,
|
732
|
+
:form_params => form_params,
|
733
|
+
:body => post_body,
|
734
|
+
:auth_names => auth_names,
|
735
|
+
:return_type => return_type
|
736
|
+
)
|
737
|
+
|
738
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
739
|
+
if @api_client.config.debugging
|
740
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_a_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
741
|
+
end
|
742
|
+
return data, status_code, headers
|
743
|
+
end
|
744
|
+
|
745
|
+
# Get a Conference
|
746
|
+
# @param conference_id [String] A string that uniquely identifies this conference resource.
|
747
|
+
# @param [Hash] opts the optional parameters
|
748
|
+
# @return [ConferenceResult]
|
749
|
+
def get_a_conference(conference_id, opts = {})
|
750
|
+
data, _status_code, _headers = get_a_conference_with_http_info(conference_id, opts)
|
751
|
+
data
|
752
|
+
end
|
753
|
+
|
754
|
+
# Get a Conference
|
755
|
+
# @param conference_id [String] A string that uniquely identifies this conference resource.
|
756
|
+
# @param [Hash] opts the optional parameters
|
757
|
+
# @return [Array<(ConferenceResult, Integer, Hash)>] ConferenceResult data, response status code and response headers
|
758
|
+
def get_a_conference_with_http_info(conference_id, opts = {})
|
759
|
+
if @api_client.config.debugging
|
760
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_a_conference ...'
|
761
|
+
end
|
762
|
+
# verify the required parameter 'conference_id' is set
|
763
|
+
if @api_client.config.client_side_validation && conference_id.nil?
|
764
|
+
fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.get_a_conference"
|
765
|
+
end
|
766
|
+
# resource path
|
767
|
+
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
|
768
|
+
|
769
|
+
# query parameters
|
770
|
+
query_params = opts[:query_params] || {}
|
771
|
+
|
772
|
+
# header parameters
|
773
|
+
header_params = opts[:header_params] || {}
|
774
|
+
# HTTP header 'Accept' (if needed)
|
775
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
776
|
+
|
777
|
+
# form parameters
|
778
|
+
form_params = opts[:form_params] || {}
|
779
|
+
|
780
|
+
# http body (model)
|
781
|
+
post_body = opts[:body]
|
782
|
+
|
783
|
+
# return_type
|
784
|
+
return_type = opts[:return_type] || 'ConferenceResult'
|
785
|
+
|
786
|
+
# auth_names
|
787
|
+
auth_names = opts[:auth_names] || ['fc']
|
788
|
+
|
789
|
+
new_options = opts.merge(
|
790
|
+
:header_params => header_params,
|
791
|
+
:query_params => query_params,
|
792
|
+
:form_params => form_params,
|
793
|
+
:body => post_body,
|
794
|
+
:auth_names => auth_names,
|
795
|
+
:return_type => return_type
|
796
|
+
)
|
797
|
+
|
798
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
799
|
+
if @api_client.config.debugging
|
800
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_a_conference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
801
|
+
end
|
802
|
+
return data, status_code, headers
|
803
|
+
end
|
804
|
+
|
805
|
+
# Get a Member
|
806
|
+
# @param queue_id [String] String that uniquely identifies the Queue that the Member belongs to.
|
807
|
+
# @param call_id [String] ID of the Call that the Member belongs to
|
808
|
+
# @param [Hash] opts the optional parameters
|
809
|
+
# @return [QueueMember]
|
810
|
+
def get_a_member(queue_id, call_id, opts = {})
|
811
|
+
data, _status_code, _headers = get_a_member_with_http_info(queue_id, call_id, opts)
|
812
|
+
data
|
813
|
+
end
|
814
|
+
|
815
|
+
# Get a Member
|
816
|
+
# @param queue_id [String] String that uniquely identifies the Queue that the Member belongs to.
|
817
|
+
# @param call_id [String] ID of the Call that the Member belongs to
|
818
|
+
# @param [Hash] opts the optional parameters
|
819
|
+
# @return [Array<(QueueMember, Integer, Hash)>] QueueMember data, response status code and response headers
|
820
|
+
def get_a_member_with_http_info(queue_id, call_id, opts = {})
|
821
|
+
if @api_client.config.debugging
|
822
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_a_member ...'
|
823
|
+
end
|
824
|
+
# verify the required parameter 'queue_id' is set
|
825
|
+
if @api_client.config.client_side_validation && queue_id.nil?
|
826
|
+
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_a_member"
|
827
|
+
end
|
828
|
+
# verify the required parameter 'call_id' is set
|
829
|
+
if @api_client.config.client_side_validation && call_id.nil?
|
830
|
+
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_member"
|
831
|
+
end
|
832
|
+
# resource path
|
833
|
+
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))
|
834
|
+
|
835
|
+
# query parameters
|
836
|
+
query_params = opts[:query_params] || {}
|
837
|
+
|
838
|
+
# header parameters
|
839
|
+
header_params = opts[:header_params] || {}
|
840
|
+
# HTTP header 'Accept' (if needed)
|
841
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
842
|
+
|
843
|
+
# form parameters
|
844
|
+
form_params = opts[:form_params] || {}
|
845
|
+
|
846
|
+
# http body (model)
|
847
|
+
post_body = opts[:body]
|
848
|
+
|
849
|
+
# return_type
|
850
|
+
return_type = opts[:return_type] || 'QueueMember'
|
851
|
+
|
852
|
+
# auth_names
|
853
|
+
auth_names = opts[:auth_names] || ['fc']
|
854
|
+
|
855
|
+
new_options = opts.merge(
|
856
|
+
:header_params => header_params,
|
857
|
+
:query_params => query_params,
|
858
|
+
:form_params => form_params,
|
859
|
+
:body => post_body,
|
860
|
+
:auth_names => auth_names,
|
861
|
+
:return_type => return_type
|
862
|
+
)
|
863
|
+
|
864
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
865
|
+
if @api_client.config.debugging
|
866
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_a_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
867
|
+
end
|
868
|
+
return data, status_code, headers
|
869
|
+
end
|
870
|
+
|
871
|
+
# Get a Participant
|
872
|
+
# @param conference_id [String] ID of the conference this participant is in.
|
873
|
+
# @param call_id [String] ID of the Call associated with this participant.
|
874
|
+
# @param [Hash] opts the optional parameters
|
875
|
+
# @return [ConferenceParticipantResult]
|
876
|
+
def get_a_participant(conference_id, call_id, opts = {})
|
877
|
+
data, _status_code, _headers = get_a_participant_with_http_info(conference_id, call_id, opts)
|
878
|
+
data
|
879
|
+
end
|
880
|
+
|
881
|
+
# Get a Participant
|
882
|
+
# @param conference_id [String] ID of the conference this participant is in.
|
883
|
+
# @param call_id [String] ID of the Call associated with this participant.
|
884
|
+
# @param [Hash] opts the optional parameters
|
885
|
+
# @return [Array<(ConferenceParticipantResult, Integer, Hash)>] ConferenceParticipantResult data, response status code and response headers
|
886
|
+
def get_a_participant_with_http_info(conference_id, call_id, opts = {})
|
887
|
+
if @api_client.config.debugging
|
888
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_a_participant ...'
|
889
|
+
end
|
890
|
+
# verify the required parameter 'conference_id' is set
|
891
|
+
if @api_client.config.client_side_validation && conference_id.nil?
|
892
|
+
fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.get_a_participant"
|
893
|
+
end
|
894
|
+
# verify the required parameter 'call_id' is set
|
895
|
+
if @api_client.config.client_side_validation && call_id.nil?
|
896
|
+
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.get_a_participant"
|
897
|
+
end
|
898
|
+
# resource path
|
899
|
+
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))
|
900
|
+
|
901
|
+
# query parameters
|
902
|
+
query_params = opts[:query_params] || {}
|
903
|
+
|
904
|
+
# header parameters
|
905
|
+
header_params = opts[:header_params] || {}
|
906
|
+
# HTTP header 'Accept' (if needed)
|
907
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
908
|
+
|
909
|
+
# form parameters
|
910
|
+
form_params = opts[:form_params] || {}
|
911
|
+
|
912
|
+
# http body (model)
|
913
|
+
post_body = opts[:body]
|
914
|
+
|
915
|
+
# return_type
|
916
|
+
return_type = opts[:return_type] || 'ConferenceParticipantResult'
|
917
|
+
|
918
|
+
# auth_names
|
919
|
+
auth_names = opts[:auth_names] || ['fc']
|
920
|
+
|
921
|
+
new_options = opts.merge(
|
922
|
+
:header_params => header_params,
|
923
|
+
:query_params => query_params,
|
924
|
+
:form_params => form_params,
|
925
|
+
:body => post_body,
|
926
|
+
:auth_names => auth_names,
|
927
|
+
:return_type => return_type
|
928
|
+
)
|
929
|
+
|
930
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
931
|
+
if @api_client.config.debugging
|
932
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_a_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
933
|
+
end
|
934
|
+
return data, status_code, headers
|
935
|
+
end
|
936
|
+
|
937
|
+
# Get a Queue
|
938
|
+
# @param queue_id [String] A string that uniquely identifies this queue resource.
|
939
|
+
# @param [Hash] opts the optional parameters
|
940
|
+
# @return [QueueResult]
|
941
|
+
def get_a_queue(queue_id, opts = {})
|
942
|
+
data, _status_code, _headers = get_a_queue_with_http_info(queue_id, opts)
|
943
|
+
data
|
944
|
+
end
|
945
|
+
|
946
|
+
# Get a Queue
|
947
|
+
# @param queue_id [String] A string that uniquely identifies this queue resource.
|
948
|
+
# @param [Hash] opts the optional parameters
|
949
|
+
# @return [Array<(QueueResult, Integer, Hash)>] QueueResult data, response status code and response headers
|
950
|
+
def get_a_queue_with_http_info(queue_id, opts = {})
|
951
|
+
if @api_client.config.debugging
|
952
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_a_queue ...'
|
953
|
+
end
|
954
|
+
# verify the required parameter 'queue_id' is set
|
955
|
+
if @api_client.config.client_side_validation && queue_id.nil?
|
956
|
+
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_a_queue"
|
957
|
+
end
|
958
|
+
# resource path
|
959
|
+
local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
|
960
|
+
|
961
|
+
# query parameters
|
962
|
+
query_params = opts[:query_params] || {}
|
963
|
+
|
964
|
+
# header parameters
|
965
|
+
header_params = opts[:header_params] || {}
|
966
|
+
# HTTP header 'Accept' (if needed)
|
967
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
968
|
+
|
969
|
+
# form parameters
|
970
|
+
form_params = opts[:form_params] || {}
|
971
|
+
|
972
|
+
# http body (model)
|
973
|
+
post_body = opts[:body]
|
974
|
+
|
975
|
+
# return_type
|
976
|
+
return_type = opts[:return_type] || 'QueueResult'
|
977
|
+
|
978
|
+
# auth_names
|
979
|
+
auth_names = opts[:auth_names] || ['fc']
|
980
|
+
|
981
|
+
new_options = opts.merge(
|
982
|
+
:header_params => header_params,
|
983
|
+
:query_params => query_params,
|
984
|
+
:form_params => form_params,
|
985
|
+
:body => post_body,
|
986
|
+
:auth_names => auth_names,
|
987
|
+
:return_type => return_type
|
988
|
+
)
|
989
|
+
|
990
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
991
|
+
if @api_client.config.debugging
|
992
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_a_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
993
|
+
end
|
994
|
+
return data, status_code, headers
|
995
|
+
end
|
996
|
+
|
997
|
+
# Get a Recording
|
998
|
+
# @param recording_id [String] String that uniquely identifies this recording resource.
|
999
|
+
# @param [Hash] opts the optional parameters
|
1000
|
+
# @return [RecordingResult]
|
1001
|
+
def get_a_recording(recording_id, opts = {})
|
1002
|
+
data, _status_code, _headers = get_a_recording_with_http_info(recording_id, opts)
|
1003
|
+
data
|
1004
|
+
end
|
1005
|
+
|
1006
|
+
# Get a Recording
|
1007
|
+
# @param recording_id [String] String that uniquely identifies this recording resource.
|
1008
|
+
# @param [Hash] opts the optional parameters
|
1009
|
+
# @return [Array<(RecordingResult, Integer, Hash)>] RecordingResult data, response status code and response headers
|
1010
|
+
def get_a_recording_with_http_info(recording_id, opts = {})
|
1011
|
+
if @api_client.config.debugging
|
1012
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_a_recording ...'
|
1013
|
+
end
|
1014
|
+
# verify the required parameter 'recording_id' is set
|
1015
|
+
if @api_client.config.client_side_validation && recording_id.nil?
|
1016
|
+
fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.get_a_recording"
|
1017
|
+
end
|
1018
|
+
# resource path
|
1019
|
+
local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
|
1020
|
+
|
1021
|
+
# query parameters
|
1022
|
+
query_params = opts[:query_params] || {}
|
1023
|
+
|
1024
|
+
# header parameters
|
1025
|
+
header_params = opts[:header_params] || {}
|
1026
|
+
# HTTP header 'Accept' (if needed)
|
1027
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1028
|
+
|
1029
|
+
# form parameters
|
1030
|
+
form_params = opts[:form_params] || {}
|
1031
|
+
|
1032
|
+
# http body (model)
|
1033
|
+
post_body = opts[:body]
|
1034
|
+
|
1035
|
+
# return_type
|
1036
|
+
return_type = opts[:return_type] || 'RecordingResult'
|
1037
|
+
|
1038
|
+
# auth_names
|
1039
|
+
auth_names = opts[:auth_names] || ['fc']
|
1040
|
+
|
1041
|
+
new_options = opts.merge(
|
1042
|
+
:header_params => header_params,
|
1043
|
+
:query_params => query_params,
|
1044
|
+
:form_params => form_params,
|
1045
|
+
:body => post_body,
|
1046
|
+
:auth_names => auth_names,
|
1047
|
+
:return_type => return_type
|
1048
|
+
)
|
1049
|
+
|
1050
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1051
|
+
if @api_client.config.debugging
|
1052
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_a_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1053
|
+
end
|
1054
|
+
return data, status_code, headers
|
1055
|
+
end
|
1056
|
+
|
1057
|
+
# Get an Account
|
1058
|
+
# @param [Hash] opts the optional parameters
|
1059
|
+
# @return [AccountResult]
|
1060
|
+
def get_an_account(opts = {})
|
1061
|
+
data, _status_code, _headers = get_an_account_with_http_info(opts)
|
1062
|
+
data
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
# Get an Account
|
1066
|
+
# @param [Hash] opts the optional parameters
|
1067
|
+
# @return [Array<(AccountResult, Integer, Hash)>] AccountResult data, response status code and response headers
|
1068
|
+
def get_an_account_with_http_info(opts = {})
|
1069
|
+
if @api_client.config.debugging
|
1070
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_an_account ...'
|
1071
|
+
end
|
1072
|
+
# resource path
|
1073
|
+
local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
1074
|
+
|
1075
|
+
# query parameters
|
1076
|
+
query_params = opts[:query_params] || {}
|
1077
|
+
|
1078
|
+
# header parameters
|
1079
|
+
header_params = opts[:header_params] || {}
|
1080
|
+
# HTTP header 'Accept' (if needed)
|
1081
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1082
|
+
|
1083
|
+
# form parameters
|
1084
|
+
form_params = opts[:form_params] || {}
|
1085
|
+
|
1086
|
+
# http body (model)
|
1087
|
+
post_body = opts[:body]
|
1088
|
+
|
1089
|
+
# return_type
|
1090
|
+
return_type = opts[:return_type] || 'AccountResult'
|
1091
|
+
|
1092
|
+
# auth_names
|
1093
|
+
auth_names = opts[:auth_names] || ['fc']
|
1094
|
+
|
1095
|
+
new_options = opts.merge(
|
1096
|
+
:header_params => header_params,
|
1097
|
+
:query_params => query_params,
|
1098
|
+
:form_params => form_params,
|
1099
|
+
:body => post_body,
|
1100
|
+
:auth_names => auth_names,
|
1101
|
+
:return_type => return_type
|
1102
|
+
)
|
1103
|
+
|
1104
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1105
|
+
if @api_client.config.debugging
|
1106
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1107
|
+
end
|
1108
|
+
return data, status_code, headers
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
# Get an Application
|
1112
|
+
# @param application_id [String] A string that uniquely identifies this application resource.
|
1113
|
+
# @param [Hash] opts the optional parameters
|
1114
|
+
# @return [ApplicationResult]
|
1115
|
+
def get_an_application(application_id, opts = {})
|
1116
|
+
data, _status_code, _headers = get_an_application_with_http_info(application_id, opts)
|
1117
|
+
data
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
# Get an Application
|
1121
|
+
# @param application_id [String] A string that uniquely identifies this application resource.
|
1122
|
+
# @param [Hash] opts the optional parameters
|
1123
|
+
# @return [Array<(ApplicationResult, Integer, Hash)>] ApplicationResult data, response status code and response headers
|
1124
|
+
def get_an_application_with_http_info(application_id, opts = {})
|
1125
|
+
if @api_client.config.debugging
|
1126
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_an_application ...'
|
1127
|
+
end
|
1128
|
+
# verify the required parameter 'application_id' is set
|
1129
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
1130
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.get_an_application"
|
1131
|
+
end
|
1132
|
+
# resource path
|
1133
|
+
local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
|
1134
|
+
|
1135
|
+
# query parameters
|
1136
|
+
query_params = opts[:query_params] || {}
|
1137
|
+
|
1138
|
+
# header parameters
|
1139
|
+
header_params = opts[:header_params] || {}
|
1140
|
+
# HTTP header 'Accept' (if needed)
|
1141
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1142
|
+
|
1143
|
+
# form parameters
|
1144
|
+
form_params = opts[:form_params] || {}
|
1145
|
+
|
1146
|
+
# http body (model)
|
1147
|
+
post_body = opts[:body]
|
1148
|
+
|
1149
|
+
# return_type
|
1150
|
+
return_type = opts[:return_type] || 'ApplicationResult'
|
1151
|
+
|
1152
|
+
# auth_names
|
1153
|
+
auth_names = opts[:auth_names] || ['fc']
|
1154
|
+
|
1155
|
+
new_options = opts.merge(
|
1156
|
+
:header_params => header_params,
|
1157
|
+
:query_params => query_params,
|
1158
|
+
:form_params => form_params,
|
1159
|
+
:body => post_body,
|
1160
|
+
:auth_names => auth_names,
|
1161
|
+
:return_type => return_type
|
1162
|
+
)
|
1163
|
+
|
1164
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1165
|
+
if @api_client.config.debugging
|
1166
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1167
|
+
end
|
1168
|
+
return data, status_code, headers
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
# Get an Incoming Number
|
1172
|
+
# @param phone_number_id [String] String that uniquely identifies this phone number resource.
|
1173
|
+
# @param [Hash] opts the optional parameters
|
1174
|
+
# @return [IncomingNumberResult]
|
1175
|
+
def get_an_incoming_number(phone_number_id, opts = {})
|
1176
|
+
data, _status_code, _headers = get_an_incoming_number_with_http_info(phone_number_id, opts)
|
1177
|
+
data
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
# Get an Incoming Number
|
1181
|
+
# @param phone_number_id [String] String that uniquely identifies this phone number resource.
|
1182
|
+
# @param [Hash] opts the optional parameters
|
1183
|
+
# @return [Array<(IncomingNumberResult, Integer, Hash)>] IncomingNumberResult data, response status code and response headers
|
1184
|
+
def get_an_incoming_number_with_http_info(phone_number_id, opts = {})
|
1185
|
+
if @api_client.config.debugging
|
1186
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_an_incoming_number ...'
|
1187
|
+
end
|
1188
|
+
# verify the required parameter 'phone_number_id' is set
|
1189
|
+
if @api_client.config.client_side_validation && phone_number_id.nil?
|
1190
|
+
fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.get_an_incoming_number"
|
1191
|
+
end
|
1192
|
+
# resource path
|
1193
|
+
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
|
+
|
1195
|
+
# query parameters
|
1196
|
+
query_params = opts[:query_params] || {}
|
1197
|
+
|
1198
|
+
# header parameters
|
1199
|
+
header_params = opts[:header_params] || {}
|
1200
|
+
# HTTP header 'Accept' (if needed)
|
1201
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1202
|
+
|
1203
|
+
# form parameters
|
1204
|
+
form_params = opts[:form_params] || {}
|
1205
|
+
|
1206
|
+
# http body (model)
|
1207
|
+
post_body = opts[:body]
|
1208
|
+
|
1209
|
+
# return_type
|
1210
|
+
return_type = opts[:return_type] || 'IncomingNumberResult'
|
1211
|
+
|
1212
|
+
# auth_names
|
1213
|
+
auth_names = opts[:auth_names] || ['fc']
|
1214
|
+
|
1215
|
+
new_options = opts.merge(
|
1216
|
+
:header_params => header_params,
|
1217
|
+
:query_params => query_params,
|
1218
|
+
:form_params => form_params,
|
1219
|
+
:body => post_body,
|
1220
|
+
:auth_names => auth_names,
|
1221
|
+
:return_type => return_type
|
1222
|
+
)
|
1223
|
+
|
1224
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1225
|
+
if @api_client.config.debugging
|
1226
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_an_incoming_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1227
|
+
end
|
1228
|
+
return data, status_code, headers
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
# Get an SMS Message
|
1232
|
+
# @param message_id [String] String that uniquely identifies this Message resource.
|
1233
|
+
# @param [Hash] opts the optional parameters
|
1234
|
+
# @return [MessageResult]
|
1235
|
+
def get_an_sms_message(message_id, opts = {})
|
1236
|
+
data, _status_code, _headers = get_an_sms_message_with_http_info(message_id, opts)
|
1237
|
+
data
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
# Get an SMS Message
|
1241
|
+
# @param message_id [String] String that uniquely identifies this Message resource.
|
1242
|
+
# @param [Hash] opts the optional parameters
|
1243
|
+
# @return [Array<(MessageResult, Integer, Hash)>] MessageResult data, response status code and response headers
|
1244
|
+
def get_an_sms_message_with_http_info(message_id, opts = {})
|
1245
|
+
if @api_client.config.debugging
|
1246
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_an_sms_message ...'
|
1247
|
+
end
|
1248
|
+
# verify the required parameter 'message_id' is set
|
1249
|
+
if @api_client.config.client_side_validation && message_id.nil?
|
1250
|
+
fail ArgumentError, "Missing the required parameter 'message_id' when calling DefaultApi.get_an_sms_message"
|
1251
|
+
end
|
1252
|
+
# resource path
|
1253
|
+
local_var_path = '/Accounts/{accountId}/Messages/{messageId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
|
1254
|
+
|
1255
|
+
# query parameters
|
1256
|
+
query_params = opts[:query_params] || {}
|
1257
|
+
|
1258
|
+
# header parameters
|
1259
|
+
header_params = opts[:header_params] || {}
|
1260
|
+
# HTTP header 'Accept' (if needed)
|
1261
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1262
|
+
|
1263
|
+
# form parameters
|
1264
|
+
form_params = opts[:form_params] || {}
|
1265
|
+
|
1266
|
+
# http body (model)
|
1267
|
+
post_body = opts[:body]
|
1268
|
+
|
1269
|
+
# return_type
|
1270
|
+
return_type = opts[:return_type] || 'MessageResult'
|
1271
|
+
|
1272
|
+
# auth_names
|
1273
|
+
auth_names = opts[:auth_names] || ['fc']
|
1274
|
+
|
1275
|
+
new_options = opts.merge(
|
1276
|
+
:header_params => header_params,
|
1277
|
+
:query_params => query_params,
|
1278
|
+
:form_params => form_params,
|
1279
|
+
:body => post_body,
|
1280
|
+
:auth_names => auth_names,
|
1281
|
+
:return_type => return_type
|
1282
|
+
)
|
1283
|
+
|
1284
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1285
|
+
if @api_client.config.debugging
|
1286
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_an_sms_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1287
|
+
end
|
1288
|
+
return data, status_code, headers
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
# Get Head Member
|
1292
|
+
# @param queue_id [String] String that uniquely identifies the Queue that the Member belongs to.
|
1293
|
+
# @param [Hash] opts the optional parameters
|
1294
|
+
# @return [QueueMember]
|
1295
|
+
def get_head_member(queue_id, opts = {})
|
1296
|
+
data, _status_code, _headers = get_head_member_with_http_info(queue_id, opts)
|
1297
|
+
data
|
1298
|
+
end
|
1299
|
+
|
1300
|
+
# Get Head Member
|
1301
|
+
# @param queue_id [String] String that uniquely identifies the Queue that the Member belongs to.
|
1302
|
+
# @param [Hash] opts the optional parameters
|
1303
|
+
# @return [Array<(QueueMember, Integer, Hash)>] QueueMember data, response status code and response headers
|
1304
|
+
def get_head_member_with_http_info(queue_id, opts = {})
|
1305
|
+
if @api_client.config.debugging
|
1306
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_head_member ...'
|
1307
|
+
end
|
1308
|
+
# verify the required parameter 'queue_id' is set
|
1309
|
+
if @api_client.config.client_side_validation && queue_id.nil?
|
1310
|
+
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.get_head_member"
|
1311
|
+
end
|
1312
|
+
# resource path
|
1313
|
+
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
|
+
|
1315
|
+
# query parameters
|
1316
|
+
query_params = opts[:query_params] || {}
|
1317
|
+
|
1318
|
+
# header parameters
|
1319
|
+
header_params = opts[:header_params] || {}
|
1320
|
+
# HTTP header 'Accept' (if needed)
|
1321
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1322
|
+
|
1323
|
+
# form parameters
|
1324
|
+
form_params = opts[:form_params] || {}
|
1325
|
+
|
1326
|
+
# http body (model)
|
1327
|
+
post_body = opts[:body]
|
1328
|
+
|
1329
|
+
# return_type
|
1330
|
+
return_type = opts[:return_type] || 'QueueMember'
|
1331
|
+
|
1332
|
+
# auth_names
|
1333
|
+
auth_names = opts[:auth_names] || ['fc']
|
1334
|
+
|
1335
|
+
new_options = opts.merge(
|
1336
|
+
:header_params => header_params,
|
1337
|
+
:query_params => query_params,
|
1338
|
+
:form_params => form_params,
|
1339
|
+
:body => post_body,
|
1340
|
+
:auth_names => auth_names,
|
1341
|
+
:return_type => return_type
|
1342
|
+
)
|
1343
|
+
|
1344
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1345
|
+
if @api_client.config.debugging
|
1346
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_head_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1347
|
+
end
|
1348
|
+
return data, status_code, headers
|
1349
|
+
end
|
1350
|
+
|
1351
|
+
# List Active Queues
|
1352
|
+
# @param [Hash] opts the optional parameters
|
1353
|
+
# @option opts [String] :_alias Return only the Queue resources with aliases that exactly match this name.
|
1354
|
+
# @return [QueueList]
|
1355
|
+
def list_active_queues(opts = {})
|
1356
|
+
data, _status_code, _headers = list_active_queues_with_http_info(opts)
|
1357
|
+
data
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
# List Active Queues
|
1361
|
+
# @param [Hash] opts the optional parameters
|
1362
|
+
# @option opts [String] :_alias Return only the Queue resources with aliases that exactly match this name.
|
1363
|
+
# @return [Array<(QueueList, Integer, Hash)>] QueueList data, response status code and response headers
|
1364
|
+
def list_active_queues_with_http_info(opts = {})
|
1365
|
+
if @api_client.config.debugging
|
1366
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_active_queues ...'
|
1367
|
+
end
|
1368
|
+
# resource path
|
1369
|
+
local_var_path = '/Accounts/{accountId}/Queues'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
1370
|
+
|
1371
|
+
# query parameters
|
1372
|
+
query_params = opts[:query_params] || {}
|
1373
|
+
query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
|
1374
|
+
|
1375
|
+
# header parameters
|
1376
|
+
header_params = opts[:header_params] || {}
|
1377
|
+
# HTTP header 'Accept' (if needed)
|
1378
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1379
|
+
|
1380
|
+
# form parameters
|
1381
|
+
form_params = opts[:form_params] || {}
|
1382
|
+
|
1383
|
+
# http body (model)
|
1384
|
+
post_body = opts[:body]
|
1385
|
+
|
1386
|
+
# return_type
|
1387
|
+
return_type = opts[:return_type] || 'QueueList'
|
1388
|
+
|
1389
|
+
# auth_names
|
1390
|
+
auth_names = opts[:auth_names] || ['fc']
|
1391
|
+
|
1392
|
+
new_options = opts.merge(
|
1393
|
+
:header_params => header_params,
|
1394
|
+
:query_params => query_params,
|
1395
|
+
:form_params => form_params,
|
1396
|
+
:body => post_body,
|
1397
|
+
:auth_names => auth_names,
|
1398
|
+
:return_type => return_type
|
1399
|
+
)
|
1400
|
+
|
1401
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1402
|
+
if @api_client.config.debugging
|
1403
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_active_queues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1404
|
+
end
|
1405
|
+
return data, status_code, headers
|
1406
|
+
end
|
1407
|
+
|
1408
|
+
# List All Account Logs
|
1409
|
+
# @param [Hash] opts the optional parameters
|
1410
|
+
# @return [LogList]
|
1411
|
+
def list_all_account_logs(opts = {})
|
1412
|
+
data, _status_code, _headers = list_all_account_logs_with_http_info(opts)
|
1413
|
+
data
|
1414
|
+
end
|
1415
|
+
|
1416
|
+
# List All Account Logs
|
1417
|
+
# @param [Hash] opts the optional parameters
|
1418
|
+
# @return [Array<(LogList, Integer, Hash)>] LogList data, response status code and response headers
|
1419
|
+
def list_all_account_logs_with_http_info(opts = {})
|
1420
|
+
if @api_client.config.debugging
|
1421
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_all_account_logs ...'
|
1422
|
+
end
|
1423
|
+
# resource path
|
1424
|
+
local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
1425
|
+
|
1426
|
+
# query parameters
|
1427
|
+
query_params = opts[:query_params] || {}
|
1428
|
+
|
1429
|
+
# header parameters
|
1430
|
+
header_params = opts[:header_params] || {}
|
1431
|
+
# HTTP header 'Accept' (if needed)
|
1432
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1433
|
+
|
1434
|
+
# form parameters
|
1435
|
+
form_params = opts[:form_params] || {}
|
1436
|
+
|
1437
|
+
# http body (model)
|
1438
|
+
post_body = opts[:body]
|
1439
|
+
|
1440
|
+
# return_type
|
1441
|
+
return_type = opts[:return_type] || 'LogList'
|
1442
|
+
|
1443
|
+
# auth_names
|
1444
|
+
auth_names = opts[:auth_names] || ['fc']
|
1445
|
+
|
1446
|
+
new_options = opts.merge(
|
1447
|
+
:header_params => header_params,
|
1448
|
+
:query_params => query_params,
|
1449
|
+
:form_params => form_params,
|
1450
|
+
:body => post_body,
|
1451
|
+
:auth_names => auth_names,
|
1452
|
+
:return_type => return_type
|
1453
|
+
)
|
1454
|
+
|
1455
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1456
|
+
if @api_client.config.debugging
|
1457
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_all_account_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1458
|
+
end
|
1459
|
+
return data, status_code, headers
|
1460
|
+
end
|
1461
|
+
|
1462
|
+
# List applications
|
1463
|
+
# @param [Hash] opts the optional parameters
|
1464
|
+
# @option opts [String] :_alias Return only applications with aliases that exactly match this value.
|
1465
|
+
# @return [ApplicationList]
|
1466
|
+
def list_an_application(opts = {})
|
1467
|
+
data, _status_code, _headers = list_an_application_with_http_info(opts)
|
1468
|
+
data
|
1469
|
+
end
|
1470
|
+
|
1471
|
+
# List applications
|
1472
|
+
# @param [Hash] opts the optional parameters
|
1473
|
+
# @option opts [String] :_alias Return only applications with aliases that exactly match this value.
|
1474
|
+
# @return [Array<(ApplicationList, Integer, Hash)>] ApplicationList data, response status code and response headers
|
1475
|
+
def list_an_application_with_http_info(opts = {})
|
1476
|
+
if @api_client.config.debugging
|
1477
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_an_application ...'
|
1478
|
+
end
|
1479
|
+
# resource path
|
1480
|
+
local_var_path = '/Accounts/{accountId}/Applications'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
1481
|
+
|
1482
|
+
# query parameters
|
1483
|
+
query_params = opts[:query_params] || {}
|
1484
|
+
query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
|
1485
|
+
|
1486
|
+
# header parameters
|
1487
|
+
header_params = opts[:header_params] || {}
|
1488
|
+
# HTTP header 'Accept' (if needed)
|
1489
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1490
|
+
|
1491
|
+
# form parameters
|
1492
|
+
form_params = opts[:form_params] || {}
|
1493
|
+
|
1494
|
+
# http body (model)
|
1495
|
+
post_body = opts[:body]
|
1496
|
+
|
1497
|
+
# return_type
|
1498
|
+
return_type = opts[:return_type] || 'ApplicationList'
|
1499
|
+
|
1500
|
+
# auth_names
|
1501
|
+
auth_names = opts[:auth_names] || ['fc']
|
1502
|
+
|
1503
|
+
new_options = opts.merge(
|
1504
|
+
:header_params => header_params,
|
1505
|
+
:query_params => query_params,
|
1506
|
+
:form_params => form_params,
|
1507
|
+
:body => post_body,
|
1508
|
+
:auth_names => auth_names,
|
1509
|
+
:return_type => return_type
|
1510
|
+
)
|
1511
|
+
|
1512
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1513
|
+
if @api_client.config.debugging
|
1514
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1515
|
+
end
|
1516
|
+
return data, status_code, headers
|
1517
|
+
end
|
1518
|
+
|
1519
|
+
# List available numbers
|
1520
|
+
# @param [Hash] opts the optional parameters
|
1521
|
+
# @option opts [String] :_alias Filter on numbers based on the formatted string of the phone number.
|
1522
|
+
# @option opts [String] :phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format.
|
1523
|
+
# @return [AvailableNumberList]
|
1524
|
+
def list_available_numbers(opts = {})
|
1525
|
+
data, _status_code, _headers = list_available_numbers_with_http_info(opts)
|
1526
|
+
data
|
1527
|
+
end
|
1528
|
+
|
1529
|
+
# List available numbers
|
1530
|
+
# @param [Hash] opts the optional parameters
|
1531
|
+
# @option opts [String] :_alias Filter on numbers based on the formatted string of the phone number.
|
1532
|
+
# @option opts [String] :phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format.
|
1533
|
+
# @return [Array<(AvailableNumberList, Integer, Hash)>] AvailableNumberList data, response status code and response headers
|
1534
|
+
def list_available_numbers_with_http_info(opts = {})
|
1535
|
+
if @api_client.config.debugging
|
1536
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_available_numbers ...'
|
1537
|
+
end
|
1538
|
+
# resource path
|
1539
|
+
local_var_path = '/AvailablePhoneNumbers'
|
1540
|
+
|
1541
|
+
# query parameters
|
1542
|
+
query_params = opts[:query_params] || {}
|
1543
|
+
query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
|
1544
|
+
query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
|
1545
|
+
|
1546
|
+
# header parameters
|
1547
|
+
header_params = opts[:header_params] || {}
|
1548
|
+
# HTTP header 'Accept' (if needed)
|
1549
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1550
|
+
|
1551
|
+
# form parameters
|
1552
|
+
form_params = opts[:form_params] || {}
|
1553
|
+
|
1554
|
+
# http body (model)
|
1555
|
+
post_body = opts[:body]
|
1556
|
+
|
1557
|
+
# return_type
|
1558
|
+
return_type = opts[:return_type] || 'AvailableNumberList'
|
1559
|
+
|
1560
|
+
# auth_names
|
1561
|
+
auth_names = opts[:auth_names] || ['fc']
|
1562
|
+
|
1563
|
+
new_options = opts.merge(
|
1564
|
+
:header_params => header_params,
|
1565
|
+
:query_params => query_params,
|
1566
|
+
:form_params => form_params,
|
1567
|
+
:body => post_body,
|
1568
|
+
:auth_names => auth_names,
|
1569
|
+
:return_type => return_type
|
1570
|
+
)
|
1571
|
+
|
1572
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1573
|
+
if @api_client.config.debugging
|
1574
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_available_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1575
|
+
end
|
1576
|
+
return data, status_code, headers
|
1577
|
+
end
|
1578
|
+
|
1579
|
+
# List Call Logs
|
1580
|
+
# @param call_id [String] String that uniquely identifies this call resource.
|
1581
|
+
# @param [Hash] opts the optional parameters
|
1582
|
+
# @return [LogList]
|
1583
|
+
def list_call_logs(call_id, opts = {})
|
1584
|
+
data, _status_code, _headers = list_call_logs_with_http_info(call_id, opts)
|
1585
|
+
data
|
1586
|
+
end
|
1587
|
+
|
1588
|
+
# List Call Logs
|
1589
|
+
# @param call_id [String] String that uniquely identifies this call resource.
|
1590
|
+
# @param [Hash] opts the optional parameters
|
1591
|
+
# @return [Array<(LogList, Integer, Hash)>] LogList data, response status code and response headers
|
1592
|
+
def list_call_logs_with_http_info(call_id, opts = {})
|
1593
|
+
if @api_client.config.debugging
|
1594
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_call_logs ...'
|
1595
|
+
end
|
1596
|
+
# verify the required parameter 'call_id' is set
|
1597
|
+
if @api_client.config.client_side_validation && call_id.nil?
|
1598
|
+
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_logs"
|
1599
|
+
end
|
1600
|
+
# resource path
|
1601
|
+
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
|
+
|
1603
|
+
# query parameters
|
1604
|
+
query_params = opts[:query_params] || {}
|
1605
|
+
|
1606
|
+
# header parameters
|
1607
|
+
header_params = opts[:header_params] || {}
|
1608
|
+
# HTTP header 'Accept' (if needed)
|
1609
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1610
|
+
|
1611
|
+
# form parameters
|
1612
|
+
form_params = opts[:form_params] || {}
|
1613
|
+
|
1614
|
+
# http body (model)
|
1615
|
+
post_body = opts[:body]
|
1616
|
+
|
1617
|
+
# return_type
|
1618
|
+
return_type = opts[:return_type] || 'LogList'
|
1619
|
+
|
1620
|
+
# auth_names
|
1621
|
+
auth_names = opts[:auth_names] || ['fc']
|
1622
|
+
|
1623
|
+
new_options = opts.merge(
|
1624
|
+
:header_params => header_params,
|
1625
|
+
:query_params => query_params,
|
1626
|
+
:form_params => form_params,
|
1627
|
+
:body => post_body,
|
1628
|
+
:auth_names => auth_names,
|
1629
|
+
:return_type => return_type
|
1630
|
+
)
|
1631
|
+
|
1632
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1633
|
+
if @api_client.config.debugging
|
1634
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_call_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1635
|
+
end
|
1636
|
+
return data, status_code, headers
|
1637
|
+
end
|
1638
|
+
|
1639
|
+
# List Call Recordings
|
1640
|
+
# @param call_id [String] String that uniquely identifies this call resource.
|
1641
|
+
# @param [Hash] opts the optional parameters
|
1642
|
+
# @option opts [String] :date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*.
|
1643
|
+
# @return [RecordingList]
|
1644
|
+
def list_call_recordings(call_id, opts = {})
|
1645
|
+
data, _status_code, _headers = list_call_recordings_with_http_info(call_id, opts)
|
1646
|
+
data
|
1647
|
+
end
|
1648
|
+
|
1649
|
+
# List Call Recordings
|
1650
|
+
# @param call_id [String] String that uniquely identifies this call resource.
|
1651
|
+
# @param [Hash] opts the optional parameters
|
1652
|
+
# @option opts [String] :date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*.
|
1653
|
+
# @return [Array<(RecordingList, Integer, Hash)>] RecordingList data, response status code and response headers
|
1654
|
+
def list_call_recordings_with_http_info(call_id, opts = {})
|
1655
|
+
if @api_client.config.debugging
|
1656
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_call_recordings ...'
|
1657
|
+
end
|
1658
|
+
# verify the required parameter 'call_id' is set
|
1659
|
+
if @api_client.config.client_side_validation && call_id.nil?
|
1660
|
+
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.list_call_recordings"
|
1661
|
+
end
|
1662
|
+
# resource path
|
1663
|
+
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
|
+
|
1665
|
+
# query parameters
|
1666
|
+
query_params = opts[:query_params] || {}
|
1667
|
+
query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].nil?
|
1668
|
+
|
1669
|
+
# header parameters
|
1670
|
+
header_params = opts[:header_params] || {}
|
1671
|
+
# HTTP header 'Accept' (if needed)
|
1672
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1673
|
+
|
1674
|
+
# form parameters
|
1675
|
+
form_params = opts[:form_params] || {}
|
1676
|
+
|
1677
|
+
# http body (model)
|
1678
|
+
post_body = opts[:body]
|
1679
|
+
|
1680
|
+
# return_type
|
1681
|
+
return_type = opts[:return_type] || 'RecordingList'
|
1682
|
+
|
1683
|
+
# auth_names
|
1684
|
+
auth_names = opts[:auth_names] || ['fc']
|
1685
|
+
|
1686
|
+
new_options = opts.merge(
|
1687
|
+
:header_params => header_params,
|
1688
|
+
:query_params => query_params,
|
1689
|
+
:form_params => form_params,
|
1690
|
+
:body => post_body,
|
1691
|
+
:auth_names => auth_names,
|
1692
|
+
:return_type => return_type
|
1693
|
+
)
|
1694
|
+
|
1695
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1696
|
+
if @api_client.config.debugging
|
1697
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_call_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1698
|
+
end
|
1699
|
+
return data, status_code, headers
|
1700
|
+
end
|
1701
|
+
|
1702
|
+
# List Calls
|
1703
|
+
# @param [Hash] opts the optional parameters
|
1704
|
+
# @option opts [String] :to Only show Calls to this phone number.
|
1705
|
+
# @option opts [String] :from Only show Calls from this phone number.
|
1706
|
+
# @option opts [String] :status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`.
|
1707
|
+
# @option opts [String] :start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss.
|
1708
|
+
# @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
|
1709
|
+
# @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
|
1710
|
+
# @return [CallList]
|
1711
|
+
def list_calls(opts = {})
|
1712
|
+
data, _status_code, _headers = list_calls_with_http_info(opts)
|
1713
|
+
data
|
1714
|
+
end
|
1715
|
+
|
1716
|
+
# List Calls
|
1717
|
+
# @param [Hash] opts the optional parameters
|
1718
|
+
# @option opts [String] :to Only show Calls to this phone number.
|
1719
|
+
# @option opts [String] :from Only show Calls from this phone number.
|
1720
|
+
# @option opts [String] :status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`.
|
1721
|
+
# @option opts [String] :start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss.
|
1722
|
+
# @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
|
1723
|
+
# @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
|
1724
|
+
# @return [Array<(CallList, Integer, Hash)>] CallList data, response status code and response headers
|
1725
|
+
def list_calls_with_http_info(opts = {})
|
1726
|
+
if @api_client.config.debugging
|
1727
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_calls ...'
|
1728
|
+
end
|
1729
|
+
# resource path
|
1730
|
+
local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
1731
|
+
|
1732
|
+
# query parameters
|
1733
|
+
query_params = opts[:query_params] || {}
|
1734
|
+
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
1735
|
+
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
1736
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
1737
|
+
query_params[:'startTime'] = opts[:'start_time'] if !opts[:'start_time'].nil?
|
1738
|
+
query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
|
1739
|
+
query_params[:'parentCallId'] = opts[:'parent_call_id'] if !opts[:'parent_call_id'].nil?
|
1740
|
+
|
1741
|
+
# header parameters
|
1742
|
+
header_params = opts[:header_params] || {}
|
1743
|
+
# HTTP header 'Accept' (if needed)
|
1744
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1745
|
+
|
1746
|
+
# form parameters
|
1747
|
+
form_params = opts[:form_params] || {}
|
1748
|
+
|
1749
|
+
# http body (model)
|
1750
|
+
post_body = opts[:body]
|
1751
|
+
|
1752
|
+
# return_type
|
1753
|
+
return_type = opts[:return_type] || 'CallList'
|
1754
|
+
|
1755
|
+
# auth_names
|
1756
|
+
auth_names = opts[:auth_names] || ['fc']
|
1757
|
+
|
1758
|
+
new_options = opts.merge(
|
1759
|
+
:header_params => header_params,
|
1760
|
+
:query_params => query_params,
|
1761
|
+
:form_params => form_params,
|
1762
|
+
:body => post_body,
|
1763
|
+
:auth_names => auth_names,
|
1764
|
+
:return_type => return_type
|
1765
|
+
)
|
1766
|
+
|
1767
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1768
|
+
if @api_client.config.debugging
|
1769
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_calls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1770
|
+
end
|
1771
|
+
return data, status_code, headers
|
1772
|
+
end
|
1773
|
+
|
1774
|
+
# List Conferences
|
1775
|
+
# @param [Hash] opts the optional parameters
|
1776
|
+
# @option opts [String] :status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`.
|
1777
|
+
# @option opts [String] :_alias List Conferences whose alias exactly matches this string.
|
1778
|
+
# @option opts [String] :date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*.
|
1779
|
+
# @option opts [String] :date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*.
|
1780
|
+
# @return [ConferenceList]
|
1781
|
+
def list_conferences(opts = {})
|
1782
|
+
data, _status_code, _headers = list_conferences_with_http_info(opts)
|
1783
|
+
data
|
1784
|
+
end
|
1785
|
+
|
1786
|
+
# List Conferences
|
1787
|
+
# @param [Hash] opts the optional parameters
|
1788
|
+
# @option opts [String] :status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`.
|
1789
|
+
# @option opts [String] :_alias List Conferences whose alias exactly matches this string.
|
1790
|
+
# @option opts [String] :date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*.
|
1791
|
+
# @option opts [String] :date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*.
|
1792
|
+
# @return [Array<(ConferenceList, Integer, Hash)>] ConferenceList data, response status code and response headers
|
1793
|
+
def list_conferences_with_http_info(opts = {})
|
1794
|
+
if @api_client.config.debugging
|
1795
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_conferences ...'
|
1796
|
+
end
|
1797
|
+
# resource path
|
1798
|
+
local_var_path = '/Accounts/{accountId}/Conferences'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
1799
|
+
|
1800
|
+
# query parameters
|
1801
|
+
query_params = opts[:query_params] || {}
|
1802
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
1803
|
+
query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
|
1804
|
+
query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].nil?
|
1805
|
+
query_params[:'dateUpdated'] = opts[:'date_updated'] if !opts[:'date_updated'].nil?
|
1806
|
+
|
1807
|
+
# header parameters
|
1808
|
+
header_params = opts[:header_params] || {}
|
1809
|
+
# HTTP header 'Accept' (if needed)
|
1810
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1811
|
+
|
1812
|
+
# form parameters
|
1813
|
+
form_params = opts[:form_params] || {}
|
1814
|
+
|
1815
|
+
# http body (model)
|
1816
|
+
post_body = opts[:body]
|
1817
|
+
|
1818
|
+
# return_type
|
1819
|
+
return_type = opts[:return_type] || 'ConferenceList'
|
1820
|
+
|
1821
|
+
# auth_names
|
1822
|
+
auth_names = opts[:auth_names] || ['fc']
|
1823
|
+
|
1824
|
+
new_options = opts.merge(
|
1825
|
+
:header_params => header_params,
|
1826
|
+
:query_params => query_params,
|
1827
|
+
:form_params => form_params,
|
1828
|
+
:body => post_body,
|
1829
|
+
:auth_names => auth_names,
|
1830
|
+
:return_type => return_type
|
1831
|
+
)
|
1832
|
+
|
1833
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1834
|
+
if @api_client.config.debugging
|
1835
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_conferences\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1836
|
+
end
|
1837
|
+
return data, status_code, headers
|
1838
|
+
end
|
1839
|
+
|
1840
|
+
# List Incoming Numbers
|
1841
|
+
# @param [Hash] opts the optional parameters
|
1842
|
+
# @option opts [String] :phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression.
|
1843
|
+
# @option opts [String] :_alias Only show incoming phone numbers with aliases that exactly match this value.
|
1844
|
+
# @return [IncomingNumberList]
|
1845
|
+
def list_incoming_numbers(opts = {})
|
1846
|
+
data, _status_code, _headers = list_incoming_numbers_with_http_info(opts)
|
1847
|
+
data
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
# List Incoming Numbers
|
1851
|
+
# @param [Hash] opts the optional parameters
|
1852
|
+
# @option opts [String] :phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression.
|
1853
|
+
# @option opts [String] :_alias Only show incoming phone numbers with aliases that exactly match this value.
|
1854
|
+
# @return [Array<(IncomingNumberList, Integer, Hash)>] IncomingNumberList data, response status code and response headers
|
1855
|
+
def list_incoming_numbers_with_http_info(opts = {})
|
1856
|
+
if @api_client.config.debugging
|
1857
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_incoming_numbers ...'
|
1858
|
+
end
|
1859
|
+
# resource path
|
1860
|
+
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
1861
|
+
|
1862
|
+
# query parameters
|
1863
|
+
query_params = opts[:query_params] || {}
|
1864
|
+
query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
|
1865
|
+
query_params[:'alias'] = opts[:'_alias'] if !opts[:'_alias'].nil?
|
1866
|
+
|
1867
|
+
# header parameters
|
1868
|
+
header_params = opts[:header_params] || {}
|
1869
|
+
# HTTP header 'Accept' (if needed)
|
1870
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1871
|
+
|
1872
|
+
# form parameters
|
1873
|
+
form_params = opts[:form_params] || {}
|
1874
|
+
|
1875
|
+
# http body (model)
|
1876
|
+
post_body = opts[:body]
|
1877
|
+
|
1878
|
+
# return_type
|
1879
|
+
return_type = opts[:return_type] || 'IncomingNumberList'
|
1880
|
+
|
1881
|
+
# auth_names
|
1882
|
+
auth_names = opts[:auth_names] || ['fc']
|
1883
|
+
|
1884
|
+
new_options = opts.merge(
|
1885
|
+
:header_params => header_params,
|
1886
|
+
:query_params => query_params,
|
1887
|
+
:form_params => form_params,
|
1888
|
+
:body => post_body,
|
1889
|
+
:auth_names => auth_names,
|
1890
|
+
:return_type => return_type
|
1891
|
+
)
|
1892
|
+
|
1893
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1894
|
+
if @api_client.config.debugging
|
1895
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_incoming_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1896
|
+
end
|
1897
|
+
return data, status_code, headers
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
# List Members
|
1901
|
+
# @param queue_id [String] String that uniquely identifies the Queue that the Member belongs to.
|
1902
|
+
# @param [Hash] opts the optional parameters
|
1903
|
+
# @return [QueueMemberList]
|
1904
|
+
def list_members(queue_id, opts = {})
|
1905
|
+
data, _status_code, _headers = list_members_with_http_info(queue_id, opts)
|
1906
|
+
data
|
1907
|
+
end
|
1908
|
+
|
1909
|
+
# List Members
|
1910
|
+
# @param queue_id [String] String that uniquely identifies the Queue that the Member belongs to.
|
1911
|
+
# @param [Hash] opts the optional parameters
|
1912
|
+
# @return [Array<(QueueMemberList, Integer, Hash)>] QueueMemberList data, response status code and response headers
|
1913
|
+
def list_members_with_http_info(queue_id, opts = {})
|
1914
|
+
if @api_client.config.debugging
|
1915
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_members ...'
|
1916
|
+
end
|
1917
|
+
# verify the required parameter 'queue_id' is set
|
1918
|
+
if @api_client.config.client_side_validation && queue_id.nil?
|
1919
|
+
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.list_members"
|
1920
|
+
end
|
1921
|
+
# resource path
|
1922
|
+
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
|
+
|
1924
|
+
# query parameters
|
1925
|
+
query_params = opts[:query_params] || {}
|
1926
|
+
|
1927
|
+
# header parameters
|
1928
|
+
header_params = opts[:header_params] || {}
|
1929
|
+
# HTTP header 'Accept' (if needed)
|
1930
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1931
|
+
|
1932
|
+
# form parameters
|
1933
|
+
form_params = opts[:form_params] || {}
|
1934
|
+
|
1935
|
+
# http body (model)
|
1936
|
+
post_body = opts[:body]
|
1937
|
+
|
1938
|
+
# return_type
|
1939
|
+
return_type = opts[:return_type] || 'QueueMemberList'
|
1940
|
+
|
1941
|
+
# auth_names
|
1942
|
+
auth_names = opts[:auth_names] || ['fc']
|
1943
|
+
|
1944
|
+
new_options = opts.merge(
|
1945
|
+
:header_params => header_params,
|
1946
|
+
:query_params => query_params,
|
1947
|
+
:form_params => form_params,
|
1948
|
+
:body => post_body,
|
1949
|
+
:auth_names => auth_names,
|
1950
|
+
:return_type => return_type
|
1951
|
+
)
|
1952
|
+
|
1953
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1954
|
+
if @api_client.config.debugging
|
1955
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1956
|
+
end
|
1957
|
+
return data, status_code, headers
|
1958
|
+
end
|
1959
|
+
|
1960
|
+
# List Participants
|
1961
|
+
# @param conference_id [String] ID of the conference this participant is in.
|
1962
|
+
# @param [Hash] opts the optional parameters
|
1963
|
+
# @option opts [Boolean] :talk Only show Participants with the talk privilege.
|
1964
|
+
# @option opts [Boolean] :listen Only show Participants with the listen privilege.
|
1965
|
+
# @return [ConferenceParticipantList]
|
1966
|
+
def list_participants(conference_id, opts = {})
|
1967
|
+
data, _status_code, _headers = list_participants_with_http_info(conference_id, opts)
|
1968
|
+
data
|
1969
|
+
end
|
1970
|
+
|
1971
|
+
# List Participants
|
1972
|
+
# @param conference_id [String] ID of the conference this participant is in.
|
1973
|
+
# @param [Hash] opts the optional parameters
|
1974
|
+
# @option opts [Boolean] :talk Only show Participants with the talk privilege.
|
1975
|
+
# @option opts [Boolean] :listen Only show Participants with the listen privilege.
|
1976
|
+
# @return [Array<(ConferenceParticipantList, Integer, Hash)>] ConferenceParticipantList data, response status code and response headers
|
1977
|
+
def list_participants_with_http_info(conference_id, opts = {})
|
1978
|
+
if @api_client.config.debugging
|
1979
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_participants ...'
|
1980
|
+
end
|
1981
|
+
# verify the required parameter 'conference_id' is set
|
1982
|
+
if @api_client.config.client_side_validation && conference_id.nil?
|
1983
|
+
fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.list_participants"
|
1984
|
+
end
|
1985
|
+
# resource path
|
1986
|
+
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
|
+
|
1988
|
+
# query parameters
|
1989
|
+
query_params = opts[:query_params] || {}
|
1990
|
+
query_params[:'talk'] = opts[:'talk'] if !opts[:'talk'].nil?
|
1991
|
+
query_params[:'listen'] = opts[:'listen'] if !opts[:'listen'].nil?
|
1992
|
+
|
1993
|
+
# header parameters
|
1994
|
+
header_params = opts[:header_params] || {}
|
1995
|
+
# HTTP header 'Accept' (if needed)
|
1996
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1997
|
+
|
1998
|
+
# form parameters
|
1999
|
+
form_params = opts[:form_params] || {}
|
2000
|
+
|
2001
|
+
# http body (model)
|
2002
|
+
post_body = opts[:body]
|
2003
|
+
|
2004
|
+
# return_type
|
2005
|
+
return_type = opts[:return_type] || 'ConferenceParticipantList'
|
2006
|
+
|
2007
|
+
# auth_names
|
2008
|
+
auth_names = opts[:auth_names] || ['fc']
|
2009
|
+
|
2010
|
+
new_options = opts.merge(
|
2011
|
+
:header_params => header_params,
|
2012
|
+
:query_params => query_params,
|
2013
|
+
:form_params => form_params,
|
2014
|
+
:body => post_body,
|
2015
|
+
:auth_names => auth_names,
|
2016
|
+
:return_type => return_type
|
2017
|
+
)
|
2018
|
+
|
2019
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2020
|
+
if @api_client.config.debugging
|
2021
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_participants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2022
|
+
end
|
2023
|
+
return data, status_code, headers
|
2024
|
+
end
|
2025
|
+
|
2026
|
+
# List Recordings
|
2027
|
+
# @param [Hash] opts the optional parameters
|
2028
|
+
# @option opts [String] :call_id Show only Recordings made during the Call with this ID.
|
2029
|
+
# @option opts [String] :conference_id Show only Recordings made during the conference with this ID.
|
2030
|
+
# @option opts [String] :date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*.
|
2031
|
+
# @return [RecordingList]
|
2032
|
+
def list_recordings(opts = {})
|
2033
|
+
data, _status_code, _headers = list_recordings_with_http_info(opts)
|
2034
|
+
data
|
2035
|
+
end
|
2036
|
+
|
2037
|
+
# List Recordings
|
2038
|
+
# @param [Hash] opts the optional parameters
|
2039
|
+
# @option opts [String] :call_id Show only Recordings made during the Call with this ID.
|
2040
|
+
# @option opts [String] :conference_id Show only Recordings made during the conference with this ID.
|
2041
|
+
# @option opts [String] :date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*.
|
2042
|
+
# @return [Array<(RecordingList, Integer, Hash)>] RecordingList data, response status code and response headers
|
2043
|
+
def list_recordings_with_http_info(opts = {})
|
2044
|
+
if @api_client.config.debugging
|
2045
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_recordings ...'
|
2046
|
+
end
|
2047
|
+
# resource path
|
2048
|
+
local_var_path = '/Accounts/{accountId}/Recordings'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
2049
|
+
|
2050
|
+
# query parameters
|
2051
|
+
query_params = opts[:query_params] || {}
|
2052
|
+
query_params[:'callId'] = opts[:'call_id'] if !opts[:'call_id'].nil?
|
2053
|
+
query_params[:'conferenceId'] = opts[:'conference_id'] if !opts[:'conference_id'].nil?
|
2054
|
+
query_params[:'dateCreated'] = opts[:'date_created'] if !opts[:'date_created'].nil?
|
2055
|
+
|
2056
|
+
# header parameters
|
2057
|
+
header_params = opts[:header_params] || {}
|
2058
|
+
# HTTP header 'Accept' (if needed)
|
2059
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2060
|
+
|
2061
|
+
# form parameters
|
2062
|
+
form_params = opts[:form_params] || {}
|
2063
|
+
|
2064
|
+
# http body (model)
|
2065
|
+
post_body = opts[:body]
|
2066
|
+
|
2067
|
+
# return_type
|
2068
|
+
return_type = opts[:return_type] || 'RecordingList'
|
2069
|
+
|
2070
|
+
# auth_names
|
2071
|
+
auth_names = opts[:auth_names] || ['fc']
|
2072
|
+
|
2073
|
+
new_options = opts.merge(
|
2074
|
+
:header_params => header_params,
|
2075
|
+
:query_params => query_params,
|
2076
|
+
:form_params => form_params,
|
2077
|
+
:body => post_body,
|
2078
|
+
:auth_names => auth_names,
|
2079
|
+
:return_type => return_type
|
2080
|
+
)
|
2081
|
+
|
2082
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2083
|
+
if @api_client.config.debugging
|
2084
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_recordings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2085
|
+
end
|
2086
|
+
return data, status_code, headers
|
2087
|
+
end
|
2088
|
+
|
2089
|
+
# List SMS Messages
|
2090
|
+
# @param [Hash] opts the optional parameters
|
2091
|
+
# @option opts [String] :to Only show Messages to this phone number.
|
2092
|
+
# @option opts [String] :from Only show Messages from this phone number.
|
2093
|
+
# @option opts [String] :begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.
|
2094
|
+
# @option opts [String] :end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*..
|
2095
|
+
# @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
|
+
# @return [MessagesList]
|
2098
|
+
def list_sms_messages(opts = {})
|
2099
|
+
data, _status_code, _headers = list_sms_messages_with_http_info(opts)
|
2100
|
+
data
|
2101
|
+
end
|
2102
|
+
|
2103
|
+
# List SMS Messages
|
2104
|
+
# @param [Hash] opts the optional parameters
|
2105
|
+
# @option opts [String] :to Only show Messages to this phone number.
|
2106
|
+
# @option opts [String] :from Only show Messages from this phone number.
|
2107
|
+
# @option opts [String] :begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.
|
2108
|
+
# @option opts [String] :end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*..
|
2109
|
+
# @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
|
+
# @return [Array<(MessagesList, Integer, Hash)>] MessagesList data, response status code and response headers
|
2112
|
+
def list_sms_messages_with_http_info(opts = {})
|
2113
|
+
if @api_client.config.debugging
|
2114
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_sms_messages ...'
|
2115
|
+
end
|
2116
|
+
# resource path
|
2117
|
+
local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
2118
|
+
|
2119
|
+
# query parameters
|
2120
|
+
query_params = opts[:query_params] || {}
|
2121
|
+
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
2122
|
+
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
2123
|
+
query_params[:'beginTime'] = opts[:'begin_time'] if !opts[:'begin_time'].nil?
|
2124
|
+
query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
|
2125
|
+
query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
|
2126
|
+
query_params[:'accountID'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
2127
|
+
|
2128
|
+
# header parameters
|
2129
|
+
header_params = opts[:header_params] || {}
|
2130
|
+
# HTTP header 'Accept' (if needed)
|
2131
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2132
|
+
|
2133
|
+
# form parameters
|
2134
|
+
form_params = opts[:form_params] || {}
|
2135
|
+
|
2136
|
+
# http body (model)
|
2137
|
+
post_body = opts[:body]
|
2138
|
+
|
2139
|
+
# return_type
|
2140
|
+
return_type = opts[:return_type] || 'MessagesList'
|
2141
|
+
|
2142
|
+
# auth_names
|
2143
|
+
auth_names = opts[:auth_names] || ['fc']
|
2144
|
+
|
2145
|
+
new_options = opts.merge(
|
2146
|
+
:header_params => header_params,
|
2147
|
+
:query_params => query_params,
|
2148
|
+
:form_params => form_params,
|
2149
|
+
:body => post_body,
|
2150
|
+
:auth_names => auth_names,
|
2151
|
+
:return_type => return_type
|
2152
|
+
)
|
2153
|
+
|
2154
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2155
|
+
if @api_client.config.debugging
|
2156
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_sms_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2157
|
+
end
|
2158
|
+
return data, status_code, headers
|
2159
|
+
end
|
2160
|
+
|
2161
|
+
# Make a Call
|
2162
|
+
# @param [Hash] opts the optional parameters
|
2163
|
+
# @option opts [MakeCallRequest] :make_call_request Call details for making a call
|
2164
|
+
# @return [CallResult]
|
2165
|
+
def make_a_call(opts = {})
|
2166
|
+
data, _status_code, _headers = make_a_call_with_http_info(opts)
|
2167
|
+
data
|
2168
|
+
end
|
2169
|
+
|
2170
|
+
# Make a Call
|
2171
|
+
# @param [Hash] opts the optional parameters
|
2172
|
+
# @option opts [MakeCallRequest] :make_call_request Call details for making a call
|
2173
|
+
# @return [Array<(CallResult, Integer, Hash)>] CallResult data, response status code and response headers
|
2174
|
+
def make_a_call_with_http_info(opts = {})
|
2175
|
+
if @api_client.config.debugging
|
2176
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.make_a_call ...'
|
2177
|
+
end
|
2178
|
+
# resource path
|
2179
|
+
local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
2180
|
+
|
2181
|
+
# query parameters
|
2182
|
+
query_params = opts[:query_params] || {}
|
2183
|
+
|
2184
|
+
# header parameters
|
2185
|
+
header_params = opts[:header_params] || {}
|
2186
|
+
# HTTP header 'Accept' (if needed)
|
2187
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2188
|
+
# HTTP header 'Content-Type'
|
2189
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2190
|
+
|
2191
|
+
# form parameters
|
2192
|
+
form_params = opts[:form_params] || {}
|
2193
|
+
|
2194
|
+
# http body (model)
|
2195
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'make_call_request'])
|
2196
|
+
|
2197
|
+
# return_type
|
2198
|
+
return_type = opts[:return_type] || 'CallResult'
|
2199
|
+
|
2200
|
+
# auth_names
|
2201
|
+
auth_names = opts[:auth_names] || ['fc']
|
2202
|
+
|
2203
|
+
new_options = opts.merge(
|
2204
|
+
:header_params => header_params,
|
2205
|
+
:query_params => query_params,
|
2206
|
+
:form_params => form_params,
|
2207
|
+
:body => post_body,
|
2208
|
+
:auth_names => auth_names,
|
2209
|
+
:return_type => return_type
|
2210
|
+
)
|
2211
|
+
|
2212
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2213
|
+
if @api_client.config.debugging
|
2214
|
+
@api_client.config.logger.debug "API called: DefaultApi#make_a_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2215
|
+
end
|
2216
|
+
return data, status_code, headers
|
2217
|
+
end
|
2218
|
+
|
2219
|
+
# Remove a Participant
|
2220
|
+
# @param conference_id [String] ID of the conference this participant is in.
|
2221
|
+
# @param call_id [String] ID of the Call associated with this participant.
|
2222
|
+
# @param [Hash] opts the optional parameters
|
2223
|
+
# @return [nil]
|
2224
|
+
def remove_a_participant(conference_id, call_id, opts = {})
|
2225
|
+
remove_a_participant_with_http_info(conference_id, call_id, opts)
|
2226
|
+
nil
|
2227
|
+
end
|
2228
|
+
|
2229
|
+
# Remove a Participant
|
2230
|
+
# @param conference_id [String] ID of the conference this participant is in.
|
2231
|
+
# @param call_id [String] ID of the Call associated with this participant.
|
2232
|
+
# @param [Hash] opts the optional parameters
|
2233
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2234
|
+
def remove_a_participant_with_http_info(conference_id, call_id, opts = {})
|
2235
|
+
if @api_client.config.debugging
|
2236
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.remove_a_participant ...'
|
2237
|
+
end
|
2238
|
+
# verify the required parameter 'conference_id' is set
|
2239
|
+
if @api_client.config.client_side_validation && conference_id.nil?
|
2240
|
+
fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.remove_a_participant"
|
2241
|
+
end
|
2242
|
+
# verify the required parameter 'call_id' is set
|
2243
|
+
if @api_client.config.client_side_validation && call_id.nil?
|
2244
|
+
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.remove_a_participant"
|
2245
|
+
end
|
2246
|
+
# resource path
|
2247
|
+
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
|
+
|
2249
|
+
# query parameters
|
2250
|
+
query_params = opts[:query_params] || {}
|
2251
|
+
|
2252
|
+
# header parameters
|
2253
|
+
header_params = opts[:header_params] || {}
|
2254
|
+
|
2255
|
+
# form parameters
|
2256
|
+
form_params = opts[:form_params] || {}
|
2257
|
+
|
2258
|
+
# http body (model)
|
2259
|
+
post_body = opts[:body]
|
2260
|
+
|
2261
|
+
# return_type
|
2262
|
+
return_type = opts[:return_type]
|
2263
|
+
|
2264
|
+
# auth_names
|
2265
|
+
auth_names = opts[:auth_names] || ['fc']
|
2266
|
+
|
2267
|
+
new_options = opts.merge(
|
2268
|
+
:header_params => header_params,
|
2269
|
+
:query_params => query_params,
|
2270
|
+
:form_params => form_params,
|
2271
|
+
:body => post_body,
|
2272
|
+
:auth_names => auth_names,
|
2273
|
+
:return_type => return_type
|
2274
|
+
)
|
2275
|
+
|
2276
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
2277
|
+
if @api_client.config.debugging
|
2278
|
+
@api_client.config.logger.debug "API called: DefaultApi#remove_a_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2279
|
+
end
|
2280
|
+
return data, status_code, headers
|
2281
|
+
end
|
2282
|
+
|
2283
|
+
# Send an SMS Message
|
2284
|
+
# @param [Hash] opts the optional parameters
|
2285
|
+
# @option opts [MessageRequest] :message_request Details to create a message
|
2286
|
+
# @return [MessageResult]
|
2287
|
+
def send_an_sms_message(opts = {})
|
2288
|
+
data, _status_code, _headers = send_an_sms_message_with_http_info(opts)
|
2289
|
+
data
|
2290
|
+
end
|
2291
|
+
|
2292
|
+
# Send an SMS Message
|
2293
|
+
# @param [Hash] opts the optional parameters
|
2294
|
+
# @option opts [MessageRequest] :message_request Details to create a message
|
2295
|
+
# @return [Array<(MessageResult, Integer, Hash)>] MessageResult data, response status code and response headers
|
2296
|
+
def send_an_sms_message_with_http_info(opts = {})
|
2297
|
+
if @api_client.config.debugging
|
2298
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.send_an_sms_message ...'
|
2299
|
+
end
|
2300
|
+
# resource path
|
2301
|
+
local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
2302
|
+
|
2303
|
+
# query parameters
|
2304
|
+
query_params = opts[:query_params] || {}
|
2305
|
+
|
2306
|
+
# header parameters
|
2307
|
+
header_params = opts[:header_params] || {}
|
2308
|
+
# HTTP header 'Accept' (if needed)
|
2309
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2310
|
+
# HTTP header 'Content-Type'
|
2311
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2312
|
+
|
2313
|
+
# form parameters
|
2314
|
+
form_params = opts[:form_params] || {}
|
2315
|
+
|
2316
|
+
# http body (model)
|
2317
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'message_request'])
|
2318
|
+
|
2319
|
+
# return_type
|
2320
|
+
return_type = opts[:return_type] || 'MessageResult'
|
2321
|
+
|
2322
|
+
# auth_names
|
2323
|
+
auth_names = opts[:auth_names] || ['fc']
|
2324
|
+
|
2325
|
+
new_options = opts.merge(
|
2326
|
+
:header_params => header_params,
|
2327
|
+
:query_params => query_params,
|
2328
|
+
:form_params => form_params,
|
2329
|
+
:body => post_body,
|
2330
|
+
:auth_names => auth_names,
|
2331
|
+
:return_type => return_type
|
2332
|
+
)
|
2333
|
+
|
2334
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2335
|
+
if @api_client.config.debugging
|
2336
|
+
@api_client.config.logger.debug "API called: DefaultApi#send_an_sms_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2337
|
+
end
|
2338
|
+
return data, status_code, headers
|
2339
|
+
end
|
2340
|
+
|
2341
|
+
# Stream a Recording File
|
2342
|
+
# @param recording_id [String] String that uniquely identifies this recording resource.
|
2343
|
+
# @param [Hash] opts the optional parameters
|
2344
|
+
# @return [File]
|
2345
|
+
def stream_a_recording_file(recording_id, opts = {})
|
2346
|
+
data, _status_code, _headers = stream_a_recording_file_with_http_info(recording_id, opts)
|
2347
|
+
data
|
2348
|
+
end
|
2349
|
+
|
2350
|
+
# Stream a Recording File
|
2351
|
+
# @param recording_id [String] String that uniquely identifies this recording resource.
|
2352
|
+
# @param [Hash] opts the optional parameters
|
2353
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
2354
|
+
def stream_a_recording_file_with_http_info(recording_id, opts = {})
|
2355
|
+
if @api_client.config.debugging
|
2356
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.stream_a_recording_file ...'
|
2357
|
+
end
|
2358
|
+
# verify the required parameter 'recording_id' is set
|
2359
|
+
if @api_client.config.client_side_validation && recording_id.nil?
|
2360
|
+
fail ArgumentError, "Missing the required parameter 'recording_id' when calling DefaultApi.stream_a_recording_file"
|
2361
|
+
end
|
2362
|
+
# resource path
|
2363
|
+
local_var_path = '/Accounts/{accountId}/Recordings/{recordingId}/Stream'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'recordingId' + '}', CGI.escape(recording_id.to_s))
|
2364
|
+
|
2365
|
+
# query parameters
|
2366
|
+
query_params = opts[:query_params] || {}
|
2367
|
+
|
2368
|
+
# header parameters
|
2369
|
+
header_params = opts[:header_params] || {}
|
2370
|
+
# HTTP header 'Accept' (if needed)
|
2371
|
+
header_params['Accept'] = @api_client.select_header_accept(['audio/x-wav'])
|
2372
|
+
|
2373
|
+
# form parameters
|
2374
|
+
form_params = opts[:form_params] || {}
|
2375
|
+
|
2376
|
+
# http body (model)
|
2377
|
+
post_body = opts[:body]
|
2378
|
+
|
2379
|
+
# return_type
|
2380
|
+
return_type = opts[:return_type] || 'File'
|
2381
|
+
|
2382
|
+
# auth_names
|
2383
|
+
auth_names = opts[:auth_names] || ['fc']
|
2384
|
+
|
2385
|
+
new_options = opts.merge(
|
2386
|
+
:header_params => header_params,
|
2387
|
+
:query_params => query_params,
|
2388
|
+
:form_params => form_params,
|
2389
|
+
:body => post_body,
|
2390
|
+
:auth_names => auth_names,
|
2391
|
+
:return_type => return_type
|
2392
|
+
)
|
2393
|
+
|
2394
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2395
|
+
if @api_client.config.debugging
|
2396
|
+
@api_client.config.logger.debug "API called: DefaultApi#stream_a_recording_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2397
|
+
end
|
2398
|
+
return data, status_code, headers
|
2399
|
+
end
|
2400
|
+
|
2401
|
+
# Update a Conference
|
2402
|
+
# @param conference_id [String] String that uniquely identifies this conference resource.
|
2403
|
+
# @param [Hash] opts the optional parameters
|
2404
|
+
# @option opts [UpdateConferenceRequest] :update_conference_request Conference Details to update
|
2405
|
+
# @return [ConferenceResult]
|
2406
|
+
def update_a_conference(conference_id, opts = {})
|
2407
|
+
data, _status_code, _headers = update_a_conference_with_http_info(conference_id, opts)
|
2408
|
+
data
|
2409
|
+
end
|
2410
|
+
|
2411
|
+
# Update a Conference
|
2412
|
+
# @param conference_id [String] String that uniquely identifies this conference resource.
|
2413
|
+
# @param [Hash] opts the optional parameters
|
2414
|
+
# @option opts [UpdateConferenceRequest] :update_conference_request Conference Details to update
|
2415
|
+
# @return [Array<(ConferenceResult, Integer, Hash)>] ConferenceResult data, response status code and response headers
|
2416
|
+
def update_a_conference_with_http_info(conference_id, opts = {})
|
2417
|
+
if @api_client.config.debugging
|
2418
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.update_a_conference ...'
|
2419
|
+
end
|
2420
|
+
# verify the required parameter 'conference_id' is set
|
2421
|
+
if @api_client.config.client_side_validation && conference_id.nil?
|
2422
|
+
fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_conference"
|
2423
|
+
end
|
2424
|
+
# resource path
|
2425
|
+
local_var_path = '/Accounts/{accountId}/Conferences/{conferenceId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'conferenceId' + '}', CGI.escape(conference_id.to_s))
|
2426
|
+
|
2427
|
+
# query parameters
|
2428
|
+
query_params = opts[:query_params] || {}
|
2429
|
+
|
2430
|
+
# header parameters
|
2431
|
+
header_params = opts[:header_params] || {}
|
2432
|
+
# HTTP header 'Accept' (if needed)
|
2433
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2434
|
+
# HTTP header 'Content-Type'
|
2435
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2436
|
+
|
2437
|
+
# form parameters
|
2438
|
+
form_params = opts[:form_params] || {}
|
2439
|
+
|
2440
|
+
# http body (model)
|
2441
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'update_conference_request'])
|
2442
|
+
|
2443
|
+
# return_type
|
2444
|
+
return_type = opts[:return_type] || 'ConferenceResult'
|
2445
|
+
|
2446
|
+
# auth_names
|
2447
|
+
auth_names = opts[:auth_names] || ['fc']
|
2448
|
+
|
2449
|
+
new_options = opts.merge(
|
2450
|
+
:header_params => header_params,
|
2451
|
+
:query_params => query_params,
|
2452
|
+
:form_params => form_params,
|
2453
|
+
:body => post_body,
|
2454
|
+
:auth_names => auth_names,
|
2455
|
+
:return_type => return_type
|
2456
|
+
)
|
2457
|
+
|
2458
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2459
|
+
if @api_client.config.debugging
|
2460
|
+
@api_client.config.logger.debug "API called: DefaultApi#update_a_conference\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2461
|
+
end
|
2462
|
+
return data, status_code, headers
|
2463
|
+
end
|
2464
|
+
|
2465
|
+
# Update a Live Call
|
2466
|
+
# @param call_id [String] String that uniquely identifies this call resource.
|
2467
|
+
# @param [Hash] opts the optional parameters
|
2468
|
+
# @option opts [UpdateCallRequest] :update_call_request Call details to update
|
2469
|
+
# @return [nil]
|
2470
|
+
def update_a_live_call(call_id, opts = {})
|
2471
|
+
update_a_live_call_with_http_info(call_id, opts)
|
2472
|
+
nil
|
2473
|
+
end
|
2474
|
+
|
2475
|
+
# Update a Live Call
|
2476
|
+
# @param call_id [String] String that uniquely identifies this call resource.
|
2477
|
+
# @param [Hash] opts the optional parameters
|
2478
|
+
# @option opts [UpdateCallRequest] :update_call_request Call details to update
|
2479
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2480
|
+
def update_a_live_call_with_http_info(call_id, opts = {})
|
2481
|
+
if @api_client.config.debugging
|
2482
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.update_a_live_call ...'
|
2483
|
+
end
|
2484
|
+
# verify the required parameter 'call_id' is set
|
2485
|
+
if @api_client.config.client_side_validation && call_id.nil?
|
2486
|
+
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_live_call"
|
2487
|
+
end
|
2488
|
+
# resource path
|
2489
|
+
local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
|
2490
|
+
|
2491
|
+
# query parameters
|
2492
|
+
query_params = opts[:query_params] || {}
|
2493
|
+
|
2494
|
+
# header parameters
|
2495
|
+
header_params = opts[:header_params] || {}
|
2496
|
+
# HTTP header 'Content-Type'
|
2497
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2498
|
+
|
2499
|
+
# form parameters
|
2500
|
+
form_params = opts[:form_params] || {}
|
2501
|
+
|
2502
|
+
# http body (model)
|
2503
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'update_call_request'])
|
2504
|
+
|
2505
|
+
# return_type
|
2506
|
+
return_type = opts[:return_type]
|
2507
|
+
|
2508
|
+
# auth_names
|
2509
|
+
auth_names = opts[:auth_names] || ['fc']
|
2510
|
+
|
2511
|
+
new_options = opts.merge(
|
2512
|
+
:header_params => header_params,
|
2513
|
+
:query_params => query_params,
|
2514
|
+
:form_params => form_params,
|
2515
|
+
:body => post_body,
|
2516
|
+
:auth_names => auth_names,
|
2517
|
+
:return_type => return_type
|
2518
|
+
)
|
2519
|
+
|
2520
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2521
|
+
if @api_client.config.debugging
|
2522
|
+
@api_client.config.logger.debug "API called: DefaultApi#update_a_live_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2523
|
+
end
|
2524
|
+
return data, status_code, headers
|
2525
|
+
end
|
2526
|
+
|
2527
|
+
# Update a Participant
|
2528
|
+
# @param conference_id [String] ID of the conference this participant is in.
|
2529
|
+
# @param call_id [String] ID of the Call associated with this participant.
|
2530
|
+
# @param [Hash] opts the optional parameters
|
2531
|
+
# @option opts [UpdateConferenceParticipantRequest] :update_conference_participant_request Conference participant details to update
|
2532
|
+
# @return [ConferenceParticipantResult]
|
2533
|
+
def update_a_participant(conference_id, call_id, opts = {})
|
2534
|
+
data, _status_code, _headers = update_a_participant_with_http_info(conference_id, call_id, opts)
|
2535
|
+
data
|
2536
|
+
end
|
2537
|
+
|
2538
|
+
# Update a Participant
|
2539
|
+
# @param conference_id [String] ID of the conference this participant is in.
|
2540
|
+
# @param call_id [String] ID of the Call associated with this participant.
|
2541
|
+
# @param [Hash] opts the optional parameters
|
2542
|
+
# @option opts [UpdateConferenceParticipantRequest] :update_conference_participant_request Conference participant details to update
|
2543
|
+
# @return [Array<(ConferenceParticipantResult, Integer, Hash)>] ConferenceParticipantResult data, response status code and response headers
|
2544
|
+
def update_a_participant_with_http_info(conference_id, call_id, opts = {})
|
2545
|
+
if @api_client.config.debugging
|
2546
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.update_a_participant ...'
|
2547
|
+
end
|
2548
|
+
# verify the required parameter 'conference_id' is set
|
2549
|
+
if @api_client.config.client_side_validation && conference_id.nil?
|
2550
|
+
fail ArgumentError, "Missing the required parameter 'conference_id' when calling DefaultApi.update_a_participant"
|
2551
|
+
end
|
2552
|
+
# verify the required parameter 'call_id' is set
|
2553
|
+
if @api_client.config.client_side_validation && call_id.nil?
|
2554
|
+
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_participant"
|
2555
|
+
end
|
2556
|
+
# resource path
|
2557
|
+
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))
|
2558
|
+
|
2559
|
+
# query parameters
|
2560
|
+
query_params = opts[:query_params] || {}
|
2561
|
+
|
2562
|
+
# header parameters
|
2563
|
+
header_params = opts[:header_params] || {}
|
2564
|
+
# HTTP header 'Accept' (if needed)
|
2565
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2566
|
+
# HTTP header 'Content-Type'
|
2567
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2568
|
+
|
2569
|
+
# form parameters
|
2570
|
+
form_params = opts[:form_params] || {}
|
2571
|
+
|
2572
|
+
# http body (model)
|
2573
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'update_conference_participant_request'])
|
2574
|
+
|
2575
|
+
# return_type
|
2576
|
+
return_type = opts[:return_type] || 'ConferenceParticipantResult'
|
2577
|
+
|
2578
|
+
# auth_names
|
2579
|
+
auth_names = opts[:auth_names] || ['fc']
|
2580
|
+
|
2581
|
+
new_options = opts.merge(
|
2582
|
+
:header_params => header_params,
|
2583
|
+
:query_params => query_params,
|
2584
|
+
:form_params => form_params,
|
2585
|
+
:body => post_body,
|
2586
|
+
:auth_names => auth_names,
|
2587
|
+
:return_type => return_type
|
2588
|
+
)
|
2589
|
+
|
2590
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2591
|
+
if @api_client.config.debugging
|
2592
|
+
@api_client.config.logger.debug "API called: DefaultApi#update_a_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2593
|
+
end
|
2594
|
+
return data, status_code, headers
|
2595
|
+
end
|
2596
|
+
|
2597
|
+
# Update a Queue
|
2598
|
+
# @param queue_id [String] A string that uniquely identifies this Queue resource.
|
2599
|
+
# @param [Hash] opts the optional parameters
|
2600
|
+
# @option opts [QueueRequest] :queue_request Queue Details to update
|
2601
|
+
# @return [QueueResult]
|
2602
|
+
def update_a_queue(queue_id, opts = {})
|
2603
|
+
data, _status_code, _headers = update_a_queue_with_http_info(queue_id, opts)
|
2604
|
+
data
|
2605
|
+
end
|
2606
|
+
|
2607
|
+
# Update a Queue
|
2608
|
+
# @param queue_id [String] A string that uniquely identifies this Queue resource.
|
2609
|
+
# @param [Hash] opts the optional parameters
|
2610
|
+
# @option opts [QueueRequest] :queue_request Queue Details to update
|
2611
|
+
# @return [Array<(QueueResult, Integer, Hash)>] QueueResult data, response status code and response headers
|
2612
|
+
def update_a_queue_with_http_info(queue_id, opts = {})
|
2613
|
+
if @api_client.config.debugging
|
2614
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.update_a_queue ...'
|
2615
|
+
end
|
2616
|
+
# verify the required parameter 'queue_id' is set
|
2617
|
+
if @api_client.config.client_side_validation && queue_id.nil?
|
2618
|
+
fail ArgumentError, "Missing the required parameter 'queue_id' when calling DefaultApi.update_a_queue"
|
2619
|
+
end
|
2620
|
+
# resource path
|
2621
|
+
local_var_path = '/Accounts/{accountId}/Queues/{queueId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'queueId' + '}', CGI.escape(queue_id.to_s))
|
2622
|
+
|
2623
|
+
# query parameters
|
2624
|
+
query_params = opts[:query_params] || {}
|
2625
|
+
|
2626
|
+
# header parameters
|
2627
|
+
header_params = opts[:header_params] || {}
|
2628
|
+
# HTTP header 'Accept' (if needed)
|
2629
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2630
|
+
# HTTP header 'Content-Type'
|
2631
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2632
|
+
|
2633
|
+
# form parameters
|
2634
|
+
form_params = opts[:form_params] || {}
|
2635
|
+
|
2636
|
+
# http body (model)
|
2637
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'queue_request'])
|
2638
|
+
|
2639
|
+
# return_type
|
2640
|
+
return_type = opts[:return_type] || 'QueueResult'
|
2641
|
+
|
2642
|
+
# auth_names
|
2643
|
+
auth_names = opts[:auth_names] || ['fc']
|
2644
|
+
|
2645
|
+
new_options = opts.merge(
|
2646
|
+
:header_params => header_params,
|
2647
|
+
:query_params => query_params,
|
2648
|
+
:form_params => form_params,
|
2649
|
+
:body => post_body,
|
2650
|
+
:auth_names => auth_names,
|
2651
|
+
:return_type => return_type
|
2652
|
+
)
|
2653
|
+
|
2654
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2655
|
+
if @api_client.config.debugging
|
2656
|
+
@api_client.config.logger.debug "API called: DefaultApi#update_a_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2657
|
+
end
|
2658
|
+
return data, status_code, headers
|
2659
|
+
end
|
2660
|
+
|
2661
|
+
# Manage an account
|
2662
|
+
# @param [Hash] opts the optional parameters
|
2663
|
+
# @option opts [AccountRequest] :account_request Account details to update
|
2664
|
+
# @return [nil]
|
2665
|
+
def update_an_account(opts = {})
|
2666
|
+
update_an_account_with_http_info(opts)
|
2667
|
+
nil
|
2668
|
+
end
|
2669
|
+
|
2670
|
+
# Manage an account
|
2671
|
+
# @param [Hash] opts the optional parameters
|
2672
|
+
# @option opts [AccountRequest] :account_request Account details to update
|
2673
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2674
|
+
def update_an_account_with_http_info(opts = {})
|
2675
|
+
if @api_client.config.debugging
|
2676
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.update_an_account ...'
|
2677
|
+
end
|
2678
|
+
# resource path
|
2679
|
+
local_var_path = '/Accounts/{accountId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
2680
|
+
|
2681
|
+
# query parameters
|
2682
|
+
query_params = opts[:query_params] || {}
|
2683
|
+
|
2684
|
+
# header parameters
|
2685
|
+
header_params = opts[:header_params] || {}
|
2686
|
+
# HTTP header 'Content-Type'
|
2687
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2688
|
+
|
2689
|
+
# form parameters
|
2690
|
+
form_params = opts[:form_params] || {}
|
2691
|
+
|
2692
|
+
# http body (model)
|
2693
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'account_request'])
|
2694
|
+
|
2695
|
+
# return_type
|
2696
|
+
return_type = opts[:return_type]
|
2697
|
+
|
2698
|
+
# auth_names
|
2699
|
+
auth_names = opts[:auth_names] || ['fc']
|
2700
|
+
|
2701
|
+
new_options = opts.merge(
|
2702
|
+
:header_params => header_params,
|
2703
|
+
:query_params => query_params,
|
2704
|
+
:form_params => form_params,
|
2705
|
+
:body => post_body,
|
2706
|
+
:auth_names => auth_names,
|
2707
|
+
:return_type => return_type
|
2708
|
+
)
|
2709
|
+
|
2710
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2711
|
+
if @api_client.config.debugging
|
2712
|
+
@api_client.config.logger.debug "API called: DefaultApi#update_an_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2713
|
+
end
|
2714
|
+
return data, status_code, headers
|
2715
|
+
end
|
2716
|
+
|
2717
|
+
# Update an application
|
2718
|
+
# @param application_id [String] A string that uniquely identifies this application resource.
|
2719
|
+
# @param [Hash] opts the optional parameters
|
2720
|
+
# @option opts [ApplicationRequest] :application_request Application details to update.
|
2721
|
+
# @return [ApplicationResult]
|
2722
|
+
def update_an_application(application_id, opts = {})
|
2723
|
+
data, _status_code, _headers = update_an_application_with_http_info(application_id, opts)
|
2724
|
+
data
|
2725
|
+
end
|
2726
|
+
|
2727
|
+
# Update an application
|
2728
|
+
# @param application_id [String] A string that uniquely identifies this application resource.
|
2729
|
+
# @param [Hash] opts the optional parameters
|
2730
|
+
# @option opts [ApplicationRequest] :application_request Application details to update.
|
2731
|
+
# @return [Array<(ApplicationResult, Integer, Hash)>] ApplicationResult data, response status code and response headers
|
2732
|
+
def update_an_application_with_http_info(application_id, opts = {})
|
2733
|
+
if @api_client.config.debugging
|
2734
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.update_an_application ...'
|
2735
|
+
end
|
2736
|
+
# verify the required parameter 'application_id' is set
|
2737
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
2738
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling DefaultApi.update_an_application"
|
2739
|
+
end
|
2740
|
+
# resource path
|
2741
|
+
local_var_path = '/Accounts/{accountId}/Applications/{applicationId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'applicationId' + '}', CGI.escape(application_id.to_s))
|
2742
|
+
|
2743
|
+
# query parameters
|
2744
|
+
query_params = opts[:query_params] || {}
|
2745
|
+
|
2746
|
+
# header parameters
|
2747
|
+
header_params = opts[:header_params] || {}
|
2748
|
+
# HTTP header 'Accept' (if needed)
|
2749
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2750
|
+
# HTTP header 'Content-Type'
|
2751
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2752
|
+
|
2753
|
+
# form parameters
|
2754
|
+
form_params = opts[:form_params] || {}
|
2755
|
+
|
2756
|
+
# http body (model)
|
2757
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'application_request'])
|
2758
|
+
|
2759
|
+
# return_type
|
2760
|
+
return_type = opts[:return_type] || 'ApplicationResult'
|
2761
|
+
|
2762
|
+
# auth_names
|
2763
|
+
auth_names = opts[:auth_names] || ['fc']
|
2764
|
+
|
2765
|
+
new_options = opts.merge(
|
2766
|
+
:header_params => header_params,
|
2767
|
+
:query_params => query_params,
|
2768
|
+
:form_params => form_params,
|
2769
|
+
:body => post_body,
|
2770
|
+
:auth_names => auth_names,
|
2771
|
+
:return_type => return_type
|
2772
|
+
)
|
2773
|
+
|
2774
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2775
|
+
if @api_client.config.debugging
|
2776
|
+
@api_client.config.logger.debug "API called: DefaultApi#update_an_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2777
|
+
end
|
2778
|
+
return data, status_code, headers
|
2779
|
+
end
|
2780
|
+
|
2781
|
+
# Update an Incoming Number
|
2782
|
+
# @param phone_number_id [String] String that uniquely identifies this phone number resource.
|
2783
|
+
# @param [Hash] opts the optional parameters
|
2784
|
+
# @option opts [IncomingNumberRequest] :incoming_number_request Incoming Number details to update
|
2785
|
+
# @return [IncomingNumberResult]
|
2786
|
+
def update_an_incoming_number(phone_number_id, opts = {})
|
2787
|
+
data, _status_code, _headers = update_an_incoming_number_with_http_info(phone_number_id, opts)
|
2788
|
+
data
|
2789
|
+
end
|
2790
|
+
|
2791
|
+
# Update an Incoming Number
|
2792
|
+
# @param phone_number_id [String] String that uniquely identifies this phone number resource.
|
2793
|
+
# @param [Hash] opts the optional parameters
|
2794
|
+
# @option opts [IncomingNumberRequest] :incoming_number_request Incoming Number details to update
|
2795
|
+
# @return [Array<(IncomingNumberResult, Integer, Hash)>] IncomingNumberResult data, response status code and response headers
|
2796
|
+
def update_an_incoming_number_with_http_info(phone_number_id, opts = {})
|
2797
|
+
if @api_client.config.debugging
|
2798
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.update_an_incoming_number ...'
|
2799
|
+
end
|
2800
|
+
# verify the required parameter 'phone_number_id' is set
|
2801
|
+
if @api_client.config.client_side_validation && phone_number_id.nil?
|
2802
|
+
fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling DefaultApi.update_an_incoming_number"
|
2803
|
+
end
|
2804
|
+
# resource path
|
2805
|
+
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
|
2806
|
+
|
2807
|
+
# query parameters
|
2808
|
+
query_params = opts[:query_params] || {}
|
2809
|
+
|
2810
|
+
# header parameters
|
2811
|
+
header_params = opts[:header_params] || {}
|
2812
|
+
# HTTP header 'Accept' (if needed)
|
2813
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2814
|
+
# HTTP header 'Content-Type'
|
2815
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2816
|
+
|
2817
|
+
# form parameters
|
2818
|
+
form_params = opts[:form_params] || {}
|
2819
|
+
|
2820
|
+
# http body (model)
|
2821
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'incoming_number_request'])
|
2822
|
+
|
2823
|
+
# return_type
|
2824
|
+
return_type = opts[:return_type] || 'IncomingNumberResult'
|
2825
|
+
|
2826
|
+
# auth_names
|
2827
|
+
auth_names = opts[:auth_names] || ['fc']
|
2828
|
+
|
2829
|
+
new_options = opts.merge(
|
2830
|
+
:header_params => header_params,
|
2831
|
+
:query_params => query_params,
|
2832
|
+
:form_params => form_params,
|
2833
|
+
:body => post_body,
|
2834
|
+
:auth_names => auth_names,
|
2835
|
+
:return_type => return_type
|
2836
|
+
)
|
2837
|
+
|
2838
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2839
|
+
if @api_client.config.debugging
|
2840
|
+
@api_client.config.logger.debug "API called: DefaultApi#update_an_incoming_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2841
|
+
end
|
2842
|
+
return data, status_code, headers
|
2843
|
+
end
|
2844
|
+
end
|
2845
|
+
end
|