Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions examples/code/guides/agentauth/auth_with_google.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ import { google } from "googleapis";

const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable

// Your app's internal ID for the user (an email, UUID, etc). It's used internally to identify your user in Arcade, not to identify with the Gmail service.
const user_id = "[email protected]";
// Your app's internal ID for the user (an email, UUID, etc).
// It's used internally to identify your user in Arcade, not to identify with the Gmail service.
// Use your Arcade account email for testing:
const user_id = "{arcade_user_id}";

// Start the authorization process
let auth_response = await client.auth.start(user_id, "google", {
Expand Down
2 changes: 1 addition & 1 deletion examples/code/guides/agentauth/auth_with_google.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

# This would be your app's internal ID for the user (an email, UUID, etc.)
user_id = "[email protected]"
user_id = "{arcade_user_id}"

# Start the authorization process
auth_response = client.auth.start(
Expand Down
2 changes: 1 addition & 1 deletion examples/code/home/crewai/custom_auth_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from crewai.llm import LLM
from crewai_arcade import ArcadeToolManager

USER_ID = "[email protected]"
USER_ID = "{arcade_user_id}"

def custom_auth_flow(
manager: ArcadeToolManager, tool_name: str, **tool_input: dict[str, Any]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from crewai_arcade import ArcadeToolManager

USER_ID = "[email protected]"
USER_ID = "{arcade_user_id}"

def custom_auth_flow(
manager: ArcadeToolManager, tool_name: str, **tool_input: dict[str, Any]
Expand Down
2 changes: 1 addition & 1 deletion examples/code/home/crewai/use_arcade_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from crewai.llm import LLM
from crewai_arcade import ArcadeToolManager

manager = ArcadeToolManager(default_user_id="[email protected]")
manager = ArcadeToolManager(default_user_id="{arcade_user_id}")

tools = manager.get_tools(tools=["Google.ListEmails"])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {

// Replace with your actual API key and user ID
const arcadeApiKey = "your_arcade_api_key";
const userId = "[email protected]";
const userId = "{arcade_user_id}";
const arcadeURL = "https://api.arcade.dev/v1";
const serverURL = `${arcadeURL}/mcp`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Arcade from "@arcadeai/arcadejs";

const client = new Arcade();

let userId = "[email protected]";
let userId = "{arcade_user_id}";

const response = await client.tools.execute({
tool_name: "GitHub.SetStarred",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

client = Arcade()

user_id = "[email protected]"
user_id = "{arcade_user_id}"

response = client.tools.execute(
tool_name="GitHub.SetStarred",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import Arcade from "@arcadeai/arcadejs";

// You can also set the `ARCADE_API_KEY` environment variable instead of passing it as a parameter.
const client = new Arcade({
apiKey: "arcade_api_key",
apiKey: "{arcade_api_key}",
});

// Arcade needs a unique identifier for your application user (this could be an email address, a UUID, etc).
// In this example, simply use your email address as the user ID:
let userId = "[email protected]";
// In this example, use the email you used to sign up for Arcade.dev:
let userId = "{arcade_user_id}";

// Let's use the `Math.Sqrt` tool from the Arcade Math toolkit to get the square root of a number.
const response_sqrt = await client.tools.execute({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from arcadepy import Arcade

# You can also set the `ARCADE_API_KEY` environment variable instead of passing it as a parameter.
client = Arcade(api_key="arcade_api_key")
client = Arcade(api_key="{arcade_api_key}")

# Arcade needs a unique identifier for your application user (this could be an email address, a UUID, etc).
# In this example, simply use your email address as the user ID:
user_id = "[email protected]"
# In this example, use the email you used to sign up for Arcade.dev:
user_id = "{arcade_user_id}"

# Let's use the `Math.Sqrt` tool from the Arcade Math toolkit to get the square root of a number.
response = client.tools.execute(
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/asana/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade({ baseURL: "https://api.arcade.dev" }); // Automatically finds the `ARCADE_API_KEY` env variable

const userId = "[email protected]";
const userId = "{arcade_user_id}";

// Start the authorization process
const authResponse = await client.auth.start(userId, "asana", {
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/asana/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

client = Arcade(base_url="https://api.arcade.dev") # Automatically finds the `ARCADE_API_KEY` env variable

user_id = "[email protected]"
user_id = "{arcade_user_id}"

# Start the authorization process
auth_response = client.auth.start(
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/asana/custom_tool_call.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade({ baseURL: "https://api.arcade.dev" }); // Automatically finds the `ARCADE_API_KEY` env variable

const USER_ID = "[email protected]";
const USER_ID = "{arcade_user_id}";
const TOOL_NAME = "Asana.DeleteTask";

// Start the authorization process
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/asana/custom_tool_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

client = Arcade(base_url="https://api.arcade.dev") # Automatically finds the `ARCADE_API_KEY` env variable

USER_ID = "[email protected]"
USER_ID = "{arcade_user_id}"
TOOL_NAME = "Asana.DeleteTask"

auth_response = client.tools.authorize(tool_name=TOOL_NAME, user_id=USER_ID)
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/atlassian/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable

const userId = "[email protected]";
const userId = "{arcade_user_id}";

// Start the authorization process
let authResponse = await client.auth.start(userId, "atlassian", {
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/atlassian/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable

user_id = "[email protected]"
user_id = "{arcade_user_id}"

# Start the authorization process
auth_response = client.auth.start(
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/discord/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade();

const userId = "[email protected]";
const userId = "{arcade_user_id}";

// Start the authorization process
const authResponse = await client.auth.start(userId, "discord", {
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/discord/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable

user_id = "[email protected]"
user_id = "{arcade_user_id}"

# Start the authorization process
auth_response = client.auth.start(
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/dropbox/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade();

const userId = "[email protected]";
const userId = "{arcade_user_id}";

// Start the authorization process
const authResponse = await client.auth.start(userId, "dropbox", {
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/dropbox/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable

user_id = "[email protected]"
user_id = "{arcade_user_id}"

# Start the authorization process
auth_response = client.auth.start(
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/github/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable

const userId = "[email protected]";
const userId = "{arcade_user_id}";

/*
In this example, we will use Arcade to authenticate with GitHub and retrieve
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/github/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable

user_id = "[email protected]"
user_id = "{arcade_user_id}"

"""
In this example, we will use Arcade to authenticate with GitHub and retrieve
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/google/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable

const userId = "[email protected]";
const userId = "{arcade_user_id}";

/*
In this example, we will use Arcade to authenticate with Google and
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/google/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable

user_id = "[email protected]"
user_id = "{arcade_user_id}"

"""
In this example, we will use Arcade to authenticate with Google and
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/hubspot/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade({ baseURL: "https://api.arcade.dev" }); // Automatically finds the `ARCADE_API_KEY` env variable

const userId = "[email protected]";
const userId = "{arcade_user_id}";

// Start the authorization process
const authResponse = await client.auth.start(userId, "hubspot", {
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/hubspot/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

client = Arcade(base_url="https://api.arcade.dev") # Automatically finds the `ARCADE_API_KEY` env variable

user_id = "[email protected]"
user_id = "{arcade_user_id}"

# Start the authorization process
auth_response = client.auth.start(
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/hubspot/custom_tool_call.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade({ baseURL: "https://api.arcade.dev" }); // Automatically finds the `ARCADE_API_KEY` env variable

const USER_ID = "[email protected]";
const USER_ID = "{arcade_user_id}";
const TOOL_NAME = "Hubspot.GetCompanyDetails";

// Start the authorization process
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/hubspot/custom_tool_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

client = Arcade(base_url="https://api.arcade.dev") # Automatically finds the `ARCADE_API_KEY` env variable

USER_ID = "[email protected]"
USER_ID = "{arcade_user_id}"
TOOL_NAME = "Hubspot.GetCompanyDetails"

auth_response = client.tools.authorize(tool_name=TOOL_NAME, user_id=USER_ID)
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/linkedin/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable

const userId = "[email protected]";
const userId = "{arcade_user_id}";

/*
In this example, we will use Arcade to authenticate with LinkedIn and post a
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/linkedin/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable

user_id = "[email protected]"
user_id = "{arcade_user_id}"

"""
In this example, we will use Arcade to authenticate with LinkedIn and post a
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/microsoft/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade();

const userId = "[email protected]";
const userId = "{arcade_user_id}";

// Start the authorization process
let authResponse = await client.auth.start(userId, "microsoft", {
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/microsoft/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable

user_id = "[email protected]"
user_id = "{arcade_user_id}"

# Start the authorization process
auth_response = client.auth.start(
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/notion/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade();

const userId = "[email protected]";
const userId = "{arcade_user_id}";

// Start the authorization process
const authResponse = await client.auth.start(userId, "notion");
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/notion/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable

user_id = "[email protected]"
user_id = "{arcade_user_id}"

# Start the authorization process
auth_response = client.auth.start(
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/oauth2/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable

const userId = "[email protected]";
const userId = "{arcade_user_id}";

// Start the authorization process
let authResponse = await client.auth.start(userId, "hooli", [
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/oauth2/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable


user_id = "[email protected]"
user_id = "{arcade_user_id}"

# Start the authorization process
auth_response = client.auth.start(
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/reddit/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade();

const userId = "[email protected]";
const userId = "{arcade_user_id}";

// Start the authorization process
const authResponse = await client.auth.start(userId, "reddit", {
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/reddit/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable

user_id = "[email protected]"
user_id = "{arcade_user_id}"

# Start the authorization process
auth_response = client.auth.start(
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/salesforce/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const client = new Arcade((baseURL = "http://localhost:9099")); // Automatically

const salesforceProviderId = "salesforce";
const salesforceOrgSubdomain = "salesforce-org-subdomain";
const userId = "[email protected]";
const userId = "{arcade_user_id}";
const scopes = ["read_account"];

// Start the authorization process
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/salesforce/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

salesforce_provider_id = "salesforce"
salesforce_org_subdomain = "salesforce-org-subdomain"
user_id = "[email protected]"
user_id = "{arcade_user_id}"
scopes = ["read_account"]

# Start the authorization process
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/slack/custom_auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Arcade } from "@arcadeai/arcadejs";

const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable

const userId = "[email protected]";
const userId = "{arcade_user_id}";

// Start the authorization process
let authResponse = await client.auth.start(userId, "slack", {
Expand Down
2 changes: 1 addition & 1 deletion examples/code/integrations/slack/custom_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable

user_id = "[email protected]"
user_id = "{arcade_user_id}"

# Start the authorization process
auth_response = client.auth.start(
Expand Down
Loading