lib/bandwidth/configuration.rb in bandwidth-sdk-1.0.1 vs lib/bandwidth/configuration.rb in bandwidth-sdk-1.0.2
- old
+ new
@@ -37,11 +37,11 @@
class << self
attr_reader :environments
end
- def initialize(timeout: 0, max_retries: 0, retry_interval: 1,
+ def initialize(timeout: 60, max_retries: 0, retry_interval: 1,
backoff_factor: 1, environment: Environment::PRODUCTION,
messaging_basic_auth_user_name: 'TODO: Replace',
messaging_basic_auth_password: 'TODO: Replace',
voice_basic_auth_user_name: 'TODO: Replace',
voice_basic_auth_password: 'TODO: Replace')
@@ -113,10 +113,10 @@
# All the environments the SDK can run in.
@environments = {
Environment::PRODUCTION => {
Server::DEFAULT => 'api.bandwidth.com',
Server::MESSAGINGDEFAULT => 'https://messaging.bandwidth.com/api/v2',
- Server::VOICEDEFAULT => 'https://voice.bandwidth.com/api/v2/'
+ Server::VOICEDEFAULT => 'https://voice.bandwidth.com'
}
}
# Generates the appropriate base URI for the environment and the server.
# @param [Configuration::Server] The server enum for which the base URI is