From e506902fc03f301e5d99bdb3aa4ccef93a1b7ac6 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Wed, 11 Dec 2024 11:46:26 +0530 Subject: [PATCH] feat: add oauth support for ruby --- oauth_test.rb | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 oauth_test.rb diff --git a/oauth_test.rb b/oauth_test.rb deleted file mode 100644 index 6644281f7..000000000 --- a/oauth_test.rb +++ /dev/null @@ -1,10 +0,0 @@ -require './lib/twilio-ruby' -require './lib/twilio-ruby/base/client_base' -require './lib/twilio-ruby/credential/client_credential_provider' -# credential_provider = Twilio::REST::ClientCredentialProvider.new(ENV['CLIENT_ID'], ENV['CLIENT_SECRET']) -client = Twilio::REST::Client.new(ENV['SID'], ENV['TOKEN']) #.credential_provider(credential_provider) -# response = client.preview_iam.organizations(ENV['ORG_SID']).accounts.list -response = client.messages.list(limit: 20, page_size: 10) -response.each do |record| - puts record.sid -end