Skip to content

Commit 6a8c2d8

Browse files
committed
twilio python changes for orgs api uptake
1 parent 661785d commit 6a8c2d8

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

twilio/base/client_base.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def request(
9595
##Using the auth strategy, fetch the auth string and set it to authorization header
9696
auth_strategy = None ##Initialization
9797
if self.credential_provider:
98-
print(f'Reached here 2 {self.credential_provider}')
9998
auth_strategy = self.credential_provider.to_auth_strategy()
10099
if auth_strategy.auth_type == AuthType.TOKEN:
101100
auth_strategy.fetch_token()
@@ -105,8 +104,6 @@ def request(
105104
else:
106105
auth = self.get_auth(auth)
107106

108-
print(f'auth2 *** {auth}')
109-
110107

111108
uri = self.get_hostname(uri)
112109

@@ -160,7 +157,6 @@ async def request_async(
160157
##Using the auth strategy, fetch the auth string and set it to authorization header
161158
auth_strategy = None ##Initialization
162159
if self.credential_provider:
163-
print(f'Reached here 1')
164160
auth_strategy = self.credential_provider.to_auth_strategy()
165161
if auth_strategy.auth_type == AuthType.TOKEN:
166162
auth_strategy.fetch_token()
@@ -170,8 +166,6 @@ async def request_async(
170166
else:
171167
auth = self.get_auth(auth)
172168

173-
print(f'auth2 *** {auth}')
174-
175169
return await self.http_client.request(
176170
method,
177171
uri,

twilio/http/http_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ def request(
7979
elif timeout <= 0:
8080
raise ValueError(timeout)
8181

82-
print(f'auth *** {auth}')
83-
8482
if "Requires-Authentication" in headers:
8583
headers.pop("Requires-Authentication", None)
8684
auth = None
@@ -98,7 +96,6 @@ def request(
9896
else:
9997
kwargs["data"] = data
10098
self.log_request(kwargs)
101-
print(f'kwargs {kwargs}')
10299
self._test_only_last_response = None
103100
session = self.session or Session()
104101
request = Request(**kwargs)

0 commit comments

Comments
 (0)