Skip to content

Commit 6ea0dac

Browse files
committed
js
1 parent 31dfccc commit 6ea0dac

138 files changed

Lines changed: 138 additions & 138 deletions

File tree

Some content is hidden

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

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/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/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/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/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/create_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.CreateTask";
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/get_subtasks_from_a_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.GetSubtasksFromATask";
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/get_task_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.GetTaskById";
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/get_tasks_without_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.SearchTasks";
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/mark_task_as_completed_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.MarkTaskAsCompleted";
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}`);

0 commit comments

Comments
 (0)