Skip to content

Commit

Permalink
feat: add oauth support for ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
manisha1997 committed Nov 18, 2024
1 parent e706738 commit ae7271a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oauth_test.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require './lib/twilio-ruby'
require './lib/twilio-ruby/base/client_base'
require './lib/twilio-ruby/credential/orgs_credential_provider'
credentialProvider = Twilio::REST::OrgsCredentialProvider.new(ENV['CLIENT_ID'], ENV['CLIENT_SECRET'])
client = Twilio::REST::Client.new.credential_provider(credentialProvider)
credential_provider = Twilio::REST::OrgsCredentialProvider.new(ENV['CLIENT_ID'], ENV['CLIENT_SECRET'])
client = Twilio::REST::Client.new.credential_provider(credential_provider)
response = client.preview_iam.organizations(ENV['ORG_SID'])
.accounts('').fetch
# client_2 = Twilio::REST::Client.new(ENV['SID'], ENV['TOKEN'])
Expand Down

0 comments on commit ae7271a

Please sign in to comment.