Fix examples (#289)
Somehow these have slipped through the cracks. It hasn't been `authorization_url` for some time.
This commit is contained in:
parent
2fe907e5dd
commit
b296594863
2 changed files with 2 additions and 2 deletions
|
|
@ -435,7 +435,7 @@ auth_response = client.tools.authorize(
|
|||
# If the tool is not already authorized, prompt the user to authenticate
|
||||
if auth_response.status != "completed":
|
||||
print("Please authorize by visiting:")
|
||||
print(auth_response.authorization_url)
|
||||
print(auth_response.url)
|
||||
client.auth.wait_for_completion(auth_response)
|
||||
|
||||
# Execute the tool to send a Slack message after authorization
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ def call_auth_tool(client: Arcade, user_id: str) -> None:
|
|||
|
||||
# If not already authorized, then wait for the user to authorize the permissions required by the tool
|
||||
if auth_response.status != "completed":
|
||||
print(f"Click this link to authorize: {auth_response.authorization_url}")
|
||||
print(f"Click this link to authorize: {auth_response.url}")
|
||||
|
||||
# Wait for the user to complete the auth flow, if necessary
|
||||
client.auth.wait_for_completion(auth_response)
|
||||
|
|
|
|||
Loading…
Reference in a new issue