Skip to content

Commit

Permalink
VIDEO-4288 Add ENV vars for api_base
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristine Sevilla committed Mar 25, 2024
1 parent ff404af commit 842e892
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/twilio-ruby/rest/api_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class ApiBase < Domain
#
def initialize(twilio)
super(twilio)
@base_url = "https://api.twilio.com"
@host = "api.twilio.com"
@port = 443
@base_url = "#{ENV.fetch('VP_TWILIO_VIDEO_PROTOCOL', 'https')}://#{ENV.fetch('VP_TWILIO_VIDEO_HOST', 'api.twilio.com')}"
@host = ENV.fetch('VP_TWILIO_VIDEO_HOST', 'api.twilio.com')
@port = ENV.fetch('VP_TWILIO_VIDEO_PORT', 443)
@v2010 = nil
end

Expand Down

0 comments on commit 842e892

Please sign in to comment.