bandwidth-sdk 17.0.0 → 17.1.0
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 +4 -4
- data/README.md +29 -3
- data/bandwidth-sdk.gemspec +1 -2
- data/bandwidth.yml +85 -22
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +317 -487
- data/coverage/index.html +6317 -7908
- data/custom_templates/README.mustache +4 -1
- data/custom_templates/api_client.mustache +254 -0
- data/custom_templates/configuration.mustache +545 -0
- data/custom_templates/gem.mustache +2 -0
- data/docs/CallsApi.md +20 -5
- data/docs/ConferencesApi.md +36 -9
- data/docs/MFAApi.md +12 -3
- data/docs/MediaApi.md +16 -4
- data/docs/MessagesApi.md +8 -2
- data/docs/MultiChannelAction.md +32 -81
- data/docs/MultiChannelApi.md +5 -2
- data/docs/{MultiChannelChannelListObject.md → MultiChannelChannelListMMSObject.md} +3 -3
- data/docs/{MultiChannelMessageResponseDataChannelListInner.md → MultiChannelChannelListMMSResponseObject.md} +3 -3
- data/docs/MultiChannelChannelListObjectBase.md +22 -0
- data/docs/MultiChannelChannelListOwnerObject.md +18 -0
- data/docs/MultiChannelChannelListRBMObject.md +24 -0
- data/docs/{MultiChannelChannelListObjectContent.md → MultiChannelChannelListRBMObjectAllOfContent.md} +6 -10
- data/docs/MultiChannelChannelListRBMResponseObject.md +26 -0
- data/docs/MultiChannelChannelListRequestObject.md +24 -0
- data/docs/MultiChannelChannelListResponseObject.md +26 -0
- data/docs/MultiChannelChannelListSMSObject.md +24 -0
- data/docs/MultiChannelChannelListSMSResponseObject.md +26 -0
- data/docs/MultiChannelMessageRequest.md +1 -1
- data/docs/MultiChannelMessageResponseData.md +1 -1
- data/docs/PhoneNumberLookupApi.md +12 -3
- data/docs/RbmActionBase.md +1 -1
- data/docs/RbmSuggestionResponse.md +1 -1
- data/docs/RecordingsApi.md +40 -10
- data/docs/StatisticsApi.md +4 -1
- data/docs/TollFreeVerificationApi.md +36 -9
- data/docs/TranscriptionsApi.md +12 -3
- data/lib/bandwidth-sdk/api/calls_api.rb +6 -6
- data/lib/bandwidth-sdk/api/conferences_api.rb +10 -10
- data/lib/bandwidth-sdk/api/media_api.rb +5 -5
- data/lib/bandwidth-sdk/api/messages_api.rb +3 -3
- data/lib/bandwidth-sdk/api/mfa_api.rb +4 -4
- data/lib/bandwidth-sdk/api/multi_channel_api.rb +2 -2
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +4 -4
- data/lib/bandwidth-sdk/api/recordings_api.rb +11 -11
- data/lib/bandwidth-sdk/api/statistics_api.rb +2 -2
- data/lib/bandwidth-sdk/api/toll_free_verification_api.rb +13 -13
- data/lib/bandwidth-sdk/api/transcriptions_api.rb +4 -4
- data/lib/bandwidth-sdk/api_client.rb +9 -5
- data/lib/bandwidth-sdk/api_error.rb +1 -1
- data/lib/bandwidth-sdk/api_model_base.rb +88 -0
- data/lib/bandwidth-sdk/configuration.rb +50 -1
- data/lib/bandwidth-sdk/models/account_statistics.rb +11 -78
- data/lib/bandwidth-sdk/models/additional_denial_reason.rb +41 -78
- data/lib/bandwidth-sdk/models/address.rb +23 -90
- data/lib/bandwidth-sdk/models/answer_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/async_lookup_request.rb +11 -78
- data/lib/bandwidth-sdk/models/blocked_webhook.rb +13 -80
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/business_entity_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/business_registration_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +11 -78
- data/lib/bandwidth-sdk/models/call_state.rb +11 -78
- data/lib/bandwidth-sdk/models/call_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription.rb +11 -78
- data/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription_metadata.rb +11 -78
- data/lib/bandwidth-sdk/models/call_transcription_response.rb +11 -78
- data/lib/bandwidth-sdk/models/call_transcription_track_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/callback.rb +1 -1
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/card_width_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/code_request.rb +11 -78
- data/lib/bandwidth-sdk/models/completed_lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/conference.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_member.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/contact.rb +19 -86
- data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response.rb +11 -78
- data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response_data.rb +11 -78
- data/lib/bandwidth-sdk/models/create_call.rb +41 -78
- data/lib/bandwidth-sdk/models/create_call_response.rb +81 -78
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +31 -78
- data/lib/bandwidth-sdk/models/create_multi_channel_message_response.rb +11 -78
- data/lib/bandwidth-sdk/models/create_sync_lookup_response.rb +11 -78
- data/lib/bandwidth-sdk/models/create_sync_lookup_response_data.rb +11 -78
- data/lib/bandwidth-sdk/models/deactivation_event_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/diversion.rb +11 -78
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/error.rb +11 -78
- data/lib/bandwidth-sdk/models/error_object.rb +41 -78
- data/lib/bandwidth-sdk/models/error_source.rb +11 -78
- data/lib/bandwidth-sdk/models/failure_webhook.rb +13 -80
- data/lib/bandwidth-sdk/models/field_error.rb +11 -78
- data/lib/bandwidth-sdk/models/file_format_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/gather_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response.rb +11 -78
- data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response_data.rb +11 -78
- data/lib/bandwidth-sdk/models/in_progress_lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/inbound_callback.rb +61 -78
- data/lib/bandwidth-sdk/models/inbound_callback_message.rb +81 -78
- data/lib/bandwidth-sdk/models/inbound_callback_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/initiate_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/line_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/link.rb +11 -78
- data/lib/bandwidth-sdk/models/link_schema.rb +11 -78
- data/lib/bandwidth-sdk/models/links_object.rb +11 -78
- data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/list_message_item.rb +11 -78
- data/lib/bandwidth-sdk/models/lookup_error_response.rb +11 -78
- data/lib/bandwidth-sdk/models/lookup_error_schema.rb +11 -78
- data/lib/bandwidth-sdk/models/lookup_error_schema_meta.rb +11 -78
- data/lib/bandwidth-sdk/models/lookup_result.rb +11 -78
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +11 -78
- data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_result.rb +11 -78
- data/lib/bandwidth-sdk/models/media.rb +11 -78
- data/lib/bandwidth-sdk/models/message.rb +11 -78
- data/lib/bandwidth-sdk/models/message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_request.rb +31 -78
- data/lib/bandwidth-sdk/models/message_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/messages_list.rb +11 -78
- data/lib/bandwidth-sdk/models/messaging_code_response.rb +11 -78
- data/lib/bandwidth-sdk/models/messaging_request_error.rb +31 -78
- data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +11 -78
- data/lib/bandwidth-sdk/models/mfa_request_error.rb +11 -78
- data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +11 -78
- data/lib/bandwidth-sdk/models/mms_message_content.rb +11 -78
- data/lib/bandwidth-sdk/models/mms_message_content_file.rb +11 -78
- data/lib/bandwidth-sdk/models/multi_channel_action.rb +71 -27
- data/lib/bandwidth-sdk/models/multi_channel_action_calendar_event.rb +41 -78
- data/lib/bandwidth-sdk/models/{multi_channel_channel_list_object.rb → multi_channel_channel_list_mms_object.rb} +60 -80
- data/lib/bandwidth-sdk/models/{multi_channel_message_response_data_channel_list_inner.rb → multi_channel_channel_list_mms_response_object.rb} +65 -81
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +238 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_owner_object.rb +163 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +271 -0
- data/lib/bandwidth-sdk/models/{multi_channel_channel_list_object_content.rb → multi_channel_channel_list_rbm_object_all_of_content.rb} +5 -8
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +299 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_request_object.rb +103 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_response_object.rb +103 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +271 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +299 -0
- data/lib/bandwidth-sdk/models/multi_channel_error.rb +11 -78
- data/lib/bandwidth-sdk/models/multi_channel_message_channel_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_message_content.rb +11 -78
- data/lib/bandwidth-sdk/models/multi_channel_message_request.rb +22 -79
- data/lib/bandwidth-sdk/models/multi_channel_message_response_data.rb +42 -79
- data/lib/bandwidth-sdk/models/opt_in_workflow.rb +25 -82
- data/lib/bandwidth-sdk/models/page_info.rb +11 -78
- data/lib/bandwidth-sdk/models/priority_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/product_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_base.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_action_dial.rb +31 -78
- data/lib/bandwidth-sdk/models/rbm_action_open_url.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_action_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_view_location.rb +41 -78
- data/lib/bandwidth-sdk/models/rbm_card_content.rb +11 -78
- data/lib/bandwidth-sdk/models/rbm_card_content_media.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_location_response.rb +11 -78
- data/lib/bandwidth-sdk/models/rbm_media_height_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_carousel_card.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_message_content_file.rb +11 -78
- data/lib/bandwidth-sdk/models/rbm_message_content_rich_card.rb +3 -4
- data/lib/bandwidth-sdk/models/rbm_message_content_text.rb +11 -78
- data/lib/bandwidth-sdk/models/rbm_message_media.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_standalone_card.rb +41 -78
- data/lib/bandwidth-sdk/models/rbm_suggestion_response.rb +11 -78
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/recording_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +11 -78
- data/lib/bandwidth-sdk/models/recording_transcriptions.rb +11 -78
- data/lib/bandwidth-sdk/models/redirect_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/sms_message_content.rb +11 -78
- data/lib/bandwidth-sdk/models/standalone_card_orientation_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/status_callback.rb +61 -78
- data/lib/bandwidth-sdk/models/status_callback_message.rb +81 -78
- data/lib/bandwidth-sdk/models/status_callback_type_enum.rb +6 -6
- data/lib/bandwidth-sdk/models/stir_shaken.rb +11 -78
- data/lib/bandwidth-sdk/models/sync_lookup_request.rb +11 -78
- data/lib/bandwidth-sdk/models/telephone_number.rb +11 -78
- data/lib/bandwidth-sdk/models/tfv_basic_authentication.rb +11 -78
- data/lib/bandwidth-sdk/models/tfv_callback_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_error.rb +11 -78
- data/lib/bandwidth-sdk/models/tfv_status.rb +13 -80
- data/lib/bandwidth-sdk/models/tfv_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_submission_info.rb +21 -88
- data/lib/bandwidth-sdk/models/tfv_submission_wrapper.rb +11 -78
- data/lib/bandwidth-sdk/models/thumbnail_alignment_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/transcribe_recording.rb +11 -78
- data/lib/bandwidth-sdk/models/transcription.rb +11 -78
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/update_call.rb +11 -78
- data/lib/bandwidth-sdk/models/update_call_recording.rb +21 -78
- data/lib/bandwidth-sdk/models/update_conference.rb +11 -78
- data/lib/bandwidth-sdk/models/update_conference_member.rb +11 -78
- data/lib/bandwidth-sdk/models/verification_denial_webhook.rb +13 -80
- data/lib/bandwidth-sdk/models/verification_request.rb +51 -88
- data/lib/bandwidth-sdk/models/verification_update_request.rb +51 -88
- data/lib/bandwidth-sdk/models/verification_webhook.rb +13 -80
- data/lib/bandwidth-sdk/models/verify_code_request.rb +13 -80
- data/lib/bandwidth-sdk/models/verify_code_response.rb +11 -78
- data/lib/bandwidth-sdk/models/voice_api_error.rb +11 -78
- data/lib/bandwidth-sdk/models/voice_code_response.rb +11 -78
- data/lib/bandwidth-sdk/models/webhook_subscription.rb +13 -80
- data/lib/bandwidth-sdk/models/webhook_subscription_basic_authentication.rb +11 -78
- data/lib/bandwidth-sdk/models/webhook_subscription_request_schema.rb +15 -82
- data/lib/bandwidth-sdk/models/webhook_subscription_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscriptions_list_body.rb +21 -78
- data/lib/bandwidth-sdk/version.rb +2 -2
- data/lib/bandwidth-sdk.rb +13 -4
- data/openapitools.json +1 -1
- data/spec/smoke/calls_api_spec.rb +50 -76
- data/spec/smoke/conferences_api_spec.rb +7 -5
- data/spec/smoke/media_api_spec.rb +4 -2
- data/spec/smoke/messages_api_spec.rb +9 -4
- data/spec/smoke/mfa_api_spec.rb +9 -4
- data/spec/smoke/multi_channel_api_spec.rb +128 -25
- data/spec/smoke/phone_number_lookup_api_spec.rb +7 -5
- data/spec/smoke/recordings_api_spec.rb +7 -33
- data/spec/smoke/statistics_api_spec.rb +16 -8
- data/spec/smoke/toll_free_verification_api_spec.rb +6 -4
- data/spec/smoke/transcriptions_api_spec.rb +7 -5
- data/spec/spec_helper.rb +2 -0
- data/spec/unit/api/multi_channel_api_spec.rb +13 -2
- data/spec/unit/models/verify_code_request_spec.rb +1 -1
- metadata +27 -8
data/docs/ConferencesApi.md
CHANGED
|
@@ -33,6 +33,9 @@ Bandwidth.configure do |config|
|
|
|
33
33
|
# Configure HTTP basic authorization: Basic
|
|
34
34
|
config.username = 'YOUR USERNAME'
|
|
35
35
|
config.password = 'YOUR PASSWORD'
|
|
36
|
+
|
|
37
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
38
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
36
39
|
end
|
|
37
40
|
|
|
38
41
|
api_instance = Bandwidth::ConferencesApi.new
|
|
@@ -81,7 +84,7 @@ end
|
|
|
81
84
|
|
|
82
85
|
### Authorization
|
|
83
86
|
|
|
84
|
-
[Basic](../README.md#Basic)
|
|
87
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
85
88
|
|
|
86
89
|
### HTTP request headers
|
|
87
90
|
|
|
@@ -107,6 +110,9 @@ Bandwidth.configure do |config|
|
|
|
107
110
|
# Configure HTTP basic authorization: Basic
|
|
108
111
|
config.username = 'YOUR USERNAME'
|
|
109
112
|
config.password = 'YOUR PASSWORD'
|
|
113
|
+
|
|
114
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
115
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
110
116
|
end
|
|
111
117
|
|
|
112
118
|
api_instance = Bandwidth::ConferencesApi.new
|
|
@@ -153,7 +159,7 @@ end
|
|
|
153
159
|
|
|
154
160
|
### Authorization
|
|
155
161
|
|
|
156
|
-
[Basic](../README.md#Basic)
|
|
162
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
157
163
|
|
|
158
164
|
### HTTP request headers
|
|
159
165
|
|
|
@@ -179,6 +185,9 @@ Bandwidth.configure do |config|
|
|
|
179
185
|
# Configure HTTP basic authorization: Basic
|
|
180
186
|
config.username = 'YOUR USERNAME'
|
|
181
187
|
config.password = 'YOUR PASSWORD'
|
|
188
|
+
|
|
189
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
190
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
182
191
|
end
|
|
183
192
|
|
|
184
193
|
api_instance = Bandwidth::ConferencesApi.new
|
|
@@ -227,7 +236,7 @@ end
|
|
|
227
236
|
|
|
228
237
|
### Authorization
|
|
229
238
|
|
|
230
|
-
[Basic](../README.md#Basic)
|
|
239
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
231
240
|
|
|
232
241
|
### HTTP request headers
|
|
233
242
|
|
|
@@ -253,6 +262,9 @@ Bandwidth.configure do |config|
|
|
|
253
262
|
# Configure HTTP basic authorization: Basic
|
|
254
263
|
config.username = 'YOUR USERNAME'
|
|
255
264
|
config.password = 'YOUR PASSWORD'
|
|
265
|
+
|
|
266
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
267
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
256
268
|
end
|
|
257
269
|
|
|
258
270
|
api_instance = Bandwidth::ConferencesApi.new
|
|
@@ -301,7 +313,7 @@ end
|
|
|
301
313
|
|
|
302
314
|
### Authorization
|
|
303
315
|
|
|
304
|
-
[Basic](../README.md#Basic)
|
|
316
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
305
317
|
|
|
306
318
|
### HTTP request headers
|
|
307
319
|
|
|
@@ -327,6 +339,9 @@ Bandwidth.configure do |config|
|
|
|
327
339
|
# Configure HTTP basic authorization: Basic
|
|
328
340
|
config.username = 'YOUR USERNAME'
|
|
329
341
|
config.password = 'YOUR PASSWORD'
|
|
342
|
+
|
|
343
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
344
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
330
345
|
end
|
|
331
346
|
|
|
332
347
|
api_instance = Bandwidth::ConferencesApi.new
|
|
@@ -373,7 +388,7 @@ end
|
|
|
373
388
|
|
|
374
389
|
### Authorization
|
|
375
390
|
|
|
376
|
-
[Basic](../README.md#Basic)
|
|
391
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
377
392
|
|
|
378
393
|
### HTTP request headers
|
|
379
394
|
|
|
@@ -399,6 +414,9 @@ Bandwidth.configure do |config|
|
|
|
399
414
|
# Configure HTTP basic authorization: Basic
|
|
400
415
|
config.username = 'YOUR USERNAME'
|
|
401
416
|
config.password = 'YOUR PASSWORD'
|
|
417
|
+
|
|
418
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
419
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
402
420
|
end
|
|
403
421
|
|
|
404
422
|
api_instance = Bandwidth::ConferencesApi.new
|
|
@@ -455,7 +473,7 @@ end
|
|
|
455
473
|
|
|
456
474
|
### Authorization
|
|
457
475
|
|
|
458
|
-
[Basic](../README.md#Basic)
|
|
476
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
459
477
|
|
|
460
478
|
### HTTP request headers
|
|
461
479
|
|
|
@@ -481,6 +499,9 @@ Bandwidth.configure do |config|
|
|
|
481
499
|
# Configure HTTP basic authorization: Basic
|
|
482
500
|
config.username = 'YOUR USERNAME'
|
|
483
501
|
config.password = 'YOUR PASSWORD'
|
|
502
|
+
|
|
503
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
504
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
484
505
|
end
|
|
485
506
|
|
|
486
507
|
api_instance = Bandwidth::ConferencesApi.new
|
|
@@ -528,7 +549,7 @@ nil (empty response body)
|
|
|
528
549
|
|
|
529
550
|
### Authorization
|
|
530
551
|
|
|
531
|
-
[Basic](../README.md#Basic)
|
|
552
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
532
553
|
|
|
533
554
|
### HTTP request headers
|
|
534
555
|
|
|
@@ -554,6 +575,9 @@ Bandwidth.configure do |config|
|
|
|
554
575
|
# Configure HTTP basic authorization: Basic
|
|
555
576
|
config.username = 'YOUR USERNAME'
|
|
556
577
|
config.password = 'YOUR PASSWORD'
|
|
578
|
+
|
|
579
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
580
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
557
581
|
end
|
|
558
582
|
|
|
559
583
|
api_instance = Bandwidth::ConferencesApi.new
|
|
@@ -604,7 +628,7 @@ nil (empty response body)
|
|
|
604
628
|
|
|
605
629
|
### Authorization
|
|
606
630
|
|
|
607
|
-
[Basic](../README.md#Basic)
|
|
631
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
608
632
|
|
|
609
633
|
### HTTP request headers
|
|
610
634
|
|
|
@@ -630,6 +654,9 @@ Bandwidth.configure do |config|
|
|
|
630
654
|
# Configure HTTP basic authorization: Basic
|
|
631
655
|
config.username = 'YOUR USERNAME'
|
|
632
656
|
config.password = 'YOUR PASSWORD'
|
|
657
|
+
|
|
658
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
659
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
633
660
|
end
|
|
634
661
|
|
|
635
662
|
api_instance = Bandwidth::ConferencesApi.new
|
|
@@ -679,7 +706,7 @@ nil (empty response body)
|
|
|
679
706
|
|
|
680
707
|
### Authorization
|
|
681
708
|
|
|
682
|
-
[Basic](../README.md#Basic)
|
|
709
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
683
710
|
|
|
684
711
|
### HTTP request headers
|
|
685
712
|
|
data/docs/MFAApi.md
CHANGED
|
@@ -27,6 +27,9 @@ Bandwidth.configure do |config|
|
|
|
27
27
|
# Configure HTTP basic authorization: Basic
|
|
28
28
|
config.username = 'YOUR USERNAME'
|
|
29
29
|
config.password = 'YOUR PASSWORD'
|
|
30
|
+
|
|
31
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
32
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
30
33
|
end
|
|
31
34
|
|
|
32
35
|
api_instance = Bandwidth::MFAApi.new
|
|
@@ -73,7 +76,7 @@ end
|
|
|
73
76
|
|
|
74
77
|
### Authorization
|
|
75
78
|
|
|
76
|
-
[Basic](../README.md#Basic)
|
|
79
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
77
80
|
|
|
78
81
|
### HTTP request headers
|
|
79
82
|
|
|
@@ -99,6 +102,9 @@ Bandwidth.configure do |config|
|
|
|
99
102
|
# Configure HTTP basic authorization: Basic
|
|
100
103
|
config.username = 'YOUR USERNAME'
|
|
101
104
|
config.password = 'YOUR PASSWORD'
|
|
105
|
+
|
|
106
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
107
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
102
108
|
end
|
|
103
109
|
|
|
104
110
|
api_instance = Bandwidth::MFAApi.new
|
|
@@ -145,7 +151,7 @@ end
|
|
|
145
151
|
|
|
146
152
|
### Authorization
|
|
147
153
|
|
|
148
|
-
[Basic](../README.md#Basic)
|
|
154
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
149
155
|
|
|
150
156
|
### HTTP request headers
|
|
151
157
|
|
|
@@ -171,6 +177,9 @@ Bandwidth.configure do |config|
|
|
|
171
177
|
# Configure HTTP basic authorization: Basic
|
|
172
178
|
config.username = 'YOUR USERNAME'
|
|
173
179
|
config.password = 'YOUR PASSWORD'
|
|
180
|
+
|
|
181
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
182
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
174
183
|
end
|
|
175
184
|
|
|
176
185
|
api_instance = Bandwidth::MFAApi.new
|
|
@@ -217,7 +226,7 @@ end
|
|
|
217
226
|
|
|
218
227
|
### Authorization
|
|
219
228
|
|
|
220
|
-
[Basic](../README.md#Basic)
|
|
229
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
221
230
|
|
|
222
231
|
### HTTP request headers
|
|
223
232
|
|
data/docs/MediaApi.md
CHANGED
|
@@ -28,6 +28,9 @@ Bandwidth.configure do |config|
|
|
|
28
28
|
# Configure HTTP basic authorization: Basic
|
|
29
29
|
config.username = 'YOUR USERNAME'
|
|
30
30
|
config.password = 'YOUR PASSWORD'
|
|
31
|
+
|
|
32
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
33
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
31
34
|
end
|
|
32
35
|
|
|
33
36
|
api_instance = Bandwidth::MediaApi.new
|
|
@@ -73,7 +76,7 @@ nil (empty response body)
|
|
|
73
76
|
|
|
74
77
|
### Authorization
|
|
75
78
|
|
|
76
|
-
[Basic](../README.md#Basic)
|
|
79
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
77
80
|
|
|
78
81
|
### HTTP request headers
|
|
79
82
|
|
|
@@ -99,6 +102,9 @@ Bandwidth.configure do |config|
|
|
|
99
102
|
# Configure HTTP basic authorization: Basic
|
|
100
103
|
config.username = 'YOUR USERNAME'
|
|
101
104
|
config.password = 'YOUR PASSWORD'
|
|
105
|
+
|
|
106
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
107
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
102
108
|
end
|
|
103
109
|
|
|
104
110
|
api_instance = Bandwidth::MediaApi.new
|
|
@@ -145,7 +151,7 @@ end
|
|
|
145
151
|
|
|
146
152
|
### Authorization
|
|
147
153
|
|
|
148
|
-
[Basic](../README.md#Basic)
|
|
154
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
149
155
|
|
|
150
156
|
### HTTP request headers
|
|
151
157
|
|
|
@@ -171,6 +177,9 @@ Bandwidth.configure do |config|
|
|
|
171
177
|
# Configure HTTP basic authorization: Basic
|
|
172
178
|
config.username = 'YOUR USERNAME'
|
|
173
179
|
config.password = 'YOUR PASSWORD'
|
|
180
|
+
|
|
181
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
182
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
174
183
|
end
|
|
175
184
|
|
|
176
185
|
api_instance = Bandwidth::MediaApi.new
|
|
@@ -219,7 +228,7 @@ end
|
|
|
219
228
|
|
|
220
229
|
### Authorization
|
|
221
230
|
|
|
222
|
-
[Basic](../README.md#Basic)
|
|
231
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
223
232
|
|
|
224
233
|
### HTTP request headers
|
|
225
234
|
|
|
@@ -245,6 +254,9 @@ Bandwidth.configure do |config|
|
|
|
245
254
|
# Configure HTTP basic authorization: Basic
|
|
246
255
|
config.username = 'YOUR USERNAME'
|
|
247
256
|
config.password = 'YOUR PASSWORD'
|
|
257
|
+
|
|
258
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
259
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
248
260
|
end
|
|
249
261
|
|
|
250
262
|
api_instance = Bandwidth::MediaApi.new
|
|
@@ -298,7 +310,7 @@ nil (empty response body)
|
|
|
298
310
|
|
|
299
311
|
### Authorization
|
|
300
312
|
|
|
301
|
-
[Basic](../README.md#Basic)
|
|
313
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
302
314
|
|
|
303
315
|
### HTTP request headers
|
|
304
316
|
|
data/docs/MessagesApi.md
CHANGED
|
@@ -26,6 +26,9 @@ Bandwidth.configure do |config|
|
|
|
26
26
|
# Configure HTTP basic authorization: Basic
|
|
27
27
|
config.username = 'YOUR USERNAME'
|
|
28
28
|
config.password = 'YOUR PASSWORD'
|
|
29
|
+
|
|
30
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
31
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
29
32
|
end
|
|
30
33
|
|
|
31
34
|
api_instance = Bandwidth::MessagesApi.new
|
|
@@ -72,7 +75,7 @@ end
|
|
|
72
75
|
|
|
73
76
|
### Authorization
|
|
74
77
|
|
|
75
|
-
[Basic](../README.md#Basic)
|
|
78
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
76
79
|
|
|
77
80
|
### HTTP request headers
|
|
78
81
|
|
|
@@ -98,6 +101,9 @@ Bandwidth.configure do |config|
|
|
|
98
101
|
# Configure HTTP basic authorization: Basic
|
|
99
102
|
config.username = 'YOUR USERNAME'
|
|
100
103
|
config.password = 'YOUR PASSWORD'
|
|
104
|
+
|
|
105
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
106
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
101
107
|
end
|
|
102
108
|
|
|
103
109
|
api_instance = Bandwidth::MessagesApi.new
|
|
@@ -198,7 +204,7 @@ end
|
|
|
198
204
|
|
|
199
205
|
### Authorization
|
|
200
206
|
|
|
201
|
-
[Basic](../README.md#Basic)
|
|
207
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
202
208
|
|
|
203
209
|
### HTTP request headers
|
|
204
210
|
|
data/docs/MultiChannelAction.md
CHANGED
|
@@ -1,89 +1,40 @@
|
|
|
1
1
|
# Bandwidth::MultiChannelAction
|
|
2
2
|
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# :'RbmActionViewLocation'
|
|
22
|
-
# ]
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### `openapi_discriminator_name`
|
|
26
|
-
|
|
27
|
-
Returns the discriminator's property name.
|
|
28
|
-
|
|
29
|
-
#### Example
|
|
30
|
-
|
|
31
|
-
```ruby
|
|
32
|
-
require 'bandwidth-sdk'
|
|
33
|
-
|
|
34
|
-
Bandwidth::MultiChannelAction.openapi_discriminator_name
|
|
35
|
-
# => :'type'
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### `openapi_discriminator_name`
|
|
39
|
-
|
|
40
|
-
Returns the discriminator's mapping.
|
|
41
|
-
|
|
42
|
-
#### Example
|
|
43
|
-
|
|
44
|
-
```ruby
|
|
45
|
-
require 'bandwidth-sdk'
|
|
46
|
-
|
|
47
|
-
Bandwidth::MultiChannelAction.openapi_discriminator_mapping
|
|
48
|
-
# =>
|
|
49
|
-
# {
|
|
50
|
-
# :'CREATE_CALENDAR_EVENT' => :'MultiChannelActionCalendarEvent',
|
|
51
|
-
# :'DIAL_PHONE' => :'RbmActionDial',
|
|
52
|
-
# :'OPEN_URL' => :'RbmActionOpenUrl',
|
|
53
|
-
# :'REPLY' => :'RbmActionBase',
|
|
54
|
-
# :'REQUEST_LOCATION' => :'RbmActionBase',
|
|
55
|
-
# :'SHOW_LOCATION' => :'RbmActionViewLocation'
|
|
56
|
-
# }
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### build
|
|
60
|
-
|
|
61
|
-
Find the appropriate object from the `openapi_one_of` list and casts the data into it.
|
|
62
|
-
|
|
63
|
-
#### Example
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **type** | [**RbmActionTypeEnum**](RbmActionTypeEnum.md) | | |
|
|
8
|
+
| **text** | **String** | Displayed text for user to click | |
|
|
9
|
+
| **postback_data** | **String** | Base64 payload the customer receives when the reply is clicked. | |
|
|
10
|
+
| **phone_number** | **String** | The phone number to dial. Must be E164 format. | |
|
|
11
|
+
| **latitude** | **Float** | The latitude of the location. | |
|
|
12
|
+
| **longitude** | **Float** | The longitude of the location. | |
|
|
13
|
+
| **label** | **String** | The label of the location. | [optional] |
|
|
14
|
+
| **title** | **String** | The title of the event. | |
|
|
15
|
+
| **start_time** | **Time** | The start time of the event. | |
|
|
16
|
+
| **end_time** | **Time** | The end time of the event. | |
|
|
17
|
+
| **description** | **String** | The description of the event. | [optional] |
|
|
18
|
+
| **url** | **String** | The URL to open in browser. | |
|
|
19
|
+
|
|
20
|
+
## Example
|
|
64
21
|
|
|
65
22
|
```ruby
|
|
66
23
|
require 'bandwidth-sdk'
|
|
67
24
|
|
|
68
|
-
Bandwidth::MultiChannelAction.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
25
|
+
instance = Bandwidth::MultiChannelAction.new(
|
|
26
|
+
type: null,
|
|
27
|
+
text: Hello world,
|
|
28
|
+
postback_data: U0dWc2JHOGdkMjl5YkdRPQ==,
|
|
29
|
+
phone_number: +15552223333,
|
|
30
|
+
latitude: 37.7749,
|
|
31
|
+
longitude: -122.4194,
|
|
32
|
+
label: San Francisco,
|
|
33
|
+
title: Meeting with John,
|
|
34
|
+
start_time: 2022-09-14T18:20:16Z,
|
|
35
|
+
end_time: 2022-09-14T18:20:16Z,
|
|
36
|
+
description: Discuss the new project,
|
|
37
|
+
url: https://dev.bandwidth.com
|
|
38
|
+
)
|
|
73
39
|
```
|
|
74
40
|
|
|
75
|
-
#### Parameters
|
|
76
|
-
|
|
77
|
-
| Name | Type | Description |
|
|
78
|
-
| ---- | ---- | ----------- |
|
|
79
|
-
| **data** | **Mixed** | data to be matched against the list of oneOf items |
|
|
80
|
-
|
|
81
|
-
#### Return type
|
|
82
|
-
|
|
83
|
-
- `MultiChannelActionCalendarEvent`
|
|
84
|
-
- `RbmActionBase`
|
|
85
|
-
- `RbmActionDial`
|
|
86
|
-
- `RbmActionOpenUrl`
|
|
87
|
-
- `RbmActionViewLocation`
|
|
88
|
-
- `nil` (if no type matches)
|
|
89
|
-
|
data/docs/MultiChannelApi.md
CHANGED
|
@@ -25,11 +25,14 @@ Bandwidth.configure do |config|
|
|
|
25
25
|
# Configure HTTP basic authorization: Basic
|
|
26
26
|
config.username = 'YOUR USERNAME'
|
|
27
27
|
config.password = 'YOUR PASSWORD'
|
|
28
|
+
|
|
29
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
|
30
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
|
28
31
|
end
|
|
29
32
|
|
|
30
33
|
api_instance = Bandwidth::MultiChannelApi.new
|
|
31
34
|
account_id = '9900000' # String | Your Bandwidth Account ID.
|
|
32
|
-
multi_channel_message_request = Bandwidth::MultiChannelMessageRequest.new({to: '+15552223333', channel_list: [Bandwidth::
|
|
35
|
+
multi_channel_message_request = Bandwidth::MultiChannelMessageRequest.new({to: '+15552223333', channel_list: [Bandwidth::MultiChannelChannelListRequestObject.new({from: 'BandwidthRBM', application_id: '93de2206-9669-4e07-948d-329f4b722ee2', channel: Bandwidth::MultiChannelMessageChannelEnum::RBM, content: Bandwidth::MmsMessageContent.new})]}) # MultiChannelMessageRequest |
|
|
33
36
|
|
|
34
37
|
begin
|
|
35
38
|
# Create Multi-Channel Message
|
|
@@ -71,7 +74,7 @@ end
|
|
|
71
74
|
|
|
72
75
|
### Authorization
|
|
73
76
|
|
|
74
|
-
[Basic](../README.md#Basic)
|
|
77
|
+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
|
|
75
78
|
|
|
76
79
|
### HTTP request headers
|
|
77
80
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Bandwidth::
|
|
1
|
+
# Bandwidth::MultiChannelChannelListMMSObject
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
| **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
|
|
8
8
|
| **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
|
|
9
9
|
| **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
|
|
10
|
-
| **content** | [**
|
|
10
|
+
| **content** | [**MmsMessageContent**](MmsMessageContent.md) | | |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'bandwidth-sdk'
|
|
16
16
|
|
|
17
|
-
instance = Bandwidth::
|
|
17
|
+
instance = Bandwidth::MultiChannelChannelListMMSObject.new(
|
|
18
18
|
from: BandwidthRBM,
|
|
19
19
|
application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
|
|
20
20
|
channel: null,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Bandwidth::
|
|
1
|
+
# Bandwidth::MultiChannelChannelListMMSResponseObject
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
|
|
8
8
|
| **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
|
|
9
9
|
| **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
|
|
10
|
-
| **content** | [**
|
|
10
|
+
| **content** | [**MmsMessageContent**](MmsMessageContent.md) | | |
|
|
11
11
|
| **owner** | **String** | The Bandwidth senderId associated with the message. Identical to 'from'. | |
|
|
12
12
|
|
|
13
13
|
## Example
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
```ruby
|
|
16
16
|
require 'bandwidth-sdk'
|
|
17
17
|
|
|
18
|
-
instance = Bandwidth::
|
|
18
|
+
instance = Bandwidth::MultiChannelChannelListMMSResponseObject.new(
|
|
19
19
|
from: BandwidthRBM,
|
|
20
20
|
application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
|
|
21
21
|
channel: null,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Bandwidth::MultiChannelChannelListObjectBase
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
|
|
8
|
+
| **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
|
|
9
|
+
| **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'bandwidth-sdk'
|
|
15
|
+
|
|
16
|
+
instance = Bandwidth::MultiChannelChannelListObjectBase.new(
|
|
17
|
+
from: BandwidthRBM,
|
|
18
|
+
application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
|
|
19
|
+
channel: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Bandwidth::MultiChannelChannelListOwnerObject
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **owner** | **String** | The Bandwidth senderId associated with the message. Identical to 'from'. | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'bandwidth-sdk'
|
|
13
|
+
|
|
14
|
+
instance = Bandwidth::MultiChannelChannelListOwnerObject.new(
|
|
15
|
+
owner: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Bandwidth::MultiChannelChannelListRBMObject
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
|
|
8
|
+
| **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
|
|
9
|
+
| **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
|
|
10
|
+
| **content** | [**MultiChannelChannelListRBMObjectAllOfContent**](MultiChannelChannelListRBMObjectAllOfContent.md) | | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'bandwidth-sdk'
|
|
16
|
+
|
|
17
|
+
instance = Bandwidth::MultiChannelChannelListRBMObject.new(
|
|
18
|
+
from: BandwidthRBM,
|
|
19
|
+
application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
|
|
20
|
+
channel: null,
|
|
21
|
+
content: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Bandwidth::
|
|
1
|
+
# Bandwidth::MultiChannelChannelListRBMObjectAllOfContent
|
|
2
2
|
|
|
3
3
|
## Class instance methods
|
|
4
4
|
|
|
@@ -11,14 +11,12 @@ Returns the list of classes defined in oneOf.
|
|
|
11
11
|
```ruby
|
|
12
12
|
require 'bandwidth-sdk'
|
|
13
13
|
|
|
14
|
-
Bandwidth::
|
|
14
|
+
Bandwidth::MultiChannelChannelListRBMObjectAllOfContent.openapi_one_of
|
|
15
15
|
# =>
|
|
16
16
|
# [
|
|
17
|
-
# :'MmsMessageContent',
|
|
18
17
|
# :'RbmMessageContentRichCard',
|
|
19
18
|
# :'RbmMessageContentText',
|
|
20
|
-
# :'RbmMessageMedia'
|
|
21
|
-
# :'SmsMessageContent'
|
|
19
|
+
# :'RbmMessageMedia'
|
|
22
20
|
# ]
|
|
23
21
|
```
|
|
24
22
|
|
|
@@ -31,10 +29,10 @@ Find the appropriate object from the `openapi_one_of` list and casts the data in
|
|
|
31
29
|
```ruby
|
|
32
30
|
require 'bandwidth-sdk'
|
|
33
31
|
|
|
34
|
-
Bandwidth::
|
|
35
|
-
# => #<
|
|
32
|
+
Bandwidth::MultiChannelChannelListRBMObjectAllOfContent.build(data)
|
|
33
|
+
# => #<RbmMessageContentRichCard:0x00007fdd4aab02a0>
|
|
36
34
|
|
|
37
|
-
Bandwidth::
|
|
35
|
+
Bandwidth::MultiChannelChannelListRBMObjectAllOfContent.build(data_that_doesnt_match)
|
|
38
36
|
# => nil
|
|
39
37
|
```
|
|
40
38
|
|
|
@@ -46,10 +44,8 @@ Bandwidth::MultiChannelChannelListObjectContent.build(data_that_doesnt_match)
|
|
|
46
44
|
|
|
47
45
|
#### Return type
|
|
48
46
|
|
|
49
|
-
- `MmsMessageContent`
|
|
50
47
|
- `RbmMessageContentRichCard`
|
|
51
48
|
- `RbmMessageContentText`
|
|
52
49
|
- `RbmMessageMedia`
|
|
53
|
-
- `SmsMessageContent`
|
|
54
50
|
- `nil` (if no type matches)
|
|
55
51
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Bandwidth::MultiChannelChannelListRBMResponseObject
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **from** | **String** | The sender ID of the message. This could be an alphanumeric sender ID. | |
|
|
8
|
+
| **application_id** | **String** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | |
|
|
9
|
+
| **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | |
|
|
10
|
+
| **content** | [**MultiChannelChannelListRBMObjectAllOfContent**](MultiChannelChannelListRBMObjectAllOfContent.md) | | |
|
|
11
|
+
| **owner** | **String** | The Bandwidth senderId associated with the message. Identical to 'from'. | |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'bandwidth-sdk'
|
|
17
|
+
|
|
18
|
+
instance = Bandwidth::MultiChannelChannelListRBMResponseObject.new(
|
|
19
|
+
from: BandwidthRBM,
|
|
20
|
+
application_id: 93de2206-9669-4e07-948d-329f4b722ee2,
|
|
21
|
+
channel: null,
|
|
22
|
+
content: null,
|
|
23
|
+
owner: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|