Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common configuration variables for authentication #696

Open
ab320012 opened this issue Jan 6, 2024 · 0 comments
Open

Common configuration variables for authentication #696

ab320012 opened this issue Jan 6, 2024 · 0 comments

Comments

@ab320012
Copy link

ab320012 commented Jan 6, 2024

Issue Summary

in line with industry standards i added default authentication parameters to initialize the twilio client so for example if you initialize the configuration variables you will no longer need to add the auth token and sid in the code but can initialize the library with Twilio::REST::Client.new

I added a pr for this as well

Steps to Reproduce

PR #695

Code Snippet

# Your Account SID and Auth Token from console.twilio.com
#account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
# auth_token = "your_auth_token"
ENV['TWILIO_ACCOUNT_SID']
ENV['TWILIO_AUTH_TOKEN']


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

Exception/Log

# paste exception/log here

Technical details:

  • twilio-ruby version: n/a
  • ruby version: n/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant