freeclimb 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/docs/DefaultApi.md +16 -24
- data/lib/freeclimb/api/default_api.rb +40 -24
- data/lib/freeclimb/api_client.rb +1 -1
- data/lib/freeclimb/version.rb +1 -1
- data/spec/api/default_api_spec.rb +7 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e4d6458dac407179a55140999762bfb16832a8198ed52cd455a8dabe1005b91
|
4
|
+
data.tar.gz: 9625c8f6c58cada7bc1868519e7b4d31ef5b4ea6c06a978a3443aad700343cae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9838e1d19d82888849148e138b6082020ff22d97ccb802dee1e6e3697c3997009587005c1e99d72ca2b55f5065b23534b581cee4944673faade023c02e310186
|
7
|
+
data.tar.gz: 2f369f48425e408fd77a1d3dbb5220dbcb40ebefed66405b151bf4e66cdc6c4849c733321016c88e82d2720eef066ee4792f81cc0acb7c909b0ec69496c06864
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,7 @@ FreeClimb is a cloud-based application programming interface (API) that puts the
|
|
5
5
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
6
6
|
|
7
7
|
- API version: 1.0.0
|
8
|
-
- Package version: 2.0.
|
8
|
+
- Package version: 2.0.1
|
9
9
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
10
10
|
|
11
11
|
## Installation
|
@@ -21,16 +21,16 @@ gem build freeclimb.gemspec
|
|
21
21
|
Then either install the gem locally:
|
22
22
|
|
23
23
|
```shell
|
24
|
-
gem install ./freeclimb-2.0.
|
24
|
+
gem install ./freeclimb-2.0.1.gem
|
25
25
|
```
|
26
26
|
|
27
|
-
(for development, run `gem install --dev ./freeclimb-2.0.
|
27
|
+
(for development, run `gem install --dev ./freeclimb-2.0.1.gem` to install the development dependencies)
|
28
28
|
|
29
29
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
30
30
|
|
31
31
|
Finally add this to the Gemfile:
|
32
32
|
|
33
|
-
gem 'freeclimb', '~> 2.0.
|
33
|
+
gem 'freeclimb', '~> 2.0.1'
|
34
34
|
|
35
35
|
### Install from Ruby gems
|
36
36
|
```shell
|
data/docs/DefaultApi.md
CHANGED
@@ -102,7 +102,7 @@ This endpoint does not need any parameter.
|
|
102
102
|
|
103
103
|
## buy_a_phone_number
|
104
104
|
|
105
|
-
> IncomingNumberResult buy_a_phone_number(
|
105
|
+
> IncomingNumberResult buy_a_phone_number(buy_incoming_number_request)
|
106
106
|
|
107
107
|
Buy a Phone Number
|
108
108
|
|
@@ -119,13 +119,11 @@ Freeclimb.configure do |config|
|
|
119
119
|
end
|
120
120
|
|
121
121
|
api_instance = Freeclimb::DefaultApi.new
|
122
|
-
|
123
|
-
buy_incoming_number_request: Freeclimb::BuyIncomingNumberRequest.new # BuyIncomingNumberRequest | Incoming Number transaction details
|
124
|
-
}
|
122
|
+
buy_incoming_number_request = Freeclimb::BuyIncomingNumberRequest.new # BuyIncomingNumberRequest | Incoming Number transaction details
|
125
123
|
|
126
124
|
begin
|
127
125
|
#Buy a Phone Number
|
128
|
-
result = api_instance.buy_a_phone_number(
|
126
|
+
result = api_instance.buy_a_phone_number(buy_incoming_number_request)
|
129
127
|
p result
|
130
128
|
rescue Freeclimb::ApiError => e
|
131
129
|
puts "Exception when calling DefaultApi->buy_a_phone_number: #{e}"
|
@@ -137,7 +135,7 @@ end
|
|
137
135
|
|
138
136
|
Name | Type | Description | Notes
|
139
137
|
------------- | ------------- | ------------- | -------------
|
140
|
-
**buy_incoming_number_request** | [**BuyIncomingNumberRequest**](BuyIncomingNumberRequest.md)| Incoming Number transaction details |
|
138
|
+
**buy_incoming_number_request** | [**BuyIncomingNumberRequest**](BuyIncomingNumberRequest.md)| Incoming Number transaction details |
|
141
139
|
|
142
140
|
### Return type
|
143
141
|
|
@@ -619,7 +617,7 @@ Name | Type | Description | Notes
|
|
619
617
|
|
620
618
|
## filter_logs
|
621
619
|
|
622
|
-
> LogList filter_logs(
|
620
|
+
> LogList filter_logs(filter_logs_request)
|
623
621
|
|
624
622
|
Filter Logs
|
625
623
|
|
@@ -636,13 +634,11 @@ Freeclimb.configure do |config|
|
|
636
634
|
end
|
637
635
|
|
638
636
|
api_instance = Freeclimb::DefaultApi.new
|
639
|
-
|
640
|
-
filter_logs_request: Freeclimb::FilterLogsRequest.new # FilterLogsRequest | Filter logs request paramters
|
641
|
-
}
|
637
|
+
filter_logs_request = Freeclimb::FilterLogsRequest.new # FilterLogsRequest | Filter logs request paramters
|
642
638
|
|
643
639
|
begin
|
644
640
|
#Filter Logs
|
645
|
-
result = api_instance.filter_logs(
|
641
|
+
result = api_instance.filter_logs(filter_logs_request)
|
646
642
|
p result
|
647
643
|
rescue Freeclimb::ApiError => e
|
648
644
|
puts "Exception when calling DefaultApi->filter_logs: #{e}"
|
@@ -654,7 +650,7 @@ end
|
|
654
650
|
|
655
651
|
Name | Type | Description | Notes
|
656
652
|
------------- | ------------- | ------------- | -------------
|
657
|
-
**filter_logs_request** | [**FilterLogsRequest**](FilterLogsRequest.md)| Filter logs request paramters |
|
653
|
+
**filter_logs_request** | [**FilterLogsRequest**](FilterLogsRequest.md)| Filter logs request paramters |
|
658
654
|
|
659
655
|
### Return type
|
660
656
|
|
@@ -2010,7 +2006,7 @@ nil (empty response body)
|
|
2010
2006
|
|
2011
2007
|
## send_an_sms_message
|
2012
2008
|
|
2013
|
-
> MessageResult send_an_sms_message(
|
2009
|
+
> MessageResult send_an_sms_message(message_request)
|
2014
2010
|
|
2015
2011
|
Send an SMS Message
|
2016
2012
|
|
@@ -2027,13 +2023,11 @@ Freeclimb.configure do |config|
|
|
2027
2023
|
end
|
2028
2024
|
|
2029
2025
|
api_instance = Freeclimb::DefaultApi.new
|
2030
|
-
|
2031
|
-
message_request: Freeclimb::MessageRequest.new # MessageRequest | Details to create a message
|
2032
|
-
}
|
2026
|
+
message_request = Freeclimb::MessageRequest.new # MessageRequest | Details to create a message
|
2033
2027
|
|
2034
2028
|
begin
|
2035
2029
|
#Send an SMS Message
|
2036
|
-
result = api_instance.send_an_sms_message(
|
2030
|
+
result = api_instance.send_an_sms_message(message_request)
|
2037
2031
|
p result
|
2038
2032
|
rescue Freeclimb::ApiError => e
|
2039
2033
|
puts "Exception when calling DefaultApi->send_an_sms_message: #{e}"
|
@@ -2045,7 +2039,7 @@ end
|
|
2045
2039
|
|
2046
2040
|
Name | Type | Description | Notes
|
2047
2041
|
------------- | ------------- | ------------- | -------------
|
2048
|
-
**message_request** | [**MessageRequest**](MessageRequest.md)| Details to create a message |
|
2042
|
+
**message_request** | [**MessageRequest**](MessageRequest.md)| Details to create a message |
|
2049
2043
|
|
2050
2044
|
### Return type
|
2051
2045
|
|
@@ -2169,7 +2163,7 @@ Name | Type | Description | Notes
|
|
2169
2163
|
|
2170
2164
|
## update_a_live_call
|
2171
2165
|
|
2172
|
-
> update_a_live_call(call_id,
|
2166
|
+
> update_a_live_call(call_id, update_call_request)
|
2173
2167
|
|
2174
2168
|
Update a Live Call
|
2175
2169
|
|
@@ -2187,13 +2181,11 @@ end
|
|
2187
2181
|
|
2188
2182
|
api_instance = Freeclimb::DefaultApi.new
|
2189
2183
|
call_id = 'call_id_example' # String | String that uniquely identifies this call resource.
|
2190
|
-
|
2191
|
-
update_call_request: Freeclimb::UpdateCallRequest.new # UpdateCallRequest | Call details to update
|
2192
|
-
}
|
2184
|
+
update_call_request = Freeclimb::UpdateCallRequest.new # UpdateCallRequest | Call details to update
|
2193
2185
|
|
2194
2186
|
begin
|
2195
2187
|
#Update a Live Call
|
2196
|
-
api_instance.update_a_live_call(call_id,
|
2188
|
+
api_instance.update_a_live_call(call_id, update_call_request)
|
2197
2189
|
rescue Freeclimb::ApiError => e
|
2198
2190
|
puts "Exception when calling DefaultApi->update_a_live_call: #{e}"
|
2199
2191
|
end
|
@@ -2205,7 +2197,7 @@ end
|
|
2205
2197
|
Name | Type | Description | Notes
|
2206
2198
|
------------- | ------------- | ------------- | -------------
|
2207
2199
|
**call_id** | **String**| String that uniquely identifies this call resource. |
|
2208
|
-
**update_call_request** | [**UpdateCallRequest**](UpdateCallRequest.md)| Call details to update |
|
2200
|
+
**update_call_request** | [**UpdateCallRequest**](UpdateCallRequest.md)| Call details to update |
|
2209
2201
|
|
2210
2202
|
### Return type
|
2211
2203
|
|
@@ -79,22 +79,26 @@ module Freeclimb
|
|
79
79
|
end
|
80
80
|
|
81
81
|
# Buy a Phone Number
|
82
|
+
# @param buy_incoming_number_request [BuyIncomingNumberRequest] Incoming Number transaction details
|
82
83
|
# @param [Hash] opts the optional parameters
|
83
|
-
# @option opts [BuyIncomingNumberRequest] :buy_incoming_number_request Incoming Number transaction details
|
84
84
|
# @return [IncomingNumberResult]
|
85
|
-
def buy_a_phone_number(opts = {})
|
86
|
-
data, _status_code, _headers = buy_a_phone_number_with_http_info(opts)
|
85
|
+
def buy_a_phone_number(buy_incoming_number_request, opts = {})
|
86
|
+
data, _status_code, _headers = buy_a_phone_number_with_http_info(buy_incoming_number_request, opts)
|
87
87
|
data
|
88
88
|
end
|
89
89
|
|
90
90
|
# Buy a Phone Number
|
91
|
+
# @param buy_incoming_number_request [BuyIncomingNumberRequest] Incoming Number transaction details
|
91
92
|
# @param [Hash] opts the optional parameters
|
92
|
-
# @option opts [BuyIncomingNumberRequest] :buy_incoming_number_request Incoming Number transaction details
|
93
93
|
# @return [Array<(IncomingNumberResult, Integer, Hash)>] IncomingNumberResult data, response status code and response headers
|
94
|
-
def buy_a_phone_number_with_http_info(opts = {})
|
94
|
+
def buy_a_phone_number_with_http_info(buy_incoming_number_request, opts = {})
|
95
95
|
if @api_client.config.debugging
|
96
96
|
@api_client.config.logger.debug 'Calling API: DefaultApi.buy_a_phone_number ...'
|
97
97
|
end
|
98
|
+
# verify the required parameter 'buy_incoming_number_request' is set
|
99
|
+
if @api_client.config.client_side_validation && buy_incoming_number_request.nil?
|
100
|
+
fail ArgumentError, "Missing the required parameter 'buy_incoming_number_request' when calling DefaultApi.buy_a_phone_number"
|
101
|
+
end
|
98
102
|
# resource path
|
99
103
|
local_var_path = '/Accounts/{accountId}/IncomingPhoneNumbers'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
100
104
|
|
@@ -112,7 +116,7 @@ module Freeclimb
|
|
112
116
|
form_params = opts[:form_params] || {}
|
113
117
|
|
114
118
|
# http body (model)
|
115
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
119
|
+
post_body = opts[:body] || @api_client.object_to_http_body(buy_incoming_number_request)
|
116
120
|
|
117
121
|
# return_type
|
118
122
|
return_type = opts[:return_type] || 'IncomingNumberResult'
|
@@ -671,22 +675,26 @@ module Freeclimb
|
|
671
675
|
end
|
672
676
|
|
673
677
|
# Filter Logs
|
678
|
+
# @param filter_logs_request [FilterLogsRequest] Filter logs request paramters
|
674
679
|
# @param [Hash] opts the optional parameters
|
675
|
-
# @option opts [FilterLogsRequest] :filter_logs_request Filter logs request paramters
|
676
680
|
# @return [LogList]
|
677
|
-
def filter_logs(opts = {})
|
678
|
-
data, _status_code, _headers = filter_logs_with_http_info(opts)
|
681
|
+
def filter_logs(filter_logs_request, opts = {})
|
682
|
+
data, _status_code, _headers = filter_logs_with_http_info(filter_logs_request, opts)
|
679
683
|
data
|
680
684
|
end
|
681
685
|
|
682
686
|
# Filter Logs
|
687
|
+
# @param filter_logs_request [FilterLogsRequest] Filter logs request paramters
|
683
688
|
# @param [Hash] opts the optional parameters
|
684
|
-
# @option opts [FilterLogsRequest] :filter_logs_request Filter logs request paramters
|
685
689
|
# @return [Array<(LogList, Integer, Hash)>] LogList data, response status code and response headers
|
686
|
-
def filter_logs_with_http_info(opts = {})
|
690
|
+
def filter_logs_with_http_info(filter_logs_request, opts = {})
|
687
691
|
if @api_client.config.debugging
|
688
692
|
@api_client.config.logger.debug 'Calling API: DefaultApi.filter_logs ...'
|
689
693
|
end
|
694
|
+
# verify the required parameter 'filter_logs_request' is set
|
695
|
+
if @api_client.config.client_side_validation && filter_logs_request.nil?
|
696
|
+
fail ArgumentError, "Missing the required parameter 'filter_logs_request' when calling DefaultApi.filter_logs"
|
697
|
+
end
|
690
698
|
# resource path
|
691
699
|
local_var_path = '/Accounts/{accountId}/Logs'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
692
700
|
|
@@ -704,7 +712,7 @@ module Freeclimb
|
|
704
712
|
form_params = opts[:form_params] || {}
|
705
713
|
|
706
714
|
# http body (model)
|
707
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
715
|
+
post_body = opts[:body] || @api_client.object_to_http_body(filter_logs_request)
|
708
716
|
|
709
717
|
# return_type
|
710
718
|
return_type = opts[:return_type] || 'LogList'
|
@@ -2273,22 +2281,26 @@ module Freeclimb
|
|
2273
2281
|
end
|
2274
2282
|
|
2275
2283
|
# Send an SMS Message
|
2284
|
+
# @param message_request [MessageRequest] Details to create a message
|
2276
2285
|
# @param [Hash] opts the optional parameters
|
2277
|
-
# @option opts [MessageRequest] :message_request Details to create a message
|
2278
2286
|
# @return [MessageResult]
|
2279
|
-
def send_an_sms_message(opts = {})
|
2280
|
-
data, _status_code, _headers = send_an_sms_message_with_http_info(opts)
|
2287
|
+
def send_an_sms_message(message_request, opts = {})
|
2288
|
+
data, _status_code, _headers = send_an_sms_message_with_http_info(message_request, opts)
|
2281
2289
|
data
|
2282
2290
|
end
|
2283
2291
|
|
2284
2292
|
# Send an SMS Message
|
2293
|
+
# @param message_request [MessageRequest] Details to create a message
|
2285
2294
|
# @param [Hash] opts the optional parameters
|
2286
|
-
# @option opts [MessageRequest] :message_request Details to create a message
|
2287
2295
|
# @return [Array<(MessageResult, Integer, Hash)>] MessageResult data, response status code and response headers
|
2288
|
-
def send_an_sms_message_with_http_info(opts = {})
|
2296
|
+
def send_an_sms_message_with_http_info(message_request, opts = {})
|
2289
2297
|
if @api_client.config.debugging
|
2290
2298
|
@api_client.config.logger.debug 'Calling API: DefaultApi.send_an_sms_message ...'
|
2291
2299
|
end
|
2300
|
+
# verify the required parameter 'message_request' is set
|
2301
|
+
if @api_client.config.client_side_validation && message_request.nil?
|
2302
|
+
fail ArgumentError, "Missing the required parameter 'message_request' when calling DefaultApi.send_an_sms_message"
|
2303
|
+
end
|
2292
2304
|
# resource path
|
2293
2305
|
local_var_path = '/Accounts/{accountId}/Messages'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s))
|
2294
2306
|
|
@@ -2306,7 +2318,7 @@ module Freeclimb
|
|
2306
2318
|
form_params = opts[:form_params] || {}
|
2307
2319
|
|
2308
2320
|
# http body (model)
|
2309
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
2321
|
+
post_body = opts[:body] || @api_client.object_to_http_body(message_request)
|
2310
2322
|
|
2311
2323
|
# return_type
|
2312
2324
|
return_type = opts[:return_type] || 'MessageResult'
|
@@ -2456,20 +2468,20 @@ module Freeclimb
|
|
2456
2468
|
|
2457
2469
|
# Update a Live Call
|
2458
2470
|
# @param call_id [String] String that uniquely identifies this call resource.
|
2471
|
+
# @param update_call_request [UpdateCallRequest] Call details to update
|
2459
2472
|
# @param [Hash] opts the optional parameters
|
2460
|
-
# @option opts [UpdateCallRequest] :update_call_request Call details to update
|
2461
2473
|
# @return [nil]
|
2462
|
-
def update_a_live_call(call_id, opts = {})
|
2463
|
-
update_a_live_call_with_http_info(call_id, opts)
|
2474
|
+
def update_a_live_call(call_id, update_call_request, opts = {})
|
2475
|
+
update_a_live_call_with_http_info(call_id, update_call_request, opts)
|
2464
2476
|
nil
|
2465
2477
|
end
|
2466
2478
|
|
2467
2479
|
# Update a Live Call
|
2468
2480
|
# @param call_id [String] String that uniquely identifies this call resource.
|
2481
|
+
# @param update_call_request [UpdateCallRequest] Call details to update
|
2469
2482
|
# @param [Hash] opts the optional parameters
|
2470
|
-
# @option opts [UpdateCallRequest] :update_call_request Call details to update
|
2471
2483
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2472
|
-
def update_a_live_call_with_http_info(call_id, opts = {})
|
2484
|
+
def update_a_live_call_with_http_info(call_id, update_call_request, opts = {})
|
2473
2485
|
if @api_client.config.debugging
|
2474
2486
|
@api_client.config.logger.debug 'Calling API: DefaultApi.update_a_live_call ...'
|
2475
2487
|
end
|
@@ -2477,6 +2489,10 @@ module Freeclimb
|
|
2477
2489
|
if @api_client.config.client_side_validation && call_id.nil?
|
2478
2490
|
fail ArgumentError, "Missing the required parameter 'call_id' when calling DefaultApi.update_a_live_call"
|
2479
2491
|
end
|
2492
|
+
# verify the required parameter 'update_call_request' is set
|
2493
|
+
if @api_client.config.client_side_validation && update_call_request.nil?
|
2494
|
+
fail ArgumentError, "Missing the required parameter 'update_call_request' when calling DefaultApi.update_a_live_call"
|
2495
|
+
end
|
2480
2496
|
# resource path
|
2481
2497
|
local_var_path = '/Accounts/{accountId}/Calls/{callId}'.sub('{' + 'accountId' + '}', CGI.escape(@account_id.to_s)).sub('{' + 'callId' + '}', CGI.escape(call_id.to_s))
|
2482
2498
|
|
@@ -2492,7 +2508,7 @@ module Freeclimb
|
|
2492
2508
|
form_params = opts[:form_params] || {}
|
2493
2509
|
|
2494
2510
|
# http body (model)
|
2495
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
2511
|
+
post_body = opts[:body] || @api_client.object_to_http_body(update_call_request)
|
2496
2512
|
|
2497
2513
|
# return_type
|
2498
2514
|
return_type = opts[:return_type]
|
data/lib/freeclimb/api_client.rb
CHANGED
@@ -30,7 +30,7 @@ module Freeclimb
|
|
30
30
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
31
31
|
def initialize(config = Configuration.default)
|
32
32
|
@config = config
|
33
|
-
@user_agent = "FreeClimbSDK/2.0.
|
33
|
+
@user_agent = "FreeClimbSDK/2.0.1/ruby"
|
34
34
|
@default_headers = {
|
35
35
|
'Content-Type' => 'application/json',
|
36
36
|
'User-Agent' => @user_agent
|
data/lib/freeclimb/version.rb
CHANGED
@@ -52,11 +52,9 @@ describe 'DefaultApi' do
|
|
52
52
|
before do
|
53
53
|
uri_template = Addressable::Template.new "#{API_SERVER}/Accounts/{accountId}/IncomingPhoneNumbers"
|
54
54
|
@stub = stub_request(:post, uri_template).to_return(:body => ResponseMocks::INCOMING_PHONE_NUMBER, :status => 200, :headers => {})
|
55
|
-
|
56
|
-
buy_incoming_number_request: Freeclimb::BuyIncomingNumberRequest.new # BuyIncomingNumberRequest | Incoming Number transaction details
|
57
|
-
}
|
55
|
+
buy_incoming_number_request = Freeclimb::BuyIncomingNumberRequest.new # BuyIncomingNumberRequest | Incoming Number transaction details
|
58
56
|
#Buy a Phone Number
|
59
|
-
@result = @api_instance.buy_a_phone_number(
|
57
|
+
@result = @api_instance.buy_a_phone_number(buy_incoming_number_request)
|
60
58
|
end
|
61
59
|
|
62
60
|
|
@@ -292,11 +290,9 @@ describe 'DefaultApi' do
|
|
292
290
|
before do
|
293
291
|
uri_template = Addressable::Template.new "#{API_SERVER}/Accounts/{accountId}/Logs"
|
294
292
|
@stub = stub_request(:post, uri_template).to_return(:body => ResponseMocks::LOG_LIST_RESULT, :status => 200, :headers => {})
|
295
|
-
|
296
|
-
filter_logs_request: Freeclimb::FilterLogsRequest.new # FilterLogsRequest | Filter logs request paramters
|
297
|
-
}
|
293
|
+
filter_logs_request = Freeclimb::FilterLogsRequest.new # FilterLogsRequest | Filter logs request paramters
|
298
294
|
|
299
|
-
@result = @api_instance.filter_logs(
|
295
|
+
@result = @api_instance.filter_logs(filter_logs_request)
|
300
296
|
end
|
301
297
|
|
302
298
|
it 'should respond with a list of logs' do
|
@@ -941,11 +937,7 @@ describe 'DefaultApi' do
|
|
941
937
|
request_body.from ='MOCK_FROM_NUMBER'
|
942
938
|
request_body.text = 'MOCK_TEXT'
|
943
939
|
|
944
|
-
|
945
|
-
message_request: request_body # MessageRequest | Details to create a message
|
946
|
-
}
|
947
|
-
|
948
|
-
@result = @api_instance.send_an_sms_message(opts)
|
940
|
+
@result = @api_instance.send_an_sms_message(request_body)
|
949
941
|
end
|
950
942
|
|
951
943
|
it 'should respond with Message result' do
|
@@ -1012,7 +1004,8 @@ describe 'DefaultApi' do
|
|
1012
1004
|
@stub = stub_request(:post, uri_template).to_return(:body => '{}', :status => 202, :headers => {})
|
1013
1005
|
|
1014
1006
|
call_id = 'MOCK_CALL_ID'
|
1015
|
-
|
1007
|
+
call_request = Freeclimb::UpdateCallRequest.new
|
1008
|
+
@result = @api_instance.update_a_live_call(call_id, call_request)
|
1016
1009
|
end
|
1017
1010
|
|
1018
1011
|
it 'should make a POST request to /Accounts/{accountId}/Calls/{callId}' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freeclimb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|