lib/bandwidth/voice_lib/voice/client.rb in bandwidth-sdk-3.1.0 vs lib/bandwidth/voice_lib/voice/client.rb in bandwidth-sdk-3.2.0
- old
+ new
@@ -17,19 +17,23 @@
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',
+ two_factor_auth_basic_auth_user_name: 'TODO: Replace',
+ two_factor_auth_basic_auth_password: 'TODO: Replace',
voice_basic_auth_user_name: 'TODO: Replace',
voice_basic_auth_password: 'TODO: Replace', config: nil)
@config = if config.nil?
Configuration.new(timeout: timeout,
max_retries: max_retries,
retry_interval: retry_interval,
backoff_factor: backoff_factor,
environment: environment,
messaging_basic_auth_user_name: messaging_basic_auth_user_name,
messaging_basic_auth_password: messaging_basic_auth_password,
+ two_factor_auth_basic_auth_user_name: two_factor_auth_basic_auth_user_name,
+ two_factor_auth_basic_auth_password: two_factor_auth_basic_auth_password,
voice_basic_auth_user_name: voice_basic_auth_user_name,
voice_basic_auth_password: voice_basic_auth_password)
else
config
end