Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6979620

Browse filesBrowse files
chore: fix oauth examples (#858)
1 parent e44db6b commit 6979620
Copy full SHA for 6979620

File tree

2 files changed

+4
-4
lines changed
Filter options

2 files changed

+4
-4
lines changed

‎examples/organization_api.py

Copy file name to clipboardExpand all lines: examples/organization_api.py
+2-2Lines changed: 2 additions & 2 deletions
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

Copy file name to clipboardExpand all lines: examples/public_oauth.py
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.