bandwidth-sdk 14.1.0 → 14.1.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.
@@ -1,40 +0,0 @@
1
- # Bandwidth::MessageDeliveredCallbackMessage
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | | |
8
- | **owner** | **String** | | |
9
- | **application_id** | **String** | | |
10
- | **time** | **Time** | | |
11
- | **segment_count** | **Integer** | | |
12
- | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | |
13
- | **to** | **Array<String>** | | |
14
- | **from** | **String** | | |
15
- | **text** | **String** | | |
16
- | **tag** | **String** | | |
17
- | **media** | **Array<String>** | | [optional] |
18
- | **priority** | [**PriorityEnum**](PriorityEnum.md) | | [optional] |
19
-
20
- ## Example
21
-
22
- ```ruby
23
- require 'bandwidth-sdk'
24
-
25
- instance = Bandwidth::MessageDeliveredCallbackMessage.new(
26
- id: 1661365814859loidf7mcwd4qacn7,
27
- owner: +15553332222,
28
- application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
29
- time: 2016-09-14T18:20:16Z,
30
- segment_count: 1,
31
- direction: null,
32
- to: ["+15552223333"],
33
- from: +15553332222,
34
- text: Hello world,
35
- tag: custom string,
36
- media: ["https://dev.bandwidth.com/images/bandwidth-logo.png","https://dev.bandwidth.com/images/github_logo.png"],
37
- priority: null
38
- )
39
- ```
40
-
@@ -1,28 +0,0 @@
1
- # Bandwidth::MessageFailedCallback
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **time** | **Time** | | |
8
- | **type** | **String** | | |
9
- | **to** | **String** | | |
10
- | **description** | **String** | | |
11
- | **message** | [**MessageFailedCallbackMessage**](MessageFailedCallbackMessage.md) | | |
12
- | **error_code** | **Integer** | | |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'bandwidth-sdk'
18
-
19
- instance = Bandwidth::MessageFailedCallback.new(
20
- time: 2016-09-14T18:20:16Z,
21
- type: message-failed,
22
- to: +15552223333,
23
- description: rejected-unallocated-from-number,
24
- message: null,
25
- error_code: 9902
26
- )
27
- ```
28
-
@@ -1,40 +0,0 @@
1
- # Bandwidth::MessageFailedCallbackMessage
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | | |
8
- | **owner** | **String** | | |
9
- | **application_id** | **String** | | |
10
- | **time** | **Time** | | |
11
- | **segment_count** | **Integer** | | |
12
- | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | |
13
- | **to** | **Array<String>** | | |
14
- | **from** | **String** | | |
15
- | **text** | **String** | | |
16
- | **tag** | **String** | | |
17
- | **media** | **Array<String>** | | [optional] |
18
- | **priority** | [**PriorityEnum**](PriorityEnum.md) | | [optional] |
19
-
20
- ## Example
21
-
22
- ```ruby
23
- require 'bandwidth-sdk'
24
-
25
- instance = Bandwidth::MessageFailedCallbackMessage.new(
26
- id: 1661365814859loidf7mcwd4qacn7,
27
- owner: +15553332222,
28
- application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
29
- time: 2016-09-14T18:20:16Z,
30
- segment_count: 1,
31
- direction: null,
32
- to: ["+15552223333"],
33
- from: +15553332222,
34
- text: Hello world,
35
- tag: custom string,
36
- media: ["https://dev.bandwidth.com/images/bandwidth-logo.png","https://dev.bandwidth.com/images/github_logo.png"],
37
- priority: null
38
- )
39
- ```
40
-
@@ -1,26 +0,0 @@
1
- # Bandwidth::MessageSendingCallback
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **time** | **Time** | | |
8
- | **type** | **String** | | |
9
- | **to** | **String** | | |
10
- | **description** | **String** | | |
11
- | **message** | [**MessageSendingCallbackMessage**](MessageSendingCallbackMessage.md) | | |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'bandwidth-sdk'
17
-
18
- instance = Bandwidth::MessageSendingCallback.new(
19
- time: 2016-09-14T18:20:16Z,
20
- type: message-sending,
21
- to: +15552223333,
22
- description: Message is sending to carrier,
23
- message: null
24
- )
25
- ```
26
-
@@ -1,40 +0,0 @@
1
- # Bandwidth::MessageSendingCallbackMessage
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | | |
8
- | **owner** | **String** | | |
9
- | **application_id** | **String** | | |
10
- | **time** | **Time** | | |
11
- | **segment_count** | **Integer** | | |
12
- | **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | |
13
- | **to** | **Array<String>** | | |
14
- | **from** | **String** | | |
15
- | **text** | **String** | | |
16
- | **tag** | **String** | | [optional] |
17
- | **media** | **Array<String>** | | |
18
- | **priority** | [**PriorityEnum**](PriorityEnum.md) | | [optional] |
19
-
20
- ## Example
21
-
22
- ```ruby
23
- require 'bandwidth-sdk'
24
-
25
- instance = Bandwidth::MessageSendingCallbackMessage.new(
26
- id: 1661365814859loidf7mcwd4qacn7,
27
- owner: +15553332222,
28
- application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
29
- time: 2016-09-14T18:20:16Z,
30
- segment_count: 1,
31
- direction: null,
32
- to: ["+15552223333"],
33
- from: +15553332222,
34
- text: Hello world,
35
- tag: custom string,
36
- media: ["https://dev.bandwidth.com/images/bandwidth-logo.png","https://dev.bandwidth.com/images/github_logo.png"],
37
- priority: null
38
- )
39
- ```
40
-
data/docs/Participant.md DELETED
@@ -1,30 +0,0 @@
1
- # Bandwidth::Participant
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | Unique id of the participant. | [optional][readonly] |
8
- | **callback_url** | **String** | Full callback url to use for notifications about this participant. | [optional] |
9
- | **publish_permissions** | [**Array<PublishPermissionsEnum>**](PublishPermissionsEnum.md) | Defines if this participant can publish audio or video. | [optional] |
10
- | **sessions** | **Array<String>** | List of session ids this participant is associated with Capped to one Upon creation of a Participant, returns as an empty array. | [optional][readonly] |
11
- | **subscriptions** | [**Subscriptions**](Subscriptions.md) | | [optional] |
12
- | **tag** | **String** | User defined tag to associate with the participant. | [optional] |
13
- | **device_api_version** | [**DeviceApiVersionEnum**](DeviceApiVersionEnum.md) | | [optional][default to 'V3'] |
14
-
15
- ## Example
16
-
17
- ```ruby
18
- require 'bandwidth-sdk'
19
-
20
- instance = Bandwidth::Participant.new(
21
- id: 320e2af6-13ec-498d-8b51-daba52c37853,
22
- callback_url: https://example.com/callback,
23
- publish_permissions: ["VIDEO","AUDIO"],
24
- sessions: ["75c21163-e110-41bc-bd76-1bb428ec85d5"],
25
- subscriptions: null,
26
- tag: participant1,
27
- device_api_version: null
28
- )
29
- ```
30
-
@@ -1,20 +0,0 @@
1
- # Bandwidth::ParticipantSubscription
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **participant_id** | **String** | The Participant the subscriber will be subscribed to | |
8
- | **stream_aliases** | **Array<String>** | (optional) An array of specific streamAliases owned by the Participant that the subscriber will be subscribed to. Background: A streamAlias is created by a WebRTC client when it connects and declares a name for the related stream. The client is responsible for informing the application of any created streamAliases to enable the application to subscribe to specific streamAliases. Subscribing to a `streamAlias` that does not exist is undefined. If the array is empty all aliases are assumed. | [optional] |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'bandwidth-sdk'
14
-
15
- instance = Bandwidth::ParticipantSubscription.new(
16
- participant_id: 568749d5-04d5-483d-adf5-deac7dd3d521,
17
- stream_aliases: ["alias_1","alias_2"]
18
- )
19
- ```
20
-
@@ -1,227 +0,0 @@
1
- # Bandwidth::ParticipantsApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**create_participant**](ParticipantsApi.md#create_participant) | **POST** /accounts/{accountId}/participants | Create Participant |
8
- | [**delete_participant**](ParticipantsApi.md#delete_participant) | **DELETE** /accounts/{accountId}/participants/{participantId} | Delete Participant |
9
- | [**get_participant**](ParticipantsApi.md#get_participant) | **GET** /accounts/{accountId}/participants/{participantId} | Get Participant |
10
-
11
-
12
- ## create_participant
13
-
14
- > <CreateParticipantResponse> create_participant(account_id, opts)
15
-
16
- Create Participant
17
-
18
- Create a new participant under this account. Participants are idempotent, so relevant parameters must be set in this function if desired.
19
-
20
- ### Examples
21
-
22
- ```ruby
23
- require 'time'
24
- require 'bandwidth-sdk'
25
- # setup authorization
26
- Bandwidth.configure do |config|
27
- # Configure HTTP basic authorization: Basic
28
- config.username = 'YOUR USERNAME'
29
- config.password = 'YOUR PASSWORD'
30
- end
31
-
32
- api_instance = Bandwidth::ParticipantsApi.new
33
- account_id = '9900000' # String | Account ID
34
- opts = {
35
- create_participant_request: Bandwidth::CreateParticipantRequest.new # CreateParticipantRequest | Create participant request body.
36
- }
37
-
38
- begin
39
- # Create Participant
40
- result = api_instance.create_participant(account_id, opts)
41
- p result
42
- rescue Bandwidth::ApiError => e
43
- puts "Error when calling ParticipantsApi->create_participant: #{e}"
44
- end
45
- ```
46
-
47
- #### Using the create_participant_with_http_info variant
48
-
49
- This returns an Array which contains the response data, status code and headers.
50
-
51
- > <Array(<CreateParticipantResponse>, Integer, Hash)> create_participant_with_http_info(account_id, opts)
52
-
53
- ```ruby
54
- begin
55
- # Create Participant
56
- data, status_code, headers = api_instance.create_participant_with_http_info(account_id, opts)
57
- p status_code # => 2xx
58
- p headers # => { ... }
59
- p data # => <CreateParticipantResponse>
60
- rescue Bandwidth::ApiError => e
61
- puts "Error when calling ParticipantsApi->create_participant_with_http_info: #{e}"
62
- end
63
- ```
64
-
65
- ### Parameters
66
-
67
- | Name | Type | Description | Notes |
68
- | ---- | ---- | ----------- | ----- |
69
- | **account_id** | **String** | Account ID | |
70
- | **create_participant_request** | [**CreateParticipantRequest**](CreateParticipantRequest.md) | Create participant request body. | [optional] |
71
-
72
- ### Return type
73
-
74
- [**CreateParticipantResponse**](CreateParticipantResponse.md)
75
-
76
- ### Authorization
77
-
78
- [Basic](../README.md#Basic)
79
-
80
- ### HTTP request headers
81
-
82
- - **Content-Type**: application/json
83
- - **Accept**: application/json
84
-
85
-
86
- ## delete_participant
87
-
88
- > delete_participant(account_id, participant_id)
89
-
90
- Delete Participant
91
-
92
- Delete participant by ID.
93
-
94
- ### Examples
95
-
96
- ```ruby
97
- require 'time'
98
- require 'bandwidth-sdk'
99
- # setup authorization
100
- Bandwidth.configure do |config|
101
- # Configure HTTP basic authorization: Basic
102
- config.username = 'YOUR USERNAME'
103
- config.password = 'YOUR PASSWORD'
104
- end
105
-
106
- api_instance = Bandwidth::ParticipantsApi.new
107
- account_id = '9900000' # String | Account ID
108
- participant_id = '62e0ecb9-0b1b-5115-aae4-4f36123d6bb1' # String | Participant ID
109
-
110
- begin
111
- # Delete Participant
112
- api_instance.delete_participant(account_id, participant_id)
113
- rescue Bandwidth::ApiError => e
114
- puts "Error when calling ParticipantsApi->delete_participant: #{e}"
115
- end
116
- ```
117
-
118
- #### Using the delete_participant_with_http_info variant
119
-
120
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
121
-
122
- > <Array(nil, Integer, Hash)> delete_participant_with_http_info(account_id, participant_id)
123
-
124
- ```ruby
125
- begin
126
- # Delete Participant
127
- data, status_code, headers = api_instance.delete_participant_with_http_info(account_id, participant_id)
128
- p status_code # => 2xx
129
- p headers # => { ... }
130
- p data # => nil
131
- rescue Bandwidth::ApiError => e
132
- puts "Error when calling ParticipantsApi->delete_participant_with_http_info: #{e}"
133
- end
134
- ```
135
-
136
- ### Parameters
137
-
138
- | Name | Type | Description | Notes |
139
- | ---- | ---- | ----------- | ----- |
140
- | **account_id** | **String** | Account ID | |
141
- | **participant_id** | **String** | Participant ID | |
142
-
143
- ### Return type
144
-
145
- nil (empty response body)
146
-
147
- ### Authorization
148
-
149
- [Basic](../README.md#Basic)
150
-
151
- ### HTTP request headers
152
-
153
- - **Content-Type**: Not defined
154
- - **Accept**: application/json
155
-
156
-
157
- ## get_participant
158
-
159
- > <Participant> get_participant(account_id, participant_id)
160
-
161
- Get Participant
162
-
163
- Get participant by ID.
164
-
165
- ### Examples
166
-
167
- ```ruby
168
- require 'time'
169
- require 'bandwidth-sdk'
170
- # setup authorization
171
- Bandwidth.configure do |config|
172
- # Configure HTTP basic authorization: Basic
173
- config.username = 'YOUR USERNAME'
174
- config.password = 'YOUR PASSWORD'
175
- end
176
-
177
- api_instance = Bandwidth::ParticipantsApi.new
178
- account_id = '9900000' # String | Account ID
179
- participant_id = '62e0ecb9-0b1b-5115-aae4-4f36123d6bb1' # String | Participant ID
180
-
181
- begin
182
- # Get Participant
183
- result = api_instance.get_participant(account_id, participant_id)
184
- p result
185
- rescue Bandwidth::ApiError => e
186
- puts "Error when calling ParticipantsApi->get_participant: #{e}"
187
- end
188
- ```
189
-
190
- #### Using the get_participant_with_http_info variant
191
-
192
- This returns an Array which contains the response data, status code and headers.
193
-
194
- > <Array(<Participant>, Integer, Hash)> get_participant_with_http_info(account_id, participant_id)
195
-
196
- ```ruby
197
- begin
198
- # Get Participant
199
- data, status_code, headers = api_instance.get_participant_with_http_info(account_id, participant_id)
200
- p status_code # => 2xx
201
- p headers # => { ... }
202
- p data # => <Participant>
203
- rescue Bandwidth::ApiError => e
204
- puts "Error when calling ParticipantsApi->get_participant_with_http_info: #{e}"
205
- end
206
- ```
207
-
208
- ### Parameters
209
-
210
- | Name | Type | Description | Notes |
211
- | ---- | ---- | ----------- | ----- |
212
- | **account_id** | **String** | Account ID | |
213
- | **participant_id** | **String** | Participant ID | |
214
-
215
- ### Return type
216
-
217
- [**Participant**](Participant.md)
218
-
219
- ### Authorization
220
-
221
- [Basic](../README.md#Basic)
222
-
223
- ### HTTP request headers
224
-
225
- - **Content-Type**: Not defined
226
- - **Accept**: application/json
227
-
@@ -1,15 +0,0 @@
1
- # Bandwidth::PublishPermissionsEnum
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
-
8
- ## Example
9
-
10
- ```ruby
11
- require 'bandwidth-sdk'
12
-
13
- instance = Bandwidth::PublishPermissionsEnum.new()
14
- ```
15
-
data/docs/RequestError.md DELETED
@@ -1,20 +0,0 @@
1
- # Bandwidth::RequestError
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **error** | **String** | A message describing the error with your request. | [optional] |
8
- | **request_id** | **String** | The associated requestId from AWS. | [optional] |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'bandwidth-sdk'
14
-
15
- instance = Bandwidth::RequestError.new(
16
- error: Internal error,
17
- request_id: 12af78d1-5f88-4917-925d-17c1ac8fda7a
18
- )
19
- ```
20
-
data/docs/Session.md DELETED
@@ -1,20 +0,0 @@
1
- # Bandwidth::Session
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | Unique id of the session. | [optional] |
8
- | **tag** | **String** | User defined tag to associate with the session. | [optional] |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'bandwidth-sdk'
14
-
15
- instance = Bandwidth::Session.new(
16
- id: 75c21163-e110-41bc-bd76-1bb428ec85d5,
17
- tag: session1
18
- )
19
- ```
20
-