added missing parameter to the usage example templates (#537)
Example templates were missing the `user_id` param, this was caught by @evantahler, thanks!
This commit is contained in:
parent
3c4c856842
commit
e0ddc0ce90
1 changed files with 8 additions and 2 deletions
|
|
@ -97,7 +97,10 @@ const USER_ID = "{{arcade_user_id}}";
|
||||||
const TOOL_NAME = "{tool_fully_qualified_name}";
|
const TOOL_NAME = "{tool_fully_qualified_name}";
|
||||||
|
|
||||||
// Start the authorization process
|
// Start the authorization process
|
||||||
const authResponse = await client.tools.authorize({{tool_name: TOOL_NAME}});
|
const authResponse = await client.tools.authorize({{
|
||||||
|
tool_name: TOOL_NAME,
|
||||||
|
user_id: USER_ID
|
||||||
|
}});
|
||||||
|
|
||||||
if (authResponse.status !== "completed") {{
|
if (authResponse.status !== "completed") {{
|
||||||
console.log(`Click this link to authorize: ${{authResponse.url}}`);
|
console.log(`Click this link to authorize: ${{authResponse.url}}`);
|
||||||
|
|
@ -125,7 +128,10 @@ client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable
|
||||||
USER_ID = "{{arcade_user_id}}"
|
USER_ID = "{{arcade_user_id}}"
|
||||||
TOOL_NAME = "{tool_fully_qualified_name}"
|
TOOL_NAME = "{tool_fully_qualified_name}"
|
||||||
|
|
||||||
auth_response = client.tools.authorize(tool_name=TOOL_NAME)
|
auth_response = client.tools.authorize(
|
||||||
|
tool_name=TOOL_NAME,
|
||||||
|
user_id=TOOL_NAME
|
||||||
|
)
|
||||||
|
|
||||||
if auth_response.status != "completed":
|
if auth_response.status != "completed":
|
||||||
print(f"Click this link to authorize: {{auth_response.url}}")
|
print(f"Click this link to authorize: {{auth_response.url}}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue