bandwidth-sdk 11.0.0 → 11.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +9 -2
- data/bandwidth.yml +94 -0
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +260 -131
- data/coverage/index.html +2425 -1006
- data/custom_templates/README.mustache +8 -2
- data/docs/CallsApi.md +87 -0
- data/lib/bandwidth-sdk/api/calls_api.rb +92 -0
- data/lib/bandwidth-sdk/configuration.rb +6 -0
- data/lib/bandwidth-sdk/version.rb +1 -1
- data/spec/api/calls_api_spec.rb +31 -0
- data/spec/integration/calls_api_integration_spec.rb +25 -18
- metadata +42 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b72bc01ef09e5f9f5916bfb51f572b38443a45d3a156b415833bc00df771a35
|
4
|
+
data.tar.gz: e8c112f09b69a32f7a4c557ccb381c499e76a77e6f7de6baaf2140b697ef0629
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65ab2be86d89036c1e63487797cc71a83d8751ace6d8f9a0e903575488805380257361de7cda7174d08971d5bd1e9f82dd37823d4f023c239bb845d30da82133
|
7
|
+
data.tar.gz: 38952fe002462e20b6a1b8fa9ac66300bc005539b4f1a99bb7b7024084e52c81e8da74d10c2f866274e94ff59cee4188afe95333490d1ed651f6c37e5987c4d0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bandwidth-sdk (11.
|
4
|
+
bandwidth-sdk (11.1.0)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart
|
7
7
|
ox (~> 2.4)
|
@@ -32,7 +32,7 @@ GEM
|
|
32
32
|
multipart-post (2.3.0)
|
33
33
|
ox (2.14.17)
|
34
34
|
parallel (1.23.0)
|
35
|
-
parser (3.2.2.
|
35
|
+
parser (3.2.2.4)
|
36
36
|
ast (~> 2.4.1)
|
37
37
|
racc
|
38
38
|
pry (0.14.2)
|
@@ -45,7 +45,7 @@ GEM
|
|
45
45
|
racc (1.7.1)
|
46
46
|
rainbow (3.1.1)
|
47
47
|
rake (13.0.6)
|
48
|
-
regexp_parser (2.8.
|
48
|
+
regexp_parser (2.8.2)
|
49
49
|
rexml (3.2.6)
|
50
50
|
rspec (3.12.0)
|
51
51
|
rspec-core (~> 3.12.0)
|
@@ -80,7 +80,7 @@ GEM
|
|
80
80
|
simplecov_json_formatter (~> 0.1)
|
81
81
|
simplecov-html (0.12.3)
|
82
82
|
simplecov_json_formatter (0.1.4)
|
83
|
-
unicode-display_width (2.
|
83
|
+
unicode-display_width (2.5.0)
|
84
84
|
webmock (3.18.1)
|
85
85
|
addressable (>= 2.8.0)
|
86
86
|
crack (>= 0.3.2)
|
data/README.md
CHANGED
@@ -12,9 +12,9 @@
|
|
12
12
|
| Ubuntu 20.04 | 2.7, 3.0, 3.1, 3.2 |
|
13
13
|
| Ubuntu 22.04 | 2.7, 3.0, 3.1, 3.2 |
|
14
14
|
|
15
|
-
Bandwidth - the Ruby gem for the Bandwidth
|
15
|
+
Bandwidth - the Ruby gem for the Bandwidth SDK
|
16
16
|
|
17
|
-
|
17
|
+
### Generated with the command:
|
18
18
|
`openapi-generator generate -g ruby -i bandwidth.yml -c openapi-config.yml -o ./`
|
19
19
|
|
20
20
|
Bandwidth's Communication APIs
|
@@ -28,6 +28,12 @@ For more information, please visit [https://dev.bandwidth.com](https://dev.bandw
|
|
28
28
|
|
29
29
|
## Installation
|
30
30
|
|
31
|
+
### Install from RubyGems
|
32
|
+
|
33
|
+
```shell
|
34
|
+
gem install bandwidth-sdk
|
35
|
+
```
|
36
|
+
|
31
37
|
### Build a gem
|
32
38
|
|
33
39
|
To build the Ruby code into a gem:
|
@@ -103,6 +109,7 @@ Class | Method | HTTP request | Description
|
|
103
109
|
------------ | ------------- | ------------- | -------------
|
104
110
|
*Bandwidth::CallsApi* | [**create_call**](docs/CallsApi.md#create_call) | **POST** /accounts/{accountId}/calls | Create Call
|
105
111
|
*Bandwidth::CallsApi* | [**get_call_state**](docs/CallsApi.md#get_call_state) | **GET** /accounts/{accountId}/calls/{callId} | Get Call State Information
|
112
|
+
*Bandwidth::CallsApi* | [**list_calls**](docs/CallsApi.md#list_calls) | **GET** /accounts/{accountId}/calls | Get Calls
|
106
113
|
*Bandwidth::CallsApi* | [**update_call**](docs/CallsApi.md#update_call) | **POST** /accounts/{accountId}/calls/{callId} | Update Call
|
107
114
|
*Bandwidth::CallsApi* | [**update_call_bxml**](docs/CallsApi.md#update_call_bxml) | **PUT** /accounts/{accountId}/calls/{callId}/bxml | Update Call BXML
|
108
115
|
*Bandwidth::ConferencesApi* | [**download_conference_recording**](docs/ConferencesApi.md#download_conference_recording) | **GET** /accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}/media | Download Conference Recording
|
data/bandwidth.yml
CHANGED
@@ -275,6 +275,52 @@ paths:
|
|
275
275
|
$ref: '#/components/responses/voiceTooManyRequestsError'
|
276
276
|
'500':
|
277
277
|
$ref: '#/components/responses/voiceInternalServerError'
|
278
|
+
get:
|
279
|
+
tags:
|
280
|
+
- Calls
|
281
|
+
summary: Get Calls
|
282
|
+
description: >-
|
283
|
+
Returns a max of 10000 calls, sorted by `createdTime` from oldest to
|
284
|
+
newest.
|
285
|
+
|
286
|
+
|
287
|
+
**NOTE:** If the number of calls in the account is bigger than
|
288
|
+
`pageSize`, a `Link` header (with format `<{url}>; rel="next"`) will be
|
289
|
+
returned in the response. The url can be used to retrieve the next page
|
290
|
+
of call records.
|
291
|
+
|
292
|
+
Also, call information is kept for 7 days after the calls are hung up.
|
293
|
+
If you attempt to retrieve information for a call that is older than 7
|
294
|
+
days, you will get an empty array [] in response.
|
295
|
+
operationId: listCalls
|
296
|
+
parameters:
|
297
|
+
- $ref: '#/components/parameters/accountId'
|
298
|
+
- $ref: '#/components/parameters/to'
|
299
|
+
- $ref: '#/components/parameters/from'
|
300
|
+
- $ref: '#/components/parameters/minStartTimeCalls'
|
301
|
+
- $ref: '#/components/parameters/maxStartTimeCalls'
|
302
|
+
- $ref: '#/components/parameters/disconnectCause'
|
303
|
+
- $ref: '#/components/parameters/pageSizeCalls'
|
304
|
+
- $ref: '#/components/parameters/pageToken1'
|
305
|
+
responses:
|
306
|
+
'200':
|
307
|
+
$ref: '#/components/responses/listCallsResponse'
|
308
|
+
'400':
|
309
|
+
$ref: '#/components/responses/voiceBadRequestError'
|
310
|
+
'401':
|
311
|
+
$ref: '#/components/responses/voiceUnauthorizedError'
|
312
|
+
'403':
|
313
|
+
$ref: '#/components/responses/voiceForbiddenError'
|
314
|
+
'404':
|
315
|
+
$ref: '#/components/responses/voiceNotFoundError'
|
316
|
+
'405':
|
317
|
+
$ref: '#/components/responses/voiceNotAllowedError'
|
318
|
+
'415':
|
319
|
+
$ref: '#/components/responses/voiceUnsupportedMediaTypeError'
|
320
|
+
'429':
|
321
|
+
$ref: '#/components/responses/voiceTooManyRequestsError'
|
322
|
+
'500':
|
323
|
+
$ref: '#/components/responses/voiceInternalServerError'
|
278
324
|
servers: &ref_1
|
279
325
|
- url: https://voice.bandwidth.com/api/v2
|
280
326
|
description: Production
|
@@ -4491,6 +4537,14 @@ components:
|
|
4491
4537
|
application/json:
|
4492
4538
|
schema:
|
4493
4539
|
$ref: '#/components/schemas/callState'
|
4540
|
+
listCallsResponse:
|
4541
|
+
description: Calls retrieved successfully
|
4542
|
+
content:
|
4543
|
+
application/json:
|
4544
|
+
schema:
|
4545
|
+
type: array
|
4546
|
+
items:
|
4547
|
+
$ref: '#/components/schemas/callState'
|
4494
4548
|
getStatisticsResponse:
|
4495
4549
|
description: Statistics Found
|
4496
4550
|
content:
|
@@ -5106,6 +5160,38 @@ components:
|
|
5106
5160
|
default: 1000
|
5107
5161
|
description: Specifies the max number of conferences that will be returned.
|
5108
5162
|
example: 500
|
5163
|
+
minStartTimeCalls:
|
5164
|
+
name: minStartTime
|
5165
|
+
in: query
|
5166
|
+
required: false
|
5167
|
+
schema:
|
5168
|
+
type: string
|
5169
|
+
description: >-
|
5170
|
+
Filter results to calls which have a `startTime` after or including
|
5171
|
+
`minStartTime` (in ISO8601 format).
|
5172
|
+
example: '2022-06-21T19:13:21Z'
|
5173
|
+
maxStartTimeCalls:
|
5174
|
+
name: maxStartTime
|
5175
|
+
in: query
|
5176
|
+
required: false
|
5177
|
+
schema:
|
5178
|
+
type: string
|
5179
|
+
description: >-
|
5180
|
+
Filter results to calls which have a `startTime` before or including
|
5181
|
+
`maxStartTime` (in ISO8601 format).
|
5182
|
+
example: '2022-06-21T19:13:21Z'
|
5183
|
+
pageSizeCalls:
|
5184
|
+
name: pageSize
|
5185
|
+
in: query
|
5186
|
+
required: false
|
5187
|
+
schema:
|
5188
|
+
type: integer
|
5189
|
+
format: int32
|
5190
|
+
minimum: 1
|
5191
|
+
maximum: 10000
|
5192
|
+
default: 1000
|
5193
|
+
description: Specifies the max number of calls that will be returned.
|
5194
|
+
example: 500
|
5109
5195
|
pageToken1:
|
5110
5196
|
name: pageToken
|
5111
5197
|
in: query
|
@@ -5116,6 +5202,14 @@ components:
|
|
5116
5202
|
Not intended for explicit use. To use pagination, follow the links in
|
5117
5203
|
the `Link` header of the response, as indicated in the endpoint
|
5118
5204
|
description.
|
5205
|
+
disconnectCause:
|
5206
|
+
name: disconnectCause
|
5207
|
+
in: query
|
5208
|
+
required: false
|
5209
|
+
schema:
|
5210
|
+
type: string
|
5211
|
+
description: Filter results to calls with specified call Disconnect Cause.
|
5212
|
+
example: hangup
|
5119
5213
|
requestId:
|
5120
5214
|
name: requestId
|
5121
5215
|
in: path
|
data/coverage/.last_run.json
CHANGED