From 838903e3fc413c2df96dcf7b35a5d2d5ebac707d Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Wed, 14 May 2025 14:26:19 +0530 Subject: [PATCH] chore: update iam token endpoint --- twilio/http/client_token_manager.py | 2 +- twilio/http/orgs_token_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/twilio/http/client_token_manager.py b/twilio/http/client_token_manager.py index d65acb2ba2..0d42428a2f 100644 --- a/twilio/http/client_token_manager.py +++ b/twilio/http/client_token_manager.py @@ -29,7 +29,7 @@ def __init__( self.client = Client() def fetch_access_token(self): - token_instance = self.client.preview_iam.v1.token.create( + token_instance = self.client.iam.v1.token.create( grant_type=self.grant_type, client_id=self.client_id, client_secret=self.client_secret, diff --git a/twilio/http/orgs_token_manager.py b/twilio/http/orgs_token_manager.py index 767ed270af..76fad5213f 100644 --- a/twilio/http/orgs_token_manager.py +++ b/twilio/http/orgs_token_manager.py @@ -29,7 +29,7 @@ def __init__( self.client = Client() def fetch_access_token(self): - token_instance = self.client.preview_iam.v1.token.create( + token_instance = self.client.iam.v1.token.create( grant_type=self.grant_type, client_id=self.client_id, client_secret=self.client_secret,