Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit6979620

Browse files
chore: fix oauth examples (#858)
1 parente44db6b commit6979620

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎examples/organization_api.py

Lines 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
forrecordinaccounts:

‎examples/public_oauth.py

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp