We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb0b229 commit 07ec2f3Copy full SHA for 07ec2f3
lib/twilio-ruby/http/org_token_manager.rb
@@ -19,7 +19,7 @@ def initialize(grant_type, client_id, client_secret, code = nil, redirect_uri =
19
20
def fetch_access_token
21
client = Twilio::REST::Client.new
22
- token_instance = client.iam.v1.token.create(grant_type: @grant_type,
+ token_instance = client.oauth.v2.token.create(grant_type: @grant_type,
23
client_id: @client_id, client_secret: @client_secret)
24
token_instance.access_token
25
end
0 commit comments