Util

Tom edited this page Jul 10, 2017 · 9 revisions

The Util module provides the ability to set default account information so you don't need to pass them to initializers each time.

@account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
@auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'

Twilio.configure do |config|
  config.account_sid = @account_sid
  config.auth_token = @auth_token
end

@client = Twilio::REST::Client.new