bandwidth-sdk 10.0.0 → 11.0.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 +11 -0
- data/Gemfile.lock +102 -0
- data/README.md +204 -139
- data/Rakefile +30 -0
- data/bandwidth-sdk.gemspec +40 -0
- data/bandwidth.yml +5626 -0
- data/coverage/.last_run.json +5 -0
- data/coverage/.resultset.json +9761 -0
- data/coverage/.resultset.json.lock +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_both.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
- data/coverage/assets/0.12.3/application.css +1 -0
- data/coverage/assets/0.12.3/application.js +7 -0
- data/coverage/assets/0.12.3/colorbox/border.png +0 -0
- data/coverage/assets/0.12.3/colorbox/controls.png +0 -0
- data/coverage/assets/0.12.3/colorbox/loading.gif +0 -0
- data/coverage/assets/0.12.3/colorbox/loading_background.png +0 -0
- data/coverage/assets/0.12.3/favicon_green.png +0 -0
- data/coverage/assets/0.12.3/favicon_red.png +0 -0
- data/coverage/assets/0.12.3/favicon_yellow.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/assets/0.12.3/loading.gif +0 -0
- data/coverage/assets/0.12.3/magnify.png +0 -0
- data/coverage/index.html +108271 -0
- data/custom_templates/Gemfile.mustache +11 -0
- data/custom_templates/README.mustache +173 -0
- data/custom_templates/gem.mustache +99 -0
- data/custom_templates/gemspec.mustache +37 -0
- data/docs/AccountStatistics.md +20 -0
- data/docs/AnswerCallback.md +44 -0
- data/docs/BridgeCompleteCallback.md +48 -0
- data/docs/BridgeTargetCompleteCallback.md +42 -0
- data/docs/CallDirectionEnum.md +15 -0
- data/docs/CallRecordingMetadata.md +52 -0
- data/docs/CallState.md +52 -0
- data/docs/CallStateEnum.md +15 -0
- data/docs/CallbackMethodEnum.md +15 -0
- data/docs/CallsApi.md +304 -0
- data/docs/CodeRequest.md +28 -0
- data/docs/Conference.md +32 -0
- data/docs/ConferenceCompletedCallback.md +26 -0
- data/docs/ConferenceCreatedCallback.md +26 -0
- data/docs/ConferenceMember.md +28 -0
- data/docs/ConferenceMemberExitCallback.md +32 -0
- data/docs/ConferenceMemberJoinCallback.md +32 -0
- data/docs/ConferenceRecordingAvailableCallback.md +44 -0
- data/docs/ConferenceRecordingMetadata.md +38 -0
- data/docs/ConferenceRedirectCallback.md +26 -0
- data/docs/ConferenceStateEnum.md +15 -0
- data/docs/ConferencesApi.md +688 -0
- data/docs/CreateCall.md +56 -0
- data/docs/CreateCallResponse.md +58 -0
- data/docs/CreateLookupResponse.md +20 -0
- data/docs/CreateMessageRequestError.md +22 -0
- data/docs/CreateParticipantRequest.md +24 -0
- data/docs/CreateParticipantResponse.md +20 -0
- data/docs/DeferredResult.md +20 -0
- data/docs/DeviceApiVersionEnum.md +15 -0
- data/docs/DisconenctCallback.md +50 -0
- data/docs/DisconnectCallback.md +50 -0
- data/docs/Diversion.md +30 -0
- data/docs/DtmfCallback.md +50 -0
- data/docs/FieldError.md +20 -0
- data/docs/FileFormatEnum.md +15 -0
- data/docs/ForbiddenRequest.md +18 -0
- data/docs/GatherCallback.md +52 -0
- data/docs/InboundMessageCallback.md +26 -0
- data/docs/InboundMessageCallbackMessage.md +40 -0
- data/docs/InitiateCallback.md +40 -0
- data/docs/ListMessageDirectionEnum.md +15 -0
- data/docs/ListMessageItem.md +50 -0
- data/docs/LookupRequest.md +18 -0
- data/docs/LookupResult.md +34 -0
- data/docs/LookupStatus.md +24 -0
- data/docs/LookupStatusEnum.md +15 -0
- data/docs/MFAApi.md +226 -0
- data/docs/MachineDetectionCompleteCallback.md +44 -0
- data/docs/MachineDetectionConfiguration.md +46 -0
- data/docs/MachineDetectionModeEnum.md +15 -0
- data/docs/MachineDetectionResult.md +20 -0
- data/docs/Media.md +22 -0
- data/docs/MediaApi.md +307 -0
- data/docs/Message.md +42 -0
- data/docs/MessageDeliveredCallback.md +26 -0
- data/docs/MessageDeliveredCallbackMessage.md +40 -0
- data/docs/MessageDirectionEnum.md +15 -0
- data/docs/MessageFailedCallback.md +28 -0
- data/docs/MessageFailedCallbackMessage.md +40 -0
- data/docs/MessageRequest.md +32 -0
- data/docs/MessageSendingCallback.md +26 -0
- data/docs/MessageSendingCallbackMessage.md +40 -0
- data/docs/MessageStatusEnum.md +15 -0
- data/docs/MessageTypeEnum.md +15 -0
- data/docs/MessagesApi.md +183 -0
- data/docs/MessagesList.md +22 -0
- data/docs/MessagingCodeResponse.md +18 -0
- data/docs/MessagingRequestError.md +20 -0
- data/docs/MfaForbiddenRequestError.md +18 -0
- data/docs/MfaRequestError.md +20 -0
- data/docs/MfaUnauthorizedRequestError.md +18 -0
- data/docs/PageInfo.md +24 -0
- data/docs/Participant.md +30 -0
- data/docs/ParticipantSubscription.md +20 -0
- data/docs/ParticipantsApi.md +227 -0
- data/docs/PhoneNumberLookupApi.md +153 -0
- data/docs/PriorityEnum.md +15 -0
- data/docs/PublishPermissionsEnum.md +15 -0
- data/docs/RecordingAvailableCallback.md +60 -0
- data/docs/RecordingCompleteCallback.md +60 -0
- data/docs/RecordingStateEnum.md +15 -0
- data/docs/RecordingsApi.md +758 -0
- data/docs/RedirectCallback.md +48 -0
- data/docs/RedirectMethodEnum.md +15 -0
- data/docs/RequestError.md +20 -0
- data/docs/Session.md +20 -0
- data/docs/SessionsApi.md +605 -0
- data/docs/StatisticsApi.md +78 -0
- data/docs/StirShaken.md +22 -0
- data/docs/Subscriptions.md +20 -0
- data/docs/Tag.md +20 -0
- data/docs/TnLookupRequestError.md +18 -0
- data/docs/TranscribeRecording.md +30 -0
- data/docs/Transcription.md +20 -0
- data/docs/TranscriptionAvailableCallback.md +58 -0
- data/docs/TranscriptionList.md +18 -0
- data/docs/TranscriptionMetadata.md +24 -0
- data/docs/TransferAnswerCallback.md +46 -0
- data/docs/TransferCompleteCallback.md +52 -0
- data/docs/TransferDisconnectCallback.md +56 -0
- data/docs/UnauthorizedRequest.md +18 -0
- data/docs/UpdateCall.md +36 -0
- data/docs/UpdateCallRecording.md +18 -0
- data/docs/UpdateConference.md +34 -0
- data/docs/UpdateConferenceMember.md +22 -0
- data/docs/VerifyCodeRequest.md +24 -0
- data/docs/VerifyCodeResponse.md +18 -0
- data/docs/VoiceApiError.md +22 -0
- data/docs/VoiceCodeResponse.md +18 -0
- data/git_push.sh +57 -0
- data/lib/bandwidth-sdk/api/calls_api.rb +325 -0
- data/lib/bandwidth-sdk/api/conferences_api.rb +717 -0
- data/lib/bandwidth-sdk/api/media_api.rb +312 -0
- data/lib/bandwidth-sdk/api/messages_api.rb +204 -0
- data/lib/bandwidth-sdk/api/mfa_api.rb +244 -0
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +165 -0
- data/lib/bandwidth-sdk/api/recordings_api.rb +782 -0
- data/lib/bandwidth-sdk/api/statistics_api.rb +85 -0
- data/lib/bandwidth-sdk/api_client.rb +428 -0
- data/lib/bandwidth-sdk/api_error.rb +58 -0
- data/lib/bandwidth-sdk/configuration.rb +591 -0
- data/lib/bandwidth-sdk/models/account_statistics.rb +223 -0
- data/lib/bandwidth-sdk/models/answer_callback.rb +368 -0
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +390 -0
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +358 -0
- data/lib/bandwidth-sdk/models/bxml/bxml.rb +11 -0
- data/lib/bandwidth-sdk/models/bxml/nestable_verb.rb +46 -0
- data/lib/bandwidth-sdk/models/bxml/response.rb +11 -0
- data/lib/bandwidth-sdk/models/bxml/root.rb +47 -0
- data/lib/bandwidth-sdk/models/bxml/verb.rb +50 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/bridge.rb +28 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/conference.rb +28 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/custom_param.rb +16 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/forward.rb +20 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/gather.rb +42 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/hangup.rb +10 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/pause.rb +15 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/pause_recording.rb +10 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/phone_number.rb +26 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/play_audio.rb +17 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/record.rb +32 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/redirect.rb +23 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/resume_recording.rb +10 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/ring.rb +16 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/send_dtmf.rb +17 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/sip_uri.rb +27 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/speak_sentence.rb +25 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/start_gather.rb +19 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/start_recording.rb +24 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/start_stream.rb +28 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/start_transcription.rb +29 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_gather.rb +10 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_recording.rb +10 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_stream.rb +15 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_transcription.rb +15 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stream_param.rb +16 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/tag.rb +11 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/transfer.rb +34 -0
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +404 -0
- data/lib/bandwidth-sdk/models/call_state.rb +416 -0
- data/lib/bandwidth-sdk/models/call_state_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/code_request.rb +434 -0
- data/lib/bandwidth-sdk/models/conference.rb +313 -0
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +255 -0
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +255 -0
- data/lib/bandwidth-sdk/models/conference_member.rb +266 -0
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +285 -0
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +285 -0
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +367 -0
- data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +335 -0
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +255 -0
- data/lib/bandwidth-sdk/models/conference_state_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/create_call.rb +687 -0
- data/lib/bandwidth-sdk/models/create_call_response.rb +559 -0
- data/lib/bandwidth-sdk/models/create_lookup_response.rb +245 -0
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +246 -0
- data/lib/bandwidth-sdk/models/deferred_result.rb +221 -0
- data/lib/bandwidth-sdk/models/disconenct_callback.rb +405 -0
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +400 -0
- data/lib/bandwidth-sdk/models/diversion.rb +273 -0
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +398 -0
- data/lib/bandwidth-sdk/models/field_error.rb +223 -0
- data/lib/bandwidth-sdk/models/file_format_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/gather_callback.rb +408 -0
- data/lib/bandwidth-sdk/models/inbound_message_callback.rb +284 -0
- data/lib/bandwidth-sdk/models/inbound_message_callback_message.rb +411 -0
- data/lib/bandwidth-sdk/models/initiate_callback.rb +343 -0
- data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/list_message_item.rb +398 -0
- data/lib/bandwidth-sdk/models/lookup_request.rb +222 -0
- data/lib/bandwidth-sdk/models/lookup_result.rb +294 -0
- data/lib/bandwidth-sdk/models/lookup_status.rb +269 -0
- data/lib/bandwidth-sdk/models/lookup_status_enum.rb +42 -0
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +368 -0
- data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +493 -0
- data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/machine_detection_result.rb +224 -0
- data/lib/bandwidth-sdk/models/media.rb +230 -0
- data/lib/bandwidth-sdk/models/message.rb +377 -0
- data/lib/bandwidth-sdk/models/message_delivered_callback.rb +284 -0
- data/lib/bandwidth-sdk/models/message_delivered_callback_message.rb +418 -0
- data/lib/bandwidth-sdk/models/message_direction_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/message_failed_callback.rb +300 -0
- data/lib/bandwidth-sdk/models/message_failed_callback_message.rb +425 -0
- data/lib/bandwidth-sdk/models/message_request.rb +358 -0
- data/lib/bandwidth-sdk/models/message_sending_callback.rb +284 -0
- data/lib/bandwidth-sdk/models/message_sending_callback_message.rb +425 -0
- data/lib/bandwidth-sdk/models/message_status_enum.rb +46 -0
- data/lib/bandwidth-sdk/models/message_type_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/messages_list.rb +233 -0
- data/lib/bandwidth-sdk/models/messaging_code_response.rb +213 -0
- data/lib/bandwidth-sdk/models/messaging_request_error.rb +235 -0
- data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +213 -0
- data/lib/bandwidth-sdk/models/mfa_request_error.rb +223 -0
- data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +213 -0
- data/lib/bandwidth-sdk/models/page_info.rb +243 -0
- data/lib/bandwidth-sdk/models/priority_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +447 -0
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +448 -0
- data/lib/bandwidth-sdk/models/recording_state_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/redirect_callback.rb +388 -0
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/stir_shaken.rb +233 -0
- data/lib/bandwidth-sdk/models/tag.rb +221 -0
- data/lib/bandwidth-sdk/models/tn_lookup_request_error.rb +213 -0
- data/lib/bandwidth-sdk/models/transcribe_recording.rb +360 -0
- data/lib/bandwidth-sdk/models/transcription.rb +223 -0
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +436 -0
- data/lib/bandwidth-sdk/models/transcription_list.rb +214 -0
- data/lib/bandwidth-sdk/models/transcription_metadata.rb +244 -0
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +378 -0
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +410 -0
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +430 -0
- data/lib/bandwidth-sdk/models/update_call.rb +413 -0
- data/lib/bandwidth-sdk/models/update_call_recording.rb +241 -0
- data/lib/bandwidth-sdk/models/update_conference.rb +387 -0
- data/lib/bandwidth-sdk/models/update_conference_member.rb +236 -0
- data/lib/bandwidth-sdk/models/verify_code_request.rb +341 -0
- data/lib/bandwidth-sdk/models/verify_code_response.rb +213 -0
- data/lib/bandwidth-sdk/models/voice_api_error.rb +231 -0
- data/lib/bandwidth-sdk/models/voice_code_response.rb +213 -0
- data/lib/bandwidth-sdk/version.rb +15 -0
- data/lib/bandwidth-sdk.rb +170 -0
- data/openapi-config.yml +12 -0
- data/openapitools.json +7 -0
- data/spec/api/calls_api_spec.rb +230 -0
- data/spec/api/conferences_api_spec.rb +393 -0
- data/spec/api/media_api_spec.rb +129 -0
- data/spec/api/messages_api_spec.rb +193 -0
- data/spec/api/mfa_api_spec.rb +130 -0
- data/spec/api/phone_number_lookup_api_spec.rb +100 -0
- data/spec/api/recordings_api_spec.rb +395 -0
- data/spec/api/statistics_api_spec.rb +45 -0
- data/spec/api_client_spec.rb +377 -0
- data/spec/api_error_spec.rb +23 -0
- data/spec/call_utils.rb +74 -0
- data/spec/configuration_spec.rb +190 -0
- data/spec/fixtures/ruby_cat.jpeg +0 -0
- data/spec/integration/calls_api_integration_spec.rb +202 -0
- data/spec/integration/conferences_api_integration_spec.rb +169 -0
- data/spec/integration/media_api_integration_spec.rb +92 -0
- data/spec/integration/messages_api_integration_spec.rb +138 -0
- data/spec/integration/mfa_api_integration_spec.rb +117 -0
- data/spec/integration/phone_number_lookup_api_integration_spec.rb +96 -0
- data/spec/integration/recordings_api_integration_spec.rb +226 -0
- data/spec/integration/statistics_api_integration_spec.rb +58 -0
- data/spec/models/bxml/bxml_spec.rb +16 -0
- data/spec/models/bxml/nestable_verb_spec.rb +11 -0
- data/spec/models/bxml/response_spec.rb +16 -0
- data/spec/models/bxml/verb_spec.rb +15 -0
- data/spec/models/bxml/verbs/bridge_spec.rb +58 -0
- data/spec/models/bxml/verbs/conference_spec.rb +58 -0
- data/spec/models/bxml/verbs/custom_param_spec.rb +36 -0
- data/spec/models/bxml/verbs/forward_spec.rb +44 -0
- data/spec/models/bxml/verbs/gather_spec.rb +86 -0
- data/spec/models/bxml/verbs/hangup_spec.rb +16 -0
- data/spec/models/bxml/verbs/pause_recording_spec.rb +16 -0
- data/spec/models/bxml/verbs/pause_spec.rb +34 -0
- data/spec/models/bxml/verbs/phone_number_spec.rb +54 -0
- data/spec/models/bxml/verbs/play_audio_spec.rb +36 -0
- data/spec/models/bxml/verbs/record_spec.rb +68 -0
- data/spec/models/bxml/verbs/redirect_spec.rb +50 -0
- data/spec/models/bxml/verbs/resume_recording_spec.rb +16 -0
- data/spec/models/bxml/verbs/ring_spec.rb +36 -0
- data/spec/models/bxml/verbs/send_dtmf_spec.rb +36 -0
- data/spec/models/bxml/verbs/sip_uri_spec.rb +56 -0
- data/spec/models/bxml/verbs/speak_sentence_spec.rb +38 -0
- data/spec/models/bxml/verbs/start_gather_spec.rb +42 -0
- data/spec/models/bxml/verbs/start_recording_spec.rb +52 -0
- data/spec/models/bxml/verbs/start_stream_spec.rb +72 -0
- data/spec/models/bxml/verbs/start_transcription_spec.rb +74 -0
- data/spec/models/bxml/verbs/stop_gather_spec.rb +16 -0
- data/spec/models/bxml/verbs/stop_recording_spec.rb +16 -0
- data/spec/models/bxml/verbs/stop_stream_spec.rb +34 -0
- data/spec/models/bxml/verbs/stop_transcription_spec.rb +34 -0
- data/spec/models/bxml/verbs/stream_param_spec.rb +36 -0
- data/spec/models/bxml/verbs/tag_spec.rb +16 -0
- data/spec/models/bxml/verbs/transfer_spec.rb +84 -0
- data/spec/models/call_state_enum_spec.rb +16 -0
- data/spec/models/call_state_spec.rb +168 -0
- data/spec/models/deferred_result_spec.rb +74 -0
- data/spec/models/message_spec.rb +138 -0
- data/spec/models/verify_code_request_spec.rb +126 -0
- data/spec/spec_helper.rb +171 -0
- metadata +430 -276
- data/LICENSE +0 -28
- data/lib/bandwidth/api_helper.rb +0 -280
- data/lib/bandwidth/client.rb +0 -75
- data/lib/bandwidth/configuration.rb +0 -209
- data/lib/bandwidth/exceptions/api_exception.rb +0 -20
- data/lib/bandwidth/http/api_response.rb +0 -38
- data/lib/bandwidth/http/auth/messaging_basic_auth.rb +0 -22
- data/lib/bandwidth/http/auth/multi_factor_auth_basic_auth.rb +0 -22
- data/lib/bandwidth/http/auth/phone_number_lookup_basic_auth.rb +0 -22
- data/lib/bandwidth/http/auth/voice_basic_auth.rb +0 -22
- data/lib/bandwidth/http/auth/web_rtc_basic_auth.rb +0 -22
- data/lib/bandwidth/http/faraday_client.rb +0 -73
- data/lib/bandwidth/http/http_call_back.rb +0 -24
- data/lib/bandwidth/http/http_client.rb +0 -104
- data/lib/bandwidth/http/http_method_enum.rb +0 -13
- data/lib/bandwidth/http/http_request.rb +0 -50
- data/lib/bandwidth/http/http_response.rb +0 -29
- data/lib/bandwidth/messaging_lib/messaging/client.rb +0 -60
- data/lib/bandwidth/messaging_lib/messaging/controllers/api_controller.rb +0 -491
- data/lib/bandwidth/messaging_lib/messaging/controllers/base_controller.rb +0 -47
- data/lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb +0 -37
- data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_callback_message.rb +0 -100
- data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_message.rb +0 -164
- data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_message_item.rb +0 -203
- data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_messages_list.rb +0 -79
- data/lib/bandwidth/messaging_lib/messaging/models/deferred_result.rb +0 -60
- data/lib/bandwidth/messaging_lib/messaging/models/media.rb +0 -70
- data/lib/bandwidth/messaging_lib/messaging/models/message_request.rb +0 -111
- data/lib/bandwidth/messaging_lib/messaging/models/page_info.rb +0 -82
- data/lib/bandwidth/messaging_lib/messaging/models/priority_enum.rb +0 -19
- data/lib/bandwidth/messaging_lib/messaging/models/tag.rb +0 -60
- data/lib/bandwidth/messaging_lib/messaging.rb +0 -25
- data/lib/bandwidth/models/base_model.rb +0 -58
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/client.rb +0 -60
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/controllers/base_controller.rb +0 -47
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/controllers/mfa_controller.rb +0 -214
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/exceptions/error_with_request_exception.rb +0 -37
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/exceptions/forbidden_request_exception.rb +0 -32
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/exceptions/unauthorized_request_exception.rb +0 -32
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/models/two_factor_code_request_schema.rb +0 -103
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/models/two_factor_messaging_response.rb +0 -50
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/models/two_factor_verify_code_response.rb +0 -50
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/models/two_factor_verify_request_schema.rb +0 -94
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/models/two_factor_voice_response.rb +0 -50
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth.rb +0 -23
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/client.rb +0 -60
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/controllers/api_controller.rb +0 -1553
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/controllers/base_controller.rb +0 -47
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/exceptions/accounts_tnlookup400_error_exception.rb +0 -32
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb +0 -50
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_response.rb +0 -61
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_status.rb +0 -95
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/result.rb +0 -132
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup.rb +0 -20
- data/lib/bandwidth/utilities/date_time_helper.rb +0 -156
- data/lib/bandwidth/utilities/file_wrapper.rb +0 -16
- data/lib/bandwidth/voice_lib/bxml/bxml.rb +0 -36
- data/lib/bandwidth/voice_lib/bxml/response.rb +0 -39
- data/lib/bandwidth/voice_lib/bxml/verbs/bridge.rb +0 -28
- data/lib/bandwidth/voice_lib/bxml/verbs/conference.rb +0 -32
- data/lib/bandwidth/voice_lib/bxml/verbs/forward.rb +0 -18
- data/lib/bandwidth/voice_lib/bxml/verbs/gather.rb +0 -49
- data/lib/bandwidth/voice_lib/bxml/verbs/hangup.rb +0 -14
- data/lib/bandwidth/voice_lib/bxml/verbs/pause.rb +0 -15
- data/lib/bandwidth/voice_lib/bxml/verbs/pause_recording.rb +0 -14
- data/lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb +0 -24
- data/lib/bandwidth/voice_lib/bxml/verbs/play_audio.rb +0 -17
- data/lib/bandwidth/voice_lib/bxml/verbs/record.rb +0 -33
- data/lib/bandwidth/voice_lib/bxml/verbs/redirect.rb +0 -24
- data/lib/bandwidth/voice_lib/bxml/verbs/resume_recording.rb +0 -14
- data/lib/bandwidth/voice_lib/bxml/verbs/ring.rb +0 -16
- data/lib/bandwidth/voice_lib/bxml/verbs/send_dtmf.rb +0 -16
- data/lib/bandwidth/voice_lib/bxml/verbs/sip_uri.rb +0 -25
- data/lib/bandwidth/voice_lib/bxml/verbs/speak_sentence.rb +0 -18
- data/lib/bandwidth/voice_lib/bxml/verbs/start_gather.rb +0 -20
- data/lib/bandwidth/voice_lib/bxml/verbs/start_recording.rb +0 -25
- data/lib/bandwidth/voice_lib/bxml/verbs/stop_gather.rb +0 -14
- data/lib/bandwidth/voice_lib/bxml/verbs/stop_recording.rb +0 -14
- data/lib/bandwidth/voice_lib/bxml/verbs/tag.rb +0 -13
- data/lib/bandwidth/voice_lib/bxml/verbs/transfer.rb +0 -48
- data/lib/bandwidth/voice_lib/bxml/verbs/xml_verb.rb +0 -26
- data/lib/bandwidth/voice_lib/voice/client.rb +0 -60
- data/lib/bandwidth/voice_lib/voice/controllers/api_controller.rb +0 -1820
- data/lib/bandwidth/voice_lib/voice/controllers/base_controller.rb +0 -47
- data/lib/bandwidth/voice_lib/voice/exceptions/api_error_exception.rb +0 -42
- data/lib/bandwidth/voice_lib/voice/models/answer_fallback_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/answer_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/call_callback.rb +0 -343
- data/lib/bandwidth/voice_lib/voice/models/call_recording_metadata.rb +0 -250
- data/lib/bandwidth/voice_lib/voice/models/call_state.rb +0 -301
- data/lib/bandwidth/voice_lib/voice/models/callback_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/conference_callback.rb +0 -211
- data/lib/bandwidth/voice_lib/voice/models/conference_event_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/conference_member_state.rb +0 -103
- data/lib/bandwidth/voice_lib/voice/models/conference_recording_metadata.rb +0 -173
- data/lib/bandwidth/voice_lib/voice/models/conference_state.rb +0 -153
- data/lib/bandwidth/voice_lib/voice/models/create_call_request.rb +0 -236
- data/lib/bandwidth/voice_lib/voice/models/create_call_response.rb +0 -266
- data/lib/bandwidth/voice_lib/voice/models/direction_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/disconnect_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/diversion.rb +0 -80
- data/lib/bandwidth/voice_lib/voice/models/fallback_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/file_format_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/machine_detection_configuration.rb +0 -231
- data/lib/bandwidth/voice_lib/voice/models/mode_enum.rb +0 -20
- data/lib/bandwidth/voice_lib/voice/models/modify_call_recording_request.rb +0 -48
- data/lib/bandwidth/voice_lib/voice/models/modify_call_request.rb +0 -156
- data/lib/bandwidth/voice_lib/voice/models/modify_conference_request.rb +0 -144
- data/lib/bandwidth/voice_lib/voice/models/redirect_fallback_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/redirect_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/state1_enum.rb +0 -20
- data/lib/bandwidth/voice_lib/voice/models/state_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/status_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/transcribe_recording_request.rb +0 -108
- data/lib/bandwidth/voice_lib/voice/models/transcript.rb +0 -60
- data/lib/bandwidth/voice_lib/voice/models/transcription.rb +0 -80
- data/lib/bandwidth/voice_lib/voice/models/transcription_metadata.rb +0 -89
- data/lib/bandwidth/voice_lib/voice/models/transcription_response.rb +0 -59
- data/lib/bandwidth/voice_lib/voice.rb +0 -48
- data/lib/bandwidth/web_rtc_lib/utils/web_rtc_transfer.rb +0 -18
- data/lib/bandwidth/web_rtc_lib/web_rtc/client.rb +0 -60
- data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/api_controller.rb +0 -703
- data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/base_controller.rb +0 -47
- data/lib/bandwidth/web_rtc_lib/web_rtc/exceptions/error_exception.rb +0 -37
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb +0 -62
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/device_api_version_enum.rb +0 -17
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/participant.rb +0 -115
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb +0 -48
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/publish_permission_enum.rb +0 -17
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb +0 -60
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/subscriptions.rb +0 -71
- data/lib/bandwidth/web_rtc_lib/web_rtc.rb +0 -22
- data/lib/bandwidth.rb +0 -73
- data/test/controllers/controller_test_base.rb +0 -21
- data/test/http_response_catcher.rb +0 -19
- data/test/integration/test_integration.rb +0 -691
- data/test/test_helper.rb +0 -94
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz: '
|
|
3
|
+
metadata.gz: f2989e92fa630c0a43a248ed8e99ac3063f9272698cec4700e253dda019675b1
|
|
4
|
+
data.tar.gz: '094d7edc84c2a73b52b939a6a99f4f3a653c3b5be4a71bed33accf6aa306f15c'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 316a05265215c15274a0672e0911c187f701f0b9e601285ad8b35fa37a7a5ea70f97e0e50fb774c9deb9e0d89d062fb3a343e39e1a6e2f9e40b2dff4441a5402
|
|
7
|
+
data.tar.gz: 792a9c5b2977783e86c18cadbd5fe47e26b127a983a37e88c4b6c7bdb7c327968c51d31a1f53918c92c80320c6c3744b8cf8700ba209f39435b1897d4cea933d
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
bandwidth-sdk (11.0.0)
|
|
5
|
+
faraday (>= 1.0.1, < 3.0)
|
|
6
|
+
faraday-multipart
|
|
7
|
+
ox (~> 2.4)
|
|
8
|
+
|
|
9
|
+
GEM
|
|
10
|
+
remote: https://rubygems.org/
|
|
11
|
+
specs:
|
|
12
|
+
addressable (2.8.5)
|
|
13
|
+
public_suffix (>= 2.0.2, < 6.0)
|
|
14
|
+
ast (2.4.2)
|
|
15
|
+
base64 (0.1.1)
|
|
16
|
+
byebug (11.1.3)
|
|
17
|
+
coderay (1.1.3)
|
|
18
|
+
crack (0.4.5)
|
|
19
|
+
rexml
|
|
20
|
+
diff-lcs (1.5.0)
|
|
21
|
+
docile (1.4.0)
|
|
22
|
+
faraday (2.7.11)
|
|
23
|
+
base64
|
|
24
|
+
faraday-net_http (>= 2.0, < 3.1)
|
|
25
|
+
ruby2_keywords (>= 0.0.4)
|
|
26
|
+
faraday-multipart (1.0.4)
|
|
27
|
+
multipart-post (~> 2)
|
|
28
|
+
faraday-net_http (3.0.2)
|
|
29
|
+
hashdiff (1.0.1)
|
|
30
|
+
json (2.6.3)
|
|
31
|
+
method_source (1.0.0)
|
|
32
|
+
multipart-post (2.3.0)
|
|
33
|
+
ox (2.14.17)
|
|
34
|
+
parallel (1.23.0)
|
|
35
|
+
parser (3.2.2.3)
|
|
36
|
+
ast (~> 2.4.1)
|
|
37
|
+
racc
|
|
38
|
+
pry (0.14.2)
|
|
39
|
+
coderay (~> 1.1)
|
|
40
|
+
method_source (~> 1.0)
|
|
41
|
+
pry-byebug (3.10.1)
|
|
42
|
+
byebug (~> 11.0)
|
|
43
|
+
pry (>= 0.13, < 0.15)
|
|
44
|
+
public_suffix (5.0.3)
|
|
45
|
+
racc (1.7.1)
|
|
46
|
+
rainbow (3.1.1)
|
|
47
|
+
rake (13.0.6)
|
|
48
|
+
regexp_parser (2.8.1)
|
|
49
|
+
rexml (3.2.6)
|
|
50
|
+
rspec (3.12.0)
|
|
51
|
+
rspec-core (~> 3.12.0)
|
|
52
|
+
rspec-expectations (~> 3.12.0)
|
|
53
|
+
rspec-mocks (~> 3.12.0)
|
|
54
|
+
rspec-core (3.12.2)
|
|
55
|
+
rspec-support (~> 3.12.0)
|
|
56
|
+
rspec-expectations (3.12.3)
|
|
57
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
58
|
+
rspec-support (~> 3.12.0)
|
|
59
|
+
rspec-mocks (3.12.6)
|
|
60
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
61
|
+
rspec-support (~> 3.12.0)
|
|
62
|
+
rspec-support (3.12.1)
|
|
63
|
+
rubocop (1.52.1)
|
|
64
|
+
json (~> 2.3)
|
|
65
|
+
parallel (~> 1.10)
|
|
66
|
+
parser (>= 3.2.2.3)
|
|
67
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
68
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
69
|
+
rexml (>= 3.2.5, < 4.0)
|
|
70
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
|
71
|
+
ruby-progressbar (~> 1.7)
|
|
72
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
|
73
|
+
rubocop-ast (1.29.0)
|
|
74
|
+
parser (>= 3.2.1.0)
|
|
75
|
+
ruby-progressbar (1.13.0)
|
|
76
|
+
ruby2_keywords (0.0.5)
|
|
77
|
+
simplecov (0.21.2)
|
|
78
|
+
docile (~> 1.1)
|
|
79
|
+
simplecov-html (~> 0.11)
|
|
80
|
+
simplecov_json_formatter (~> 0.1)
|
|
81
|
+
simplecov-html (0.12.3)
|
|
82
|
+
simplecov_json_formatter (0.1.4)
|
|
83
|
+
unicode-display_width (2.4.2)
|
|
84
|
+
webmock (3.18.1)
|
|
85
|
+
addressable (>= 2.8.0)
|
|
86
|
+
crack (>= 0.3.2)
|
|
87
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
|
88
|
+
|
|
89
|
+
PLATFORMS
|
|
90
|
+
x86_64-linux
|
|
91
|
+
|
|
92
|
+
DEPENDENCIES
|
|
93
|
+
bandwidth-sdk!
|
|
94
|
+
pry-byebug
|
|
95
|
+
rake (~> 13.0.1)
|
|
96
|
+
rspec (~> 3.6, >= 3.6.0)
|
|
97
|
+
rubocop (~> 1.52.0)
|
|
98
|
+
simplecov (~> 0.21.2)
|
|
99
|
+
webmock (~> 3.18.0)
|
|
100
|
+
|
|
101
|
+
BUNDLED WITH
|
|
102
|
+
2.2.33
|
data/README.md
CHANGED
|
@@ -1,175 +1,240 @@
|
|
|
1
|
-
#
|
|
1
|
+
# bandwidth-sdk
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/rb/bandwidth-sdk)
|
|
4
|
+
[](https://github.com/Bandwidth/ruby-sdk/actions/workflows/test-nightly.yml)
|
|
5
|
+
[](https://github.com/rubocop/rubocop)
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
| **OS** | **Ruby** |
|
|
7
9
|
|:---:|:---:|
|
|
8
|
-
| Windows
|
|
9
|
-
| Windows
|
|
10
|
-
| Ubuntu
|
|
11
|
-
| Ubuntu
|
|
10
|
+
| Windows 2019 | 2.7, 3.0, 3.1, 3.2 |
|
|
11
|
+
| Windows 2022 | 2.7, 3.0, 3.1, 3.2 |
|
|
12
|
+
| Ubuntu 20.04 | 2.7, 3.0, 3.1, 3.2 |
|
|
13
|
+
| Ubuntu 22.04 | 2.7, 3.0, 3.1, 3.2 |
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
Bandwidth - the Ruby gem for the Bandwidth
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
# Generated with the command:
|
|
18
|
+
`openapi-generator generate -g ruby -i bandwidth.yml -c openapi-config.yml -o ./`
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
gem install bandwidth-sdk
|
|
19
|
-
```
|
|
20
|
+
Bandwidth's Communication APIs
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
include Bandwidth::Voice
|
|
28
|
-
include Bandwidth::Messaging
|
|
29
|
-
include Bandwidth::WebRtc
|
|
30
|
-
include Bandwidth::TwoFactorAuth
|
|
31
|
-
|
|
32
|
-
bandwidth_client = Bandwidth::Client.new(
|
|
33
|
-
voice_basic_auth_user_name: 'username',
|
|
34
|
-
voice_basic_auth_password: 'password',
|
|
35
|
-
messaging_basic_auth_user_name: 'username',
|
|
36
|
-
messaging_basic_auth_password: 'username',
|
|
37
|
-
two_factor_auth_basic_auth_user_name: 'username',
|
|
38
|
-
two_factor_auth_basic_auth_password: 'password',
|
|
39
|
-
web_rtc_basic_auth_user_name: 'username',
|
|
40
|
-
web_rtc_basic_auth_password: 'password'
|
|
41
|
-
)
|
|
42
|
-
account_id = "12345"
|
|
43
|
-
```
|
|
24
|
+
- API version: 1.0.0
|
|
25
|
+
- Package version: 11.0.0
|
|
26
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
27
|
+
For more information, please visit [https://dev.bandwidth.com](https://dev.bandwidth.com)
|
|
44
28
|
|
|
45
|
-
|
|
29
|
+
## Installation
|
|
46
30
|
|
|
47
|
-
|
|
48
|
-
voice_client = bandwidth_client.voice_client.client
|
|
31
|
+
### Build a gem
|
|
49
32
|
|
|
50
|
-
|
|
51
|
-
body.from = '+16666666666'
|
|
52
|
-
body.to = '+17777777777'
|
|
53
|
-
body.answer_url = 'https://test.com'
|
|
54
|
-
body.application_id = '3-d-4-b-5'
|
|
33
|
+
To build the Ruby code into a gem:
|
|
55
34
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
puts response.data.call_id #c-d45a41e5-bcb12581-b18e-4bdc-9874-6r3235dfweao
|
|
59
|
-
puts response.status_code #201
|
|
60
|
-
rescue Bandwidth::ErrorResponseException => e
|
|
61
|
-
puts e.description #Invalid to: must be an E164 telephone number
|
|
62
|
-
puts e.response_code #400
|
|
63
|
-
end
|
|
35
|
+
```shell
|
|
36
|
+
gem build bandwidth-sdk.gemspec
|
|
64
37
|
```
|
|
65
38
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
```ruby
|
|
69
|
-
response = Bandwidth::Voice::Response.new()
|
|
70
|
-
hangup = Bandwidth::Voice::Hangup.new()
|
|
39
|
+
Then either install the gem locally:
|
|
71
40
|
|
|
72
|
-
|
|
73
|
-
|
|
41
|
+
```shell
|
|
42
|
+
gem install ./bandwidth-sdk-11.0.0.gem
|
|
74
43
|
```
|
|
75
44
|
|
|
76
|
-
|
|
45
|
+
(for development, run `gem install --dev ./bandwidth-sdk-11.0.0.gem` to install the development dependencies)
|
|
77
46
|
|
|
78
|
-
|
|
79
|
-
messaging_client = bandwidth_client.messaging_client.client
|
|
47
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
80
48
|
|
|
81
|
-
|
|
82
|
-
body.application_id = '1-2-3'
|
|
83
|
-
body.to = ['+17777777777']
|
|
84
|
-
body.from = '+18888888888'
|
|
85
|
-
body.text = 'Hello from Bandwidth'
|
|
49
|
+
Finally add this to the Gemfile:
|
|
86
50
|
|
|
87
|
-
|
|
88
|
-
response = messaging_client.create_message(account_id, body)
|
|
89
|
-
puts response.data.id #1570740275373xbn7mbhsfewasdr
|
|
90
|
-
puts response.status_code #202
|
|
91
|
-
rescue Bandwidth::GenericClientException => e
|
|
92
|
-
puts e.description #Access is denied
|
|
93
|
-
puts e.response_code #403
|
|
94
|
-
rescue Bandwidth::PathClientException => e
|
|
95
|
-
puts e.message #Your request could not be accepted.
|
|
96
|
-
puts e.response_code #400
|
|
97
|
-
end
|
|
98
|
-
```
|
|
51
|
+
gem 'bandwidth-sdk', '~> 11.0.0'
|
|
99
52
|
|
|
100
|
-
###
|
|
53
|
+
### Install from Git
|
|
101
54
|
|
|
102
|
-
|
|
103
|
-
auth_client = bandwidth_client.two_factor_auth_client.mfa
|
|
104
|
-
|
|
105
|
-
from_phone = "+18888888888"
|
|
106
|
-
to_phone = "+17777777777"
|
|
107
|
-
messaging_application_id = "1-d-b"
|
|
108
|
-
scope = "scope"
|
|
109
|
-
digits = 6
|
|
110
|
-
|
|
111
|
-
body = TwoFactorCodeRequestSchema.new
|
|
112
|
-
body.from = from_phone
|
|
113
|
-
body.to = to_phone
|
|
114
|
-
body.application_id = messaging_application_id
|
|
115
|
-
body.scope = scope
|
|
116
|
-
body.digits = digits
|
|
117
|
-
body.message = "Your temporary {NAME} {SCOPE} code is {CODE}"
|
|
118
|
-
|
|
119
|
-
auth_client.create_messaging_two_factor(account_id, body)
|
|
120
|
-
|
|
121
|
-
code = "123456" #This is the user input to validate
|
|
122
|
-
|
|
123
|
-
body = TwoFactorVerifyRequestSchema.new
|
|
124
|
-
body.from = from_phone
|
|
125
|
-
body.to = to_phone
|
|
126
|
-
body.application_id = application_id
|
|
127
|
-
body.scope = scope
|
|
128
|
-
body.code = code
|
|
129
|
-
body.digits = digits
|
|
130
|
-
body.expiration_time_in_minutes = 3
|
|
131
|
-
|
|
132
|
-
response = auth_client.create_verify_two_factor(account_id, body)
|
|
133
|
-
puts "Auth status: " + response.data.valid.to_s
|
|
134
|
-
```
|
|
55
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
|
135
56
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
```ruby
|
|
139
|
-
web_rtc_client = bandwidth_client.web_rtc_client.client
|
|
57
|
+
gem 'bandwidth-sdk', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
|
140
58
|
|
|
141
|
-
|
|
142
|
-
create_session_body.tag = 'new-session'
|
|
59
|
+
### Include the Ruby code directly
|
|
143
60
|
|
|
144
|
-
|
|
145
|
-
session_id = create_session_response.data.id
|
|
146
|
-
puts session_id
|
|
61
|
+
Include the Ruby code directly using `-I` as follows:
|
|
147
62
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
PublishPermissionEnum::VIDEO
|
|
152
|
-
]
|
|
153
|
-
create_participant_body.callback_url = "https://sample.com"
|
|
63
|
+
```shell
|
|
64
|
+
ruby -Ilib script.rb
|
|
65
|
+
```
|
|
154
66
|
|
|
155
|
-
|
|
156
|
-
participant_id = create_participant_response.data.participant.id
|
|
157
|
-
puts participant_id
|
|
67
|
+
## Getting Started
|
|
158
68
|
|
|
159
|
-
|
|
160
|
-
body.session_id = "1234-abcd"
|
|
69
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
|
161
70
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
71
|
+
```ruby
|
|
72
|
+
# Load the gem
|
|
73
|
+
require 'bandwidth-sdk'
|
|
74
|
+
|
|
75
|
+
# Setup authorization
|
|
76
|
+
Bandwidth.configure do |config|
|
|
77
|
+
# Configure HTTP basic authorization: Basic
|
|
78
|
+
config.username = 'YOUR_USERNAME'
|
|
79
|
+
config.password = 'YOUR_PASSWORD'
|
|
80
|
+
# Configure faraday connection
|
|
81
|
+
config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
|
|
82
|
+
end
|
|
166
83
|
|
|
167
|
-
|
|
84
|
+
api_instance = Bandwidth::CallsApi.new
|
|
85
|
+
account_id = '9900000' # String | Your Bandwidth Account ID.
|
|
86
|
+
create_call = Bandwidth::CreateCall.new({to: '+19195551234', from: '+19195554321', application_id: '1234-qwer-5679-tyui', answer_url: 'https://www.myCallbackServer.example/webhooks/answer'}) # CreateCall | JSON object containing information to create an outbound call
|
|
168
87
|
|
|
169
|
-
|
|
88
|
+
begin
|
|
89
|
+
#Create Call
|
|
90
|
+
result = api_instance.create_call(account_id, create_call)
|
|
91
|
+
p result
|
|
92
|
+
rescue Bandwidth::ApiError => e
|
|
93
|
+
puts "Exception when calling CallsApi->create_call: #{e}"
|
|
94
|
+
end
|
|
170
95
|
|
|
171
|
-
|
|
96
|
+
```
|
|
172
97
|
|
|
173
|
-
##
|
|
98
|
+
## Documentation for API Endpoints
|
|
99
|
+
|
|
100
|
+
All URIs are relative to *http://localhost*
|
|
101
|
+
|
|
102
|
+
Class | Method | HTTP request | Description
|
|
103
|
+
------------ | ------------- | ------------- | -------------
|
|
104
|
+
*Bandwidth::CallsApi* | [**create_call**](docs/CallsApi.md#create_call) | **POST** /accounts/{accountId}/calls | Create Call
|
|
105
|
+
*Bandwidth::CallsApi* | [**get_call_state**](docs/CallsApi.md#get_call_state) | **GET** /accounts/{accountId}/calls/{callId} | Get Call State Information
|
|
106
|
+
*Bandwidth::CallsApi* | [**update_call**](docs/CallsApi.md#update_call) | **POST** /accounts/{accountId}/calls/{callId} | Update Call
|
|
107
|
+
*Bandwidth::CallsApi* | [**update_call_bxml**](docs/CallsApi.md#update_call_bxml) | **PUT** /accounts/{accountId}/calls/{callId}/bxml | Update Call BXML
|
|
108
|
+
*Bandwidth::ConferencesApi* | [**download_conference_recording**](docs/ConferencesApi.md#download_conference_recording) | **GET** /accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}/media | Download Conference Recording
|
|
109
|
+
*Bandwidth::ConferencesApi* | [**get_conference**](docs/ConferencesApi.md#get_conference) | **GET** /accounts/{accountId}/conferences/{conferenceId} | Get Conference Information
|
|
110
|
+
*Bandwidth::ConferencesApi* | [**get_conference_member**](docs/ConferencesApi.md#get_conference_member) | **GET** /accounts/{accountId}/conferences/{conferenceId}/members/{memberId} | Get Conference Member
|
|
111
|
+
*Bandwidth::ConferencesApi* | [**get_conference_recording**](docs/ConferencesApi.md#get_conference_recording) | **GET** /accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId} | Get Conference Recording Information
|
|
112
|
+
*Bandwidth::ConferencesApi* | [**list_conference_recordings**](docs/ConferencesApi.md#list_conference_recordings) | **GET** /accounts/{accountId}/conferences/{conferenceId}/recordings | Get Conference Recordings
|
|
113
|
+
*Bandwidth::ConferencesApi* | [**list_conferences**](docs/ConferencesApi.md#list_conferences) | **GET** /accounts/{accountId}/conferences | Get Conferences
|
|
114
|
+
*Bandwidth::ConferencesApi* | [**update_conference**](docs/ConferencesApi.md#update_conference) | **POST** /accounts/{accountId}/conferences/{conferenceId} | Update Conference
|
|
115
|
+
*Bandwidth::ConferencesApi* | [**update_conference_bxml**](docs/ConferencesApi.md#update_conference_bxml) | **PUT** /accounts/{accountId}/conferences/{conferenceId}/bxml | Update Conference BXML
|
|
116
|
+
*Bandwidth::ConferencesApi* | [**update_conference_member**](docs/ConferencesApi.md#update_conference_member) | **PUT** /accounts/{accountId}/conferences/{conferenceId}/members/{memberId} | Update Conference Member
|
|
117
|
+
*Bandwidth::MFAApi* | [**generate_messaging_code**](docs/MFAApi.md#generate_messaging_code) | **POST** /accounts/{accountId}/code/messaging | Messaging Authentication Code
|
|
118
|
+
*Bandwidth::MFAApi* | [**generate_voice_code**](docs/MFAApi.md#generate_voice_code) | **POST** /accounts/{accountId}/code/voice | Voice Authentication Code
|
|
119
|
+
*Bandwidth::MFAApi* | [**verify_code**](docs/MFAApi.md#verify_code) | **POST** /accounts/{accountId}/code/verify | Verify Authentication Code
|
|
120
|
+
*Bandwidth::MediaApi* | [**delete_media**](docs/MediaApi.md#delete_media) | **DELETE** /users/{accountId}/media/{mediaId} | Delete Media
|
|
121
|
+
*Bandwidth::MediaApi* | [**get_media**](docs/MediaApi.md#get_media) | **GET** /users/{accountId}/media/{mediaId} | Get Media
|
|
122
|
+
*Bandwidth::MediaApi* | [**list_media**](docs/MediaApi.md#list_media) | **GET** /users/{accountId}/media | List Media
|
|
123
|
+
*Bandwidth::MediaApi* | [**upload_media**](docs/MediaApi.md#upload_media) | **PUT** /users/{accountId}/media/{mediaId} | Upload Media
|
|
124
|
+
*Bandwidth::MessagesApi* | [**create_message**](docs/MessagesApi.md#create_message) | **POST** /users/{accountId}/messages | Create Message
|
|
125
|
+
*Bandwidth::MessagesApi* | [**list_messages**](docs/MessagesApi.md#list_messages) | **GET** /users/{accountId}/messages | List Messages
|
|
126
|
+
*Bandwidth::PhoneNumberLookupApi* | [**create_lookup**](docs/PhoneNumberLookupApi.md#create_lookup) | **POST** /accounts/{accountId}/tnlookup | Create Lookup
|
|
127
|
+
*Bandwidth::PhoneNumberLookupApi* | [**get_lookup_status**](docs/PhoneNumberLookupApi.md#get_lookup_status) | **GET** /accounts/{accountId}/tnlookup/{requestId} | Get Lookup Request Status
|
|
128
|
+
*Bandwidth::RecordingsApi* | [**delete_call_transcription**](docs/RecordingsApi.md#delete_call_transcription) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Delete Transcription
|
|
129
|
+
*Bandwidth::RecordingsApi* | [**delete_recording**](docs/RecordingsApi.md#delete_recording) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Delete Recording
|
|
130
|
+
*Bandwidth::RecordingsApi* | [**delete_recording_media**](docs/RecordingsApi.md#delete_recording_media) | **DELETE** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Delete Recording Media
|
|
131
|
+
*Bandwidth::RecordingsApi* | [**download_call_recording**](docs/RecordingsApi.md#download_call_recording) | **GET** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Download Recording
|
|
132
|
+
*Bandwidth::RecordingsApi* | [**get_call_recording**](docs/RecordingsApi.md#get_call_recording) | **GET** /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Get Call Recording
|
|
133
|
+
*Bandwidth::RecordingsApi* | [**get_call_transcription**](docs/RecordingsApi.md#get_call_transcription) | **GET** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Get Transcription
|
|
134
|
+
*Bandwidth::RecordingsApi* | [**list_account_call_recordings**](docs/RecordingsApi.md#list_account_call_recordings) | **GET** /accounts/{accountId}/recordings | Get Call Recordings
|
|
135
|
+
*Bandwidth::RecordingsApi* | [**list_call_recordings**](docs/RecordingsApi.md#list_call_recordings) | **GET** /accounts/{accountId}/calls/{callId}/recordings | List Call Recordings
|
|
136
|
+
*Bandwidth::RecordingsApi* | [**transcribe_call_recording**](docs/RecordingsApi.md#transcribe_call_recording) | **POST** /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Create Transcription Request
|
|
137
|
+
*Bandwidth::RecordingsApi* | [**update_call_recording_state**](docs/RecordingsApi.md#update_call_recording_state) | **PUT** /accounts/{accountId}/calls/{callId}/recording | Update Recording
|
|
138
|
+
*Bandwidth::StatisticsApi* | [**get_statistics**](docs/StatisticsApi.md#get_statistics) | **GET** /accounts/{accountId}/statistics | Get Account Statistics
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
## Documentation for Models
|
|
142
|
+
|
|
143
|
+
- [Bandwidth::AccountStatistics](docs/AccountStatistics.md)
|
|
144
|
+
- [Bandwidth::AnswerCallback](docs/AnswerCallback.md)
|
|
145
|
+
- [Bandwidth::BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
|
|
146
|
+
- [Bandwidth::BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
|
|
147
|
+
- [Bandwidth::CallDirectionEnum](docs/CallDirectionEnum.md)
|
|
148
|
+
- [Bandwidth::CallRecordingMetadata](docs/CallRecordingMetadata.md)
|
|
149
|
+
- [Bandwidth::CallState](docs/CallState.md)
|
|
150
|
+
- [Bandwidth::CallStateEnum](docs/CallStateEnum.md)
|
|
151
|
+
- [Bandwidth::CallbackMethodEnum](docs/CallbackMethodEnum.md)
|
|
152
|
+
- [Bandwidth::CodeRequest](docs/CodeRequest.md)
|
|
153
|
+
- [Bandwidth::Conference](docs/Conference.md)
|
|
154
|
+
- [Bandwidth::ConferenceCompletedCallback](docs/ConferenceCompletedCallback.md)
|
|
155
|
+
- [Bandwidth::ConferenceCreatedCallback](docs/ConferenceCreatedCallback.md)
|
|
156
|
+
- [Bandwidth::ConferenceMember](docs/ConferenceMember.md)
|
|
157
|
+
- [Bandwidth::ConferenceMemberExitCallback](docs/ConferenceMemberExitCallback.md)
|
|
158
|
+
- [Bandwidth::ConferenceMemberJoinCallback](docs/ConferenceMemberJoinCallback.md)
|
|
159
|
+
- [Bandwidth::ConferenceRecordingAvailableCallback](docs/ConferenceRecordingAvailableCallback.md)
|
|
160
|
+
- [Bandwidth::ConferenceRecordingMetadata](docs/ConferenceRecordingMetadata.md)
|
|
161
|
+
- [Bandwidth::ConferenceRedirectCallback](docs/ConferenceRedirectCallback.md)
|
|
162
|
+
- [Bandwidth::ConferenceStateEnum](docs/ConferenceStateEnum.md)
|
|
163
|
+
- [Bandwidth::CreateCall](docs/CreateCall.md)
|
|
164
|
+
- [Bandwidth::CreateCallResponse](docs/CreateCallResponse.md)
|
|
165
|
+
- [Bandwidth::CreateLookupResponse](docs/CreateLookupResponse.md)
|
|
166
|
+
- [Bandwidth::CreateMessageRequestError](docs/CreateMessageRequestError.md)
|
|
167
|
+
- [Bandwidth::DeferredResult](docs/DeferredResult.md)
|
|
168
|
+
- [Bandwidth::DisconnectCallback](docs/DisconnectCallback.md)
|
|
169
|
+
- [Bandwidth::Diversion](docs/Diversion.md)
|
|
170
|
+
- [Bandwidth::DtmfCallback](docs/DtmfCallback.md)
|
|
171
|
+
- [Bandwidth::FieldError](docs/FieldError.md)
|
|
172
|
+
- [Bandwidth::FileFormatEnum](docs/FileFormatEnum.md)
|
|
173
|
+
- [Bandwidth::GatherCallback](docs/GatherCallback.md)
|
|
174
|
+
- [Bandwidth::InboundMessageCallback](docs/InboundMessageCallback.md)
|
|
175
|
+
- [Bandwidth::InboundMessageCallbackMessage](docs/InboundMessageCallbackMessage.md)
|
|
176
|
+
- [Bandwidth::InitiateCallback](docs/InitiateCallback.md)
|
|
177
|
+
- [Bandwidth::ListMessageDirectionEnum](docs/ListMessageDirectionEnum.md)
|
|
178
|
+
- [Bandwidth::ListMessageItem](docs/ListMessageItem.md)
|
|
179
|
+
- [Bandwidth::LookupRequest](docs/LookupRequest.md)
|
|
180
|
+
- [Bandwidth::LookupResult](docs/LookupResult.md)
|
|
181
|
+
- [Bandwidth::LookupStatus](docs/LookupStatus.md)
|
|
182
|
+
- [Bandwidth::LookupStatusEnum](docs/LookupStatusEnum.md)
|
|
183
|
+
- [Bandwidth::MachineDetectionCompleteCallback](docs/MachineDetectionCompleteCallback.md)
|
|
184
|
+
- [Bandwidth::MachineDetectionConfiguration](docs/MachineDetectionConfiguration.md)
|
|
185
|
+
- [Bandwidth::MachineDetectionModeEnum](docs/MachineDetectionModeEnum.md)
|
|
186
|
+
- [Bandwidth::MachineDetectionResult](docs/MachineDetectionResult.md)
|
|
187
|
+
- [Bandwidth::Media](docs/Media.md)
|
|
188
|
+
- [Bandwidth::Message](docs/Message.md)
|
|
189
|
+
- [Bandwidth::MessageDeliveredCallback](docs/MessageDeliveredCallback.md)
|
|
190
|
+
- [Bandwidth::MessageDeliveredCallbackMessage](docs/MessageDeliveredCallbackMessage.md)
|
|
191
|
+
- [Bandwidth::MessageDirectionEnum](docs/MessageDirectionEnum.md)
|
|
192
|
+
- [Bandwidth::MessageFailedCallback](docs/MessageFailedCallback.md)
|
|
193
|
+
- [Bandwidth::MessageFailedCallbackMessage](docs/MessageFailedCallbackMessage.md)
|
|
194
|
+
- [Bandwidth::MessageRequest](docs/MessageRequest.md)
|
|
195
|
+
- [Bandwidth::MessageSendingCallback](docs/MessageSendingCallback.md)
|
|
196
|
+
- [Bandwidth::MessageSendingCallbackMessage](docs/MessageSendingCallbackMessage.md)
|
|
197
|
+
- [Bandwidth::MessageStatusEnum](docs/MessageStatusEnum.md)
|
|
198
|
+
- [Bandwidth::MessageTypeEnum](docs/MessageTypeEnum.md)
|
|
199
|
+
- [Bandwidth::MessagesList](docs/MessagesList.md)
|
|
200
|
+
- [Bandwidth::MessagingCodeResponse](docs/MessagingCodeResponse.md)
|
|
201
|
+
- [Bandwidth::MessagingRequestError](docs/MessagingRequestError.md)
|
|
202
|
+
- [Bandwidth::MfaForbiddenRequestError](docs/MfaForbiddenRequestError.md)
|
|
203
|
+
- [Bandwidth::MfaRequestError](docs/MfaRequestError.md)
|
|
204
|
+
- [Bandwidth::MfaUnauthorizedRequestError](docs/MfaUnauthorizedRequestError.md)
|
|
205
|
+
- [Bandwidth::PageInfo](docs/PageInfo.md)
|
|
206
|
+
- [Bandwidth::PriorityEnum](docs/PriorityEnum.md)
|
|
207
|
+
- [Bandwidth::RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
|
|
208
|
+
- [Bandwidth::RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
|
|
209
|
+
- [Bandwidth::RecordingStateEnum](docs/RecordingStateEnum.md)
|
|
210
|
+
- [Bandwidth::RedirectCallback](docs/RedirectCallback.md)
|
|
211
|
+
- [Bandwidth::RedirectMethodEnum](docs/RedirectMethodEnum.md)
|
|
212
|
+
- [Bandwidth::StirShaken](docs/StirShaken.md)
|
|
213
|
+
- [Bandwidth::Tag](docs/Tag.md)
|
|
214
|
+
- [Bandwidth::TnLookupRequestError](docs/TnLookupRequestError.md)
|
|
215
|
+
- [Bandwidth::TranscribeRecording](docs/TranscribeRecording.md)
|
|
216
|
+
- [Bandwidth::Transcription](docs/Transcription.md)
|
|
217
|
+
- [Bandwidth::TranscriptionAvailableCallback](docs/TranscriptionAvailableCallback.md)
|
|
218
|
+
- [Bandwidth::TranscriptionList](docs/TranscriptionList.md)
|
|
219
|
+
- [Bandwidth::TranscriptionMetadata](docs/TranscriptionMetadata.md)
|
|
220
|
+
- [Bandwidth::TransferAnswerCallback](docs/TransferAnswerCallback.md)
|
|
221
|
+
- [Bandwidth::TransferCompleteCallback](docs/TransferCompleteCallback.md)
|
|
222
|
+
- [Bandwidth::TransferDisconnectCallback](docs/TransferDisconnectCallback.md)
|
|
223
|
+
- [Bandwidth::UpdateCall](docs/UpdateCall.md)
|
|
224
|
+
- [Bandwidth::UpdateCallRecording](docs/UpdateCallRecording.md)
|
|
225
|
+
- [Bandwidth::UpdateConference](docs/UpdateConference.md)
|
|
226
|
+
- [Bandwidth::UpdateConferenceMember](docs/UpdateConferenceMember.md)
|
|
227
|
+
- [Bandwidth::VerifyCodeRequest](docs/VerifyCodeRequest.md)
|
|
228
|
+
- [Bandwidth::VerifyCodeResponse](docs/VerifyCodeResponse.md)
|
|
229
|
+
- [Bandwidth::VoiceApiError](docs/VoiceApiError.md)
|
|
230
|
+
- [Bandwidth::VoiceCodeResponse](docs/VoiceCodeResponse.md)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
## Documentation for Authorization
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
Authentication schemes defined for the API:
|
|
237
|
+
### Basic
|
|
238
|
+
|
|
239
|
+
- **Type**: HTTP basic authentication
|
|
174
240
|
|
|
175
|
-
Information for credentials for this package can be found at https://dev.bandwidth.com/guides/accountCredentials.html
|
data/Rakefile
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
require 'bundler/gem_tasks'
|
|
2
|
+
|
|
3
|
+
begin
|
|
4
|
+
require 'rspec/core/rake_task'
|
|
5
|
+
|
|
6
|
+
desc 'Run All Tests'
|
|
7
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
8
|
+
|
|
9
|
+
desc 'Run Only Unit Tests'
|
|
10
|
+
RSpec::Core::RakeTask.new(:unit) do |t|
|
|
11
|
+
t.pattern = './spec/api/**/*_spec.rb'
|
|
12
|
+
end
|
|
13
|
+
RSpec::Core::RakeTask.new(:unit) do |t|
|
|
14
|
+
t.pattern = './spec/models/**/*_spec.rb'
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
desc 'Run Only Integration Tests'
|
|
18
|
+
RSpec::Core::RakeTask.new(:integration) do |t|
|
|
19
|
+
t.pattern = './spec/integration/*_spec.rb'
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
desc 'Run Only Client Unit Tests'
|
|
23
|
+
RSpec::Core::RakeTask.new(:client) do |t|
|
|
24
|
+
t.pattern = './spec/*_spec.rb'
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
task default: :spec
|
|
28
|
+
rescue LoadError
|
|
29
|
+
# no rspec available
|
|
30
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
=begin
|
|
4
|
+
#Bandwidth
|
|
5
|
+
|
|
6
|
+
#Bandwidth's Communication APIs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: letstalk@bandwidth.com
|
|
10
|
+
Generated by: https://openapi-generator.tech
|
|
11
|
+
OpenAPI Generator version: 7.0.0
|
|
12
|
+
|
|
13
|
+
=end
|
|
14
|
+
|
|
15
|
+
$:.push File.expand_path('../lib', __FILE__)
|
|
16
|
+
require 'bandwidth-sdk/version'
|
|
17
|
+
|
|
18
|
+
Gem::Specification.new do |s|
|
|
19
|
+
s.name = 'bandwidth-sdk'
|
|
20
|
+
s.version = Bandwidth::VERSION
|
|
21
|
+
s.platform = Gem::Platform::RUBY
|
|
22
|
+
s.authors = ['Bandwidth']
|
|
23
|
+
s.email = ['dx@bandwidth.com']
|
|
24
|
+
s.homepage = 'https://github.com/Bandwidth/ruby-sdk'
|
|
25
|
+
s.summary = 'Bandwidth Ruby SDK'
|
|
26
|
+
s.description = 'The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs'
|
|
27
|
+
s.license = 'MIT'
|
|
28
|
+
s.required_ruby_version = '>=2.7'
|
|
29
|
+
|
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
|
|
31
|
+
s.add_runtime_dependency 'faraday-multipart'
|
|
32
|
+
s.add_runtime_dependency 'ox', '~> 2.4'
|
|
33
|
+
|
|
34
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
35
|
+
|
|
36
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
|
37
|
+
s.test_files = `find spec/*`.split("\n")
|
|
38
|
+
s.executables = []
|
|
39
|
+
s.require_paths = ['lib']
|
|
40
|
+
end
|