Skip to content

Commit 8a81d54

Browse files
authored
Mateo/fix authorize (#416)
* js * py
1 parent 31dfccc commit 8a81d54

File tree

277 files changed

+280
-280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+280
-280
lines changed

public/examples/integrations/toolkits/asana/projects/get_project_by_id_example_call_tool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env var
55
const TOOL_NAME = "Asana.GetProjectById";
66

77
// Start the authorization process
8-
const authResponse = await client.tools.authorize({tool_name: TOOL_NAME});
8+
const authResponse = await client.tools.authorize({tool_name: TOOL_NAME, user_id: USER_ID});
99

1010
if (authResponse.status !== "completed") {
1111
console.log(`Click this link to authorize: ${authResponse.url}`);

public/examples/integrations/toolkits/asana/projects/get_project_by_id_example_call_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
TOOL_NAME = "Asana.GetProjectById"
77

8-
auth_response = client.tools.authorize(tool_name=TOOL_NAME)
8+
auth_response = client.tools.authorize(tool_name=TOOL_NAME, user_id=USER_ID)
99

1010
if auth_response.status != "completed":
1111
print(f"Click this link to authorize: {auth_response.url}")

public/examples/integrations/toolkits/asana/projects/list_projects_example_call_tool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env var
55
const TOOL_NAME = "Asana.ListProjects";
66

77
// Start the authorization process
8-
const authResponse = await client.tools.authorize({tool_name: TOOL_NAME});
8+
const authResponse = await client.tools.authorize({tool_name: TOOL_NAME, user_id: USER_ID});
99

1010
if (authResponse.status !== "completed") {
1111
console.log(`Click this link to authorize: ${authResponse.url}`);

public/examples/integrations/toolkits/asana/projects/list_projects_example_call_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
TOOL_NAME = "Asana.ListProjects"
77

8-
auth_response = client.tools.authorize(tool_name=TOOL_NAME)
8+
auth_response = client.tools.authorize(tool_name=TOOL_NAME, user_id=USER_ID)
99

1010
if auth_response.status != "completed":
1111
print(f"Click this link to authorize: {auth_response.url}")

public/examples/integrations/toolkits/asana/tags/create_tag_example_call_tool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env var
55
const TOOL_NAME = "Asana.CreateTag";
66

77
// Start the authorization process
8-
const authResponse = await client.tools.authorize({tool_name: TOOL_NAME});
8+
const authResponse = await client.tools.authorize({tool_name: TOOL_NAME, user_id: USER_ID});
99

1010
if (authResponse.status !== "completed") {
1111
console.log(`Click this link to authorize: ${authResponse.url}`);

public/examples/integrations/toolkits/asana/tags/create_tag_example_call_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
TOOL_NAME = "Asana.CreateTag"
77

8-
auth_response = client.tools.authorize(tool_name=TOOL_NAME)
8+
auth_response = client.tools.authorize(tool_name=TOOL_NAME, user_id=USER_ID)
99

1010
if auth_response.status != "completed":
1111
print(f"Click this link to authorize: {auth_response.url}")

public/examples/integrations/toolkits/asana/tags/list_tags_example_call_tool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env var
55
const TOOL_NAME = "Asana.ListTags";
66

77
// Start the authorization process
8-
const authResponse = await client.tools.authorize({tool_name: TOOL_NAME});
8+
const authResponse = await client.tools.authorize({tool_name: TOOL_NAME, user_id: USER_ID});
99

1010
if (authResponse.status !== "completed") {
1111
console.log(`Click this link to authorize: ${authResponse.url}`);

public/examples/integrations/toolkits/asana/tags/list_tags_example_call_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
TOOL_NAME = "Asana.ListTags"
77

8-
auth_response = client.tools.authorize(tool_name=TOOL_NAME)
8+
auth_response = client.tools.authorize(tool_name=TOOL_NAME, user_id=USER_ID)
99

1010
if auth_response.status != "completed":
1111
print(f"Click this link to authorize: {auth_response.url}")

public/examples/integrations/toolkits/asana/tasks/attach_file_to_task_example_call_tool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env var
55
const TOOL_NAME = "Asana.AttachFileToTask";
66

77
// Start the authorization process
8-
const authResponse = await client.tools.authorize({tool_name: TOOL_NAME});
8+
const authResponse = await client.tools.authorize({tool_name: TOOL_NAME, user_id: USER_ID});
99

1010
if (authResponse.status !== "completed") {
1111
console.log(`Click this link to authorize: ${authResponse.url}`);

public/examples/integrations/toolkits/asana/tasks/attach_file_to_task_example_call_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
TOOL_NAME = "Asana.AttachFileToTask"
77

8-
auth_response = client.tools.authorize(tool_name=TOOL_NAME)
8+
auth_response = client.tools.authorize(tool_name=TOOL_NAME, user_id=USER_ID)
99

1010
if auth_response.status != "completed":
1111
print(f"Click this link to authorize: {auth_response.url}")

0 commit comments

Comments
 (0)