Skip to content

Commit 6979620

Browse files
chore: fix oauth examples (#858)
1 parent e44db6b commit 6979620

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/organization_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ def example():
1616
"""
1717
Some example usage of using organization resources
1818
"""
19-
self.client = Client(
19+
client = Client(
2020
account_sid=ACCOUNT_SID,
2121
credential_provider=OrgsCredentialProvider(CLIENT_ID, CLIENT_SECRET),
2222
)
2323

24-
accounts = self.client.preview_iam.organization(
24+
accounts = client.preview_iam.organization(
2525
organization_sid=ORGS_SID
2626
).accounts.stream()
2727
for record in accounts:

examples/public_oauth.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ def example():
1717
"""
1818
Some example usage of message resources.
1919
"""
20-
self.client = Client(
20+
client = Client(
2121
account_sid=ACCOUNT_SID,
2222
credential_provider=ClientCredentialProvider(CLIENT_ID, CLIENT_SECRET),
2323
)
2424

25-
msg = self.client.messages.create(
25+
msg = client.messages.create(
2626
to=self.to_number, from_=self.from_number, body="hello world"
2727
)
2828

0 commit comments

Comments
 (0)