diff --git a/app/en/mcp-servers/sales/hubspot-automation-api/page.mdx b/app/en/mcp-servers/sales/hubspot-automation-api/page.mdx new file mode 100644 index 000000000..b9106caa3 --- /dev/null +++ b/app/en/mcp-servers/sales/hubspot-automation-api/page.mdx @@ -0,0 +1,331 @@ +# HubspotAutomationApi + +import StarterToolInfo from "@/app/_components/starter-tool-info"; +import ToolInfo from "@/app/_components/tool-info"; +import Badges from "@/app/_components/badges"; +import TabbedCodeBlock from "@/app/_components/tabbed-code-block"; +import TableOfContents from "@/app/_components/table-of-contents"; +import ToolFooter from "@/app/_components/tool-footer"; +import { Callout } from "nextra/components"; + + + + + + + +The HubspotAutomationApi MCP Server offers a comprehensive suite of tools for managing and automating workflows within HubSpot. Users can leverage these tools to: + +- Complete and manage blocked action executions in automation workflows. +- Fetch and retrieve details about email campaigns and workflows. +- Check the enrollment status of contacts in sequences. +- Enroll contacts into specific sequences for automated follow-ups. +- Access user-specific sequences and their details. + +This server streamlines the automation process, making it easier to handle marketing activities and user interactions within HubSpot. + +## Available Tools + + + + + If you need to perform an action that's not listed here, you can [get in touch + with us](mailto:contact@arcade.dev) to request a new tool, or [create your own + tools](/home/build-tools/create-a-mcp-server). + + +## HubspotAutomationApi.CompleteActionExecution + +
+ + +Complete a specific blocked action execution by ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **action_execution_id** (`string`, optional) The unique identifier of the action execution to be completed. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotAutomationApi.CompleteBatchActionExecutions + +
+ + +Complete a batch of blocked action executions. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotAutomationApi.FetchEmailCampaigns + +
+ + +Fetch email campaigns from HubSpot Automation. + +**Parameters** + +- **email_campaign_flow_ids** (`array[string]`, optional) An array of flow IDs to specify which email campaigns to retrieve. Each ID should be a string. +- **end_date_filter** (`string`, optional) A timestamp filter to get campaigns before a specific date (in YYYY-MM-DD format). +- **max_results** (`integer`, optional) Specifies the maximum number of email campaign entries to retrieve. Should be an integer value. +- **start_date** (`string`, optional) Specify the start date for fetching email campaigns. This should be in the format YYYY-MM-DD to filter results starting after this date. + +## HubspotAutomationApi.GetWorkflows + +
+ + +Retrieve details of HubSpot workflows. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotAutomationApi.GetWorkflowIdMappings + +
+ + +Retrieve HubSpot workflow ID mappings in batch. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotAutomationApi.CheckContactEnrollmentStatus + +
+ + +Retrieve the sequence enrollment status of a contact by ID. + +**Parameters** + +- **contact_id** (`string`, required) The unique ID of the contact to check their sequence enrollment status. + +## HubspotAutomationApi.GetUserSequences + +
+ + +Retrieve a list of sequences for a specific user. + +**Parameters** + +This tool does not take any parameters. + +## HubspotAutomationApi.EnrollContactInSequence + +
+ + +Enroll a contact into a sequence with user ID and details. + +**Parameters** + +- **contact_id** (`string`, required) The unique identifier of the contact to be enrolled in the sequence. +- **sender_email** (`string`, required) The email address of the sender enrolling the contact. This should be a valid email associated with the sender's HubSpot user account. +- **sequence_identifier** (`string`, required) The unique identifier of the sequence to enroll the contact into. It should be a valid string matching the sequence available in the system. +- **sender_alias_address** (`string`, optional) Email alias for the sender addressing the sequence. This is used instead of the default email address. + +## HubspotAutomationApi.GetSequenceDetails + +
+ + +Retrieve details of a specific sequence by its ID. + +**Parameters** + +- **sequence_id** (`string`, required) The unique ID of the sequence to retrieve details for. This ID identifies which sequence's information will be returned. + +## Reference + +Below is a reference of enumerations used by some of the tools in the HubspotAutomationApi MCP Server: + +### ToolMode + +- **GET_REQUEST_SCHEMA**: `get_request_schema` +- **EXECUTE**: `execute` + +## Auth + +The HubspotAutomationApi MCP Server uses the Auth Provider with id `arcade-hubspot` to connect to users' HubspotAutomationApi accounts. In order to use the MCP Server, you will need to configure the `arcade-hubspot` auth provider. + + diff --git a/app/en/mcp-servers/sales/hubspot-cms-api/page.mdx b/app/en/mcp-servers/sales/hubspot-cms-api/page.mdx new file mode 100644 index 000000000..e58bb5c70 --- /dev/null +++ b/app/en/mcp-servers/sales/hubspot-cms-api/page.mdx @@ -0,0 +1,5481 @@ +# HubspotCmsApi + +import StarterToolInfo from "@/app/_components/starter-tool-info"; +import ToolInfo from "@/app/_components/tool-info"; +import Badges from "@/app/_components/badges"; +import TabbedCodeBlock from "@/app/_components/tabbed-code-block"; +import TableOfContents from "@/app/_components/table-of-contents"; +import ToolFooter from "@/app/_components/tool-footer"; +import { Callout } from "nextra/components"; + + + + + + + +The HubspotCmsApi MCP Server offers a comprehensive suite of tools for managing content within the HubSpot CMS. Users can efficiently perform actions such as: + +- Create, update, and delete blog posts, landing pages, and site pages. +- Manage blog authors and tags, including creating language variations. +- Handle multi-language support for content and manage URL redirects. +- Retrieve detailed information about various content types, including revision histories and settings. + +This server streamlines content management processes, making it easier to maintain and optimize your HubSpot CMS environment. + +## Available Tools + + + + + If you need to perform an action that's not listed here, you can [get in touch + with us](mailto:contact@arcade.dev) to request a new tool, or [create your own + tools](/home/build-tools/create-a-mcp-server). + + +## HubspotCmsApi.GetBlogAuthorById + +
+ + +Retrieve blog author details using an object ID. + +**Parameters** + +- **blog_author_id** (`string`, required) The unique identifier for the blog author to retrieve their details. +- **include_deleted_blog_authors** (`boolean`, optional) Set to true to include deleted blog authors in the results. Defaults to false. +- **specific_author_property** (`string`, optional) Specify a property to retrieve specific details about the blog author, such as a specific attribute or field. + +## HubspotCmsApi.DeleteBlogAuthor + +
+ + +Delete a specific blog author by ID. + +**Parameters** + +- **blog_author_id** (`string`, required) The unique identifier of the Blog Author to be deleted. +- **return_archived_only** (`boolean`, optional) Set to true to return only archived blog authors. Use for fetching deleted or inactive authors. + +## HubspotCmsApi.UpdateBlogAuthor + +
+ + +Update specific details of a blog author. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **blog_author_id** (`string`, optional) The unique ID of the blog author to be updated. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **update_deleted_blog_authors** (`boolean`, optional) Set to `true` to update deleted Blog Authors. Defaults to `false`. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.DetachBlogAuthorFromLangGroup + +
+ + +Detach a Blog Author from a multi-language group. + +**Parameters** + +- **author_id_to_detach** (`string`, required) ID of the blog author to remove from a multi-language group in HubSpot CMS. + +## HubspotCmsApi.UpdateBlogAuthorsBatch + +
+ + +Update multiple blog author objects at once. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **update_deleted_blog_authors** (`boolean`, optional) Set to true to update deleted Blog Authors. Defaults to false. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.SetPrimaryLanguageBlogAuthor + +
+ + +Set a blog author as the primary language in a multilingual group. + +**Parameters** + +- **primary_language_author_id** (`string`, required) The ID of the blog author to be set as the primary in a multi-language group. + +## HubspotCmsApi.DeleteBlogAuthors + +
+ + +Delete specified blog authors in HubSpot CMS. + +**Parameters** + +- **blog_author_ids** (`array[string]`, required) List of blog author IDs to delete from HubSpot CMS. + +## HubspotCmsApi.CreateBlogAuthorsBatch + +
+ + +Create multiple blog authors in a single batch request. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.RetrieveBlogAuthors + +
+ + +Retrieve specified Blog Author objects from the CMS. + +**Parameters** + +- **author_identifiers** (`array[string]`, required) An array of strings representing the identifiers for the blog authors to retrieve. +- **include_deleted_authors** (`boolean`, optional) Specifies whether to include deleted Blog Authors in the results. Set to true to include them. + +## HubspotCmsApi.GetBlogAuthors + +
+ + +Retrieve the list of blog authors. + +**Parameters** + +- **created_after** (`string`, optional) Return only blog authors created after this specified timestamp. +- **created_at_exact_time** (`string`, optional) Return blog authors created at exactly the specified time. Use ISO 8601 format for timestamps. +- **filter_by_creation_before_date** (`string`, optional) Return Blog Authors created before the specified date and time in ISO 8601 format. +- **filter_by_last_updated_before** (`string`, optional) Only return blog authors last updated before the specified timestamp. Format: YYYY-MM-DDTHH:MM:SSZ. +- **filter_by_updated_after** (`string`, optional) Return Blog Authors updated after a specific time. Use an ISO 8601 datetime string, e.g., '2023-01-01T00:00:00Z'. +- **include_archived_authors** (`boolean`, optional) Specify `true` to include archived (deleted) blog authors in the results. Defaults to `false`. +- **included_properties** (`string`, optional) Comma-separated list of specific properties to include in the response for each author. If empty, all properties will be fetched by default. +- **pagination_cursor_token** (`string`, optional) The cursor token from `paging.next.after` to fetch the next set of results. +- **result_limit** (`integer`, optional) Maximum number of blog authors to return. Default is 100. +- **sort_fields** (`array[string]`, optional) Fields for sorting results. Choose from: `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. Default is `createdAt`. +- **updated_at_timestamp** (`string`, optional) Return blog authors last updated at the specified exact time (ISO 8601 format). + +## HubspotCmsApi.CreateBlogAuthor + +
+ + +Create a new Blog Author in HubSpot CMS. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.AttachAuthorToMultilangGroup + +
+ + +Attach a Blog Author to a multi-language group. + +**Parameters** + +- **author_object_id** (`string`, required) ID of the blog author to add to a multi-language group in HubSpot CMS. +- **designated_language** (`string`, required) The language code of the blog author to be added to a multi-language group, e.g., 'en' for English. +- **primary_language_object_id** (`string`, required) ID of the primary language object in the multi-language group. +- **primary_language** (`string`, optional) Specify the primary language of the multi-language group to which the author will be attached. + +## HubspotCmsApi.CreateBlogAuthorLanguageVariation + +
+ + +Create a language variation for a blog author. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.UpdateBlogAuthorLanguages + +
+ + +Set new languages for each blog author in a group. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.GetBlogRevisionHistory + +
+ + +Retrieve the revision history of blog settings. + +**Parameters** + +- **blog_id** (`string`, required) The unique identifier for the blog whose settings history is being retrieved. This is required for querying specific blog settings. +- **retrieve_revisions_before_timestamp** (`string`, optional) Retrieve revisions before this timestamp in milliseconds since Unix Epoch. +- **revision_limit** (`integer`, optional) The maximum number of blog setting revisions to retrieve. Provide an integer value to restrict the number of results. +- **start_date_for_revisions** (`string`, optional) Specify a date to filter revisions that occurred after this date. Format: YYYY-MM-DD. + +## HubspotCmsApi.UpdateBlogLanguages + +
+ + +Update the languages for blog settings. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.RetrieveBlogRevisionDetails + +
+ + +Retrieve specific blog revision details by ID. + +**Parameters** + +- **blog_id** (`string`, required) The unique identifier for the blog post. It is required to fetch the specific revision details. +- **revision_id** (`string`, required) A unique string identifier for a specific blog revision to be retrieved. + +## HubspotCmsApi.GetBlogSettings + +
+ + +Fetch blog settings using a blog ID. + +**Parameters** + +- **blog_id** (`string`, required) The unique identifier of the blog for which you want to fetch the settings. This is required to specify which blog's details to retrieve. + +## HubspotCmsApi.CreateBlogLanguageVariation + +
+ + +Create a language variation for a blog in HubSpot CMS. + +**Parameters** + +- **blog_id** (`string`, required) ID of the blog to clone for creating a language variation. +- **blog_slug** (`string`, optional) Path to the blog. Used to specify the location of the language variation within the CMS. +- **primary_language** (`string`, optional) Specify the language of the primary blog to clone. This determines the source content for the new language variation. +- **target_language_for_blog_variant** (`string`, optional) The language code for the new blog variant, specifying the target language for translation. + +## HubspotCmsApi.RetrieveBlogSettings + +
+ + +Retrieve current blog settings from the HubSpot CMS. + +**Parameters** + +- **created_before** (`string`, optional) Retrieve blog settings created before this date. Format as 'YYYY-MM-DD'. +- **created_timestamp** (`string`, optional) The exact timestamp when the blog settings were created, formatted as an ISO 8601 string. +- **filter_created_after_date** (`string`, optional) Filter settings to only include blogs created after the specified date (ISO 8601 format). +- **include_archived** (`boolean`, optional) Set to true to include archived blog settings and false to exclude them. +- **max_number_of_results** (`integer`, optional) The maximum number of blog settings to retrieve. The value should be an integer. +- **pagination_cursor** (`string`, optional) A token to retrieve the next set of blog settings after the current page. Use this for paginating results. +- **sort_options** (`array[string]`, optional) An array specifying fields to sort by, in order of priority (e.g., ['createdAt', '-updatedAt'] for ascending and descending). +- **updated_after_timestamp** (`string`, optional) Fetch settings for blogs updated after this date and time. Use ISO 8601 format. +- **updated_at_exact_timestamp** (`string`, optional) Fetch blogs with this exact update timestamp. Use ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). +- **updated_before_date** (`string`, optional) The latest date (inclusive) to filter blog updates. Provide in 'YYYY-MM-DD' format. + +## HubspotCmsApi.SetNewBlogPrimaryLanguage + +
+ + +Set a new primary language for blogs. + +**Parameters** + +- **primary_language_object_id** (`string`, required) ID of the blog object to set as primary in the multi-language group. + +## HubspotCmsApi.DetachBlogFromLanguageGroup + +
+ + +Detach a blog from its multi-language group. + +**Parameters** + +- **object_id_to_detach** (`string`, required) ID of the blog to remove from its multi-language group in HubSpot CMS. + +## HubspotCmsApi.AttachBlogToLanguageGroup + +
+ + +Attach a blog to a multi-language group in HubSpot CMS. + +**Parameters** + +- **designated_language** (`string`, required) The language code of the blog to add to a multi-language group. Use standard language codes like 'en', 'fr', etc. +- **object_id_to_add** (`string`, required) ID of the blog object to be added to a multi-language group in HubSpot CMS. +- **primary_language_object_id** (`string`, required) ID of the primary language object in the multi-language group to which the blog will be attached. +- **primary_language** (`string`, optional) Primary language code for the multi-language group to which the blog should be attached (e.g., 'en', 'fr'). + +## HubspotCmsApi.RetrieveAuditLogs + +
+ + +Retrieve audit logs based on specified filters. + +**Parameters** + +- **event_types** (`array[string]`, optional) A list of event types to filter by, such as CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED. +- **filter_by_object_ids** (`array[string]`, optional) List of object IDs to filter the audit logs by. +- **filter_by_object_type** (`array[string]`, optional) List the object types to filter audit logs by, such as BLOG, LANDING_PAGE, DOMAIN, etc. Use a comma-separated format. +- **number_of_logs_to_return** (`integer`, optional) Specifies the number of audit logs to retrieve. +- **sort_direction** (`array[string]`, optional) Specify the sort direction for audit logs by timestamp, e.g., 'asc' or 'desc'. +- **timestamp_after** (`string`, optional) Timestamp (in ISO 8601 format) after which audit logs will be returned. +- **timestamp_before** (`string`, optional) A timestamp to filter audit logs before the specified date and time. +- **user_ids_to_filter** (`array[string]`, optional) Array of user IDs to filter the audit logs by. Provide as a list of strings. + +## HubspotCmsApi.GetExistingDomains + +
+ + +Retrieve all existing domains in the CMS. + +**Parameters** + +- **created_at_date_filter** (`string`, optional) Specify a date to return only domains created on this exact date. Format: YYYY-MM-DD. +- **created_before_date** (`string`, optional) Filter to return only domains created before the specified date. Format: YYYY-MM-DD. +- **filter_by_update_date** (`string`, optional) Only return domains updated on this specific date. Use 'YYYY-MM-DD' format. +- **filter_domains_updated_after** (`string`, optional) Return domains updated after this specified date. Use ISO 8601 format (YYYY-MM-DD). +- **filter_updated_before_date** (`string`, optional) Return only domains updated before this date in ISO 8601 format (e.g., '2023-10-05T00:00:00Z'). +- **get_domains_created_after_date** (`string`, optional) Only return domains created after the specified date (in YYYY-MM-DD format). +- **maximum_results_per_page** (`integer`, optional) Specifies the maximum number of domain results to return per page. +- **paging_cursor_token** (`string`, optional) The paging cursor token of the last successfully read resource, used for paginated results. +- **return_archived** (`boolean`, optional) Return only archived domains if true. Return unarchived if false. +- **sort_criteria** (`array[string]`, optional) Defines the order of the domain results. Provide an array of strings specifying fields to sort by, such as ['createdAt', 'updatedAt']. + +## HubspotCmsApi.GetDomainById + +
+ + +Retrieve domain details by ID from HubSpot CMS. + +**Parameters** + +- **domain_id** (`string`, required) The unique ID of the domain to retrieve details for from HubSpot CMS. + +## HubspotCmsApi.ExportHubdbDraftTable + +
+ + +Export HubDB draft table to CSV or Excel format. + +**Parameters** + +- **table_id_or_name** (`string`, required) The ID or name of the table to export. Use this to specify the exact table you want to download. +- **export_file_format** (`string`, optional) The file format for exporting the draft table. Choose from `CSV`, `XLSX`, or `XLS`. + +## HubspotCmsApi.GetAllDraftTablesDetails + +
+ + +Retrieve details of all draft HubDB tables. + +**Parameters** + +- **content_type** (`string`, optional) Specify the content type filter for retrieving draft tables. Leave empty for no filter. +- **created_after_date** (`string`, optional) Return tables created after the specified date and time. Format: YYYY-MM-DDTHH:MM:SSZ. +- **created_at_exact_time** (`string`, optional) Return tables created at the specified exact time (ISO 8601 format). +- **created_before_date** (`string`, optional) Return tables created before this specified time. +- **filter_by_updated_before_date** (`string`, optional) Return tables last updated before this specified time in ISO 8601 format. +- **include_archived_tables** (`boolean`, optional) Set to true to include archived tables in the results, false by default. +- **include_localized_schema** (`boolean`, optional) Indicates whether to include localized schema information for draft tables. Accepts a boolean value. +- **maximum_results_limit** (`integer`, optional) Specifies the maximum number of draft table results to return, with a default of 1000. +- **pagination_cursor_token** (`string`, optional) Cursor token to fetch the next set of results from a paginated response. +- **return_tables_updated_after** (`string`, optional) Only return tables that were last updated after the specified timestamp (ISO 8601 format). +- **sort_fields_for_results** (`array[string]`, optional) Fields to sort the results by. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. Defaults to `createdAt`. +- **updated_at_specific_time** (`string`, optional) Return tables last updated at the specified exact time. + +## HubspotCmsApi.GetTableRow + +
+ + +Get a single row from a HubSpot CMS table by ID. + +**Parameters** + +- **row_id** (`string`, required) The ID of the row to retrieve from the table. +- **table_id_or_name** (`string`, required) The ID or name of the HubSpot CMS table to retrieve the row from. +- **archived** (`boolean`, optional) A boolean to retrieve archived rows. Set to True to include archived rows, or False to exclude them. + +## HubspotCmsApi.GetDraftHubdbTableRows + +
+ + +Retrieve rows from a draft HubDB table with optional filtering. + +**Parameters** + +- **table_id_or_name** (`string`, required) The ID or name of the HubDB table to query for draft rows. +- **include_archived_rows** (`boolean`, optional) Specify whether to include archived rows in the results. Use `true` to include archived rows, `false` to exclude them. +- **maximum_results_limit** (`integer`, optional) Specifies the maximum number of results to return from the draft table. Default is 1000. +- **next_page_cursor** (`string`, optional) Cursor token to retrieve the next set of results, from `paging.next.after` in a paged response. +- **result_offset** (`integer`, optional) The number of rows to skip before starting to collect the result set from the draft version of a table. +- **sort_columns** (`array[string]`, optional) List of column names to sort the results by. Use format like ['column1', '-column2'] to specify ascending or descending order. +- **specified_columns** (`array[string]`, optional) Specify the column names to return only these columns in the result, instead of all columns. + +## HubspotCmsApi.CloneHubdbDraftRow + +
+ + +Clone a single row in a HubDB draft table. + +**Parameters** + +- **row_id_to_clone** (`string`, required) The ID of the row to be cloned in the draft table. +- **table_id_or_name** (`string`, required) The ID or name of the table to be cloned. +- **new_row_name** (`string`, optional) The name for the cloned row. Specify a new name if required. + +## HubspotCmsApi.ResetHubdbDraftToPublished + +
+ + +Reset HubDB draft table to match the published version. + +**Parameters** + +- **table_identifier** (`string`, required) The ID or name of the HubDB table to reset to the published version. +- **include_foreign_ids** (`boolean`, optional) Set to true to populate foreign ID values in the response. + +## HubspotCmsApi.ExportTableFromHubdb + +
+ + +Exports a HubDB table in the desired format. + +**Parameters** + +- **hubdb_table_id_or_name** (`string`, required) The ID or name of the HubDB table to export. +- **file_format_to_export** (`string`, optional) The file format for exporting the table. Options are `CSV`, `XLSX`, and `XLS`. + +## HubspotCmsApi.ReplaceDraftTableRows + +
+ + +Batch replace rows in HubSpot CMS draft tables. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **table_identifier** (`string`, optional) The ID or name of the table in which you want to replace draft rows. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.CloneHubdbTable + +
+ + +Clone an existing HubDB table as a draft. + +**Parameters** + +- **copy_rows** (`boolean`, required) Boolean indicating whether to copy the rows during the cloning process. +- **is_hubspot_defined** (`boolean`, required) Indicate if the table is defined by HubSpot. This is a boolean value where true means the table is HubSpot-defined. +- **source_table_id_or_name** (`string`, required) The ID or name of the HubDB table to clone. +- **new_table_label** (`string`, optional) The label for the new cloned table. Specify a descriptive label for identification. +- **new_table_name** (`string`, optional) The desired new name for the cloned HubDB table draft. + +## HubspotCmsApi.PermanentlyDeleteHubdbDraftRows + +
+ + +Permanently delete draft rows from a HubDB table. + +**Parameters** + +- **row_ids_to_delete** (`array[string]`, required) An array of up to 100 row IDs to permanently delete from the draft version of the table. +- **table_id_or_name** (`string`, required) The ID or name of the HubDB table to target for deleting draft rows. + +## HubspotCmsApi.GetDraftTableRowById + +
+ + +Retrieve a single draft row by ID from a HubDB table. + +**Parameters** + +- **row_id** (`string`, required) The ID of the row in the table's draft version to retrieve. +- **table_identifier** (`string`, required) The ID or name of the HubDB table to fetch the draft row from. +- **include_archived** (`boolean`, optional) Set to true to include archived rows in the search result. Defaults to false. + +## HubspotCmsApi.ReplaceDraftTableRow + +
+ + +Replace a row in the draft version of a HubDB table. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **table_id_or_name** (`string`, optional) The ID or name of the HubDB table to replace the row in. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **row_id** (`string`, optional) The unique identifier of the row to be replaced in the draft table. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.DeleteDraftTableRowHubspot + +
+ + +Permanently delete a row from a HubDB draft table. + +**Parameters** + +- **row_id** (`string`, required) The unique ID of the row to be permanently deleted from the draft version of the HubDB table. +- **table_id_or_name** (`string`, required) The ID or name of the HubDB table from which the draft row will be deleted. + +## HubspotCmsApi.UpdateHubdbRowDraft + +
+ + +Update specific fields in a HubDB table's draft row. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **table_identifier** (`string`, optional) The ID or name of the HubDB table to update the draft row in. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **row_id** (`string`, optional) The unique ID of the row to be updated in the draft table. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.FetchHubdbTableRows + +
+ + +Fetch rows from a HubDB table using filters and sorting. + +**Parameters** + +- **table_identifier** (`string`, required) The ID or name of the HubDB table to query for fetching row data. +- **include_archived_rows** (`boolean`, optional) Set to true to include archived rows in the results; false to exclude them. +- **maximum_results_limit** (`integer`, optional) Specifies the maximum number of results to return. The default value is 1000, which can be adjusted to retrieve fewer entries. +- **pagination_cursor_token** (`string`, optional) Cursor token to fetch the next set of results. Obtainable from the `paging.next.after` of a paged response. +- **requested_columns** (`array[string]`, optional) Specify column names to retrieve only the required columns' data, excluding others. +- **row_offset** (`integer`, optional) The starting point for fetching a subset of rows, useful for pagination. It's similar to specifying which row to start fetching from. +- **sort_columns** (`array[string]`, optional) List of column names to sort the results by. Each entry is a string representing a column. Prefix with '-' for descending order. + +## HubspotCmsApi.AddHubdbTableRow + +
+ + +Add a new row to a HubDB draft table. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **target_table_id_or_name** (`string`, optional) The ID or name of the target HubDB table to add the row to. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.ReadHubdbTableRows + +
+ + +Retrieve rows from a published HubDB table. + +**Parameters** + +- **hubdb_table_id_or_name** (`string`, required) The ID or name of the HubDB table to query. Use this to specify which table's rows to retrieve. +- **row_ids** (`array[string]`, required) An array of strings representing the row IDs to retrieve from the specified HubDB table. + +## HubspotCmsApi.CreateDraftTableRows + +
+ + +Create draft rows in a specified HubSpot table. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **table_id_or_name** (`string`, optional) The ID or name of the HubSpot table to which the draft rows are being added. This is required to specify which table you want to update. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.GetHubdbTableDetails + +
+ + +Get details of a HubDB table, including columns and row count. + +**Parameters** + +- **table_id_or_name** (`string`, required) The ID or name of the HubDB table to retrieve details for. +- **get_localized_schema** (`boolean`, optional) Set to `true` to return the localized schema for the table. If `false`, returns the default schema. +- **include_foreign_id_values** (`boolean`, optional) Set this to true to populate foreign ID values in the result. +- **return_archived_table_details** (`boolean`, optional) Set to true to return details for an archived table. Defaults to false. + +## HubspotCmsApi.ArchiveHubdbTable + +
+ + +Archive a HubDB table in HubSpot CMS. + +**Parameters** + +- **hubdb_table_identifier** (`string`, required) The ID or name of the HubDB table to archive. Provides the reference needed to identify the table within the system. + +## HubspotCmsApi.GetHubdbDraftRows + +
+ + +Fetch draft rows from a specified HubDB table. + +**Parameters** + +- **row_ids** (`array[string]`, required) An array of row IDs to retrieve draft rows from the specified HubDB table. +- **table_id_or_name** (`string`, required) ID or name of the HubDB table to retrieve draft rows from. + +## HubspotCmsApi.CloneDraftTableRowsHubspot + +
+ + +Clone rows in a draft HubDB table by row IDs. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **hubdb_table_id_or_name** (`string`, optional) The ID or name of the HubDB table to clone rows from. Specify either the unique table ID or its name. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.GetAllHubdbTables + +
+ + +Retrieve details of all published HubDB tables. + +**Parameters** + +- **content_type_filter** (`string`, optional) Filter tables by the specified content type to return only those matching it. +- **created_after** (`string`, optional) Return tables created after the specified time in ISO 8601 format. +- **created_before_timestamp** (`string`, optional) Return tables created before this timestamp. Format should be in ISO 8601. +- **cursor_token_for_next_results** (`string`, optional) The cursor token to retrieve the next set of results. Obtain this from the `paging.next.after` in a paged response. +- **filter_by_creation_time** (`string`, optional) Return tables created at the specified time. Format: ISO 8601. +- **include_archived_tables** (`boolean`, optional) Specifies whether to include archived tables in the results. Defaults to `false`. +- **include_localized_schema** (`boolean`, optional) Include localized schema details in the response if true. +- **last_updated_exact_time** (`string`, optional) Only return tables last updated at exactly the specified time, formatted as a string. +- **max_table_results** (`integer`, optional) Maximum number of HubDB table results to return. Default is 1000. +- **sort_fields** (`array[string]`, optional) Specify fields for sorting results: `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. Defaults to `createdAt`. +- **updated_after_timestamp** (`string`, optional) Return tables last updated after this timestamp. Format: 'YYYY-MM-DDTHH:MM:SSZ'. +- **updated_before_time** (`string`, optional) Return tables updated before this specific time. + +## HubspotCmsApi.CreateHubdbTable + +
+ + +Create a new draft HubDB table with a unique name and label. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.DeleteTableVersion + +
+ + +Delete a specific version of a HubDB table. + +**Parameters** + +- **table_identifier** (`string`, required) The unique ID or name of the HubDB table whose version you want to delete. +- **table_version_id** (`integer`, required) Specify the ID of the table version to delete. This should be an integer value that identifies a specific version in HubDB. + +## HubspotCmsApi.UnpublishHubdbTable + +
+ + +Unpublish a HubDB table to stop rendering data on website pages. + +**Parameters** + +- **table_identifier** (`string`, required) The ID or name of the HubDB table to unpublish. +- **include_foreign_ids** (`boolean`, optional) Set this to true to populate foreign ID values in the response. + +## HubspotCmsApi.GetDraftTableDetails + +
+ + +Retrieve details of a draft HubDB table by ID or name. + +**Parameters** + +- **table_id_or_name** (`string`, required) The ID or name of the HubDB table to retrieve draft details for. +- **include_foreign_ids** (`boolean`, optional) Set this to `true` to populate foreign ID values in the result. +- **include_localized_schema** (`boolean`, optional) Set to true to include the localized schema in the result. +- **return_archived_table** (`boolean`, optional) Set to `true` to return an archived table. Defaults to `false`. + +## HubspotCmsApi.UpdateHubdbDraftTable + +
+ + +Update or modify a HubDB table draft in HubSpot CMS. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **table_id_or_name** (`string`, optional) The ID or name of the HubDB table to update. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **return_archived_tables** (`boolean`, optional) Set to true to return archived tables. Defaults to false. Only used when mode is 'execute'. +- **populate_foreign_ids** (`boolean`, optional) Set to true to populate foreign ID values in the table result. Only used when mode is 'execute'. +- **retrieve_localized_schema** (`boolean`, optional) Set to true to retrieve the localized schema of the HubDB table, if available. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.PublishTableDraft + +
+ + +Publish draft table to update website pages. + +**Parameters** + +- **table_identifier** (`string`, required) The ID or name of the HubSpot CMS table to publish. This identifies which draft table's data and schema should be copied to the published version. +- **include_foreign_id_values** (`boolean`, optional) Set to `true` to populate foreign ID values in the response. + +## HubspotCmsApi.BatchUpdateTableRowsHubspot + +
+ + +Update multiple draft table rows in HubSpot CMS. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **table_id_or_name** (`string`, optional) The ID or name of the table to update rows in the draft version. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.CreateAttentionSpanEvent + +
+ + +Log viewer's attention span details for media events. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.TrackMediaMilestones + +
+ + +Log user progress milestones in media content viewing. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.CreateMediaPlayedEvent + +
+ + +Log an event when media playback starts. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.RetrievePreviousSitePageVersion + +
+ + +Retrieve a previous version of a site page. + +**Parameters** + +- **site_page_id** (`string`, required) The unique identifier for the site page whose previous version is to be retrieved. +- **site_page_revision_id** (`string`, required) The ID of the specific revision of the site page to retrieve. + +## HubspotCmsApi.GetLandingPagePreviousVersions + +
+ + +Retrieve previous versions of a Landing Page for review. + +**Parameters** + +- **landing_page_id** (`string`, required) The ID of the Landing Page to retrieve previous versions for. +- **cursor_token_for_next_set** (`string`, optional) The cursor token for retrieving the next set of results, from the `paging.next.after` JSON property. +- **limit_page_fetching_before_cursor** (`string`, optional) A token used for fetching results before a specific cursor position in paged results. Typically used in pagination to navigate backwards. +- **max_results** (`integer`, optional) The maximum number of previous landing page versions to return. Default is 100. + +## HubspotCmsApi.UpdateSitePagesBatch + +
+ + +Batch update specified site pages in HubSpot CMS. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **update_deleted_site_pages** (`boolean`, optional) Specify true to update deleted Site Pages. Defaults to false. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.GetPreviousFolderVersions + +
+ + +Retrieve previous versions of a CMS folder. + +**Parameters** + +- **folder_id** (`string`, required) The unique ID of the folder to retrieve its previous versions. +- **before_token** (`string`, optional) A cursor token to fetch items before a certain point in the result set, used for pagination. +- **max_results** (`integer`, optional) Specifies the maximum number of folder versions to retrieve. Default is 100. +- **pagination_cursor_after** (`string`, optional) The cursor token to retrieve the next set of results from the `paging.next.after` property in a paged response. + +## HubspotCmsApi.RestorePageVersion + +
+ + +Restore a specific version of a HubSpot site page. + +**Parameters** + +- **page_version_to_restore** (`string`, required) The ID of the site page version to restore. Use this to revert to a previous version. +- **site_page_id** (`string`, required) The unique identifier for the Site Page to be restored. + +## HubspotCmsApi.GetLandingPageFolders + +
+ + +Retrieve the list of landing page folders from HubSpot CMS. + +**Parameters** + +- **created_after** (`string`, optional) Return folders created after this specified ISO 8601 timestamp. +- **created_before_time** (`string`, optional) Return folders created before this specific time. +- **exact_update_time** (`string`, optional) Return folders last updated at exactly the specified time. Use a string format for the timestamp. +- **filter_folders_created_at** (`string`, optional) Return folders created at an exact specified time. Use ISO 8601 format. +- **folder_property** (`string`, optional) Specify properties to include in the response for each folder. Leave empty for all properties. +- **include_deleted_folders** (`boolean`, optional) Include deleted folders in the results when set to true. Defaults to false. +- **max_results_limit** (`integer`, optional) The maximum number of folder results to return. Default is 100. +- **next_page_cursor** (`string`, optional) The cursor token to retrieve the next set of results from a paged response. +- **sort_criteria** (`array[string]`, optional) Fields to use for sorting results. Valid options: `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. Default: `createdAt`. +- **updated_after_date** (`string`, optional) Only return folders last updated after the specified time. Use ISO 8601 format for the date and time. +- **updated_before_timestamp** (`string`, optional) Return folders last updated before this specified timestamp. + +## HubspotCmsApi.CreateLandingPageFolder + +
+ + +Create a new folder in HubSpot CMS for landing pages. + +**Parameters** + +- **deletion_timestamp** (`string`, required) The ISO8601 timestamp indicating when the folder was deleted. Leave this empty if the folder is active. +- **folder_category** (`integer`, required) The type of object this folder applies to. Must be set to LANDING_PAGE. +- **folder_creation_date** (`string`, required) The ISO8601 timestamp when this folder was created. +- **folder_name** (`string`, required) The name of the folder to display in the app dashboard. +- **folder_unique_id** (`string`, required) The unique identifier for the content folder. This is a string that serves as the primary key for the folder. +- **parent_folder_id** (`integer`, required) The ID of the parent content folder under which the new folder will be nested. +- **updated_timestamp** (`string`, required) The timestamp in ISO8601 format indicating when the folder was last updated. + +## HubspotCmsApi.AttachPageToLanguageGroup + +
+ + +Attach a site page to a multi-language group. + +**Parameters** + +- **object_id_to_add_to_language_group** (`string`, required) ID of the site page object to add to a multi-language group. +- **page_language** (`string`, required) Designated language code (e.g., 'en', 'fr') of the page to add to a multi-language group. +- **primary_language_object_id** (`string`, required) ID of the primary language object in the multi-language group to which the page will be attached. +- **primary_language_of_group** (`string`, optional) Specify the primary language for the multi-language group. + +## HubspotCmsApi.ScheduleSitePagePublication + +
+ + +Schedule a site page for publication at a specified time. + +**Parameters** + +- **object_id_to_schedule** (`string`, required) The ID of the site page to be scheduled for publication. +- **publication_date** (`string`, required) The date and time when the site page should be published. Use ISO 8601 format (e.g., '2023-12-31T23:59:00Z'). + +## HubspotCmsApi.DetachSitePageFromLanguageGroup + +
+ + +Detach a site page from a multi-language group. + +**Parameters** + +- **object_id_to_detach** (`string`, required) The ID of the site page to detach from the multi-language group. + +## HubspotCmsApi.CreateLandingPageFolders + +
+ + +Create multiple landing page folders in HubSpot CMS. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.GetPreviousSitePageVersions + +
+ + +Retrieve previous versions of a site page. + +**Parameters** + +- **site_page_id** (`string`, required) The unique identifier for the Site Page to retrieve its previous versions. +- **max_results_limit** (`integer`, optional) The maximum number of previous versions to retrieve. Defaults to 100 if not specified. +- **next_results_cursor** (`string`, optional) The cursor token to fetch the next set of site page versions. Obtain this from `paging.next.after` in the response of a previous request. +- **page_version_cursor_before** (`string`, optional) The cursor token to get the set of results before a specific point. Useful for backward paging through results. + +## HubspotCmsApi.GetLandingPageDraft + +
+ + +Retrieve the full draft version of a landing page. + +**Parameters** + +- **landing_page_id** (`string`, required) The unique identifier for the Landing Page draft to be retrieved. + +## HubspotCmsApi.UpdateLandingPageDraft + +
+ + +Update draft of a specific landing page by ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **landing_page_id** (`string`, optional) The ID of the landing page to be updated. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.GetLandingPages + +
+ + +Retrieve a list of HubSpot CMS landing pages. + +**Parameters** + +- **created_after** (`string`, optional) Return landing pages created after this specified timestamp (ISO 8601 format). +- **created_at_timestamp** (`string`, optional) Return landing pages created at the specified exact timestamp. Format: ISO 8601. +- **created_before_timestamp** (`string`, optional) Only return landing pages created before the specified ISO 8601 timestamp. +- **cursor_after_token** (`string`, optional) The token to get the next set of results. Obtainable from `paging.next.after` in a paged response. +- **filter_by_property** (`string`, optional) Specify a property to filter the landing pages by. +- **include_archived_pages** (`boolean`, optional) Specify whether to include deleted landing pages in the results. Defaults to false. +- **last_updated_before** (`string`, optional) Return landing pages updated before this specified datetime (ISO format). +- **last_updated_exact_time** (`string`, optional) Return Landing Pages last updated at exactly this time. Use ISO 8601 format. +- **max_results** (`integer`, optional) Specify the maximum number of landing pages to return. Default is 100. +- **sort_fields_for_results** (`array[string]`, optional) Specifies fields for sorting results. Valid options: `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. Default is `createdAt`. +- **updated_after_datetime** (`string`, optional) Return landing pages updated after this datetime in ISO 8601 format. + +## HubspotCmsApi.CreateLandingPage + +
+ + +Create a new landing page in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.EndActiveAbTest + +
+ + +End an active A/B test and designate a winner. + +**Parameters** + +- **test_id_to_end** (`string`, required) The unique identifier of the A/B test that you want to conclude in the HubSpot CMS. +- **winner_id** (`string`, required) The ID of the object to designate as the winner of the A/B test. This should match the ID used in the CMS to identify the specific variant. + +## HubspotCmsApi.RestoreSitePageToDraft + +
+ + +Restore a specific site page version to draft. + +**Parameters** + +- **site_page_id** (`string`, required) The ID of the Site Page to be restored to draft. +- **site_page_version_id_to_restore** (`integer`, required) The ID of the Site Page version to restore as the new draft. + +## HubspotCmsApi.CreateLandingPages + +
+ + +Create multiple landing pages in HubSpot CMS. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.UpdateLandingPagesBatch + +
+ + +Batch update landing pages in HubSpot CMS. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **update_deleted_landing_pages** (`boolean`, optional) Set to true to update deleted (archived) Landing Pages. Defaults to false. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.RetrieveLandingPages + +
+ + +Retrieve specified Landing Page objects from HubSpot CMS. + +**Parameters** + +- **landing_page_ids** (`array[string]`, required) Array of strings, each representing a Landing Page ID to retrieve details for. +- **return_archived_landing_pages** (`boolean`, optional) Specify whether to return deleted Landing Pages. Defaults to `false`. + +## HubspotCmsApi.CloneLandingPageHubspot + +
+ + +Clone a landing page in HubSpot CMS. + +**Parameters** + +- **landing_page_id** (`string`, required) ID of the landing page to be cloned. Required for identifying the source page. +- **cloned_landing_page_name** (`string`, optional) The name to assign to the newly cloned landing page in HubSpot CMS. + +## HubspotCmsApi.RestoreFolderVersion + +
+ + +Restore a specific version of a folder in HubSpot CMS. + +**Parameters** + +- **folder_id** (`string`, required) The unique identifier for the folder you want to restore in HubSpot CMS. +- **folder_version_id_to_restore** (`string`, required) The ID of the folder version to be restored in HubSpot CMS. + +## HubspotCmsApi.SetPrimaryLandingPageLanguage + +
+ + +Set a landing page as the primary language for a group. + +**Parameters** + +- **landing_page_id** (`string`, required) The ID of the landing page to set as primary in the multi-language group. + +## HubspotCmsApi.RestoreLandingPageVersion + +
+ + +Restore a specific version of a HubSpot landing page. + +**Parameters** + +- **landing_page_id** (`string`, required) The unique identifier for the landing page you want to restore. +- **landing_page_version_id** (`string`, required) The ID of the Landing Page version to be restored. + +## HubspotCmsApi.GetSitePageDraft + +
+ + +Retrieve the full draft version of the Site Page. + +**Parameters** + +- **site_page_id** (`string`, required) The unique identifier for the site page to retrieve its draft version. + +## HubspotCmsApi.UpdateSitePageDraft + +
+ + +Update the draft version of a specific site page. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **site_page_id** (`string`, optional) The unique identifier for the Site Page to update the draft. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.RetrieveSitePages + +
+ + +Retrieve Site Page objects from HubSpot CMS. + +**Parameters** + +- **page_identifiers** (`array[string]`, required) An array of strings, each representing an identifier for a Site Page to be retrieved. Use these IDs to specify which Site Pages to access. +- **return_deleted_site_pages** (`boolean`, optional) Set to true to return deleted Site Pages; false to exclude them. + +## HubspotCmsApi.GetLandingPageFolderById + +
+ + +Retrieve details of a landing page folder by its ID. + +**Parameters** + +- **folder_id** (`string`, required) The unique identifier for the landing page folder to retrieve. +- **filter_by_property** (`string`, optional) Specify properties to include in the response for the folder object. Leave empty to fetch all properties. +- **include_archived_folders** (`boolean`, optional) Specifies whether to include deleted folders in the response. Use 'true' to include them; defaults to 'false'. + +## HubspotCmsApi.DeleteLandingPageFolder + +
+ + +Deletes a CMS landing page folder by ID. + +**Parameters** + +- **folder_id** (`string`, required) The ID of the folder to be deleted. Provide the specific ID of the CMS landing page folder you wish to delete. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived results. + +## HubspotCmsApi.UpdateLandingPageFolder + +
+ + +Update specific attributes of a landing page folder. + +**Parameters** + +- **content_folder_unique_id** (`string`, required) The unique ID of the landing page content folder to be updated. +- **creation_timestamp** (`string`, required) The creation timestamp of the folder in ISO8601 format. Used for reference only, typically not updated. +- **deletion_timestamp_iso8601** (`string`, required) The timestamp in ISO8601 format indicating when the content folder was deleted. Required for specifying deletion time. +- **folder_category** (`integer`, required) Specify the object type for the folder. Must be LANDING_PAGE. +- **folder_id** (`string`, required) The unique ID of the landing page folder to be updated. +- **folder_name** (`string`, required) Specify the new name of the landing page folder to display in the app dashboard. +- **parent_folder_id** (`integer`, required) The ID of the content folder this folder is nested under. Specify this to set a new parent folder. +- **update_timestamp** (`string`, required) The timestamp when the folder was last updated, in ISO8601 format. This indicates when changes were made. +- **update_deleted_folders** (`boolean`, optional) Set to true to update folders marked as deleted. Defaults to false. + +## HubspotCmsApi.CreateAbTestVariation + +
+ + +Create a new A/B test variation in HubSpot CMS. + +**Parameters** + +- **ab_test_variation_name** (`string`, required) The name of the A/B test variation to be created. +- **object_test_id** (`string`, required) The ID of the object to be tested in the A/B test variation. + +## HubspotCmsApi.GetSitePagesList + +
+ + +Retrieve a list of site pages with filtering options. + +**Parameters** + +- **created_at_time_filter** (`string`, optional) Return Site Pages created at exactly the specified time. Accepts an exact timestamp in string format. +- **created_before_date_time** (`string`, optional) Return Site Pages created before this date-time. Use ISO 8601 format. +- **filter_created_after** (`string`, optional) Return Site Pages created after the specified time. Use an ISO 8601 timestamp format. +- **filter_updated_after** (`string`, optional) Return site pages updated after this specific time. Use ISO 8601 format. +- **include_deleted_site_pages** (`boolean`, optional) Set to true to include deleted Site Pages in the results. Defaults to false if not specified. +- **include_property_details** (`string`, optional) Specify the properties to include in the Site Pages results. Leave empty to include all properties. +- **last_updated_before** (`string`, optional) Return site pages last updated before this datetime. Format: ISO 8601 string. +- **last_updated_exact_time** (`string`, optional) Return site pages last updated at exactly the specified time in ISO 8601 format. +- **maximum_results** (`integer`, optional) The maximum number of site pages to return. Default is 100. +- **next_page_cursor** (`string`, optional) Cursor token for paged results; use `paging.next.after` for the next set. +- **sort_fields_for_results** (`array[string]`, optional) Specify fields for sorting site pages. Options: `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. Default is `createdAt`. + +## HubspotCmsApi.CreateSitePage + +
+ + +Create a new site page in HubSpot CMS. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.AttachLandingPageToLanguageGroup + +
+ + +Attach a landing page to a multi-language group. + +**Parameters** + +- **designated_language_to_add** (`string`, required) The language of the landing page to add to a multi-language group. Expect a language code. +- **object_id_for_language_group** (`string`, required) ID of the landing page to add to the multi-language group. +- **primary_language_object_id** (`string`, required) Provide the ID of the primary language object in the multi-language group to which the landing page will be attached. +- **primary_language** (`string`, optional) Specifies the primary language of the multi-language group to which the landing page will be attached. + +## HubspotCmsApi.CreateLanguageVariation + +
+ + +Create a new language variation for a site page. + +**Parameters** + +- **content_id_to_clone** (`string`, required) ID of the site page content to clone for creating a language variation. +- **primary_content_language** (`string`, optional) Specify the language of the primary content to clone for creating the variation. +- **target_language** (`string`, optional) Target language code for the new site page variant, e.g., 'fr' for French. + +## HubspotCmsApi.RetrievePreviousLandingPageVersion + +
+ + +Retrieve a previous version of a Landing Page. + +**Parameters** + +- **landing_page_id** (`string`, required) The unique identifier for the landing page. +- **landing_page_version_id** (`string`, required) The ID of the landing page version to retrieve. + +## HubspotCmsApi.EndAbTestSelectWinner + +
+ + +End an active A/B test and designate a winner. + +**Parameters** + +- **test_id_to_end** (`string`, required) ID of the A/B test to be ended. +- **winner_object_id** (`string`, required) ID of the landing page variant to designate as the winner of the A/B test. + +## HubspotCmsApi.PublishLandingPageDraft + +
+ + +Publish changes from a landing page draft to live. + +**Parameters** + +- **landing_page_id** (`string`, required) The ID of the landing page whose draft will be pushed live. + +## HubspotCmsApi.DetachLandingPageFromLanguageGroup + +
+ + +Detach a landing page from a multi-language group. + +**Parameters** + +- **landing_page_id** (`string`, required) The ID of the landing page to detach from the multi-language group in HubSpot CMS. + +## HubspotCmsApi.NewAbTestVariation + +
+ + +Create a new A/B test variation in HubSpot CMS. + +**Parameters** + +- **ab_test_variation_name** (`string`, required) The name for the new A/B test variation to be created. +- **object_id_to_test** (`string`, required) ID of the object to be tested in the A/B test variation. + +## HubspotCmsApi.ScheduleLandingPage + +
+ + +Schedule a landing page for publication. + +**Parameters** + +- **landing_page_id** (`string`, required) The unique identifier for the landing page to be scheduled for publication. +- **publication_date** (`string`, required) The date when the landing page should be published. Use the format YYYY-MM-DD. + +## HubspotCmsApi.UpdateLandingPageLanguages + +
+ + +Update languages for landing pages in a multi-language group. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.UpdateSitePageLanguages + +
+ + +Set new languages for site pages in a multi-language group. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.RerunPreviousAbTest + +
+ + +Rerun a previous A/B test on a landing page. + +**Parameters** + +- **test_id_to_rerun** (`string`, required) Provide the ID of the test you want to rerun on the landing page. +- **variation_id** (`string`, required) Provide the ID of the object you wish to reactivate as a test variation. This ID is necessary to specify which variation of the landing page you intend to rerun in the A/B test. + +## HubspotCmsApi.DeleteLandingPageFolders + +
+ + +Delete specified landing page folders in HubSpot CMS. + +**Parameters** + +- **folder_identifiers** (`array[string]`, required) An array of strings representing the identifiers of the folders to be deleted. + +## HubspotCmsApi.CreateSitePagesBatch + +
+ + +Create multiple site page objects in batch. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.DeleteCmsSitePages + +
+ + +Delete specified Site Page objects in the CMS. + +**Parameters** + +- **page_ids_to_delete** (`array[string]`, required) An array of strings representing the IDs of the Site Page objects to delete. + +## HubspotCmsApi.UpdateLandingPageFolders + +
+ + +Update multiple HubSpot CMS landing page folders. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **only_include_archived_results** (`boolean`, optional) Set to true to return only archived folder results; false to return all folders. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.CloneSitePage + +
+ + +Clone an existing site page in HubSpot CMS. + +**Parameters** + +- **object_id_to_clone** (`string`, required) ID of the site page to be cloned in HubSpot CMS. +- **clone_name** (`string`, optional) The desired name for the cloned site page object. + +## HubspotCmsApi.SetPrimaryLanguageForSitePage + +
+ + +Set a site page as the primary language of its group. + +**Parameters** + +- **page_id_to_set_primary** (`string`, required) The ID of the site page to set as the primary language in the multi-language group. + +## HubspotCmsApi.RetrieveFolderPreviousVersion + +
+ + +Retrieve a previous version of a folder in HubSpot CMS. + +**Parameters** + +- **folder_id** (`string`, required) The unique identifier for the folder whose previous version you want to retrieve. +- **folder_version_id** (`string`, required) The unique identifier for the folder version to be retrieved. + +## HubspotCmsApi.ResetLandingPageDraft + +
+ + +Reset a landing page draft to its live version. + +**Parameters** + +- **landing_page_id** (`string`, required) The ID of the Landing Page whose draft will be reset to the live version. + +## HubspotCmsApi.GetLandingPageById + +
+ + +Retrieve details of a specific landing page by ID. + +**Parameters** + +- **landing_page_id** (`string`, required) The unique identifier of the landing page to be retrieved. +- **include_archived** (`boolean`, optional) Include deleted landing pages in the response if set to true. Defaults to false. +- **landing_page_property** (`string`, optional) Specify which properties of the landing page to retrieve, such as 'title' or 'url'. Leave blank to fetch all. + +## HubspotCmsApi.DeleteLandingPage + +
+ + +Delete a specified landing page by its ID. + +**Parameters** + +- **landing_page_id** (`string`, required) The unique identifier of the landing page to delete in HubSpot CMS. +- **return_archived_results_only** (`boolean`, optional) Set to true to only return results that have been archived. + +## HubspotCmsApi.UpdateLandingPage + +
+ + +Update specific fields of a landing page by ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **landing_page_id** (`string`, optional) The unique ID of the landing page to update. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **update_archived_pages** (`boolean`, optional) Set to true to update archived (deleted) Landing Pages. Defaults to false. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.PublishSitePage + +
+ + +Publish draft changes to live site page. + +**Parameters** + +- **site_page_id** (`string`, required) The ID of the Site Page whose draft will be published live. Ensure it corresponds to the correct page in HubSpot CMS. + +## HubspotCmsApi.CreateMultilanguageLandingPage + +
+ + +Create a new language variation for a landing page. + +**Parameters** + +- **content_id_to_clone** (`string`, required) The ID of the landing page content to be cloned for creating a new language variation. +- **primary_language_of_content** (`string`, optional) Language code of the primary content to be cloned for creating the new language variation. +- **target_language** (`string`, optional) Specify the target language for the new landing page variant. + +## HubspotCmsApi.DeleteLandingPages + +
+ + +Deletes specified HubSpot landing pages permanently. + +**Parameters** + +- **landing_page_ids** (`array[string]`, required) An array of strings representing the IDs of landing pages to delete permanently. + +## HubspotCmsApi.RestoreLandingPageDraft + +
+ + +Restore a specified landing page version to draft. + +**Parameters** + +- **landing_page_id** (`string`, required) The ID of the landing page to restore a specific version to draft. +- **landing_page_version_id_to_restore** (`integer`, required) The ID of the landing page version you want to restore as the new draft. + +## HubspotCmsApi.RestartAbTest + +
+ + +Rerun a previous A/B test to gain new insights. + +**Parameters** + +- **ab_test_id** (`string`, required) The unique ID of the A/B test you wish to rerun on your HubSpot CMS site pages. +- **test_variation_id** (`string`, required) ID of the object to reactivate as a test variation for the A/B test. + +## HubspotCmsApi.ResetHubspotPageDraft + +
+ + +Resets HubSpot CMS draft to the live version. + +**Parameters** + +- **site_page_id** (`string`, required) The ID of the HubSpot Site Page whose draft will be reset to the live version. + +## HubspotCmsApi.RetrieveSitePageById + +
+ + +Retrieve Site Page details by ID. + +**Parameters** + +- **site_page_id** (`string`, required) The unique identifier for the Site Page to retrieve. +- **return_archived_site_pages** (`boolean`, optional) Boolean indicating whether to return deleted Site Pages. Defaults to 'false'. +- **site_page_property** (`string`, optional) Specify the property of the Site Page to return. Leave empty to retrieve all properties. + +## HubspotCmsApi.DeleteSitePage + +
+ + +Delete a specified site page in HubSpot CMS. + +**Parameters** + +- **site_page_id** (`string`, required) The unique identifier for the site page to be deleted in HubSpot CMS. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only the pages that have been archived. + +## HubspotCmsApi.UpdateSitePage + +
+ + +Update specific fields of a HubSpot site page. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **site_page_id** (`string`, optional) The unique identifier for the Site Page to be updated. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **update_deleted_site_pages** (`boolean`, optional) Boolean to specify whether to update deleted Site Pages. Defaults to `false`. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.UpdateFolderObjects + +
+ + +Update specified folder objects in HubSpot CMS. + +**Parameters** + +- **folder_identifiers** (`array[string]`, required) An array of strings identifying folder objects to update in HubSpot CMS. +- **include_archived_folders** (`boolean`, optional) Indicate whether to include archived folders in the results. Defaults to `false`. + +## HubspotCmsApi.ScheduleBlogPost + +
+ + +Schedule a blog post for future publication. + +**Parameters** + +- **blog_post_id** (`string`, required) The ID of the blog post to be scheduled for future publication. +- **scheduled_publish_date** (`string`, required) The date and time when the blog post should be published, formatted as a string (e.g., '2023-12-31T23:59:59'). + +## HubspotCmsApi.RetrieveBlogPostsById + +
+ + +Retrieve a batch of blog posts by their IDs. + +**Parameters** + +- **blog_post_ids** (`array[string]`, required) A list of blog post IDs to retrieve. Each ID should be a string. +- **include_archived_posts** (`boolean`, optional) Include deleted blog posts if true. Defaults to `false`. + +## HubspotCmsApi.UpdateBlogPostLanguages + +
+ + +Set new languages for multi-language blog posts. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.CreateBatchBlogPosts + +
+ + +Create multiple blog posts in a single request. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.UpdateBlogPostsBatch + +
+ + +Update a batch of blog posts in the CMS. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **update_archived_posts** (`boolean`, optional) Indicates whether to update deleted blog posts. Defaults to `false`. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.RestoreBlogPostToDraft + +
+ + +Restore a previous blog post version to draft. + +**Parameters** + +- **blog_post_id** (`string`, required) The unique identifier for the blog post to be restored to a draft version. This is the same as the blog post's current ID in the HubSpot CMS. +- **version_to_restore_id** (`integer`, required) The ID of the blog post version to revert to the draft state. + +## HubspotCmsApi.GetBlogPostDraft + +
+ + +Retrieve the full draft version of a blog post. + +**Parameters** + +- **blog_post_id** (`string`, required) The ID of the blog post to retrieve the draft version. + +## HubspotCmsApi.UpdateBlogPostDraft + +
+ + +Update specific fields of a blog post draft. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **blog_post_id** (`string`, optional) The ID of the blog post draft to update. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.RetrievePreviousBlogVersion + +
+ + +Retrieve a previous version of a blog post. + +**Parameters** + +- **blog_post_id** (`string`, required) The unique identifier for the blog post whose previous version is to be retrieved. +- **version_id** (`string`, required) The ID of the specific blog post version to retrieve. + +## HubspotCmsApi.NewLanguageBlogVariation + +
+ + +Create a new language variation from an existing blog post. + +**Parameters** + +- **blog_post_id** (`string`, required) The ID of the blog post you want to clone into a new language variation. +- **target_language** (`string`, optional) The language code for the target language of the new blog post variation (e.g., 'fr' for French). + +## HubspotCmsApi.CloneBlogPost + +
+ + +Creates a copy of an existing blog post. + +**Parameters** + +- **blog_post_id** (`string`, required) ID of the blog post to be cloned. This identifies the specific blog post you want to duplicate. +- **cloned_blog_post_name** (`string`, optional) The name for the newly cloned blog post. This is how the cloned post will be titled or identified. + +## HubspotCmsApi.RetrieveBlogPosts + +
+ + +Retrieve all blog posts with optional paging and filtering. + +**Parameters** + +- **created_after** (`string`, optional) Return blog posts created after the specified time. Use ISO 8601 format for the date-time. +- **created_before** (`string`, optional) Only return blog posts created before the specified time in ISO 8601 format. +- **filter_by_creation_time** (`string`, optional) Return only blog posts created at the specified time in ISO 8601 format. +- **filter_by_update_after** (`string`, optional) Only return blog posts last updated after the specified timestamp. Use a format such as ISO 8601 for date and time. +- **include_archived_posts** (`boolean`, optional) Specify true to include archived (deleted) blog posts in the results. Defaults to false. +- **max_results** (`integer`, optional) The maximum number of blog post results to return. Default is 20. +- **pagination_cursor_token** (`string`, optional) The cursor token to retrieve the next set of blog post results. Obtain from `paging.next.after` in a previous response. +- **return_specific_properties** (`string`, optional) Comma-separated list of specific fields to return for each blog post (e.g., 'title,author,date'). Leave empty to return all fields. +- **sort_fields_for_results** (`array[string]`, optional) An array specifying fields to sort blog posts. Use fields like `createdAt`, `name`, `updatedAt`, `createdBy`, `updatedBy`. +- **updated_at_exact** (`string`, optional) Return blog posts last updated at the exact specified time in ISO 8601 format. +- **updated_before_date** (`string`, optional) Return blog posts last updated before this date. Use ISO 8601 format (e.g., '2023-09-04T15:00:00Z'). + +## HubspotCmsApi.CreateBlogPost + +
+ + +Create a new blog post with specified content. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.RestoreBlogPostVersion + +
+ + +Restore a blog post to a previous version. + +**Parameters** + +- **blog_post_id** (`string`, required) The ID of the blog post to be restored to a previous version. +- **version_to_restore_id** (`string`, required) The unique identifier of the blog post version to which you want to revert. + +## HubspotCmsApi.DetachBlogPostLanguageGroup + +
+ + +Detach a blog post from a multi-language group. + +**Parameters** + +- **object_id_to_detach_from_language_group** (`string`, required) ID of the blog post to be removed from the multi-language group. + +## HubspotCmsApi.PublishBlogPost + +
+ + +Publish a draft blog post to make it live. + +**Parameters** + +- **blog_post_id** (`string`, required) The unique identifier of the blog post to be published live. + +## HubspotCmsApi.DeleteBlogPost + +
+ + +Delete a blog post by its unique ID. + +**Parameters** + +- **blog_post_ids_to_delete** (`array[string]`, required) An array of blog post IDs to delete. Each ID should be a string representing a unique blog post. + +## HubspotCmsApi.ResetBlogPostDraft + +
+ + +Resets a blog post draft to the currently published content. + +**Parameters** + +- **blog_post_id** (`string`, required) The unique ID of the blog post draft that you want to reset to the published version. + +## HubspotCmsApi.AttachBlogPostToLanguageGroup + +
+ + +Attach a blog post to a multi-language group in HubSpot CMS. + +**Parameters** + +- **designated_language** (`string`, required) Specify the language code (e.g., 'en', 'fr', 'es') for the blog post to be added to the multi-language group. +- **object_id** (`string`, required) The ID of the blog post to attach to a multi-language group. +- **primary_language_object_id** (`string`, required) ID of the primary language object in the multi-language group. +- **primary_language** (`string`, optional) Primary language of the multi-language group. Specify in ISO language code format (e.g., 'en', 'fr'). + +## HubspotCmsApi.SetPrimaryLanguageBlogPost + +
+ + +Set the primary language of a blog post in a multi-language group. + +**Parameters** + +- **blog_post_id** (`string`, required) The ID of the blog post to set as primary in its multi-language group. + +## HubspotCmsApi.GetPreviousBlogPostVersions + +
+ + +Retrieve all previous versions of a blog post in HubSpot. + +**Parameters** + +- **blog_post_id** (`string`, required) The unique ID of the blog post for retrieving its previous versions in HubSpot CMS. +- **before_timestamp** (`string`, optional) The timestamp to retrieve versions updated before this time. +- **maximum_results_limit** (`integer`, optional) The maximum number of blog post versions to return. Default is 100. +- **next_page_cursor** (`string`, optional) The cursor token to retrieve the next set of blog post versions, obtained from `paging.next.after`. + +## HubspotCmsApi.RetrieveBlogPostById + +
+ + +Retrieve a blog post by its ID from HubSpot CMS. + +**Parameters** + +- **blog_post_id** (`string`, required) The unique identifier of the blog post to retrieve from HubSpot CMS. +- **include_archived_posts** (`boolean`, optional) If true, includes deleted (archived) blog posts in the retrieval. Defaults to false. +- **return_specific_properties** (`string`, optional) Comma-separated list of specific properties to retrieve from the blog post. + +## HubspotCmsApi.RemoveBlogPost + +
+ + +Delete a blog post by its ID. + +**Parameters** + +- **blog_post_id** (`string`, required) The unique ID of the blog post to delete. This ID identifies which specific post will be removed. +- **only_archived_results** (`boolean`, optional) Set to true to return only deleted (archived) blog posts. + +## HubspotCmsApi.UpdateBlogPost + +
+ + +Update specific fields of a blog post by ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **blog_post_id** (`string`, optional) The unique identifier of the blog post to update. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **update_archived_posts** (`boolean`, optional) Set to true to update deleted (archived) blog posts. Defaults to false. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.RetrieveIndexedDataByContentId + +
+ + +Retrieve all indexed data for a specific document by ID. + +**Parameters** + +- **document_id** (`string`, required) ID of the target document when searching for indexed properties in HubSpot CMS. +- **document_type** (`string`, optional) Specify the document type, such as `SITE_PAGE`, `BLOG_POST`, or `KNOWLEDGE_ARTICLE`. + +## HubspotCmsApi.SearchWebsiteContent + +
+ + +Search for website content on a HubSpot account. + +**Parameters** + +- **blog_ids_to_search** (`array[integer]`, optional) List of blog IDs to search within. Allows searching multiple blogs by their IDs. +- **boost_recent_time_window** (`string`, optional) A relative time window to boost scores of documents published within this period. Use '10d' for 10 days. Supported units: ms, s, m, h, d. Applicable to blog posts only. +- **content_language_code** (`string`, optional) Specifies the language of content to be searched using a valid ISO 639-1 code (e.g. 'es' for Spanish). +- **content_type_filters** (`array[string]`, optional) List of content types to search, such as SITE_PAGE, LANDING_PAGE, BLOG_POST, LISTING_PAGE, and KNOWLEDGE_ARTICLE. +- **hubdb_query_filter** (`string`, optional) Specify a HubDB query to filter search results in the specified table. +- **hubdb_table_id** (`integer`, optional) Specifies a specific HubDB table to search. Only results from this table are returned. Can be combined with 'hubdb_query' for further filtering. +- **invert_path_prefix_filter** (`boolean`, optional) Set to 'false' to apply the normal behavior of the pathPrefix filter; 'true' to invert it. +- **maximum_boost_limit** (`number`, optional) Specifies the maximum amount a result will be boosted based on its view count. Defaults to 5.0. +- **pagination_offset** (`integer`, optional) Integer used to page through results. Use the offset from the previous request to access the next set of results. +- **path_prefixes** (`array[string]`, optional) An array of strings to filter search results by URL path prefix. Only returns results with paths starting with specified prefixes. +- **popularity_boost** (`number`, optional) Specify the boost factor for a result based on its view count. Defaults to 1.0. +- **result_length** (`string`, optional) Specifies whether search results should be detailed (LONG) or brief (SHORT). +- **results_limit** (`integer`, optional) The number of search results to return. Defaults to 10 and has a maximum of 100. +- **search_domains** (`array[string]`, optional) List of domains to match search results for. Multiple domains can be included by separating them with '&'. +- **search_properties** (`array[string]`, optional) A list of properties to include in the search. Options: `title`, `description`, `html`. By default, all properties are searched. +- **search_term** (`string`, optional) The term to search for in the HubSpot website content. +- **show_autocomplete** (`boolean`, optional) Specify whether autocomplete results should be shown. Defaults to false. + +## HubspotCmsApi.GetFileMetadata + +
+ + +Retrieve metadata for a file in a specified environment. + +**Parameters** + +- **file_environment** (`string`, required) Specify the environment of the file, either 'draft' or 'published'. +- **file_path** (`string`, required) The file system location of the file to retrieve metadata for. +- **include_properties** (`string`, optional) Comma-separated list of additional properties to include in the metadata response, if applicable. + +## HubspotCmsApi.DownloadFileFromHubspotCms + +
+ + +Download file content from HubSpot CMS by path and environment. + +**Parameters** + +- **file_environment** (`string`, required) Specify the environment of the file. Options are 'draft' or 'published'. +- **file_system_path** (`string`, required) The file system path to the file within HubSpot CMS to be downloaded. + +## HubspotCmsApi.DeleteFileInCmsEnvironment + +
+ + +Deletes a file in a specified CMS environment. + +**Parameters** + +- **file_environment** (`string`, required) Specify the environment of the file to delete. Valid values are "draft" or "published". +- **file_system_location** (`string`, required) The file system location of the file to be deleted. + +## HubspotCmsApi.ExtractZipFileAsync + +
+ + +Initiate asynchronous extraction of a zip file on HubSpot CMS. + +**Parameters** + +- **zip_file_path** (`string`, required) The path to the zip file in the developer file system that needs extraction. + +## HubspotCmsApi.CheckExtractionStatus + +
+ + +Retrieve the current status of a source-code extraction task. + +**Parameters** + +- **extraction_task_id** (`integer`, required) The unique ID of the extraction task, obtained from the initial `extract/async` request. This ID is required to check the status of the extraction. + +## HubspotCmsApi.UpdateBlogTags + +
+ + +Update multiple blog tags in HubSpot CMS. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **update_deleted_blog_tags** (`boolean`, optional) Specifies whether to update deleted blog tags. Defaults to false. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.UpdateBlogTagLanguages + +
+ + +Update languages for blog tags in a multi-language group. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.DetachBlogTagFromLanguageGroup + +
+ + +Detach a Blog Tag from a multi-language group. + +**Parameters** + +- **blog_tag_id** (`string`, required) ID of the blog tag to remove from a multi-language group in HubSpot CMS. + +## HubspotCmsApi.CreateBlogTagsBatch + +
+ + +Create multiple blog tags in a single request. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCmsApi.ArchiveBlogTags + +
+ + +Archive multiple blog tags in HubSpot CMS. + +**Parameters** + +- **blog_tag_identifiers** (`array[string]`, required) An array of strings representing the blog tag identifiers to be archived. + +## HubspotCmsApi.SetBlogTagPrimaryLanguage + +
+ + +Set a blog tag as the primary language in a multi-language group. + +**Parameters** + +- **primary_language_tag_id** (`string`, required) ID of the blog tag to set as the primary language in a multi-language group. + +## HubspotCmsApi.RetrieveBlogTags + +
+ + +Retrieve Blog Tag objects based on specified IDs. + +**Parameters** + +- **blog_tag_ids** (`array[string]`, required) A list of strings representing the IDs of the Blog Tag objects to retrieve. +- **include_deleted_tags** (`boolean`, optional) Boolean indicating if deleted Blog Tags should be included in the response. If true, deleted tags are returned. + +## HubspotCmsApi.GetBlogTags + +
+ + +Retrieve a list of blog tags with paging and filtering options. + +**Parameters** + +- **additional_properties** (`string`, optional) Include additional fields in the response. Specify the properties you want to retrieve. +- **created_after_time** (`string`, optional) Only return Blog Tags created after the specified time. Provide the time in ISO 8601 format. +- **filter_by_creation_time** (`string`, optional) Filter blog tags to return only those created at the specified exact time. Use ISO 8601 format for the date-time. +- **filter_tags_created_before** (`string`, optional) Only return blog tags created before the specified date and time in UTC, formatted as an ISO 8601 string. +- **include_archived_tags** (`boolean`, optional) Specify whether to return deleted blog tags. Defaults to false. +- **last_updated_before** (`string`, optional) Return blog tags updated before this date and time (in ISO 8601 format). +- **maximum_results_to_return** (`integer`, optional) Specify the maximum number of blog tags to return. Default is 100. +- **pagination_cursor_token** (`string`, optional) The token to retrieve the next set of results from a paginated response. Obtain this from the `paging.next.after` property in the previous response. +- **sort_fields_for_results** (`array[string]`, optional) Fields to sort results by. Options: `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. Default is `createdAt`. +- **updated_after** (`string`, optional) Return Blog Tags last updated after the specified date and time. Provide in ISO 8601 format, e.g., '2023-10-21T15:30:00Z'. +- **updated_at_exact** (`string`, optional) Return blog tags last updated at the specified exact time (ISO 8601 format). + +## HubspotCmsApi.CreateBlogTag + +
+ + +Create a new blog tag in HubSpot CMS. + +**Parameters** + +- **blog_tag_unique_id** (`string`, required) The unique ID assigned to the Blog Tag. +- **creation_timestamp** (`string`, required) The timestamp (ISO8601 format) when this Blog Tag was created. Leave empty if not applicable. +- **deletion_timestamp** (`string`, required) The ISO8601 timestamp marking when the blog tag was deleted. +- **language_code** (`string`, required) The explicit ISO 639 language code for the tag, such as 'en' for English or 'es' for Spanish. +- **primary_tag_translation_id** (`integer`, required) Specify the ID of the primary tag that this tag was translated from. +- **tag_name** (`string`, required) The name for the new blog tag to be created in HubSpot CMS. +- **updated_timestamp** (`string`, required) The timestamp (ISO8601 format) when the Blog Tag was last updated. + +## HubspotCmsApi.AttachTagToLanguageGroup + +
+ + +Attach a blog tag to a multi-language group. + +**Parameters** + +- **designated_language** (`string`, required) Specify the language of the blog tag to add to a multi-language group. Use a language code like 'en' for English. +- **object_id_for_multilanguage_group** (`string`, required) ID of the blog tag to add to the multi-language group. +- **primary_language_object_id** (`string`, required) ID of the primary language object in the multi-language group. +- **primary_language** (`string`, optional) Specifies the primary language of the multi-language group. + +## HubspotCmsApi.RetrieveBlogTagById + +
+ + +Retrieve blog tag details using its ID. + +**Parameters** + +- **blog_tag_id** (`string`, required) The unique identifier for the Blog Tag to be retrieved. +- **include_archived_blog_tags** (`boolean`, optional) Specify whether to include archived blog tags in the response. Defaults to `false`. +- **property_name** (`string`, optional) Specify a property of the blog tag to retrieve. Leave blank to get all details. + +## HubspotCmsApi.DeleteBlogTag + +
+ + +Delete a specified Blog Tag in HubSpot CMS. + +**Parameters** + +- **blog_tag_id** (`string`, required) The unique identifier for the Blog Tag to be deleted. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only blog tags that have been archived. + +## HubspotCmsApi.UpdateBlogTag + +
+ + +Update specific fields of a blog tag by its ID. + +**Parameters** + +- **blog_tag_id** (`string`, required) The unique identifier for the blog tag to be updated. +- **blog_tag_unique_id** (`string`, required) The unique ID of the Blog Tag to be updated. +- **created_timestamp** (`string`, required) The timestamp (ISO8601 format) when the blog tag was created. This field is optional and can be used if the creation time needs to be updated. +- **deleted_timestamp** (`string`, required) The ISO8601 timestamp indicating when the blog tag was deleted. +- **language** (`string`, required) The ISO 639 language code for the tag. Select from the available options. +- **last_updated_timestamp** (`string`, required) The ISO8601 timestamp when the blog tag was last updated. +- **primary_tag_translated_from_id** (`integer`, required) ID of the primary tag from which this tag was translated. +- **tag_name** (`string`, required) The new name for the blog tag to be updated. This is a required field when changing the tag's name. +- **update_deleted_blog_tags** (`boolean`, optional) Set to `true` to update deleted Blog Tags. Defaults to `false`. + +## HubspotCmsApi.CreateBlogTagLanguageVariation + +
+ + +Create a new language variation from an existing blog tag. + +**Parameters** + +- **blog_tag_id** (`string`, required) ID of the existing blog tag to be cloned for creating a language variation. +- **new_blog_tag_name** (`string`, required) The name for the newly cloned blog tag language variation. +- **primary_blog_tag_language** (`string`, optional) Specify the language code of the primary blog tag to be cloned, such as 'en', 'fr', etc. +- **target_language_for_blog_tag_variation** (`string`, optional) Specifies the target language for the new blog tag variant. + +## HubspotCmsApi.FetchUrlRedirects + +
+ + +Retrieve all URL redirects with optional filters. + +**Parameters** + +- **created_after_date** (`string`, optional) Return redirects created after this date (format: YYYY-MM-DD). +- **created_at** (`string`, optional) Return redirects created exactly on this date. Format: YYYY-MM-DD. +- **filter_by_exact_update_date** (`string`, optional) Return redirects last updated on this exact date. Use a valid date format (e.g., YYYY-MM-DD). +- **filter_created_before_date** (`string`, optional) Return redirects created before this date. Expected format: YYYY-MM-DD. +- **filter_updated_after** (`string`, optional) Only include redirects updated after this specified date (ISO 8601 format). +- **paging_cursor_token** (`string`, optional) Token for the last read resource to fetch additional results. +- **results_per_page_limit** (`integer`, optional) Maximum number of URL redirects to return per page. Use to control pagination. +- **return_archived_only** (`boolean`, optional) Set to true to return only archived URL redirects, false to exclude them. +- **sort_criteria** (`array[string]`, optional) Specify fields to sort the URL redirects by. Can include multiple fields such as 'createdAt' or 'updatedAt'. +- **updated_before_date** (`string`, optional) Only return redirects last updated before this date (in YYYY-MM-DD format). + +## HubspotCmsApi.CreateUrlRedirect + +
+ + +Creates and configures a new URL redirect in HubSpot CMS. + +**Parameters** + +- **redirect_destination_url** (`string`, required) The target URL to which the redirect will point. This should be a valid and complete URL. +- **redirect_style** (`integer`, required) Integer indicating the style of the redirect. Defines the behavior and type of the redirect, such as permanent (301) or temporary (302). +- **route_prefix** (`string`, required) Defines the prefix for the URL route to be redirected. Provide the specific path without the domain, e.g., '/example-path'. +- **apply_only_after_not_found** (`boolean`, optional) Applies the redirect only after a 404 Not Found response if true. +- **enable_pattern_matching** (`boolean`, optional) Set to true to enable URL pattern matching for the redirect. False matches exact URLs only. +- **enable_protocol_agnostic** (`boolean`, optional) Set to true to ignore the protocol (HTTP/HTTPS) when matching URLs. Enables protocol-agnostic redirects. +- **ignore_trailing_slash** (`boolean`, optional) Set to true to ignore trailing slashes, allowing flexibility in URL matches. +- **match_full_url** (`boolean`, optional) Set to true to match the entire URL exactly. False applies partial matching. +- **match_query_string** (`boolean`, optional) Indicates whether the redirect should match the query string. Set to true to match, false to ignore. +- **redirect_precedence** (`integer`, optional) An integer indicating the priority of the redirect if multiple rules match. Higher numbers take precedence. + +## HubspotCmsApi.GetUrlRedirectDetailsById + +
+ + +Retrieve details of a URL redirect by ID. + +**Parameters** + +- **url_redirect_id** (`string`, required) The ID of the target URL redirect to fetch details for. + +## HubspotCmsApi.DeleteUrlRedirect + +
+ + +Deletes an existing URL redirect in HubSpot CMS. + +**Parameters** + +- **url_redirect_id** (`string`, required) The unique identifier of the URL redirect to be deleted within the HubSpot CMS. + +## HubspotCmsApi.UpdateUrlRedirectSettings + +
+ + +Update settings for an existing URL redirect in HubSpot CMS. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **url_redirect_id** (`string`, optional) The unique identifier for the URL redirect to be updated. This ID specifies which redirect's settings will be modified. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## Reference + +Below is a reference of enumerations used by some of the tools in the HubspotCmsApi MCP Server: + +### ToolMode + +- **GET_REQUEST_SCHEMA**: `get_request_schema` +- **EXECUTE**: `execute` + +## Auth + +The HubspotCmsApi MCP Server uses the Auth Provider with id `arcade-hubspot` to connect to users' HubspotCmsApi accounts. In order to use the MCP Server, you will need to configure the `arcade-hubspot` auth provider. + + diff --git a/app/en/mcp-servers/sales/hubspot-conversations-api/page.mdx b/app/en/mcp-servers/sales/hubspot-conversations-api/page.mdx new file mode 100644 index 000000000..b8a36e0ae --- /dev/null +++ b/app/en/mcp-servers/sales/hubspot-conversations-api/page.mdx @@ -0,0 +1,780 @@ +# HubspotConversationsApi + +import StarterToolInfo from "@/app/_components/starter-tool-info"; +import ToolInfo from "@/app/_components/tool-info"; +import Badges from "@/app/_components/badges"; +import TabbedCodeBlock from "@/app/_components/tabbed-code-block"; +import TableOfContents from "@/app/_components/table-of-contents"; +import ToolFooter from "@/app/_components/tool-footer"; +import { Callout } from "nextra/components"; + + + + + + + +The Hubspot Conversations API MCP Server offers a comprehensive suite of tools for managing and interacting with conversation threads and channels within HubSpot. Users can perform a variety of actions, including: + +- Retrieve and manage conversation inboxes and channels. +- Access detailed information about conversation threads and messages. +- Send new messages and update existing ones within conversation threads. +- Archive or restore conversation threads as needed. +- Resolve actor details and retrieve message history for specific threads. + +This MCP Server is designed to streamline communication management and enhance user engagement through HubSpot's conversational capabilities. + +## Available Tools + + + + + If you need to perform an action that's not listed here, you can [get in touch + with us](mailto:contact@arcade.dev) to request a new tool, or [create your own + tools](/home/build-tools/create-a-mcp-server). + + +## HubspotConversationsApi.ListConversationInboxes + +
+ + +Retrieve a list of conversation inboxes. + +**Parameters** + +This tool does not take any parameters. + +## HubspotConversationsApi.RetrieveThreadById + +
+ + +Retrieve detailed information about a conversation thread by ID. + +**Parameters** + +- **conversation_thread_id** (`string`, required) The unique identifier for the conversation thread you wish to retrieve. Provide the specific thread ID to access its details. + +## HubspotConversationsApi.ArchiveConversationThread + +
+ + +Archives a conversation thread, marking it for deletion. + +**Parameters** + +- **thread_identifier** (`string`, required) The unique identifier of the conversation thread to archive. This is a required field and should match the specific thread you wish to archive. + +## HubspotConversationsApi.UpdateConversationThread + +
+ + +Update the status or restore a conversation thread. + +**Parameters** + +- **thread_identifier** (`string`, required) The unique identifier for the conversation thread to update or restore. +- **is_thread_archived** (`boolean`, optional) Set to true to archive or false to restore the thread. Determines if the thread is currently archived. +- **thread_status** (`string`, optional) Set the thread's status to `OPEN` or `CLOSED`. + +## HubspotConversationsApi.RetrieveFullMessageContent + +
+ + +Retrieve the original text and rich text of a HubSpot message. + +**Parameters** + +- **conversation_thread_id** (`string`, required) The unique identifier for the conversation thread containing the message. +- **message_id** (`string`, required) The unique identifier for the message. Used to retrieve the message's full original content. + +## HubspotConversationsApi.ListConversationChannels + +
+ + +Retrieve a list of conversation channels from Hubspot. + +**Parameters** + +This tool does not take any parameters. + +## HubspotConversationsApi.RetrieveActorDetails + +
+ + +Retrieve details of a specific actor by actor ID. + +**Parameters** + +- **actor_id** (`string`, required) The unique identifier for the actor whose details are to be retrieved. + +## HubspotConversationsApi.RetrieveConversationThreads + +
+ + +Retrieve conversation threads from Hubspot Conversations. + +**Parameters** + +This tool does not take any parameters. + +## HubspotConversationsApi.GetMessageHistoryForThread + +
+ + +Retrieve the message history for a specific thread. + +**Parameters** + +- **thread_id** (`string`, required) The unique identifier for the conversation thread whose message history is to be retrieved. + +## HubspotConversationsApi.SendConversationMessage + +
+ + +Send a new message in a conversation thread. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **thread_id** (`string`, optional) The unique identifier for the conversation thread where the message will be sent. It should be a string that corresponds to the existing thread ID in Hubspot. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotConversationsApi.ResolveConversationActors + +
+ + +Resolve ActorIds to conversation participants. + +**Parameters** + +- **actor_ids** (`array[string]`, required) A list of Actor IDs to resolve into detailed participant information. Each entry should be a string representing an Actor ID. + +## HubspotConversationsApi.GetChannelAccountDetails + +
+ + +Retrieve details of a HubSpot channel account by ID. + +**Parameters** + +- **channel_account_id** (`string`, required) The unique ID of the HubSpot channel account to retrieve details for. This ID is required to fetch the channel account's information. + +## HubspotConversationsApi.RetrieveChannelAccounts + +
+ + +Retrieve a list of channel accounts from Hubspot. + +**Parameters** + +This tool does not take any parameters. + +## HubspotConversationsApi.RetrieveChannelDetails + +
+ + +Retrieve details of a channel using its ID. + +**Parameters** + +- **channel_id** (`string`, required) The unique ID of the channel to retrieve details for in Hubspot Conversations. + +## HubspotConversationsApi.GetInboxDetails + +
+ + +Retrieve details of a conversation inbox by ID. + +**Parameters** + +- **inbox_id** (`string`, required) The unique identifier for the conversation inbox you wish to retrieve details for. It should be a string representing the inbox ID. + +## HubspotConversationsApi.RetrieveThreadMessage + +
+ + +Retrieve a single message from a conversation thread. + +**Parameters** + +- **message_id** (`string`, required) The unique identifier for the specific message within a thread. Used to retrieve message details. +- **thread_id** (`string`, required) The unique identifier of the conversation thread from which to retrieve the message. + +## HubspotConversationsApi.GetCustomChannelMessageDetails + +
+ + +Retrieve details for a specific message in a custom channel. + +**Parameters** + +- **channel_id** (`string`, required) The unique identifier for the custom channel from which the message was sent. Required to fetch specific message details. +- **message_id** (`string`, required) The unique identifier of the message to retrieve details for. This ID is used to specify the exact message in the custom channel. + +## HubspotConversationsApi.UpdateMessageStatus + +
+ + +Update the status of a conversation message. + +**Parameters** + +- **channel_identifier** (`string`, required) The unique identifier for the custom channel where the message is located. It is required to specify which channel the message belongs to. +- **message_id** (`string`, required) Unique identifier of the message to be updated. +- **message_status** (`string`, required) Specifies the status of the message. Valid values are SENT, FAILED, and READ. +- **error_message_for_failed_status** (`string`, optional) Provide an error message when the status is FAILED to clarify the reason for failure. Only use this when 'statusType' is 'FAILED'. + +## HubspotConversationsApi.UpdateChannelAccountStaging + +
+ + +Update channel account staging token details for public apps. + +**Parameters** + +- **account_name** (`string`, required) The name of the account to be updated for the channel account staging token. +- **account_token** (`string`, required) The unique token identifying the specific channel account staging. Required for updating account details. +- **channel_id** (`string`, required) The unique identifier for the channel to update. This is necessary to specify which channel's staging token details are being modified. +- **delivery_identifier_type** (`string`, required) Type of delivery identifier: HS_EMAIL_ADDRESS, HS_PHONE_NUMBER, or CHANNEL_SPECIFIC_OPAQUE_ID. +- **delivery_identifier_value** (`string`, required) The PublicDeliveryIdentifier in string format, such as an E.164 phone number, an email address, or a channel-specific identifier. + +## HubspotConversationsApi.GetCustomChannelAccounts + +
+ + +Retrieve accounts for a specified custom channel. + +**Parameters** + +- **custom_channel_id** (`string`, required) The unique identifier of the custom channel to retrieve accounts for. Must be a valid string. + +## HubspotConversationsApi.CreateChannelAccount + +
+ + +Create a new account for a specified communication channel. + +**Parameters** + +- **account_name** (`string`, required) The name of the account to be created for the channel. It identifies the account within the specified communication channel. +- **channel_id** (`string`, required) The unique identifier for the communication channel where the account will be created. This should be a string value. +- **inbox_id** (`string`, required) The unique identifier for the inbox where the channel account will be created. This should be a string that corresponds to an existing inbox in Hubspot. +- **is_authorized** (`boolean`, required) Boolean to indicate if the account should be authorized. Set to true for authorized accounts, false otherwise. +- **delivery_identifier_type** (`string`, optional) Type of identifier: HS_EMAIL_ADDRESS, HS_PHONE_NUMBER, or CHANNEL_SPECIFIC_OPAQUE_ID. +- **delivery_identifier_value** (`string`, optional) A string representation of the delivery identifier. Can be an E.164 phone number, an email address, or a channel-specific identifier. + +## HubspotConversationsApi.RetrieveChannelAccountDetails + +
+ + +Retrieve details for a specific channel account. + +**Parameters** + +- **channel_account_id** (`string`, required) Unique identifier for the specific channel account to retrieve details about. Provided as a string. +- **channel_identifier** (`string`, required) The unique identifier for the channel. Used to specify which channel's account details to retrieve. + +## HubspotConversationsApi.UpdateChannelAccountInfo + +
+ + +Update channel account name and authorization status. + +**Parameters** + +- **channel_account_id** (`string`, required) The unique identifier for the channel account to be updated. It is required for specifying which channel account to modify. +- **channel_id** (`string`, required) The unique identifier for the channel in Hubspot Conversations. Required to specify which channel account to update. +- **channel_account_name** (`string`, optional) The new name for the channel account. This updates the display name associated with the account. +- **set_authorization_status** (`boolean`, optional) Boolean value to update the channel account's authorization. Set to False to disable the account. + +## HubspotConversationsApi.PublishCustomChannelMessage + +
+ + +Publish a message to a custom channel on HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **custom_channel_id** (`string`, optional) The unique ID of the custom channel where the message will be published. Must be a string. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## Reference + +Below is a reference of enumerations used by some of the tools in the HubspotConversationsApi MCP Server: + +### ToolMode + +- **GET_REQUEST_SCHEMA**: `get_request_schema` +- **EXECUTE**: `execute` + +## Auth + +The HubspotConversationsApi MCP Server uses the Auth Provider with id `arcade-hubspot` to connect to users' HubspotConversationsApi accounts. In order to use the MCP Server, you will need to configure the `arcade-hubspot` auth provider. + + diff --git a/app/en/mcp-servers/sales/hubspot-crm-api/page.mdx b/app/en/mcp-servers/sales/hubspot-crm-api/page.mdx new file mode 100644 index 000000000..be0501193 --- /dev/null +++ b/app/en/mcp-servers/sales/hubspot-crm-api/page.mdx @@ -0,0 +1,13976 @@ +# HubspotCrmApi + +import StarterToolInfo from "@/app/_components/starter-tool-info"; +import ToolInfo from "@/app/_components/tool-info"; +import Badges from "@/app/_components/badges"; +import TabbedCodeBlock from "@/app/_components/tabbed-code-block"; +import TableOfContents from "@/app/_components/table-of-contents"; +import ToolFooter from "@/app/_components/tool-footer"; +import { Callout } from "nextra/components"; + + + + + + + +The HubspotCrmApi MCP Server offers a comprehensive suite of tools for managing and interacting with HubSpot CRM. Users can efficiently perform a variety of actions, including: + +- Retrieve, create, update, and delete records for contacts, companies, deals, tickets, and more. +- Manage associations between different CRM objects, such as linking contacts to companies or deals. +- Handle tasks, meetings, notes, and emails, including batch operations for efficiency. +- Access and manage custom properties, pipelines, and services within the HubSpot environment. +- Search for specific records based on various criteria and retrieve detailed information about them. + +This MCP Server is designed to streamline CRM operations, making it easier to maintain and manipulate data within HubSpot. + +## Available Tools + + + + + If you need to perform an action that's not listed here, you can [get in touch + with us](mailto:contact@arcade.dev) to request a new tool, or [create your own + tools](/home/build-tools/create-a-mcp-server). + + +## HubspotCrmApi.RetrieveHubspotCrmRecords + +
+ + +Retrieve HubSpot CRM records by ID or unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **crm_object_type** (`string`, optional) The type of CRM object to retrieve (e.g., contacts, companies). Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **return_only_archived_records** (`boolean`, optional) Set true to return only archived records; false to return unarchived records. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateObjectAssociation + +
+ + +Create an association between two CRM objects in HubSpot. + +**Parameters** + +- **association_type** (`string`, required) Specifies the type of association to create between the objects, such as 'contact_to_company'. +- **source_object_id** (`string`, required) The ID of the primary object to associate in HubSpot. This should be a valid string representing the CRM object's unique identifier. +- **source_object_type** (`string`, required) Type of the source object. Specify the CRM object type, such as 'contact', 'company', or 'deal'. +- **target_object_id** (`string`, required) The ID of the target object to associate with. This is the object you want to link to the main object in HubSpot CRM. +- **target_object_type** (`string`, required) The type of the target object to associate. Examples include 'contact', 'company', or 'deal'. + +## HubspotCrmApi.RemoveCrmAssociation + +
+ + +Remove associations between CRM objects. + +**Parameters** + +- **association_type** (`string`, required) The type of association between the CRM objects to be removed. Specify the nature of the relationship, such as 'contact-to-company'. +- **object_type** (`string`, required) Specifies the type of the primary CRM object (e.g., 'contact', 'company'). +- **source_object_id** (`string`, required) The unique identifier of the source object whose association is to be removed. +- **target_object_id** (`string`, required) The ID of the target object to unlink from the source object. This must be a string representing the unique identifier. +- **target_object_type** (`string`, required) Specifies the type of the target CRM object to unlink. Examples include 'contact', 'company', etc. + +## HubspotCrmApi.UpdateMultipleHubspotAppointments + +
+ + +Update multiple appointments in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **hubspot_object_type** (`string`, optional) Specify the type of HubSpot CRM object to update, e.g., 'appointments'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetAppointmentsData + +
+ + +Retrieve a page of appointments from HubSpot CRM. + +**Parameters** + +- **appointment_object_type** (`string`, required) The type of HubSpot object to be queried, specifically for appointments. +- **appointment_properties_to_return** (`array[string]`, optional) A list of property names to include in the response. Properties not present on the requested objects are ignored. +- **only_archived_results** (`boolean`, optional) Set to true to return only results that have been archived. +- **paging_cursor_token** (`string`, optional) Token indicating the last successfully read resource to continue pagination. +- **properties_with_history** (`array[string]`, optional) List properties to return with their history of values. Reduces max results per request. +- **results_limit** (`integer`, optional) Specify the maximum number of results to display per page. +- **retrieve_associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for. If specified associations don't exist, they will be ignored. + +## HubspotCrmApi.CreateCrmAppointment + +
+ + +Create an appointment in the CRM with specified properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **appointment_object_type** (`string`, optional) Specifies the type of CRM object to create. For appointments, this should be 'appointment'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchAppointments + +
+ + +Create multiple appointments in one request. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **appointment_object_type** (`string`, optional) Specify the type of CRM object for the appointments, typically 'appointments'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetAssociationsInHubspot + +
+ + +Retrieve associations between HubSpot CRM objects. + +**Parameters** + +- **hubspot_object_id** (`string`, required) The unique identifier for the HubSpot CRM object whose associations are being requested. +- **object_type** (`string`, required) Specifies the type of HubSpot CRM object (e.g., contact, deal, company) whose associations you want to retrieve. +- **target_object_type** (`string`, required) The type of the target object to which the association is being found. Specify the object type like 'contact', 'deal', 'company', etc. +- **include_full_associations** (`boolean`, optional) Set to true to include full associations in the response, otherwise only basic associations will be returned. +- **max_results** (`integer`, optional) Specifies the maximum number of associations to return. Provide an integer value to limit the results. +- **paging_offset_after** (`string`, optional) A string used for pagination to get the next set of results after the specified cursor. Leave empty or omit for the first set of results. + +## HubspotCrmApi.UpsertHubspotRecords + +
+ + +Create or update HubSpot CRM records in batch mode. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **object_type** (`string`, optional) The type of object in HubSpot CRM (e.g., contacts, companies) to create or update. Specify the object type relevant to your operation. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchAppointments + +
+ + +Search for appointments based on specified criteria. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **appointment_search_criteria_type** (`string`, optional) Specify the type of object for the appointment search, such as 'appointments'. This determines the domain within the CRM to be searched. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveMultipleAppointments + +
+ + +Archive multiple appointments using their IDs. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **appointment_object_type** (`string`, optional) The type of object to be archived, typically 'appointments' for this endpoint. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GdprDeleteObject + +
+ + +Delete CRM objects in compliance with GDPR. + +**Parameters** + +- **object_id** (`string`, required) The unique identifier for the CRM object to be deleted under GDPR compliance. +- **object_type_for_gdpr_deletion** (`string`, required) Specify the type of CRM object to delete (e.g., contacts, companies) for GDPR compliance. +- **unique_property_name** (`string`, optional) Specify a unique property name for the object to be deleted under GDPR. + +## HubspotCrmApi.RetrieveCrmObject + +
+ + +Fetch CRM object details by ID or unique property. + +**Parameters** + +- **object_id** (`string`, required) The ID of the CRM object to retrieve. This can be the internal object ID or a unique property value specified by the id_property. +- **object_type** (`string`, required) Specifies the type of CRM object to retrieve, such as "contacts", "companies", or "deals". +- **associated_object_types** (`array[string]`, optional) Comma-separated list of object types to retrieve associated IDs for. Missing associations are ignored. +- **properties_list** (`array[string]`, optional) An array of property names to be returned in the response. If any specified properties are not present, they will be ignored. +- **properties_with_history** (`array[string]`, optional) List properties to be returned with their historical values. If a property doesn't exist, it'll be ignored. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived results. +- **unique_property_name** (`string`, optional) Specify the name of a property with unique values for this object to identify it instead of the default ID. + +## HubspotCrmApi.DeleteCrmObject + +
+ + +Delete a CRM object and move it to the recycling bin. + +**Parameters** + +- **crm_object_id** (`string`, required) The unique identifier for the CRM object to be deleted. This ID specifies which object will be moved to the recycling bin. +- **crm_object_type** (`string`, required) Specify the type of CRM object to delete, such as 'contact', 'deal', or 'company'. + +## HubspotCrmApi.UpdateHubspotObject + +
+ + +Update specific properties of a HubSpot CRM object. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **object_type** (`string`, optional) The type of CRM object to update (e.g., contacts, companies). Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **object_identifier** (`string`, optional) A string representing the internal object ID or unique property value used to identify the HubSpot CRM object for updating. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a property whose values are unique for the object, used to identify the object for the update. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.MergeHubspotCrmObjects + +
+ + +Merge two HubSpot CRM objects into a single entity. + +**Parameters** + +- **hubspot_object_type** (`string`, required) Specify the type of HubSpot CRM object to merge, such as contact, company, or deal. +- **object_id_to_merge** (`string`, required) The ID of the HubSpot CRM object to be merged into the primary object. This should be a string identifier. +- **primary_object_id** (`string`, required) The ID of the primary HubSpot CRM object to retain post-merge. + +## HubspotCrmApi.CreateBatchAssociationsHubspot + +
+ + +Batch create associations between object types in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **from_object_type** (`string`, optional) The type of the source object for the association (e.g., 'contact', 'company'). Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **target_object_type** (`string`, optional) The type of the object that the associations will point to (e.g., 'contacts', 'companies'). Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.BatchReadAssociations + +
+ + +Retrieve batch associations between CRM object types in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **source_object_type** (`string`, optional) The CRM object type from which the associations originate, such as 'contacts' or 'deals'. Specify a valid CRM object type. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **destination_object_type** (`string`, optional) Specify the CRM object type to associate with, such as 'contacts' or 'companies'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.HubspotBatchArchiveAssociations + +
+ + +Batch archive associations in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **source_object_type** (`string`, optional) The type of the source object for the associations to be archived (e.g., 'contacts', 'companies'). Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **target_object_type** (`string`, optional) Specify the type of the object to which the association is directed, e.g., 'company', 'deal'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetAssociationTypes + +
+ + +Get association types between two object types in HubSpot CRM. + +**Parameters** + +- **source_object_type** (`string`, required) Specifies the source object type in HubSpot CRM from which associations are retrieved (e.g., 'contact', 'deal'). +- **target_object_type** (`string`, required) Specify the type of the destination object to retrieve association types for. These are the related entities in HubSpot CRM. + +## HubspotCrmApi.CreateBatchOfCalls + +
+ + +Create a batch of calls with specified properties and associations. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertCallRecords + +
+ + +Create or update call records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveCallsBatch + +
+ + +Retrieve a batch of calls by ID from HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_only_archived** (`boolean`, optional) Set to 'true' to return only archived calls, 'false' to exclude them. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateBatchCalls + +
+ + +Update multiple calls in HubSpot CRM by ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetCallsPage + +
+ + +Retrieve a page of call records from HubSpot CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) Specify object types to retrieve associated IDs for. Comma-separated list. Non-existing associations are ignored. +- **call_properties** (`array[string]`, optional) A list of properties to include in the response, such as call date, duration, etc. +- **paging_cursor_token** (`string`, optional) The paging cursor token from the last successfully read resource for retrieving the next page of results. +- **properties_with_history** (`array[string]`, optional) A list of properties to return with historical values. Note: Reduces max calls per request. +- **results_per_page** (`integer`, optional) The maximum number of call records to display per page. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived call records. False will include non-archived records. + +## HubspotCrmApi.CreateHubspotCall + +
+ + +Create a call in HubSpot with specified properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetCallDetails + +
+ + +Retrieve details of a call using its ID in HubSpot CRM. + +**Parameters** + +- **call_identifier** (`string`, required) The unique identifier for the call. This can be an internal object ID or a unique property value as specified. +- **associated_object_types** (`array[string]`, optional) Specify object types to retrieve associated IDs for. Use comma-separated values. +- **only_archived_results** (`boolean`, optional) Specify `True` to return only archived results, otherwise `False`. +- **properties_with_history** (`array[string]`, optional) Comma-separated list of properties to return with history. Ignores non-existent properties. +- **return_properties** (`array[string]`, optional) Comma-separated list of properties to return in the response. Ignored if not present on requested object. +- **unique_property_name** (`string`, optional) Unique property name used to identify the call object in HubSpot CRM. + +## HubspotCrmApi.ArchiveCallInHubspot + +
+ + +Archive a call in HubSpot CRM by moving it to the recycle bin. + +**Parameters** + +- **call_identifier** (`string`, required) The unique identifier for the call to be archived in HubSpot CRM. + +## HubspotCrmApi.UpdateCallInfo + +
+ + +Update details of a specific call record in the CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **call_identifier** (`string`, optional) The identifier for the call object you wish to update. This can be the internal call ID or a unique value defined by the `idProperty`. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a unique property for identifying the call object, other than the default ID. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveCallsBatch + +
+ + +Archive a batch of calls by their IDs. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchCallsHubspot + +
+ + +Search and filter call records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveCartsBatch + +
+ + +Archive multiple carts by ID in a batch operation. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchOfCarts + +
+ + +Create a batch of carts efficiently in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveCartDetails + +
+ + +Retrieve detailed information about shopping carts. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) List object types to retrieve associated IDs for. Ignored if associations don't exist. +- **cart_properties_to_return** (`array[string]`, optional) List of properties to include in the response for each cart. Ignored if missing on objects. +- **max_results_per_page** (`integer`, optional) Maximum number of results to display per page when retrieving cart details. +- **paging_cursor_token** (`string`, optional) The paging cursor token for retrieving the next set of results. Use the `paging.next.after` from the previous response for more results. +- **properties_with_history_list** (`array[string]`, optional) List of properties to return with their history in the response. Reduces max number of carts per request. +- **return_only_archived** (`boolean`, optional) Set to true to return only archived results. + +## HubspotCrmApi.CreateCartHubspotCrm + +
+ + +Create a cart and retrieve its details including ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveCartRecords + +
+ + +Retrieve cart records by record ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **only_archived_results** (`boolean`, optional) Set to true to return only archived results. Default is false. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertCartRecords + +
+ + +Create or update cart records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateCartsBatch + +
+ + +Update a batch of carts by internal ID or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchHubspotCarts + +
+ + +Search for carts in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetCartDetails + +
+ + +Retrieve detailed information of a cart by ID. + +**Parameters** + +- **cart_identifier** (`string`, required) The unique identifier for the cart. This can be the internal ID or a unique property value specified by the `idProperty` parameter. +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for, such as 'deals' or 'contacts'. +- **only_return_archived_results** (`boolean`, optional) Set to `true` to return only archived results; `false` includes all. +- **properties_with_history** (`array[string]`, optional) Specify properties to retrieve alongside their history of previous values, separated by commas. +- **return_properties** (`array[string]`, optional) List of specific properties to retrieve for the cart. Ignored if properties don't exist. +- **unique_property_name** (`string`, optional) Specify a property name with unique values for the cart object, if not using the default internal ID. + +## HubspotCrmApi.DeleteShoppingCart + +
+ + +Delete a shopping cart from HubSpot CRM. + +**Parameters** + +- **cart_identifier** (`string`, required) The unique identifier of the shopping cart to delete from HubSpot CRM. It should be a string. + +## HubspotCrmApi.UpdateCartProperties + +
+ + +Update specific properties of a cart in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **cart_identifier** (`string`, optional) The unique identifier of the cart to be updated. This is required to specify which cart's properties will be modified. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_identifier_property** (`string`, optional) The name of the property with unique values for this cart object to identify it. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertCommercePayments + +
+ + +Create or update unique commerce payment records in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchCommercePayments + +
+ + +Create a batch of commerce payments in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveCommercePaymentDetails + +
+ + +Retrieve details of a specific commerce payment using its ID. + +**Parameters** + +- **commerce_payment_id** (`string`, required) The unique identifier for the commerce payment to retrieve details for. It corresponds to the internal object ID by default. +- **associated_object_types** (`array[string]`, optional) List of object types to retrieve associated IDs for. If any specified associations do not exist, they are ignored. +- **only_return_archived_results** (`boolean`, optional) Specify `true` to return only archived results. Default is `false`. +- **properties_with_history** (`array[string]`, optional) List of properties to retrieve along with their historical values. Specify as comma-separated values. +- **return_properties** (`array[string]`, optional) A list of property names to be included in the response. Irrelevant properties will be ignored. +- **unique_property_name** (`string`, optional) The property name used as a unique identifier for the commerce payment object. + +## HubspotCrmApi.DeleteCommercePayment + +
+ + +Delete a commerce payment from the CRM system. + +**Parameters** + +- **commerce_payment_id** (`string`, required) The unique identifier for the commerce payment to be moved to the recycling bin. + +## HubspotCrmApi.UpdateCommercePayment + +
+ + +Partially update a commerce payment by ID or unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **commerce_payment_id** (`string`, optional) The internal ID of the commerce payment to update. This ID identifies the specific payment object within the system. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a unique property for identifying the object. Use this if not using the default internal ID. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveCommercePaymentsBatch + +
+ + +Archive a batch of commerce payments by ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateCommercePaymentsBatch + +
+ + +Update a batch of commerce payments by internal ID or unique values. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveCommercePaymentRecords + +
+ + +Retrieve commerce payment records by ID or unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_results_only** (`boolean`, optional) Return only archived commerce payment records if set to true. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchCommercePayments + +
+ + +Search for commerce payments in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetCommercePayments + +
+ + +Retrieve a page of commerce payments from HubSpot CRM. + +**Parameters** + +- **associations_to_retrieve** (`array[string]`, optional) List of object types to retrieve associated IDs for. Non-existing associations are ignored. +- **paging_cursor_token** (`string`, optional) The paging cursor token from the last successfully read resource. Used for paginating through results. +- **properties_with_history** (`array[string]`, optional) A list of properties to be returned with their historical values. Reduces the maximum payments per request. +- **results_per_page** (`integer`, optional) Specify the maximum number of results to display per page. +- **returned_properties** (`array[string]`, optional) List the properties to return in the response. Non-present properties are ignored. +- **show_only_archived** (`boolean`, optional) Set to true to return only archived results. + +## HubspotCrmApi.CreateCommercePayment + +
+ + +Create a commerce payment and return its details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateSubscriptionBatch + +
+ + +Update multiple subscriptions by ID or property values. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveSubscriptionsBatch + +
+ + +Archive a batch of subscriptions by ID in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchHubspotSubscriptions + +
+ + +Search for subscriptions in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetSubscriptionData + +
+ + +Fetch a page of subscription data from HubSpot CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) List of object types to retrieve associated IDs for. Ignored if not existing. +- **max_results_per_page** (`integer`, optional) The maximum number of subscription results to display per page. +- **paging_cursor_token** (`string`, optional) The token indicating the last successfully read resource, used for pagination in subsequent requests. +- **properties_with_history** (`array[string]`, optional) List of property names for retrieving their values and history. Reduces max subscriptions per request. +- **requested_properties** (`array[string]`, optional) A list of property names to be included in the response. If a specified property is not present in the requested objects, it will be ignored. +- **return_only_archived** (`boolean`, optional) Set to true to return only archived results. Set to false to include active results. + +## HubspotCrmApi.CreateSubscription + +
+ + +Create a new subscription in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertSubscriptionsInHubspotCrm + +
+ + +Batch create or update subscription records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveSubscriptionRecords + +
+ + +Retrieve subscription records by ID or unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **only_archived_records** (`boolean`, optional) Set to true to return only archived results. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchSubscriptions + +
+ + +Create a batch of subscriptions in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetSubscriptionDetails + +
+ + +Retrieve details of a specific subscription by ID. + +**Parameters** + +- **subscription_id** (`string`, required) The unique identifier for the subscription object to be retrieved. This can be the internal object ID or a unique property value specified by the idProperty query param. +- **association_types_to_retrieve** (`array[string]`, optional) A list of object types to retrieve associated IDs for. Non-existing associations will be ignored. +- **only_archived_results** (`boolean`, optional) Set to true to return only archived items, false to exclude them. +- **properties_with_history** (`array[string]`, optional) A list of property names whose values and history are to be retrieved for the subscription. Properties not present on the object will be ignored. +- **requested_properties** (`array[string]`, optional) List of properties to return in the response. Properties not present in the object will be ignored. +- **unique_property_name** (`string`, optional) The property name used to uniquely identify the subscription object instead of the default ID. + +## HubspotCrmApi.DeleteSubscription + +
+ + +Delete a specific subscription from HubSpot CRM. + +**Parameters** + +- **subscription_id** (`string`, required) The unique identifier of the subscription to be deleted. This moves the subscription to the recycling bin in HubSpot CRM. + +## HubspotCrmApi.UpdateSubscription + +
+ + +Update subscription details using provided property values. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **subscription_id** (`string`, optional) The identifier for the subscription to update, typically the internal object ID. Specify this to target the right subscription. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a unique property to identify the subscription object for updating. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateMessagesBatch + +
+ + +Update a batch of messages in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.DeleteBatchMessages + +
+ + +Delete a batch of messages by ID with restoration option. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertCommunicationsRecords + +
+ + +Create or update communication records in bulk. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ReadCommunicationsPage + +
+ + +Retrieve a page of communications from HubSpot CRM. + +**Parameters** + +- **paging_cursor_token** (`string`, optional) The paging cursor token for the next set of results to read from the previous request's `paging.next.after` JSON property. +- **properties_with_history** (`array[string]`, optional) A list of properties to return with their history. Reduces the maximum number of communications per request. +- **results_per_page** (`integer`, optional) The maximum number of results to display per page. +- **retrieve_associations** (`array[string]`, optional) Comma-separated list of object types to get associated IDs for. Ignored if the association doesn't exist. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived results. False includes all results. +- **specified_properties** (`array[string]`, optional) List of communication properties to return in the response. Properties not present will be ignored. + +## HubspotCrmApi.CreateHubspotCommunication + +
+ + +Create a new communication entry in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetCommunicationById + +
+ + +Retrieve details of a communication by its ID. + +**Parameters** + +- **communication_identifier** (`string`, required) Specify the unique ID or property value for the communication object to retrieve. +- **properties_to_return** (`array[string]`, optional) Comma-separated list of properties to include in the response. Missing properties are ignored. +- **properties_with_history** (`array[string]`, optional) List the properties whose history of values should be returned. Comma-separated values are expected. +- **retrieve_associated_object_types** (`array[string]`, optional) A list of object types for retrieving associated IDs. Non-existing associations will be ignored. +- **return_only_archived** (`boolean`, optional) Set to true to return only results that have been archived. Defaults to false to include non-archived results. +- **unique_property_name** (`string`, optional) The property name used to uniquely identify the communication object. Allows retrieval by non-default identifiers. + +## HubspotCrmApi.ArchiveCommunication + +
+ + +Archive a communication by its ID. + +**Parameters** + +- **communication_id** (`string`, required) The unique identifier for the communication object to be archived. It must be a valid string representing an existing communication ID. + +## HubspotCrmApi.UpdateCommunicationDetails + +
+ + +Update communication object details in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **communication_id** (`string`, optional) The internal object ID of the communication. Used to identify which communication object to update. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The unique property name used to identify the communication object if not using `communicationId`. It must refer to a property with unique values for the object. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchCrmMessages + +
+ + +Search and filter CRM messages based on various criteria. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveBatchCommunications + +
+ + +Retrieve a batch of communication messages by ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_only** (`boolean`, optional) Set to True to return only archived results. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateHubspotMessagesBatch + +
+ + +Create a batch of messages in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveBatchCompaniesHubspot + +
+ + +Retrieve a batch of company records from HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_only** (`boolean`, optional) Set to true to return only archived companies in the results. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveAllCompanies + +
+ + +Retrieve all companies from HubSpot CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for. Non-existent associations will be ignored. +- **paging_cursor_token** (`string`, optional) The cursor token to fetch the next set of results in a paginated response. +- **properties_to_return** (`array[string]`, optional) List of properties to include in the response. Ignore if not present on the object. +- **properties_with_history** (`array[string]`, optional) A list of properties to return with their history of previous values. This reduces max companies per request. +- **results_per_page_limit** (`integer`, optional) The maximum number of results to display per page. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived results in the response. + +## HubspotCrmApi.CreateCompanyHubspot + +
+ + +Create a new company in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchCompaniesInHubspot + +
+ + +Search for companies in HubSpot CRM using filters and sorting. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveCompanyById + +
+ + +Retrieve detailed company information using its ID. + +**Parameters** + +- **company_identifier** (`string`, required) A unique identifier for the company, such as its ID or a unique property name, used to retrieve its details. +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for. Ignores non-existent associations. +- **company_properties_to_retrieve** (`array[string]`, optional) List the specific company properties to retrieve, separated by commas. Ignored if properties are unavailable. +- **retrieve_properties_with_history** (`array[string]`, optional) List of properties to return with their history of previous values. Ignored if properties aren't present. +- **return_only_archived** (`boolean`, optional) Set to true to return only archived results. If false, non-archived results will be returned. +- **unique_property_name** (`string`, optional) The name of a unique property to identify the company. Used instead of company ID. + +## HubspotCrmApi.DeleteCompany + +
+ + +Delete a company by ID in HubSpot CRM. + +**Parameters** + +- **company_id** (`string`, required) The unique identifier of the company to be deleted in HubSpot CRM. This ID is required to specify the company. + +## HubspotCrmApi.UpdateHubspotCompany + +
+ + +Update a company's details in HubSpot CRM using its ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **company_unique_identifier** (`string`, optional) The unique identifier for the company to be updated, either the companyId or a unique property value. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) Specify the name of the unique property used to identify the company. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateOrUpdateCompanies + +
+ + +Create or update companies in HubSpot CRM using a unique identifier. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateBatchOfCompanies + +
+ + +Update multiple company records in HubSpot by ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchOfCompanies + +
+ + +Create a batch of companies with properties and associations. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.DeleteCompaniesBatch + +
+ + +Delete a batch of companies by ID in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.MergeCompanyRecords + +
+ + +Merge two company records in HubSpot CRM. + +**Parameters** + +- **company_id_to_merge** (`string`, required) The ID of the company to merge into the primary company. +- **primary_company_id** (`string`, required) The ID of the primary company into which the other company will be merged. + +## HubspotCrmApi.BatchReadContacts + +
+ + +Retrieve multiple contacts using internal IDs or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_only** (`boolean`, optional) Set to True to return only archived contacts. False excludes them. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetContactDetails + +
+ + +Retrieve detailed information about a specific contact. + +**Parameters** + +- **contact_identifier** (`string`, required) The ID or unique property value used to identify the contact in HubSpot CRM. +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for. Ignored if associations do not exist. +- **properties_with_history** (`array[string]`, optional) A list of properties to return with their history of previous values. Ignored if properties are not present. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only results that have been archived. +- **return_properties** (`array[string]`, optional) List of properties to include in the response for the contact. If absent on the object, they will be ignored. +- **unique_property_name** (`string`, optional) The property name with unique values for the contact type, used to identify the object. + +## HubspotCrmApi.DeleteContact + +
+ + +Delete a contact and move it to the recycling bin. + +**Parameters** + +- **contact_id** (`string`, required) The unique identifier of the contact to be deleted and moved to the recycling bin. + +## HubspotCrmApi.UpdateContactInformation + +
+ + +Update specific fields of a contact in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **contact_id** (`string`, optional) The unique ID or property value used to identify the contact for the update. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) Specify the property name with unique values for identifying the contact, such as email or phone number. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.MergeContacts + +
+ + +Merges two contacts into one in HubSpot CRM. + +**Parameters** + +- **contact_id_to_merge** (`string`, required) The ID of the contact object that will be merged into the primary contact. +- **primary_contact_id** (`string`, required) The unique identifier of the primary contact that will remain after merging. This contact's information will be retained. + +## HubspotCrmApi.ArchiveContactsBatch + +
+ + +Archive a batch of contacts by ID in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchContacts + +
+ + +Create a batch of contacts in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateBatchContacts + +
+ + +Update a batch of contacts in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GdprDeleteContact + +
+ + +Permanently delete a contact for GDPR compliance. + +**Parameters** + +- **contact_identifier** (`string`, required) The unique ID or email used to identify the contact for deletion. Use 'email' in conjunction with 'id_property' if identifying by email. +- **contact_identifier_property** (`string`, optional) Specify 'email' to identify the contact by email address. If not using email, specify another unique identifier property. + +## HubspotCrmApi.GetContacts + +
+ + +Retrieve a page of contacts from HubSpot CRM. + +**Parameters** + +- **contact_properties_to_retrieve** (`array[string]`, optional) A list of properties to include in the response. Non-existent properties will be ignored. +- **max_results_per_page** (`integer`, optional) The maximum number of contact results to return per page. +- **paging_cursor_token** (`string`, optional) The token indicating the last read resource, used for pagination to retrieve more results. +- **properties_with_history** (`array[string]`, optional) Specify properties to return with their history of previous values, reducing the max number of objects per request. +- **retrieve_associated_ids** (`array[string]`, optional) A list of object types to retrieve associated IDs for. If associations do not exist, they will be ignored. +- **return_only_archived_results** (`boolean`, optional) Whether to return only results that have been archived. Use 'true' for archived only. + +## HubspotCrmApi.CreateHubspotContact + +
+ + +Create a contact in HubSpot CRM and retrieve its details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchContacts + +
+ + +Search contacts in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertContactBatch + +
+ + +Upsert a batch of contacts in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetCourses + +
+ + +Fetch a page of courses from HubSpot CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) Comma-separated list of object types to retrieve associated IDs for; ignored if non-existent. +- **maximum_results_per_page** (`integer`, optional) Specify the maximum number of courses to display in a single page of results. +- **paging_cursor_token** (`string`, optional) The paging cursor token of the last successfully read resource, used to fetch the next page of results. +- **properties_to_return** (`array[string]`, optional) Comma separated list of properties to include in the response. Ignored if not present on requested objects. +- **properties_with_history** (`array[string]`, optional) List of properties to return with their history. This can reduce the number of courses per request. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived results. False includes non-archived results. + +## HubspotCrmApi.CreateHubspotCourse + +
+ + +Create a course in HubSpot CRM and return its details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveCoursesBatch + +
+ + +Archive a batch of courses by ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetCourseDetails + +
+ + +Fetch details of a course using the course ID. + +**Parameters** + +- **course_id** (`string`, required) The unique identifier for the course. Use this to specify which course details to retrieve. +- **include_properties** (`array[string]`, optional) A list of property names to include in the response. Any missing properties will be ignored. +- **include_properties_with_history** (`array[string]`, optional) Specify properties to retrieve with their history of changes. Input as a list, each entry being a property name. +- **retrieve_associated_object_types** (`array[string]`, optional) A list of object types for retrieving associated IDs. Non-existent associations will be ignored. +- **return_only_archived** (`boolean`, optional) Set to true to return only results that have been archived. +- **unique_property_name** (`string`, optional) Specify the name of a unique property for the course object. + +## HubspotCrmApi.DeleteCourse + +
+ + +Delete a course by moving it to the recycling bin. + +**Parameters** + +- **course_id** (`string`, required) The unique identifier for the course to be deleted. This identifier is used to locate the specific course in the CRM system. + +## HubspotCrmApi.UpdateHubspotCourse + +
+ + +Update specific properties of a HubSpot course object. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **course_identifier** (`string`, optional) The unique identifier for the HubSpot course. It can be the internal course ID or a unique property value specified by `idProperty`. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The property name with unique values for identifying the object to update. Use it if not using `courseId`. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchOfCourses + +
+ + +Create a batch of courses in CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.BatchUpsertRecords + +
+ + +Create or update HubSpot CRM records via unique identifier. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.HubspotCrmSearchObjects + +
+ + +Search and retrieve objects from HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateCoursesBatch + +
+ + +Update multiple courses in a batch by ID or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveHubspotRecords + +
+ + +Retrieve HubSpot CRM records by ID or unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_records** (`boolean`, optional) Set to true to return only archived records; false to exclude archived records in HubSpot CRM. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveOwnersList + +
+ + +Retrieve a list of owners from the HubSpot CRM account. + +**Parameters** + +- **filter_by_email** (`string`, optional) Specify an email address to filter the list of owners returned. Only the owner with this exact email will be retrieved. +- **include_archived** (`boolean`, optional) Set to true to include archived owners in the retrieved list. +- **owners_list_limit** (`integer`, optional) The maximum number of owners to return per page. Provide an integer value. +- **pagination_cursor_after** (`string`, optional) A cursor to get the next page of results, indicating the last result shown from the previous request. + +## HubspotCrmApi.RetrieveOwnerDetails + +
+ + +Retrieve details of a specific CRM owner by ID. + +**Parameters** + +- **owner_id** (`integer`, required) The unique ID of the CRM owner. Use this to retrieve the owner's details. +- **include_archived** (`boolean`, optional) Set to true to include archived owners in the retrieved details. +- **owner_id_type** (`string`, optional) Specify whether the 'ownerId' refers to an 'id' or 'userId'. + +## HubspotCrmApi.BatchRetrieveHubspotRecords + +
+ + +Retrieve HubSpot CRM records using batch read. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **crm_object_type** (`string`, optional) Specify the type of CRM object to retrieve, such as 'contact', 'deal', or 'company'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **return_archived_results** (`boolean`, optional) Set to true to return only archived results. Use false to include active records. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.FetchHubspotObjectById + +
+ + +Retrieve a HubSpot CRM object using its unique ID. + +**Parameters** + +- **object_identifier** (`string`, required) The unique identifier of the HubSpot CRM object to retrieve. This can be the internal object ID or another unique property value if specified by the `id_property` parameter. +- **object_type** (`string`, required) The type of the HubSpot CRM object you want to retrieve. Examples include 'contact', 'company', and 'deal'. +- **associated_object_types** (`array[string]`, optional) Specify object types to retrieve associated IDs for, separated by commas. Non-existing associations will be ignored. +- **properties_with_history** (`array[string]`, optional) A list of properties to return along with their historical values. Ignored if properties are not present. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived results. Set to false to include all results. +- **return_properties** (`array[string]`, optional) List of properties to return for the object. Ignored if not present on the object. +- **unique_property_name** (`string`, optional) Specify the property name that uniquely identifies the object. + +## HubspotCrmApi.MoveObjectToRecycleBin + +
+ + +Move a CRM object to the recycling bin. + +**Parameters** + +- **object_id** (`string`, required) The unique identifier for the CRM object to be moved to the recycling bin. This ID specifies which object within the CRM will be affected. +- **object_type** (`string`, required) Type of the CRM object to be moved, such as 'contacts', 'companies', etc. + +## HubspotCrmApi.ModifyHubspotObject + +
+ + +Update specific properties of a HubSpot CRM object. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **hubspot_object_type** (`string`, optional) Specify the type of HubSpot CRM object (e.g., 'contacts', 'companies', 'deals'). Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **object_identifier** (`string`, optional) The internal ID of the HubSpot object to update. Use a string format. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a unique property for identifying the object. Use when the default object ID isn't used. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.MergeHubspotObjects + +
+ + +Merge two HubSpot CRM objects of the same type. + +**Parameters** + +- **object_id_to_merge** (`string`, required) The ID of the object to be merged into the primary object. It must be of the same type as the primary object. +- **object_type_to_merge** (`string`, required) The type of HubSpot CRM object to merge, such as 'contacts' or 'companies'. +- **primary_object_id** (`string`, required) The ID of the object that will remain after the merge. Provide as a string. + +## HubspotCrmApi.ArchiveHubspotObjectsBatch + +
+ + +Archive a batch of HubSpot CRM objects by ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **hubspot_object_type** (`string`, optional) Specifies the type of HubSpot CRM objects to archive (e.g., 'contacts', 'companies'). Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateHubspotObjectsBatch + +
+ + +Update multiple HubSpot CRM objects in a batch. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **object_type** (`string`, optional) The type of HubSpot CRM object to update, such as 'contacts', 'companies', 'deals', or 'tickets'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateHubspotObjectsBatch + +
+ + +Create a batch of objects in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **hubspot_object_type** (`string`, optional) Specifies the type of object to create in HubSpot, such as 'contacts', 'deals', or 'companies'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateOrCreateHubspotRecords + +
+ + +Create or update HubSpot CRM records in bulk. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **crm_object_type** (`string`, optional) Specifies the type of CRM object to act upon, such as 'contacts', 'companies', etc. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetHubspotObjectsPage + +
+ + +Retrieve a page of HubSpot CRM objects. + +**Parameters** + +- **object_type** (`string`, required) Specify the type of CRM object to retrieve, such as 'contacts', 'companies', or 'deals'. +- **associated_object_types** (`array[string]`, optional) Comma-separated object types to retrieve associated IDs for. Ignored if associations do not exist. +- **max_results_per_page** (`integer`, optional) Specify the maximum number of results to display per page. +- **paging_cursor_token** (`string`, optional) The token used to retrieve the next page of results. Obtained from the `paging.next.after` property of a previous response. +- **properties_with_history** (`array[string]`, optional) List the properties to return with their historical values in the CRM objects. +- **requested_properties** (`array[string]`, optional) List of properties to include in the response. Ignored if not present on the object(s). +- **return_archived_results_only** (`boolean`, optional) Return only the archived results if set to true. + +## HubspotCrmApi.CreateCrmObject + +
+ + +Create a CRM object and retrieve its details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **crm_object_type** (`string`, optional) Specify the type of CRM object to create, such as 'contact', 'company', or 'deal'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchHubspotObjects + +
+ + +Perform a search on HubSpot CRM objects by type. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **object_type** (`string`, optional) Specify the type of object to search for in HubSpot, such as contacts, companies, or deals. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateMultipleDeals + +
+ + +Update multiple deals in the CRM system. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchDeals + +
+ + +Search for deals using specified criteria and filters. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateOrUpdateHubspotRecords + +
+ + +Create or update HubSpot CRM records using unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveMultipleDeals + +
+ + +Archive multiple deals using their IDs in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveCrmRecords + +
+ + +Retrieve CRM records by ID or custom unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **retrieve_only_archived_records** (`boolean`, optional) Set to true to retrieve only archived CRM records. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetHubspotDealById + +
+ + +Retrieve HubSpot CRM deal information by Deal ID. + +**Parameters** + +- **deal_id** (`string`, required) The unique identifier of the deal to retrieve from HubSpot CRM. +- **associated_object_types** (`array[string]`, optional) List of object types to retrieve associated IDs for. Ignored if associations do not exist. +- **properties_with_history** (`array[string]`, optional) Specify properties to return with their history of values. Use a comma-separated list. +- **return_archived_only** (`boolean`, optional) Set to true to return only results that have been archived. +- **return_properties** (`array[string]`, optional) List of properties to be returned in the response. Ignored if not present on the object. +- **unique_property_name** (`string`, optional) Specify the unique property name used to identify the deal. It defaults to an internal object ID if not provided. + +## HubspotCrmApi.ArchiveDealInHubspot + +
+ + +Archives a specific deal in HubSpot CRM. + +**Parameters** + +- **deal_id** (`string`, required) The unique identifier of the deal to be archived in HubSpot CRM. + +## HubspotCrmApi.UpdateHubspotDeal + +
+ + +Update a specific deal in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **deal_identifier** (`string`, optional) The unique identifier of the deal to be updated in HubSpot CRM. Can be internal ID or unique property value. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a unique property to identify the deal instead of `dealId`. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateMultipleDeals + +
+ + +Create multiple deals in HubSpot CRM in one request. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetDealsPage + +
+ + +Read a page of deals from the CRM system. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) List of object types to retrieve associated IDs for, separated by commas. If associations don't exist, they're ignored. +- **deal_properties** (`array[string]`, optional) List the properties to include in the response as a comma-separated string. Ignored if not present. +- **paging_cursor_token** (`string`, optional) The token for the paging cursor to retrieve the next page of results. +- **properties_with_history** (`array[string]`, optional) A list of deal properties for which historical values are returned. Usage reduces max results per request. +- **results_limit_per_page** (`integer`, optional) The maximum number of deals to display per page, as an integer. +- **return_archived_only** (`boolean`, optional) Set to true to return only archived results; false to include active results. + +## HubspotCrmApi.CreateHubspotDeal + +
+ + +Create a new deal in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.MergeDeals + +
+ + +Combine two deals into a single unified deal in HubSpot CRM. + +**Parameters** + +- **deal_id_to_merge** (`string`, required) The ID of the deal to be merged into the primary deal. +- **primary_deal_id** (`string`, required) The ID of the primary deal that will remain after merging. + +## HubspotCrmApi.ManageDealSplits + +
+ + +Create or replace deal splits for specific deals. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ReadBatchDealSplits + +
+ + +Fetch a batch of deal split objects by deal ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchDiscounts + +
+ + +Search for discounts in the HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateDiscountsBatch + +
+ + +Update multiple discounts by ID or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveDiscountDetails + +
+ + +Retrieve details of a discount by its ID. + +**Parameters** + +- **discount_identifier** (`string`, required) The unique identifier for the discount object to retrieve. This can either be the internal ID or a value of a unique property specified by `idProperty`. +- **archived_results_only** (`boolean`, optional) Set to true to return only results that have been archived. +- **associated_object_types** (`array[string]`, optional) Comma-separated list of object types to retrieve associated IDs for. Non-existent associations will be ignored. +- **properties_with_history** (`array[string]`, optional) List of properties to retrieve along with their value history. Ignored if properties are missing. +- **return_properties** (`array[string]`, optional) Comma-separated list of properties to return in response. Ignored if not present on the object. +- **unique_property_name** (`string`, optional) The property name for uniquely identifying the discount object. Use when the property value is not the default ID. + +## HubspotCrmApi.DeleteDiscount + +
+ + +Delete a discount and move it to the recycling bin. + +**Parameters** + +- **discount_identifier** (`string`, required) The unique identifier of the discount object to delete and move to the recycling bin. + +## HubspotCrmApi.UpdateDiscountDetails + +
+ + +Update specific properties of a discount in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **discount_identifier** (`string`, optional) The unique identifier for the discount object. This can be the internal ID or a unique property specified by `idProperty`. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a unique property to identify the discount object. Use this instead of the internal discount ID if needed. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchDiscountsHubspot + +
+ + +Create a batch of discounts in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertDiscountRecords + +
+ + +Create or update discount records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveDiscountsBatch + +
+ + +Archive a batch of discounts by their IDs in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetHubspotDiscounts + +
+ + +Retrieve a page of discounts from HubSpot CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for. Unknown associations will be ignored. +- **maximum_results_per_page** (`integer`, optional) The maximum number of results to display per page. +- **paging_cursor_token** (`string`, optional) The cursor token for pagination. Use the token from the last successfully read resource to fetch the next page. +- **properties_with_history** (`array[string]`, optional) List of properties to return with their history; reduces number of discounts returned per request. +- **return_only_archived** (`boolean`, optional) Set to true to return only archived discounts, false to include all. +- **returned_discount_properties** (`array[string]`, optional) List of properties to include in the response. Comma-separated, ignored if not present. + +## HubspotCrmApi.CreateDiscount + +
+ + +Creates a discount and returns its details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveDiscountRecords + +
+ + +Retrieve discount records by ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **archived** (`boolean`, optional) Set to true to return only archived results. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchOfEmails + +
+ + +Create a batch of emails with specified properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveEmailsPage + +
+ + +Retrieve a page of emails from HubSpot CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for. If any specified associations don't exist, they will be ignored. +- **max_results_per_page** (`integer`, optional) The maximum number of email results to display per page. +- **paging_cursor_token** (`string`, optional) The token for the next page of results, from the `paging.next.after` field of the previous response. +- **properties_with_history** (`array[string]`, optional) List of properties to return with their history of previous values. Reduces maximum emails per request. +- **return_only_archived** (`boolean`, optional) Set to true to retrieve only archived emails. +- **returned_email_properties** (`array[string]`, optional) List the email properties to be included in the response. Specify as an array of strings representing the desired properties. + +## HubspotCrmApi.CreateHubspotEmail + +
+ + +Create an email in HubSpot CRM and retrieve its details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveEmailRecords + +
+ + +Retrieve email records by ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **only_archived_records** (`boolean`, optional) Set to true to return only archived email records from HubSpot CRM. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateOrUpdateHubspotEmails + +
+ + +Create or update HubSpot email records in batch. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveEmailById + +
+ + +Retrieve email object details using its ID. + +**Parameters** + +- **email_id** (`string`, required) The unique ID or property value of the email object to be retrieved. +- **object_types_for_associated_ids** (`array[string]`, optional) List the object types to retrieve associated IDs. If no associations exist, they will be ignored. +- **properties_with_history** (`array[string]`, optional) Comma-separated property names to include their history of previous values in the response. Non-existent properties will be ignored. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived results. Set to false to return active results. +- **returned_properties** (`array[string]`, optional) A list of properties to return for the email object. Properties not present on the object will be ignored. +- **unique_property_name** (`string`, optional) Specify the property name that holds unique values for the email object to be retrieved. + +## HubspotCrmApi.DeleteEmail + +
+ + +Move an email to the recycling bin using its ID. + +**Parameters** + +- **email_id** (`string`, required) The unique identifier of the email to be archived in HubSpot CRM. + +## HubspotCrmApi.UpdateEmailInHubspotCrm + +
+ + +Updates an email object in HubSpot CRM with new property values. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **email_identifier** (`string`, optional) The unique identifier for the email object, either the internal ID or a unique property value. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) Name of a unique property for identifying the email object, used instead of default ID. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveEmailsBatch + +
+ + +Archive a batch of emails by their IDs. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateBatchEmails + +
+ + +Update a batch of emails by their IDs or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchEmails + +
+ + +Search for emails based on specified query parameters. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetFeedbackSubmissionById + +
+ + +Retrieve feedback submission details by ID. + +**Parameters** + +- **feedback_submission_id** (`string`, required) The ID of the feedback submission to retrieve details for. This can be the internal object ID or a unique property value specified by `idProperty`. +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for. If nonexistent, they will be ignored. +- **properties_with_history** (`array[string]`, optional) Comma-separated list of properties to return with their history of previous values. Ignored if not present on the object. +- **return_archived_only** (`boolean`, optional) Set to true to return only archived results, false for active ones. +- **return_properties** (`array[string]`, optional) List of properties to return in the response. Non-existent properties will be ignored. +- **unique_property_name** (`string`, optional) The name of a property whose values are unique for the feedback submission object. + +## HubspotCrmApi.SearchFeedbackSubmissions + +
+ + +Search for feedback submissions in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveFeedbackRecords + +
+ + +Retrieve feedback submission records by ID or custom properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_only** (`boolean`, optional) Set to true to return only archived feedback submission records. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetFeedbackSubmissions + +
+ + +Retrieve a page of feedback submissions from the CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) Comma separated list of object types to retrieve associated IDs for, like 'contacts' or 'companies'. Ignored if nonexistent. +- **max_results_per_page** (`integer`, optional) Specify the maximum number of results to display per page. +- **paging_cursor_token** (`string`, optional) The token of the last read resource for fetching the next page of results. +- **properties_to_return** (`array[string]`, optional) List of properties to return for each feedback submission. Comma separated. Ignores non-existing properties. +- **properties_with_history** (`array[string]`, optional) A list of property names whose history of values should be returned. Properties not present will be ignored. Reduces the maximum number of submissions per request. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived feedback submissions; false to include both archived and active submissions. + +## HubspotCrmApi.GetFeeDetails + +
+ + +Retrieve information about a specific fee by ID. + +**Parameters** + +- **fee_identifier** (`string`, required) The unique identifier for the fee object to retrieve. It can be the internal object ID or a value from a unique property specified by the `idProperty` parameter. +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for. Non-existent associations will be ignored. +- **only_return_archived_results** (`boolean`, optional) Set to true to retrieve only archived results. False for non-archived. +- **properties_with_history** (`array[string]`, optional) List of properties to return with their history of previous values, specified as strings. Non-existent properties will be ignored. +- **return_properties** (`array[string]`, optional) A list of properties to return for the fee object. Any non-existent properties will be ignored. +- **unique_property_name** (`string`, optional) Specify the property name with unique values for the fee object. + +## HubspotCrmApi.DeleteFeeObject + +
+ + +Move a fee object to the recycling bin using its fee ID. + +**Parameters** + +- **fee_id_to_delete** (`string`, required) The unique identifier of the fee object to be deleted in HubSpot CRM. + +## HubspotCrmApi.UpdateFeeDetails + +
+ + +Update specific details of a fee in the CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **fee_identifier** (`string`, optional) The ID or unique property value that identifies the fee object to update. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) Specify the unique property name to identify the object instead of the default ID. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertHubspotFees + +
+ + +Create or update fee records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetCrmFees + +
+ + +Fetch a list of fees from the CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) Comma-separated list of object types to retrieve associated IDs for. Ignored if associations don't exist. +- **fee_properties_to_return** (`array[string]`, optional) List of properties to be returned in the response. If a property is not present, it will be ignored. +- **maximum_results_per_page** (`integer`, optional) The maximum number of fees to display per page. +- **paging_cursor_token** (`string`, optional) The token used to retrieve the next page of results. Use the token returned in `paging.next.after` from a previous response. +- **properties_with_history** (`array[string]`, optional) List of properties to return with their history. Reduces max number of fees per request. +- **return_archived_only** (`boolean`, optional) Set to true to return only results that have been archived. + +## HubspotCrmApi.CreateFeeInCrm + +
+ + +Create a fee in the CRM and receive the object's details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchFees + +
+ + +Create a batch of fees in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchFeesInCrm + +
+ + +Search for fees in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateBatchFees + +
+ + +Update multiple fees by internal ID or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveFeesBatch + +
+ + +Archives a batch of fees by their IDs in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveFeeRecords + +
+ + +Retrieve fee records by ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_only** (`boolean`, optional) Set to true to return only archived fee records. False to return active records. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateGoalTargetsBatch + +
+ + +Batch create multiple goal targets in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveGoalTargets + +
+ + +Retrieve goal target records using record ID or custom value. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_only_archived_results** (`boolean`, optional) Set to true to return only the archived records. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetGoalTargetById + +
+ + +Retrieve goal target object details using its ID. + +**Parameters** + +- **goal_target_id** (`string`, required) The unique identifier for the goal target object. Can be the internal object ID or a unique property value specified by `idProperty`. +- **archived_results** (`boolean`, optional) Set to true to return only archived results. Default is false. +- **associated_object_types** (`array[string]`, optional) Specify object types to retrieve associated IDs. If not present, they will be ignored. Use commas to separate multiple types. +- **properties_with_history** (`array[string]`, optional) Comma-separated properties to return with their value histories. Ignored if properties are absent on the object. +- **returned_properties** (`array[string]`, optional) List of properties to return. Ignored if not present on the object. +- **unique_property_name** (`string`, optional) The property name used as a unique identifier for the goal target object. + +## HubspotCrmApi.DeleteGoalTarget + +
+ + +Deletes a goal target by its ID to the recycling bin. + +**Parameters** + +- **goal_target_id** (`string`, required) The unique identifier for the goal target to be deleted. Required to specify which target to move to the recycling bin. + +## HubspotCrmApi.UpdateGoalTarget + +
+ + +Update properties of a HubSpot goal target. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **goal_target_id** (`string`, optional) The internal ID of the goal target to update. Use this to specify which goal target object to modify. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a unique property for the goal target object used for identification or update. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchGoalTargets + +
+ + +Search for goal targets using specified criteria. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveGoalTargetsBatch + +
+ + +Archive multiple goal targets using their IDs in one batch. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateBatchGoalTargets + +
+ + +Update multiple goal targets in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertGoalTargets + +
+ + +Create or update goal target records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetGoalTargets + +
+ + +Retrieve a page of goal targets from HubSpot CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) List of object types to retrieve associated IDs for, ignored if non-existent. +- **paging_cursor_token** (`string`, optional) Token of the last successfully read item. Use it for fetching the next page of results. +- **properties_with_history** (`array[string]`, optional) Comma-separated properties to return with their history of previous values. Reduces the max number of goals retrievable in one request. +- **results_per_page_limit** (`integer`, optional) Specify the maximum number of results to display per page. +- **return_only_archived** (`boolean`, optional) Set to true to return only results that have been archived. +- **returned_properties** (`array[string]`, optional) Comma-separated list of properties to return in the response. Ignored if absent on requested objects. + +## HubspotCrmApi.CreateGoalTarget + +
+ + +Create a goal target in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchOfInvoices + +
+ + +Create a batch of invoices swiftly. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchInvoices + +
+ + +Find invoices in the HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveInvoiceRecords + +
+ + +Retrieve invoice records by ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_only** (`boolean`, optional) Set to true to return only results that have been archived from HubSpot CRM. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetInvoiceById + +
+ + +Retrieve invoice details by ID. + +**Parameters** + +- **invoice_identifier** (`string`, required) The unique identifier for the invoice. This can be the internal object ID or any unique property value as specified by the `id_property`. +- **associated_object_types** (`array[string]`, optional) List of object types to retrieve associated IDs for, separated by commas. Ignored if associations don't exist. +- **historical_properties** (`array[string]`, optional) Comma-separated list of properties to return along with their history of previous values. +- **requested_properties** (`array[string]`, optional) List of properties to be returned in the response for the specified invoice. Properties not present on the object will be ignored. +- **return_archived_only** (`boolean`, optional) Specify `True` to return only archived results. `False` returns both archived and non-archived results. +- **unique_identifier_property** (`string`, optional) The name of a property whose values uniquely identify the invoice object. Specify this to use a unique property other than the internal object ID. + +## HubspotCrmApi.DeleteInvoice + +
+ + +Archive an invoice by moving it to the recycling bin. + +**Parameters** + +- **invoice_identifier** (`string`, required) The unique identifier for the invoice to be archived in HubSpot CRM. + +## HubspotCrmApi.UpdateInvoiceDetails + +
+ + +Update invoice details in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **invoice_identifier** (`string`, optional) Unique identifier for the invoice, either the internal ID or specified unique property value, to update in HubSpot CRM. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) Name of the unique property for identifying the invoice object. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateInvoicesBatch + +
+ + +Updates multiple invoices in the HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveInvoices + +
+ + +Retrieve a page of invoices from HubSpot CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) A list of object types whose associated IDs should be retrieved. Ignored if associations do not exist. +- **maximum_results_per_page** (`integer`, optional) The maximum number of invoice results to display per page. +- **paging_cursor_token** (`string`, optional) The token for the last successfully read resource to retrieve the next page of results. +- **properties_with_history** (`array[string]`, optional) List properties to return with their historical values. Reduced invoice limit per request. +- **return_archived_only** (`boolean`, optional) Set to true to return only archived invoices; false for all invoices. +- **specified_properties** (`array[string]`, optional) List of invoice property names to return. Ignored if properties are not present on the objects. + +## HubspotCrmApi.CreateHubspotInvoice + +
+ + +Create an invoice in HubSpot CRM and retrieve its details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertHubspotInvoices + +
+ + +Create or update HubSpot invoice records in batch. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveInvoicesBatch + +
+ + +Archive a batch of invoices by their IDs. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveLeadRecords + +
+ + +Retrieve lead records by ID or custom unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_only** (`boolean`, optional) Return only results that have been archived. Set to 'true' to filter by archived records. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchCrmLeads + +
+ + +Search for leads in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetHubspotLeadsPage + +
+ + +Retrieve a page of leads from HubSpot CRM. + +**Parameters** + +- **archived_leads_only** (`boolean`, optional) Return only leads that have been archived. Set to true to include only archived leads, false to exclude them. +- **associated_object_types** (`array[string]`, optional) Comma-separated list of object types to retrieve associated IDs for; ignored if non-existent. +- **lead_properties_to_return** (`array[string]`, optional) An array of the property names to include in the lead details response. Unavailable properties will be ignored. +- **paging_cursor_token** (`string`, optional) The cursor token to continue retrieving leads from where the last page ended. +- **properties_with_history** (`array[string]`, optional) List of properties whose historical values will be returned. Reduce max leads per request. +- **results_limit_per_page** (`integer`, optional) Defines the maximum number of leads to display per page. + +## HubspotCrmApi.CreateLeadHubspot + +
+ + +Create a new lead in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateLeadsBatch + +
+ + +Create a batch of new leads in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateLeadsBatch + +
+ + +Update multiple leads in a batch by ID or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetLeadById + +
+ + +Retrieve a lead by its unique identifier. + +**Parameters** + +- **lead_identifier** (`string`, required) The unique identifier for the lead. Typically the internal ID, or a unique property value if specified by `idProperty`. +- **associated_object_types** (`array[string]`, optional) Comma-separated list of object types to retrieve associated IDs for, with non-existent associations ignored. +- **only_archived_results** (`boolean`, optional) Set to true to return only archived results. +- **return_properties_with_history** (`array[string]`, optional) A list of properties to return with their history of previous values. Comma-separated values should be used. Ignored if properties are not present. +- **returned_properties** (`array[string]`, optional) A list of properties to be returned in the response. Only specified properties present on the lead will be included. +- **unique_property_name** (`string`, optional) Specifies a unique property name to identify the lead. Overrides default ID. + +## HubspotCrmApi.ArchiveHubspotLead + +
+ + +Archive a HubSpot CRM lead by identifier. + +**Parameters** + +- **lead_identifier** (`string`, required) The unique identifier for the lead to be archived in HubSpot CRM. + +## HubspotCrmApi.UpdateLeadDetails + +
+ + +Update details of a specific lead in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **lead_identifier** (`string`, optional) The internal object ID or unique property value used to identify the lead in HubSpot CRM. Required for updating the lead details. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) Specify the name of a unique property to identify the lead, instead of using the internal ID. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveLeadsBatch + +
+ + +Archive a batch of leads by ID in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetAssociationLimitRecords + +
+ + +Fetch records near association limits between two objects. + +**Parameters** + +- **source_object_type_id** (`string`, required) Specifies the ID of the source object type to check association limits from. +- **to_object_type_id** (`string`, required) The ID of the target object type for the association limit query. + +## HubspotCrmApi.GetCustomAssociationLabelsLimits + +
+ + +Get limits and usage for custom association labels in HubSpot CRM. + +**Parameters** + +- **source_object_type_id** (`string`, optional) The unique identifier for the source object type. It specifies which object type the association is coming from in the CRM. +- **target_object_type_id** (`string`, optional) The ID of the target object type to which the association label applies. Specify the target entity in HubSpot CRM. + +## HubspotCrmApi.FetchAssociationLimitObjects + +
+ + +Fetch objects approaching association limits for a specified type. + +**Parameters** + +- **from_object_type_id** (`string`, required) Identifier for the 'from' object type whose records' association limits are being queried. + +## HubspotCrmApi.GetCustomObjectLimits + +
+ + +Retrieve limits and usage for HubSpot custom object schemas. + +**Parameters** + +This tool does not take any parameters. + +## HubspotCrmApi.GetCustomPropertyLimits + +
+ + +Retrieve limits and usage for custom properties per object. + +**Parameters** + +This tool does not take any parameters. + +## HubspotCrmApi.RetrieveLimitApproachingRecords + +
+ + +Retrieve objects nearing or at HubSpot CRM association limits. + +**Parameters** + +This tool does not take any parameters. + +## HubspotCrmApi.GetHubspotCrmLimitsRecords + +
+ + +Retrieve limits and usage for records in HubSpot CRM. + +**Parameters** + +This tool does not take any parameters. + +## HubspotCrmApi.PipelineLimitsUsage + +
+ + +Retrieve limits and usage for HubSpot CRM pipelines. + +**Parameters** + +This tool does not take any parameters. + +## HubspotCrmApi.GetCalculatedPropertiesLimits + +
+ + +Get limits and usage for calculated properties in HubSpot CRM. + +**Parameters** + +This tool does not take any parameters. + +## HubspotCrmApi.RetrieveLineItemsPage + +
+ + +Retrieve a page of line items from HubSpot CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) List of object types to retrieve associated IDs. Nonexistent associations are ignored. +- **include_properties** (`array[string]`, optional) List the properties to include in the response, separated by commas. Ignored if not present. +- **max_results_per_page** (`integer`, optional) Sets the maximum number of line items to display per page. +- **pagination_cursor_after** (`string`, optional) The cursor token from the last page to retrieve the next set of results. +- **properties_with_history** (`array[string]`, optional) A list of property names to return with their value history. This reduces the max line items per request. +- **return_only_archived** (`boolean`, optional) Set to true to return only archived results. False returns non-archived results. + +## HubspotCrmApi.CreateHubspotLineItem + +
+ + +Create a new line item in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetLineItemDetails + +
+ + +Retrieve details of a line item by its ID. + +**Parameters** + +- **line_item_id** (`string`, required) The unique ID or property value of the line item to retrieve. This identifies the specific line item in HubSpot CRM. +- **associated_object_types** (`array[string]`, optional) Comma separated list of object types to retrieve associated IDs for. Non-existent associations are ignored. +- **only_return_archived** (`boolean`, optional) Set to True to return only archived results. +- **properties_with_history** (`array[string]`, optional) A list of properties to return with their value history. Ignored if not present on the object. +- **return_properties** (`array[string]`, optional) Comma-separated list of properties to return. Ignored if not present on the object. +- **unique_identifier_property** (`string`, optional) Specifies a unique property name to identify the line item in HubSpot CRM. + +## HubspotCrmApi.DeleteLineItem + +
+ + +Moves a specified line item to the recycling bin. + +**Parameters** + +- **line_item_id** (`string`, required) The unique identifier of the line item to be archived or deleted. + +## HubspotCrmApi.UpdateLineItem + +
+ + +Update properties of a CRM line item using its ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **line_item_id** (`string`, optional) The internal ID of the line item to update. This ID identifies the object to be modified. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) Specify a property with unique values to identify the line item instead of using the internal ID. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertLineItemsBatch + +
+ + +Batch create or update line items by unique ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateLineItemsBatch + +
+ + +Create a batch of line items in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateLineItemsBatch + +
+ + +Update multiple line items in CRM using internal IDs or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchLineItems + +
+ + +Search for line items in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveBatchLineItems + +
+ + +Retrieve batch line item records by ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **retrieve_only_archived** (`boolean`, optional) Set to true to retrieve only archived line items. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveLineItemsBatch + +
+ + +Archive a batch of line items in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ListCrmEntries + +
+ + +Retrieve a page of CRM listings with specified properties. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for, such as 'contacts' or 'deals'. Ignored if not existent. +- **include_only_archived_results** (`boolean`, optional) Set to true to return only archived results. False to exclude archived entries. +- **include_properties_with_history** (`array[string]`, optional) List the properties whose values along with their history should be returned. Reduces the number of listings per request. +- **maximum_results_per_page** (`integer`, optional) The maximum number of CRM listing results to display per page. This controls pagination size. +- **paging_cursor_token** (`string`, optional) The cursor token for fetching the next page of CRM listings. +- **properties_to_return** (`array[string]`, optional) Comma-separated list of properties to include in the response. Non-existent properties will be ignored. + +## HubspotCrmApi.CreateHubspotListing + +
+ + +Create a HubSpot CRM listing and get the object details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveMultipleListings + +
+ + +Archive multiple listings using their IDs. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateMultipleCrmListings + +
+ + +Update multiple CRM listings using internal IDs or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.FetchHubspotRecords + +
+ + +Retrieve HubSpot CRM records by ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_records_only** (`boolean`, optional) Set to true to return only HubSpot CRM records that have been archived. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateMultipleListings + +
+ + +Create multiple listings in a single request. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateOrUpdateBatchRecords + +
+ + +Create or update CRM records in batches. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchHubspotListings + +
+ + +Search listings in HubSpot CRM using filters and properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetListingDetails + +
+ + +Retrieve details of a listing by its ID. + +**Parameters** + +- **unique_listing_id** (`string`, required) The unique identifier for the listing to be retrieved in HubSpot CRM. +- **properties_to_return** (`array[string]`, optional) A list of properties to be included in the response. Non-existent properties will be ignored. +- **properties_with_history** (`array[string]`, optional) An array of property names to return along with their historical values. +- **retrieve_associated_object_types** (`array[string]`, optional) List of object types to retrieve associated IDs for. Comma separated. Non-existent associations will be ignored. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived results. Use false to include non-archived as well. +- **unique_property_name** (`string`, optional) The name of a property with unique values to identify the object in HubSpot CRM. + +## HubspotCrmApi.MoveListingToRecycleBin + +
+ + +Move a listing to the recycling bin by ID. + +**Parameters** + +- **listing_id** (`string`, required) The unique identifier of the listing to be moved to the recycling bin in HubSpot CRM. + +## HubspotCrmApi.HubspotUpdateListing + +
+ + +Update specific details of a HubSpot listing. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **listing_id** (`string`, optional) The unique identifier of the listing to update in HubSpot. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a unique property for this object, used for identification. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateListName + +
+ + +Update the name of a CRM list in HubSpot. + +**Parameters** + +- **list_id** (`string`, required) The unique ILS ID of the list to update. +- **include_filter_branch_definition** (`boolean`, optional) Set to true to include filter branch definitions in the response list definition, or false to exclude them. +- **new_list_name** (`string`, optional) The new name for the CRM list. It must be globally unique relative to other public lists. + +## HubspotCrmApi.UpdateListMemberships + +
+ + +Add or remove records from a manual or snapshot list. + +**Parameters** + +- **list_identifier** (`string`, required) The unique ILS ID of the MANUAL or SNAPSHOT list to update. +- **record_ids_to_add** (`array[string]`, required) An array of record IDs to be added to the specified list. Ensure these records are already created in the system. +- **record_ids_to_remove** (`array[string]`, required) An array of record IDs to remove from the list. Each ID should be a string. + +## HubspotCrmApi.FetchHubspotListById + +
+ + +Fetch a single HubSpot CRM list using its ILS list ID. + +**Parameters** + +- **list_id** (`string`, required) The ILS ID of the HubSpot CRM list to fetch. +- **include_filter_definitions** (`boolean`, optional) Include filter branch definitions in the response. Defaults to false, meaning filter definitions are not included. + +## HubspotCrmApi.DeleteList + +
+ + +Delete a specified CRM list by its ID. + +**Parameters** + +- **list_id_to_delete** (`string`, required) The ILS ID of the CRM list to delete. Ensure the ID is correct to avoid unintentional deletion. + +## HubspotCrmApi.RetrieveConversionDetails + +
+ + +Retrieve conversion details for a specific list in HubSpot CRM. + +**Parameters** + +- **list_id** (`string`, required) The ID of the list for which you want to retrieve conversion details. + +## HubspotCrmApi.ScheduleListConversion + +
+ + +Schedule or update the conversion of an active list to static. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **list_id** (`string`, optional) The ID of the list you want to schedule the conversion for. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.DeleteScheduledConversion + +
+ + +Delete a scheduled conversion for a specific list. + +**Parameters** + +- **list_id** (`string`, required) The ID of the list for which you want to cancel the scheduled conversion. + +## HubspotCrmApi.SearchHubspotLists + +
+ + +Search HubSpot CRM lists by name or page through all lists. + +**Parameters** + +- **filter_by_list_ids** (`array[string]`, optional) An array of list IDs to filter search results. If not provided or empty, no filter is applied. +- **filter_by_processing_types** (`array[string]`, optional) List of processing types to filter results. Valid values: 'MANUAL', 'SNAPSHOT', 'DYNAMIC'. If omitted, no filtering by processing type is applied. +- **include_additional_list_properties** (`array[string]`, optional) Specify additional list properties to include in the response. Defaults fetch standard properties like `hs_list_size` and others. +- **number_of_lists_to_return** (`integer`, optional) The number of lists to include in the response. Defaults to 20 if not provided, with a maximum of 500. +- **search_query** (`string`, optional) The term to search for lists by name. Returns all lists if empty. +- **sort_order** (`string`, optional) Specify the order in which the lists should be sorted. Acceptable values could be 'asc' for ascending or 'desc' for descending order. +- **start_offset** (`integer`, optional) The starting point for pagination of list results. Defaults to `0` if not provided. + +## HubspotCrmApi.MoveListToFolder + +
+ + +Move a CRM list to a specified folder. + +**Parameters** + +- **list_id** (`string`, required) The ID of the list you want to move. It should be a valid string representing the list in HubSpot CRM. +- **target_folder_id** (`string`, required) The ID of the folder to move the list to. Use '0' for the root folder. + +## HubspotCrmApi.AddToHubspotCrmList + +
+ + +Add records to a specified HubSpot CRM list. + +**Parameters** + +- **list_id** (`string`, required) The ILS ID of the MANUAL or SNAPSHOT list to add records. +- **record_ids_to_add** (`array[string]`, required) An array of strings representing the IDs of the records to add to the list. + +## HubspotCrmApi.FetchListByName + +
+ + +Fetch details of a list by its name and object type. + +**Parameters** + +- **list_name** (`string`, required) The name of the list to fetch. This is not case sensitive. +- **object_type_id** (`string`, required) The object type ID for the list. Example: `0-1` for `CONTACT`. +- **include_filters** (`boolean`, optional) Set to true to include filter branch definitions in the response. By default, filters are not included. + +## HubspotCrmApi.MoveFolderInHubspot + +
+ + +Move a folder to a new parent in HubSpot CRM. + +**Parameters** + +- **folder_id_to_move** (`string`, required) The ID of the folder you want to move to a new location in HubSpot CRM. +- **target_parent_folder_id** (`string`, required) The ID of the target parent folder to which the current folder will be moved. + +## HubspotCrmApi.TranslateLegacyToNewListId + +
+ + +Translate legacy list ID to the new list ID format. + +**Parameters** + +- **legacy_list_id** (`string`, optional) The legacy list ID from the lists v1 API to be translated to the new format. + +## HubspotCrmApi.TranslateLegacyListIdsBatch + +
+ + +Translate legacy list IDs to new list IDs in batch. + +**Parameters** + +- **legacy_list_ids** (`array[string]`, required) An array of legacy list IDs to be translated to new IDs, supporting up to 10,000 strings. + +## HubspotCrmApi.RestoreDeletedList + +
+ + +Restore a previously deleted HubSpot CRM list. + +**Parameters** + +- **list_id_to_restore** (`string`, required) The ILS ID of the list to restore. Use this to specify which deleted list to recover. + +## HubspotCrmApi.RenameCrmFolder + +
+ + +Rename a folder in HubSpot CRM by its folder ID. + +**Parameters** + +- **folder_id** (`string`, required) The ID of the folder you want to rename in HubSpot CRM. +- **new_folder_name** (`string`, optional) The new name to assign to the folder. It should be a string representing the desired folder name in HubSpot CRM. + +## HubspotCrmApi.FetchListMembershipsOrdered + +
+ + +Fetch list memberships ordered by addition date. + +**Parameters** + +- **list_id** (`string`, required) The unique ILS ID of the list to retrieve memberships from. +- **after_paging_offset_token** (`string`, optional) The token for the page that comes after the previously requested records, sorted in ascending order. Takes precedence over 'before'. +- **before_offset_token** (`string`, optional) The paging offset token to retrieve records preceding the specified page, sorted in descending order. +- **record_limit** (`integer`, optional) Specify the number of records to return, with a maximum limit of 250. + +## HubspotCrmApi.AddAllFromSourceListToDestinationList + +
+ + +Add records from a source list to a destination list in HubSpot. + +**Parameters** + +- **destination_list_id** (`string`, required) The ILS ID of the MANUAL or SNAPSHOT destination list to which the source list records are added. +- **source_list_id** (`string`, required) The ILS ID of the source list from which records are added to the destination list. + +## HubspotCrmApi.GetRecordListMemberships + +
+ + +Retrieve lists a CRM record is a member of. + +**Parameters** + +- **object_type_id** (`string`, required) Specify the object type ID of the record to retrieve its list memberships. +- **record_id** (`string`, required) The unique identifier of the CRM record whose list memberships you want to retrieve. + +## HubspotCrmApi.DeleteCrmFolder + +
+ + +Deletes a specified CRM folder by ID. + +**Parameters** + +- **folder_id_to_delete** (`string`, required) The ID of the folder to be deleted in HubSpot CRM. + +## HubspotCrmApi.RetrieveFoldersWithChildNodes + +
+ + +Retrieve folders and include all child folders recursively. + +**Parameters** + +- **target_folder_id** (`string`, optional) The ID of the folder to retrieve and include all child nodes recursively from HubSpot CRM. + +## HubspotCrmApi.CreateFolderHubspotCrm + +
+ + +Creates a folder in HubSpot CRM with specified details. + +**Parameters** + +- **folder_name** (`string`, required) The name of the folder to be created in HubSpot CRM. +- **parent_folder_id** (`string`, optional) The ID of the folder where the new folder will be created. Defaults to root folder (ID: 0) if not specified. + +## HubspotCrmApi.RemoveRecordsFromList + +
+ + +Remove specified records from a HubSpot CRM list. + +**Parameters** + +- **list_id** (`string`, required) The ILS ID of the MANUAL or SNAPSHOT list from which records will be removed. +- **record_ids_to_remove** (`array[string]`, required) List of record IDs to remove from the HubSpot CRM list. + +## HubspotCrmApi.FetchHubspotListMemberships + +
+ + +Retrieve memberships of a HubSpot list by order of record ID. + +**Parameters** + +- **list_identifier** (`string`, required) The ILS ID of the HubSpot list to retrieve memberships for. +- **before_offset_token** (`string`, optional) The paging offset token for the page before the previously requested records, used to sort records in descending order. +- **number_of_records_to_return** (`integer`, optional) Defines how many records to retrieve in the response, with a maximum value of 250. +- **paging_offset_after_token** (`string`, optional) The paging offset token for the page that comes after the previously requested records. If provided, records will follow this offset, sorted in ascending order. Takes precedence over the before offset. + +## HubspotCrmApi.RemoveAllListMemberships + +
+ + +Remove all records from a CRM list without deleting the list. + +**Parameters** + +- **list_id** (`string`, required) The ILS ID of a MANUAL or SNAPSHOT list in HubSpot CRM. Required for removing all memberships. + +## HubspotCrmApi.GetMeetingDetailsById + +
+ + +Retrieve detailed information about a specific meeting. + +**Parameters** + +- **meeting_identifier** (`string`, required) Unique identifier for the meeting you want to retrieve details for. +- **only_archived** (`boolean`, optional) Set to true to return only archived meeting results. +- **properties_with_history** (`array[string]`, optional) Comma separated list of properties to return with history of values. Ignored if not present on the object. +- **retrieve_associated_object_ids** (`array[string]`, optional) List of object types to fetch associated IDs for. Nonexistent associations will be ignored. +- **return_properties** (`array[string]`, optional) A list of properties to be returned in the response. If any specified properties are not present, they will be ignored. +- **unique_property_name** (`string`, optional) The property name whose values uniquely identify the meeting object. + +## HubspotCrmApi.DeleteMeeting + +
+ + +Move a meeting to the recycling bin using its ID. + +**Parameters** + +- **meeting_id** (`string`, required) The unique ID of the meeting to be moved to the recycling bin. This is required to identify the specific meeting. + +## HubspotCrmApi.UpdateHubspotMeeting + +
+ + +Update specific properties of a HubSpot meeting. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **meeting_id** (`string`, optional) The internal ID of the meeting or a property name with unique values for identification. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of the unique property for identifying the meeting. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateMeetingsBatch + +
+ + +Update a batch of meetings in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveMeetingRecords + +
+ + +Retrieve meeting records by ID or unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_only_archived_results** (`boolean`, optional) Set to true to retrieve only archived meeting records. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveMeetingsBatch + +
+ + +Archive multiple meetings by IDs in batch. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetMeetingsPage + +
+ + +Retrieve a page of meetings data from HubSpot CRM. + +**Parameters** + +- **maximum_results_per_page** (`integer`, optional) The maximum number of meeting results to display per page. Specify an integer value. +- **paging_cursor_token** (`string`, optional) The token indicating the last successfully read resource, used for paging through results. +- **properties** (`array[string]`, optional) A list of property names to return in the response. If any are not present, they will be ignored. +- **properties_with_history** (`array[string]`, optional) List of properties to retrieve with their change history. Reduces max meetings returned per request. +- **retrieve_associated_object_ids** (`array[string]`, optional) List object types to retrieve associated IDs for; ignored if associations don't exist. +- **return_archived_results** (`boolean`, optional) Set to true to return only archived results; false to include active results. + +## HubspotCrmApi.CreateHubspotMeeting + +
+ + +Create a meeting in HubSpot and get its details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertMeetings + +
+ + +Create or update meeting records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchMeetings + +
+ + +Create a batch of meetings in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchHubspotMeetings + +
+ + +Search for meetings in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchHubspotNotes + +
+ + +Search for notes in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveNotesPage + +
+ + +Retrieve a page of notes from HubSpot CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) List of object types to retrieve associated IDs for. Non-existent associations will be ignored. +- **paging_cursor_token** (`string`, optional) Token for paging to retrieve the next set of notes. Use the token from `paging.next.after` in the previous response. +- **properties_with_history** (`array[string]`, optional) List of properties to return with their historical values. Reduces the maximum number of notes per request. +- **results_per_page** (`integer`, optional) The maximum number of note results to display per page. Specify an integer value. +- **return_only_archived_notes** (`boolean`, optional) Set to True to return only archived notes; otherwise, non-archived notes are returned. +- **returned_properties_list** (`array[string]`, optional) List of note properties to include in the response. Specify as an array of strings. + +## HubspotCrmApi.CreateNoteInHubspot + +
+ + +Create a note in HubSpot CRM and return its details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveNotesRecords + +
+ + +Retrieve notes records by ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_only** (`boolean`, optional) Set to true to return only archived records. Use false to include non-archived records. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertNotesHubspot + +
+ + +Create or update notes in HubSpot CRM by unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveNotesBatch + +
+ + +Archive a batch of notes by their IDs. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.BatchUpdateNotes + +
+ + +Update multiple notes in HubSpot CRM by ID or property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchOfNotes + +
+ + +Create multiple notes in a CRM batch operation. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetNoteDetails + +
+ + +Retrieve details of a note by its unique ID. + +**Parameters** + +- **note_id** (`string`, required) The unique identifier of the note to retrieve details for. +- **associated_object_types** (`array[string]`, optional) List the object types to retrieve associated IDs for, separated by commas. Invalid types are ignored. +- **properties_to_return** (`array[string]`, optional) A list of property names to return for the note. Non-existing properties will be ignored. +- **return_archived_results_only** (`boolean`, optional) Set to true to return only archived notes. +- **return_properties_with_history** (`array[string]`, optional) List properties to return with their history of previous values. Ignored if not present on the object. +- **unique_property_name** (`string`, optional) Specify the unique property name to identify the object in HubSpot CRM. + +## HubspotCrmApi.DeleteNoteHubspot + +
+ + +Move a HubSpot note to the recycling bin. + +**Parameters** + +- **note_id** (`string`, required) The unique identifier of the note to be archived in HubSpot CRM. + +## HubspotCrmApi.UpdateHubspotNote + +
+ + +Update a HubSpot note with new property values. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **note_identifier** (`string`, optional) The ID or unique property value of the note to update. Use `noteId` for internal ID or specify a unique property via `idProperty`. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a property with unique values for this object, used to identify the note. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.FetchEnablementData + +
+ + +Fetch enablement data from HubSpot CRM. + +**Parameters** + +This tool does not take any parameters. + +## HubspotCrmApi.EnableObjectTypeInHubspot + +
+ + +Enable an object type in HubSpot CRM via its ID. + +**Parameters** + +- **object_type_id** (`string`, required) The unique identifier for the object type in HubSpot CRM that needs to be enabled. + +## HubspotCrmApi.SearchOrderRecords + +
+ + +Search for order records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveHubspotOrders + +
+ + +Retrieve order records from HubSpot CRM by ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_only_archived_orders** (`boolean`, optional) Set to True to return only archived order records from HubSpot CRM. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetOrderDetails + +
+ + +Retrieve details of an order using its ID. + +**Parameters** + +- **order_identifier** (`string`, required) The unique identifier for the order. This can be the internal object ID or a unique property value specified by the idProperty. +- **associated_object_types** (`array[string]`, optional) Comma separated list of object types to retrieve associated IDs. Non-existent associations are ignored. +- **properties_with_history** (`array[string]`, optional) A list of properties to return with their history of previous values. If specified properties are not present, they will be ignored. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived results for the specified order. +- **return_properties** (`array[string]`, optional) List the properties to retrieve for the order. Any nonexistent properties will be ignored. +- **unique_property_name** (`string`, optional) Specify the name of a unique property to identify the order. Overrides the default ID. + +## HubspotCrmApi.DeleteOrderById + +
+ + +Deletes an order by its ID from the CRM. + +**Parameters** + +- **order_id** (`string`, required) The unique ID of the order to delete, moving it to the recycling bin. + +## HubspotCrmApi.UpdateOrderDetails + +
+ + +Update specific details of an order using its ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **order_id** (`string`, optional) The internal ID of the order to be updated. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) Specify the name of a unique property to identify the order object instead of using the order ID. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertOrdersInHubspot + +
+ + +Create or update orders in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchOrders + +
+ + +Create a batch of orders in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateHubspotOrdersBatch + +
+ + +Update multiple HubSpot CRM orders in a batch. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetOrdersPage + +
+ + +Retrieve a page of orders from CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for; ignored if not existing. +- **only_return_archived_orders** (`boolean`, optional) Set to true to return only archived orders. False returns both archived and unarchived orders. +- **order_properties_to_return** (`array[string]`, optional) A list of properties to be included in the order response. Specify as a comma-separated string. Ignored if not present on the objects. +- **paging_cursor_token** (`string`, optional) Token for pagination, representing the last successfully read resource for fetching the next page of results. +- **properties_with_history** (`array[string]`, optional) A list of order properties to return with their history of previous values. Reduces maximum results per request. +- **results_per_page** (`integer`, optional) The maximum number of orders to display per page. This controls the pagination size. + +## HubspotCrmApi.CreateHubspotOrder + +
+ + +Create a new order in HubSpot CRM with specified properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveOrdersBatch + +
+ + +Archive a batch of orders by ID in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdatePartnerClientsBatch + +
+ + +Update multiple partner clients in a batch. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetPartnerClients + +
+ + +Retrieve partner clients from HubSpot CRM. + +**Parameters** + +- **client_properties** (`array[string]`, optional) A list of specific client properties to retrieve, such as 'name', 'email', etc. +- **include_archived** (`boolean`, optional) Set to true to include archived partner clients, false to exclude them. +- **include_associations** (`array[string]`, optional) List of associations to include in the response. Specify names of associations as strings. +- **pagination_cursor** (`string`, optional) A string token to retrieve the next page of partner clients, obtained from a previous response. +- **properties_with_history** (`array[string]`, optional) List property names to retrieve along with their historical versions. Each property should be specified as a string. +- **retrieval_limit** (`integer`, optional) Specifies the maximum number of partner clients to retrieve from the HubSpot CRM in a single call. + +## HubspotCrmApi.BatchReadPartnerClients + +
+ + +Fetch batch details of partner clients in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **include_archived** (`boolean`, optional) Set to true to include archived partner clients in the batch results. Default is false. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchPartnerClients + +
+ + +Perform a search for partner clients in CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetPartnerClientInfo + +
+ + +Retrieve information for a specific partner client. + +**Parameters** + +- **partner_client_id** (`string`, required) The unique identifier for the partner client to retrieve details from HubSpot CRM. +- **associated_objects** (`array[string]`, optional) A list of associated object types to include, such as 'contacts' or 'deals'. +- **include_archived_data** (`boolean`, optional) Boolean to specify if archived partner client data should be included in the response. Set to true to include archived data. +- **optional_properties** (`array[string]`, optional) An array of specific properties to retrieve for the partner client. Leave empty to obtain all available properties. +- **properties_with_history** (`array[string]`, optional) Specify the list of properties to retrieve, including their historical values. +- **property_id** (`string`, optional) Specify which property should be used as the primary identifier for the partner client. Useful for custom identification schemes. + +## HubspotCrmApi.UpdatePartnerClient + +
+ + +Update details of a partner client in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **partner_client_id** (`string`, optional) The unique identifier for the partner client to be updated in HubSpot CRM. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **identifier_property** (`string`, optional) Specify the property name used to identify the partner client for update operations. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.AssociatePartnerClientWithObject + +
+ + +Associate a partner client with another CRM object. + +**Parameters** + +- **association_type** (`string`, required) Specifies the type of association (e.g., contact, company, deal) between the partner client and the object. +- **partner_client_id** (`string`, required) The unique identifier for the partner client you wish to associate with another object. This should be a string representing the partner client's ID in the CRM system. +- **target_object_id** (`string`, required) The unique identifier of the CRM object you are associating with the partner client. This could be any valid object ID such as that of a contact, company, or deal. +- **target_object_type** (`string`, required) The type of the object to associate with the partner client (e.g., contact, company, deal). + +## HubspotCrmApi.RemovePartnerClientAssociation + +
+ + +Remove an association between two partner clients in HubSpot CRM. + +**Parameters** + +- **association_type** (`string`, required) The type of association to be removed between the partner client and the object. This defines the nature of their relationship. +- **partner_client_id** (`string`, required) The unique identifier for the partner client to be disassociated. This should be a string that identifies the specific partner client in the HubSpot CRM. +- **target_object_id** (`string`, required) The unique identifier of the object associated with the target partner client. +- **target_object_type** (`string`, required) Specify the type of the object you are dissociating from the partner client, such as 'contacts' or 'companies'. + +## HubspotCrmApi.ListPartnerClientAssociations + +
+ + +Retrieve associations of a partner client by type. + +**Parameters** + +- **partner_client_id** (`string`, required) The unique identifier for the partner client whose associations are to be retrieved. It is required and must be a valid string. +- **target_object_type** (`string`, required) The type of object to which the partner client is associated. Specify using a string value representing the object type, such as 'contact' or 'deal'. +- **include_family_associations** (`boolean`, optional) Indicate whether to include family associations in the response. Set to true to include them. +- **max_results_per_page** (`integer`, optional) Specify the maximum number of results to display per page. Use an integer value. +- **paging_cursor_token** (`string`, optional) The token used for pagination to fetch the next set of results. + +## HubspotCrmApi.GetPartnerServiceDetails + +
+ + +Retrieve details of a partner service by ID. + +**Parameters** + +- **partner_service_id** (`string`, required) The unique ID of the partner service object to retrieve. This can be the internal object ID or a unique property value as specified by the `idProperty`. +- **properties_to_return** (`array[string]`, optional) A list of property names to return for the partner service. Any missing properties will be ignored. +- **properties_with_history** (`array[string]`, optional) List of properties whose historical values should be returned for the partner service object. +- **retrieve_associated_ids** (`array[string]`, optional) Comma-separated list of object types to retrieve associated IDs. Non-existent associations are ignored. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived results, false otherwise. +- **unique_property_name** (`string`, optional) The name of a unique property to identify the object. + +## HubspotCrmApi.UpdatePartnerService + +
+ + +Partially update a partner service object in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **partner_service_id** (`string`, optional) The internal object ID of the partner service to update. Use this to specify the object you want to partially update. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) Specify the name of a unique property for the partner service object to identify it. This is used instead of the default internal ID. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrievePartnerServicesRecords + +
+ + +Retrieve partner services records by ID or unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_only_archived_records** (`boolean`, optional) Set to true to return only the archived records. False will include non-archived records. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchPartnerServicesHubspot + +
+ + +Search for partner services in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetPartnerServices + +
+ + +Retrieve a page of partner services. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for. Ignored if associations do not exist. +- **maximum_results_per_page** (`integer`, optional) The maximum number of results to display per page. Must be an integer value. +- **paging_cursor_after** (`string`, optional) The cursor token to retrieve the next page of results in a paged response. +- **properties_with_history** (`array[string]`, optional) List of property names to fetch with their history. Reduces max number of results per request. +- **return_only_archived** (`boolean`, optional) Set to true to return only results that have been archived. +- **return_properties** (`array[string]`, optional) List of properties to return in the response. Ignored if not present on requested objects. + +## HubspotCrmApi.AssociatePartnerService + +
+ + +Associate a partner service with another CRM object. + +**Parameters** + +- **association_type** (`string`, required) Specifies the type of association to create between the partner service and another object (e.g., "owner", "affiliate"). +- **partner_service_id** (`string`, required) The identifier for the partner service to associate with another object. This should be a valid string representing the unique ID of the partner service in the CRM. +- **target_object_id** (`string`, required) The ID of the target object you want to associate with the partner service. This should be a valid object ID in HubSpot CRM. +- **target_object_type** (`string`, required) The type of CRM object to associate with the partner service, e.g., 'contacts', 'companies', or 'deals'. + +## HubspotCrmApi.RemovePartnerServiceAssociation + +
+ + +Remove an association between two partner services. + +**Parameters** + +- **association_type** (`string`, required) Specifies the type of association to remove between the partner services. This is a string value that defines how the services are linked. +- **partner_service_id** (`string`, required) The unique identifier for the partner service. It specifies which partner service's association is to be removed. +- **target_object_id** (`string`, required) The unique identifier of the object to be disassociated from the partner service. This is required to specify which object is being unlinked. +- **target_object_type** (`string`, required) The type of the object to which the partner service is associated. Specify the object category, such as 'contact', 'company', etc. + +## HubspotCrmApi.UpdatePartnerServicesBatch + +
+ + +Update multiple partner services in CRM by ID or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ListPartnerServiceAssociations + +
+ + +Retrieve associations of a partner service by type. + +**Parameters** + +- **partner_service_id** (`string`, required) The unique identifier of the partner service to retrieve associations for. This ID is required. +- **target_object_type** (`string`, required) The type of object to filter associations by, such as contacts, companies, etc. +- **include_associated_fields** (`boolean`, optional) Set to true to include associated fields in the response. +- **max_results_per_page** (`integer`, optional) Specify the maximum number of results to display per page. This determines the page size for the response. +- **paging_cursor_token** (`string`, optional) The token to continue paginated results from the last read resource. + +## HubspotCrmApi.ReadBatchPayments + +
+ + +Retrieve a batch of payments from CRM by IDs or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **only_return_archived_results** (`boolean`, optional) Return only archived results if set to true. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetPaymentDetails + +
+ + +Retrieve details of a payment object by ID. + +**Parameters** + +- **payment_identifier** (`string`, required) The unique identifier for the payment object. This can be the internal object ID or a unique property value. +- **properties_with_history** (`array[string]`, optional) List of properties to return with their historical values. Unavailable properties will be ignored. +- **requested_properties** (`array[string]`, optional) A list of properties to return in the response. Non-existent properties will be ignored. +- **retrieve_associated_object_ids** (`array[string]`, optional) A list of object types to retrieve associated IDs for this payment. Non-existent associations are ignored. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived results in the response. +- **unique_property_name** (`string`, optional) The name of a property uniquely identifying the payment object type. Used to specify a unique property other than the internal ID. + +## HubspotCrmApi.GetPaymentRecords + +
+ + +Retrieve a page of payment records from HubSpot CRM. + +**Parameters** + +- **archived_results_only** (`boolean`, optional) Indicate if only archived payment records should be returned. Set to true to filter for archived records only. +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for. If specified associations do not exist, they will be ignored. +- **paging_token_after** (`string`, optional) The cursor token from the last read resource to fetch the next page of results. +- **payment_properties_to_include** (`array[string]`, optional) A list of property names to include in the response. Specified properties not present on the requested objects will be ignored. +- **properties_with_history** (`array[string]`, optional) A list of property names to return with their historical values. Ignored if not present on objects. +- **results_per_page_limit** (`integer`, optional) Maximum number of payment records to display per page. + +## HubspotCrmApi.SearchHubspotPayments + +
+ + +Search for payments in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetPipelineStageAudit + +
+ + +Retrieve audit logs for a specific pipeline stage. + +**Parameters** + +- **object_type** (`string`, required) The CRM object type to query for the pipeline stage, such as 'deals', 'tickets', or 'contacts'. +- **pipeline_id** (`string`, required) The unique identifier for the pipeline to retrieve stage audit logs from. +- **stage_identifier** (`string`, required) The unique identifier of the pipeline stage to audit. Use this to specify which stage's mutations you want to retrieve. + +## HubspotCrmApi.GetPipelineById + +
+ + +Retrieve a single CRM pipeline by its unique ID. + +**Parameters** + +- **object_type_in_crm** (`string`, required) Specify the type of CRM object, such as 'deals' or 'tickets', whose pipeline you want to retrieve. +- **pipeline_unique_id** (`string`, required) The unique identifier for the CRM pipeline to retrieve details. This value is required to fetch the specific pipeline information. + +## HubspotCrmApi.ReplacePipelineHubspot + +
+ + +Replace a specific pipeline in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **object_type** (`string`, optional) Specify the object type for the pipeline, such as 'deals' or 'tickets'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **pipeline_identifier** (`string`, optional) The unique identifier of the pipeline to replace in HubSpot CRM. This is required to specify which pipeline is being modified. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **validate_references_before_deletion** (`boolean`, optional) Set to true to validate all references before deleting the pipeline. Only used when mode is 'execute'. +- **validate_deal_stage_usages_before_delete** (`boolean`, optional) Set to true to validate deal stage usages before deleting a pipeline; false to proceed without validation. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.DeletePipeline + +
+ + +Delete a specific pipeline in the CRM. + +**Parameters** + +- **pipeline_id** (`string`, required) The unique identifier of the pipeline to be deleted. Required for specifying which pipeline to remove. +- **pipeline_object_type** (`string`, required) Specify the type of object for the pipeline, such as 'deals' or 'tickets'. +- **validate_deal_stage_usages_before_deletion** (`boolean`, optional) Set to true to validate deal stage usages before deleting a pipeline, preventing deletion if usages are found. +- **validate_references_before_delete** (`boolean`, optional) Set to true to validate references before deleting the pipeline. This prevents accidental deletion when references are present. + +## HubspotCrmApi.UpdatePipelineInCrm + +
+ + +Partially update a pipeline in the CRM. + +**Parameters** + +- **crm_object_type** (`string`, required) Specify the type of CRM object (e.g., deals, tickets) to update the pipeline for. +- **pipeline_identifier** (`string`, required) The unique identifier for the pipeline to be updated. This is required to specify which pipeline to modify. +- **is_pipeline_archived** (`boolean`, optional) Set to true if the pipeline is currently archived and you intend to restore it. Use only for restoration calls. +- **pipeline_display_order** (`integer`, optional) The display order number to determine the position of the pipeline in the CRM. Pipelines with the same display order are sorted alphabetically by label. +- **pipeline_label** (`string`, optional) A unique label to organize and identify the pipeline within HubSpot's UI. +- **validate_deal_stage_usages_before_delete** (`boolean`, optional) Indicate if deal stage usages should be validated before deletion. A boolean value is expected. +- **validate_references_before_deletion** (`boolean`, optional) Set to true to validate references before deletion. + +## HubspotCrmApi.GetPipelineStages + +
+ + +Retrieve all stages of a specified pipeline. + +**Parameters** + +- **object_type** (`string`, required) Specify the type of CRM object, such as deals or tickets, associated with the pipeline. +- **pipeline_id** (`string`, required) The ID of the pipeline to retrieve stages for. Must be a valid pipeline ID in HubSpot CRM. + +## HubspotCrmApi.CreatePipelineStage + +
+ + +Create a stage in a specified pipeline. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **crm_object_type** (`string`, optional) Specify the CRM object type, such as deals or tickets, for the pipeline. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **pipeline_id** (`string`, optional) The unique identifier of the pipeline where the new stage will be created. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetPipelineAuditLog + +
+ + +Retrieves the audit log for a specified CRM pipeline. + +**Parameters** + +- **object_type** (`string`, required) The type of CRM object for which audit logs are being retrieved, such as 'deals' or 'contacts'. +- **pipeline_id** (`string`, required) The unique identifier for the pipeline to fetch the audit log from. This ID is used to target a specific pipeline within HubSpot CRM. + +## HubspotCrmApi.GetAllPipelines + +
+ + +Retrieve all pipelines for a specified object type. + +**Parameters** + +- **object_type** (`string`, required) Specify the CRM object type (e.g., contacts, deals) to retrieve pipelines for. + +## HubspotCrmApi.CreateCrmPipeline + +
+ + +Create a new CRM pipeline in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **pipeline_object_type** (`string`, optional) Specify the type of CRM object for the pipeline, such as 'deals' or 'tickets'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetPipelineStageById + +
+ + +Retrieve a specific pipeline stage by its ID. + +**Parameters** + +- **object_type** (`string`, required) The type of CRM object, such as 'deals' or 'tickets', to access the pipeline stage for. +- **pipeline_id** (`string`, required) The unique identifier for the pipeline in HubSpot CRM. Use this ID to specify which pipeline the stage belongs to. +- **stage_id** (`string`, required) Unique ID of the pipeline stage to retrieve details from HubSpot CRM. + +## HubspotCrmApi.ReplacePipelineStageProperties + +
+ + +Replace and update a pipeline stage in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **crm_object_type** (`string`, optional) Specifies the CRM object type like 'deals' or 'contacts' to identify the pipeline stage being replaced. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **pipeline_id** (`string`, optional) The unique identifier for the pipeline whose stage properties are to be replaced. This must match the ID used in HubSpot CRM. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **pipeline_stage_id** (`string`, optional) The unique identifier for the pipeline stage to be replaced. This is required to specify which stage's properties will be updated. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.DeletePipelineStage + +
+ + +Deletes a pipeline stage from HubSpot CRM. + +**Parameters** + +- **object_type** (`string`, required) Specify the type of CRM object (e.g., deals, tickets) for which the pipeline stage is being deleted. +- **pipeline_id** (`string`, required) The unique ID of the pipeline containing the stage to be deleted. +- **stage_identifier** (`string`, required) The unique identifier of the pipeline stage to be deleted. + +## HubspotCrmApi.UpdatePipelineStage + +
+ + +Update a stage in a CRM pipeline. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **pipeline_object_type** (`string`, optional) The type of CRM object in the pipeline, such as 'deals' or 'tickets'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **pipeline_id** (`string`, optional) A unique identifier for the pipeline to be updated. This is necessary to specify which pipeline contains the stage you want to modify. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **stage_id** (`string`, optional) The unique identifier of the stage to be updated within the pipeline. This is required to specify which stage's details need modification. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetMultiplePostalMailObjects + +
+ + +Retrieve multiple postal mail objects by IDs or unique values. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **include_archived** (`boolean`, optional) Set to true to include archived postal mail objects in the results. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchivePostalMailBatch + +
+ + +Archive a batch of postal mail objects using their IDs. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetPostalMailRecords + +
+ + +Retrieve postal mail records from the CRM. + +**Parameters** + +- **associated_objects** (`array[string]`, optional) A list of object types to retrieve associations for, such as contacts or companies. +- **include_archived_records** (`boolean`, optional) Include archived postal mail records if true; exclude them if false. +- **include_properties_history** (`array[string]`, optional) Specify property names to include their history in the records. Use an array of strings. +- **max_records** (`integer`, optional) The maximum number of postal mail records to return. Must be an integer. +- **pagination_cursor_after** (`string`, optional) A cursor for pagination. Use it to retrieve the next set of postal mail records after a specific point. +- **retrieve_specific_properties** (`array[string]`, optional) List of specific properties to include in the response. Provide property names as strings. + +## HubspotCrmApi.CreatePostalMailObject + +
+ + +Create a postal mail object in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreatePostalMailBatch + +
+ + +Create a batch of postal mail objects in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertPostalMailInHubspot + +
+ + +Create or update postal mail records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetPostalMailById + +
+ + +Retrieve details of a postal mail record by ID from HubSpot CRM. + +**Parameters** + +- **postal_mail_id** (`string`, required) The unique identifier for the postal mail record to retrieve details from HubSpot CRM. +- **identify_by_id_property** (`string`, optional) Specifies which property will be used as the primary identifier. Accepts a string that represents the property within the postal mail object that should be used to identify and retrieve details. +- **include_archived** (`boolean`, optional) Set to true to include archived postal mail records in the response. +- **properties_with_history** (`array[string]`, optional) A list of property names for which history should be returned. Accepts an array of strings. +- **related_objects_associations** (`array[string]`, optional) List of string identifiers representing related objects to retrieve alongside the postal mail record. +- **specified_properties** (`array[string]`, optional) A list of specific postal mail properties to retrieve. Leave empty to get all properties. + +## HubspotCrmApi.ArchivePostalMail + +
+ + +Archive a postal mail object in HubSpot CRM. + +**Parameters** + +- **postal_mail_id** (`string`, required) The unique identifier of the postal mail object to be archived. + +## HubspotCrmApi.UpdatePostalMailRecord + +
+ + +Update a postal mail record in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **postal_mail_id** (`string`, optional) A unique identifier for the postal mail record to be updated in HubSpot CRM. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **property_identifier** (`string`, optional) Specify the property key of the postal mail record to identify which field to update. This is typically the name of the field in the CRM record. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateMultiplePostalMails + +
+ + +Update multiple postal mail records at once in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchPostalMailHubspot + +
+ + +Search for postal mail objects in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveProductsBatch + +
+ + +Archive a batch of products by ID in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetProductsPage + +
+ + +Fetch a page of products from HubSpot CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) Provide a comma-separated list of object types to retrieve associated IDs for. Ignored if not existing. +- **include_properties_with_history** (`array[string]`, optional) Comma separated list of product properties to include along with their history. Reduces maximum results per request if used. +- **maximum_results_per_page** (`integer`, optional) The maximum number of results to display per page. +- **paging_cursor_token** (`string`, optional) The cursor token for the last read resource, used for paged responses. +- **product_properties_to_return** (`array[string]`, optional) Comma-separated properties to include in the response. Any non-existent properties for the requested objects will be ignored. +- **return_archived_only** (`boolean`, optional) Set to true to return only results that have been archived. + +## HubspotCrmApi.CreateProductInHubspot + +
+ + +Create a new product in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchHubspotProducts + +
+ + +Search for products in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveHubspotProductRecords + +
+ + +Retrieve HubSpot product records by ID or unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **only_archived** (`boolean`, optional) Set to true to retrieve only archived product records. False returns unarchived records. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchOfProducts + +
+ + +Create a batch of products in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertHubspotProductsBatch + +
+ + +Batch create or update HubSpot product records. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetProductDetailsById + +
+ + +Retrieve product details using a product ID. + +**Parameters** + +- **product_id** (`string`, required) A unique identifier for the product. Can be the internal ID or any unique property as specified by `idProperty`. +- **properties_to_return** (`array[string]`, optional) A list of product properties to include in the response. Any missing properties will be ignored. +- **properties_with_history** (`array[string]`, optional) List properties to return with their history of past values, separated by commas. Ignored if not present in object. +- **retrieve_associated_object_ids** (`array[string]`, optional) A list of object types to retrieve associated IDs for. Any non-existent associations will be ignored. +- **return_archived_only** (`boolean`, optional) Set to true to return only archived results. If false, only non-archived results are returned. +- **unique_property_name** (`string`, optional) Specify the property name with unique values for the product object, instead of default productId. + +## HubspotCrmApi.RemoveProduct + +
+ + +Archive a product by moving it to the recycling bin. + +**Parameters** + +- **product_id** (`string`, required) The unique identifier of the product to be archived in HubSpot CRM. + +## HubspotCrmApi.UpdateProductInfo + +
+ + +Partially update product information in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **product_id** (`string`, optional) The internal object ID of the product to be updated. This identifies the specific product in HubSpot CRM for the update operation. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The unique property name used to identify the product. It should be a string representing a property with unique values. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateHubspotProductsBatch + +
+ + +Update a batch of HubSpot products by ID or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveCrmProperties + +
+ + +Archive a list of properties in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **crm_object_type** (`string`, optional) Specify the type of CRM object (e.g., 'contacts', 'companies') for which the properties should be archived. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ReadPropertyGroup + +
+ + +Retrieve details of a property group by its name. + +**Parameters** + +- **object_type** (`string`, required) Specify the type of CRM object, such as 'contacts' or 'deals'. +- **property_group_name** (`string`, required) The name of the property group to be retrieved. + +## HubspotCrmApi.DeletePropertyGroup + +
+ + +Delete a property group and move it to recycling bin. + +**Parameters** + +- **crm_object_type** (`string`, required) Specify the type of CRM object, such as 'contacts', 'companies', etc. +- **property_group_name** (`string`, required) The name of the property group to delete. This identifies which group to move to the recycling bin in HubSpot CRM. + +## HubspotCrmApi.UpdatePropertyGroup + +
+ + +Update fields in a specified property group. + +**Parameters** + +- **object_type** (`string`, required) Specifies the type of object in HubSpot CRM (e.g., contacts, companies). +- **property_group_name** (`string`, required) The unique name of the property group to be updated in HubSpot CRM. +- **property_group_display_order** (`integer`, optional) Set the display order of the property group. Use positive integers for ordering, or -1 to display after positive values. +- **property_group_label** (`string`, optional) A human-readable label for the property group in HubSpot. + +## HubspotCrmApi.ReadProperty + +
+ + +Retrieve CRM property details by name and type. + +**Parameters** + +- **crm_object_type** (`string`, required) Specify the CRM object type, such as 'contact' or 'company', to retrieve the property for. +- **property_name** (`string`, required) The unique name of the property to retrieve. This should match the property name in HubSpot CRM. +- **property_specifications** (`string`, optional) Specify the details or attributes of the property to retrieve. Use a comma-separated list for multiple specifications. +- **return_archived_only** (`boolean`, optional) Set to True to return only archived property results. + +## HubspotCrmApi.DeletePropertyHubspotCrm + +
+ + +Delete a property in HubSpot CRM and move it to the recycling bin. + +**Parameters** + +- **object_type** (`string`, required) Specify the type of object in HubSpot CRM (e.g., 'contacts', 'companies'). +- **property_name** (`string`, required) The name of the property to delete, identified by its unique name within the object type. + +## HubspotCrmApi.UpdatePropertyValue + +
+ + +Update specific fields of a CRM property partially. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **crm_object_type** (`string`, optional) Specify the type of CRM object (e.g., 'contacts', 'deals') to update. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **property_identifier** (`string`, optional) The unique name of the CRM property to be updated. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ReadBatchProperties + +
+ + +Fetches a batch of properties for a specified CRM object type. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **crm_object_type** (`string`, optional) The type of CRM object for which properties are being read (e.g., contacts, deals). Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchProperties + +
+ + +Create a batch of properties for a specified object type in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **object_type** (`string`, optional) Specifies the type of CRM object for which to create properties (e.g., contacts, deals, companies). Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveHubspotProperties + +
+ + +Retrieve all properties for a HubSpot object type. + +**Parameters** + +- **object_type** (`string`, required) Specifies the HubSpot object type (e.g., contact, deal) to retrieve properties for. +- **return_archived_only** (`boolean`, optional) Set to true to return only results that have been archived. Otherwise, return all properties. +- **selected_properties** (`string`, optional) A comma-separated list of specific properties to retrieve for the object type. Leave empty to retrieve all properties. + +## HubspotCrmApi.CreateHubspotCrmProperty + +
+ + +Create a new property for a specified object type in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **object_type** (`string`, optional) Specify the object type to which the new property will be added, such as contact, company, or deal. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveHubspotPropertyGroups + +
+ + +Retrieve HubSpot CRM property groups for a specified object type. + +**Parameters** + +- **hubspot_object_type** (`string`, required) Specify the HubSpot object type to retrieve property groups, such as 'contacts', 'companies', or 'deals'. + +## HubspotCrmApi.CreatePropertyGroup + +
+ + +Create a new property group in HubSpot CRM. + +**Parameters** + +- **internal_property_group_name** (`string`, required) The unique name used internally to reference the property group via the API. +- **object_type** (`string`, required) Specifies the CRM object type for the property group (e.g., contacts, companies). +- **property_group_label** (`string`, required) A human-readable label for the property group, displayed in HubSpot. +- **property_group_display_order** (`integer`, optional) Defines the display order of the property group, with lowest positive integers displayed first. Use -1 to display after positive values. + +## HubspotCrmApi.GetPropertyValidationRules + +
+ + +Retrieve validation rules for properties of a given object in HubSpot CRM. + +**Parameters** + +- **object_type_id** (`string`, required) The unique identifier for the object type in HubSpot CRM whose property validation rules you want to retrieve. This is a string value. + +## HubspotCrmApi.FetchPropertyValidation + +
+ + +Retrieve validation rules for a specific property in HubSpot CRM. + +**Parameters** + +- **object_type_id** (`string`, required) The unique identifier for the object type in HubSpot CRM, such as "contacts" or "deals". +- **property_name** (`string`, required) The name of the property whose validation rules you want to retrieve in HubSpot CRM. It must match exactly to identify the property correctly. + +## HubspotCrmApi.ArchiveQuotesBatch + +
+ + +Archive a batch of quotes in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetQuotesPage + +
+ + +Retrieve a page of quotes with specified properties. + +**Parameters** + +- **paging_cursor_token** (`string`, optional) The token to identify the last read resource for pagination. Use it to get the next page of results. +- **properties_with_history** (`array[string]`, optional) List of properties to return with their history. Reduces max quotes per request. +- **quote_properties_to_return** (`array[string]`, optional) List the properties to retrieve for each quote. Only present properties will be returned. +- **results_limit** (`integer`, optional) The maximum number of quote results to display per page. Accepts an integer value. +- **retrieve_associated_ids_for_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for. Non-existing associations will be ignored. +- **return_archived_only** (`boolean`, optional) Set to true to return only archived results. False to include active results. + +## HubspotCrmApi.CreateHubspotQuote + +
+ + +Create a new quote in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetQuoteById + +
+ + +Retrieve details of a quote by its ID. + +**Parameters** + +- **quote_id** (`string`, required) The ID or unique property value of the quote to be retrieved. This identifies the specific quote in HubSpot CRM. +- **included_properties** (`array[string]`, optional) List of properties to be returned in the response. If a property is not present, it will be ignored. Input should be an array of strings. +- **only_return_archived** (`boolean`, optional) Set to true to only return results that have been archived for the quote. +- **properties_with_history** (`array[string]`, optional) Comma-separated list of properties to return with their value history. Ignored if not present. +- **retrieve_associated_object_types** (`array[string]`, optional) List of object types to retrieve associated IDs for; ignored if non-existent. +- **unique_property_name** (`string`, optional) The property name with unique values for the quote object, used in the retrieval process. + +## HubspotCrmApi.ArchiveQuote + +
+ + +Archive a quote by moving it to the recycling bin. + +**Parameters** + +- **quote_identifier** (`string`, required) The unique identifier for the quote to be archived in HubSpot CRM. + +## HubspotCrmApi.UpdateQuoteInformation + +
+ + +Update a quote's details in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **quote_identifier** (`string`, optional) The identifier of the quote to be updated. This can be the internal ID or a unique property value specified by `idProperty`. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a property with unique values for identifying the quote object. Used instead of `quoteId`. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateQuoteBatch + +
+ + +Update a batch of quotes using internal ID or property values. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateOrUpdateQuotes + +
+ + +Create or update quote records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchOfQuotes + +
+ + +Creates a batch of quotes in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchQuotesInHubspot + +
+ + +Search for quotes in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveQuotesBatch + +
+ + +Retrieve multiple quotes by ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **archived_results_only** (`boolean`, optional) Specify `true` to return only archived results; `false` to include non-archived results. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetHubspotCrmObjectSchemas + +
+ + +Retrieve HubSpot CRM object schemas. + +**Parameters** + +- **return_archived_only** (`boolean`, optional) Set to True to return only results that have been archived. + +## HubspotCrmApi.CreateCrmObjectSchema + +
+ + +Create a new CRM object schema in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetCrmObjectSchema + +
+ + +Retrieve a CRM object schema by its type. + +**Parameters** + +- **object_type** (`string`, required) The fully qualified name or object type ID of the CRM schema to retrieve. + +## HubspotCrmApi.DeleteCrmObjectSchema + +
+ + +Delete a CRM object schema in HubSpot. + +**Parameters** + +- **object_type_identifier** (`string`, required) The fully qualified name or object type ID of the schema to delete. +- **return_only_archived_results** (`boolean`, optional) Set to True to return only archived results. + +## HubspotCrmApi.UpdateCrmObjectSchema + +
+ + +Update a CRM object's schema in HubSpot. + +**Parameters** + +- **object_type_identifier** (`string`, required) Fully qualified name or object type ID of your CRM schema for updates. +- **clear_description** (`boolean`, optional) Set to true to clear the description field for the object type schema. +- **object_description** (`string`, optional) A description for the CRM object schema, providing details about its purpose or usage in HubSpot. +- **object_singular_name** (`string`, optional) The word representing a single object. This cannot be changed later. +- **plural_labels** (`string`, optional) Specify the word representing multiple instances of the object type. This value is permanent and cannot be changed after setting. +- **primary_display_property** (`string`, optional) The primary property's name for this object, displayed prominently on the HubSpot record page. +- **required_properties** (`array[string]`, optional) List of property names that must be provided when creating an object of this type in HubSpot. +- **restorable** (`boolean`, optional) Indicates if the object can be restored after deletion. Accepts a boolean value. +- **searchable_properties** (`array[string]`, optional) List of property names to be indexed for HubSpot's product search, enhancing searchability of the CRM object type. +- **secondary_display_properties** (`array[string]`, optional) Names of secondary properties displayed on the HubSpot record page for this object type. + +## HubspotCrmApi.CreateCrmObjectAssociation + +
+ + +Create an association between HubSpot CRM objects. + +**Parameters** + +- **crm_object_type_schema** (`string`, required) Fully qualified name or object type ID of your CRM object schema to create the association. +- **primary_object_type_id** (`string`, required) ID of the primary object type to link from in the CRM system. +- **target_object_type_id** (`string`, required) ID of the target object type to link to in the CRM association. +- **association_name** (`string`, optional) A unique name for the association between CRM objects. This helps identify the link. + +## HubspotCrmApi.DeleteCrmAssociation + +
+ + +Remove an association between CRM object schemas. + +**Parameters** + +- **association_id** (`string`, required) Unique ID of the association to be removed. +- **schema_object_type** (`string`, required) The fully qualified name or object type ID of your schema to identify which CRM object to target. + +## HubspotCrmApi.FetchHubspotObjectRecords + +
+ + +Retrieve HubSpot CRM records by ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_only** (`boolean`, optional) Indicate if only archived records should be returned when retrieving HubSpot CRM data. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateServicesBatch + +
+ + +Update multiple service records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.HubspotCrmUpsertRecords + +
+ + +Create or update unique records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.HubspotSearchCustomObjects + +
+ + +Search for custom objects in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveServicesBatch + +
+ + +Archive multiple services using their IDs in bulk. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetHubspotObjectById + +
+ + +Retrieve a HubSpot CRM object using its service ID. + +**Parameters** + +- **hubspot_crm_service_id** (`string`, required) The unique identifier (service ID) of the HubSpot CRM object to retrieve. This can be the internal object ID or any unique property defined by the `idProperty`. +- **associated_object_types** (`array[string]`, optional) A list of object types whose associated IDs should be retrieved. Non-existent associations will be ignored. +- **properties_with_history** (`array[string]`, optional) A list of properties to return along with their history for a HubSpot CRM object. Properties should be specified as strings in the list. +- **return_archived_only** (`boolean`, optional) Set to true to return only archived results. False returns non-archived results. +- **return_properties_list** (`array[string]`, optional) A list of properties to be returned in the response. Non-existing properties will be ignored. +- **unique_property_name** (`string`, optional) Specify the name of a property with unique values for the object. + +## HubspotCrmApi.DeleteObjectHubspot + +
+ + +Move an object to the recycling bin in HubSpot CRM. + +**Parameters** + +- **object_service_id** (`string`, required) The unique identifier for the object to be moved to the recycling bin in HubSpot CRM. + +## HubspotCrmApi.EditHubspotObject + +
+ + +Partially update a HubSpot CRM object with specified properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **object_identifier** (`string`, optional) The unique identifier or `{serviceId}` for the object to be updated. This can be an internal object ID or a unique property value when used with `idProperty`. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a unique property for the object, used instead of the internal ID if specified. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ReadServicesPage + +
+ + +Retrieve a page of services with customizable properties. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for each service. Ignored if associations do not exist. +- **max_results_per_page** (`integer`, optional) Specify the maximum number of results to display per page. +- **paging_cursor_token** (`string`, optional) The cursor token from the last read to retrieve the next page of results. +- **properties_with_history** (`array[string]`, optional) A list of properties to return with their history of values. If absent, properties are ignored. Reduces max services per request. +- **requested_properties** (`array[string]`, optional) Comma-separated list of properties to include in the response. Non-existent properties will be ignored. +- **return_archived_only** (`boolean`, optional) Set to true to return only archived results; false to include non-archived results. + +## HubspotCrmApi.CreateServiceRecord + +
+ + +Create a service record in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchOfServices + +
+ + +Create a batch of services in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveHubspotTasks + +
+ + +Archive multiple HubSpot tasks by their IDs. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetTaskDetails + +
+ + +Retrieve HubSpot CRM task details using task ID. + +**Parameters** + +- **task_id** (`string`, required) The unique identifier for the HubSpot CRM task. Retrieve specific task details using this ID. +- **associated_object_types** (`array[string]`, optional) List of object types to retrieve associated IDs for. Returns IDs of related objects. +- **properties_with_history** (`array[string]`, optional) List of properties to return with their previous values. Comma-separated and ignored if not present. +- **requested_properties** (`array[string]`, optional) List of properties to return for the task. Only available properties will be returned. +- **return_only_archived** (`boolean`, optional) Set to true to return only archived results. +- **unique_property_name** (`string`, optional) Specify the name of the property with unique values to identify the task. + +## HubspotCrmApi.DeleteTaskInHubspot + +
+ + +Delete a task in HubSpot by task ID. + +**Parameters** + +- **task_id** (`string`, required) The unique identifier of the task to be deleted from HubSpot CRM. Required to move the task to the recycling bin. + +## HubspotCrmApi.UpdateHubspotTask + +
+ + +Update properties of a HubSpot task using its ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **task_identifier** (`string`, optional) The internal ID or unique property name of the task to update. Defaults to internal ID. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) Specify the name of the property with unique values. Used for identifying the object instead of `taskId`. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchTasks + +
+ + +Create a batch of tasks in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateBatchTasks + +
+ + +Update a batch of tasks in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveHubspotTasks + +
+ + +Retrieve HubSpot task records by ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_only** (`boolean`, optional) Set to true to return only archived records from HubSpot. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertHubspotTasks + +
+ + +Create or update tasks in HubSpot using a unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchHubspotTasks + +
+ + +Search for tasks in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetTasksList + +
+ + +Retrieve a page of tasks from HubSpot CRM. + +**Parameters** + +- **max_results_per_page** (`integer`, optional) Specify the maximum number of task results to retrieve per page. +- **paging_cursor_token** (`string`, optional) The token indicating the last resource read, used for pagination to continue from the next page. +- **properties_with_history** (`array[string]`, optional) Specify properties to return along with their full change history. Note: This reduces the number of tasks per request. +- **retrieve_associated_object_ids** (`array[string]`, optional) A list of object types to retrieve associated IDs for. If specified associations do not exist, they will be ignored. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived tasks; false for active tasks. +- **task_properties_to_return** (`array[string]`, optional) A list of property names to include in the response. Ignored if not present on the tasks. + +## HubspotCrmApi.CreateTaskInCrm + +
+ + +Create a task in HubSpot CRM and return task details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetTaxesPage + +
+ + +Retrieve a page of tax details from HubSpot CRM. + +**Parameters** + +- **archived_only** (`boolean`, optional) Set to true to return only archived tax results. +- **included_properties** (`array[string]`, optional) List the properties to be returned for each tax. Specify as an array of strings. +- **max_results_per_page** (`integer`, optional) Specify the maximum number of tax results to display per page. +- **paging_cursor_token** (`string`, optional) The token for the paging cursor from the last read resource for fetching the next page of results. +- **properties_with_history** (`array[string]`, optional) Specify properties to return with their history. Reduces max number of taxes per request. +- **retrieve_associated_object_ids** (`array[string]`, optional) Comma-separated list of object types to retrieve associated IDs for. Non-existent associations will be ignored. + +## HubspotCrmApi.CreateHubspotTax + +
+ + +Create a tax in HubSpot CRM and retrieve its details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetTaxDetailsById + +
+ + +Retrieve tax details using a specific tax ID. + +**Parameters** + +- **tax_id** (`string`, required) The unique ID or property value for the tax object. Default is the internal object ID. +- **associated_object_types** (`array[string]`, optional) A list of object types to retrieve associated IDs for. Non-existent associations will be ignored. +- **properties_with_history** (`array[string]`, optional) List properties to return with their historical values. Use a comma-separated format. +- **return_archived_only** (`boolean`, optional) Set to true to return only archived results. False returns non-archived records. +- **return_properties** (`array[string]`, optional) Comma-separated list of properties to be included in the response. Non-existing properties will be ignored. +- **unique_property_name** (`string`, optional) The name of a property whose values are unique for the tax object. Use this to specify an alternative ID property instead of the default internal ID. + +## HubspotCrmApi.DeleteTaxEntry + +
+ + +Archive a tax entry in HubSpot CRM. + +**Parameters** + +- **tax_entry_id** (`string`, required) The unique identifier for the tax entry you want to archive in HubSpot CRM. + +## HubspotCrmApi.UpdateTaxObject + +
+ + +Update properties of a tax object in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **tax_object_identifier** (`string`, optional) The identifier for the tax object. Use the internal `taxId` by default or provide a unique property value specified by the `idProperty`. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a property uniquely identifying this tax object. Used instead of `taxId` if specified. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateOrUpdateTaxRecords + +
+ + +Create or update tax records based on unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateBatchTaxes + +
+ + +Update taxes in batch using IDs or unique values. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveTaxRecords + +
+ + +Retrieve tax records by ID or custom property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_only** (`boolean`, optional) Set to true to retrieve only archived records, false to exclude them. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateTaxBatch + +
+ + +Create a batch of taxes in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchTaxes + +
+ + +Search for tax entries within HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveTaxBatch + +
+ + +Archive a batch of taxes by their IDs. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.MergeSupportTickets + +
+ + +Merge two support tickets into one unified record. + +**Parameters** + +- **primary_ticket_id** (`string`, required) The ID of the ticket designated as the primary record in the merge operation. After merging, this ticket will contain all combined information. +- **secondary_ticket_id** (`string`, required) The ID of the support ticket to be merged into the primary ticket. It specifies which ticket will be combined with the primary ticket record. + +## HubspotCrmApi.DeleteHubspotTicketsBatch + +
+ + +Delete a batch of tickets in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetTicketDetails + +
+ + +Retrieve details of a ticket by ID from HubSpot CRM. + +**Parameters** + +- **ticket_id** (`string`, required) The ID of the ticket to retrieve from HubSpot CRM. This can be the internal object ID or a unique property value based on the `idProperty`. +- **associated_object_types** (`array[string]`, optional) List of object types for retrieving associated IDs. Non-existent associations will be ignored. +- **only_return_archived** (`boolean`, optional) Set to true to return only archived results. +- **properties_to_return** (`array[string]`, optional) A list of properties to include in the response. Properties not present will be ignored. +- **properties_with_history** (`array[string]`, optional) List of properties with their history to be returned. If properties are missing, they'll be ignored. +- **unique_identifier_property** (`string`, optional) Specifies the property name with unique values for identifying the ticket. + +## HubspotCrmApi.DeleteTicket + +
+ + +Move a ticket to the recycling bin by ticket ID. + +**Parameters** + +- **ticket_id** (`string`, required) The unique ID of the ticket to move to the recycling bin. Must be a valid string representing the ticket identifier. + +## HubspotCrmApi.UpdateTicketInfo + +
+ + +Partially update ticket details in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **ticket_id** (`string`, optional) The internal ID of the ticket to be updated. This is used to identify the specific ticket in HubSpot CRM. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) The name of a property whose values are unique for the ticket object. Specify if not using the default ticket ID. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertCrmTickets + +
+ + +Create or update CRM tickets in bulk using unique identifiers. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveTicketBatch + +
+ + +Retrieve a batch of tickets by ID or property value. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_archived_tickets_only** (`boolean`, optional) Set to true to return only archived tickets. If false, include non-archived tickets as well. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.FetchTicketsPage + +
+ + +Retrieve a page of tickets from HubSpot CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) A list of object types (e.g. 'contacts', 'companies') to retrieve associated IDs for tickets. Ignore if they don't exist. +- **include_properties** (`array[string]`, optional) A list of properties to return for each ticket. Specify as strings; unlisted properties will be ignored. +- **paging_cursor_token** (`string`, optional) The token for the last read resource to continue paging results. +- **properties_with_history** (`array[string]`, optional) A list of property names to return with their historical values. Reduces the number of tickets retrievable per request. +- **results_per_page** (`integer`, optional) The maximum number of results to display per page. Must be a positive integer. +- **return_only_archived** (`boolean`, optional) Return only archived tickets if set to 'True'. + +## HubspotCrmApi.CreateTicket + +
+ + +Create a support ticket in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.SearchTickets + +
+ + +Search and filter CRM tickets based on properties and associations. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateBatchTickets + +
+ + +Create a batch of tickets in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateTicketBatch + +
+ + +Update multiple tickets in HubSpot CRM by ID or property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveEventDetails + +
+ + +Retrieve detailed information for a specific HubSpot event. + +**Parameters** + +- **event_id** (`string`, required) Specify the event ID to retrieve detailed information for a specific event in HubSpot CRM. +- **event_template_id** (`string`, required) The ID of the event template used to identify and retrieve specific event details in HubSpot CRM. + +## HubspotCrmApi.SendEventToHubspot + +
+ + +Send event data to a specified HubSpot event type. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveEventInstance + +
+ + +Retrieve an event instance using template and event ID. + +**Parameters** + +- **event_id** (`string`, required) The unique identifier for the specific event you want to retrieve. +- **event_template_id** (`string`, required) The unique ID of the event template required to retrieve the event instance. + +## HubspotCrmApi.BatchCreateTimelineEvents + +
+ + +Batch create multiple timeline event instances. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UploadCallTranscripts + +
+ + +Upload call transcripts to HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetTranscriptById + +
+ + +Retrieve call transcript details by transcript ID. + +**Parameters** + +- **transcript_id** (`string`, required) The unique identifier of the call transcript to retrieve from HubSpot CRM. + +## HubspotCrmApi.DeleteCallTranscript + +
+ + +Delete a call transcript by transcript ID. + +**Parameters** + +- **transcript_id** (`string`, required) The unique identifier for the call transcript you want to delete from the HubSpot CRM. + +## HubspotCrmApi.SearchCrmUsers + +
+ + +Perform a user search in the CRM database. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.CreateUsersBatch + +
+ + +Create a batch of users in the CRM system. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.ArchiveUsersBatch + +
+ + +Archives a batch of users by their IDs in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.RetrieveHubspotUserRecords + +
+ + +Retrieve HubSpot user records by ID or unique property. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **return_only_archived_results** (`boolean`, optional) Specify True to return only results that have been archived. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpsertHubspotUsers + +
+ + +Create or update user records in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetUserInfo + +
+ + +Retrieves user information from HubSpot CRM using user ID. + +**Parameters** + +- **user_identifier** (`string`, required) The unique identifier for the user. This can be the internal object ID or a property value specified by `idProperty`. +- **object_associations** (`array[string]`, optional) Comma separated list of object types to retrieve associated IDs for in the user info response. +- **properties_to_return** (`array[string]`, optional) A list of user properties to return in the response. If any specified properties are not present, they will be ignored. +- **properties_with_history** (`array[string]`, optional) List of property names to return with their value history for the user. +- **return_only_archived_results** (`boolean`, optional) Set to true to return only archived results. Set to false to exclude archived items from results. +- **unique_property_name** (`string`, optional) The name of a property with unique values to identify the object. + +## HubspotCrmApi.DeleteUser + +
+ + +Delete a user and move to recycling bin. + +**Parameters** + +- **user_id_to_delete** (`string`, required) The unique identifier of the user to delete and move to the recycling bin. + +## HubspotCrmApi.UpdateHubspotUser + +
+ + +Update user details in HubSpot CRM. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **user_id** (`string`, optional) The internal user ID or unique property value to identify the user for updating. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **unique_property_name** (`string`, optional) Specifies the name of a property with unique values for identifying the user object. Use this if not using userId. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.UpdateMultipleUsers + +
+ + +Update multiple users in HubSpot CRM by internal ID or unique properties. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotCrmApi.GetUsersPage + +
+ + +Fetch a page of users from the CRM. + +**Parameters** + +- **associated_object_types** (`array[string]`, optional) A list of object types for which associated IDs should be retrieved. If specified associations do not exist, they will be ignored. +- **max_results_per_page** (`integer`, optional) Specify the maximum number of results to display per page. +- **paging_cursor_token** (`string`, optional) The paging cursor token from the last read resource, used to fetch next set of results. +- **properties_with_history** (`array[string]`, optional) List of properties to return with their history. Reduces the maximum number of users per request. +- **return_only_archived** (`boolean`, optional) Set to true to return only results that have been archived. +- **user_properties** (`array[string]`, optional) A list of user property names to include in the response. Any non-existent properties will be ignored. + +## HubspotCrmApi.CreateCrmUser + +
+ + +Create a new user in the CRM and retrieve their ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## Reference + +Below is a reference of enumerations used by some of the tools in the HubspotCrmApi MCP Server: + +### ToolMode + +- **GET_REQUEST_SCHEMA**: `get_request_schema` +- **EXECUTE**: `execute` + +## Auth + +The HubspotCrmApi MCP Server uses the Auth Provider with id `arcade-hubspot` to connect to users' HubspotCrmApi accounts. In order to use the MCP Server, you will need to configure the `arcade-hubspot` auth provider. + + diff --git a/app/en/mcp-servers/sales/hubspot-events-api/page.mdx b/app/en/mcp-servers/sales/hubspot-events-api/page.mdx new file mode 100644 index 000000000..a2b5bef1b --- /dev/null +++ b/app/en/mcp-servers/sales/hubspot-events-api/page.mdx @@ -0,0 +1,432 @@ +# HubspotEventsApi + +import StarterToolInfo from "@/app/_components/starter-tool-info"; +import ToolInfo from "@/app/_components/tool-info"; +import Badges from "@/app/_components/badges"; +import TabbedCodeBlock from "@/app/_components/tabbed-code-block"; +import TableOfContents from "@/app/_components/table-of-contents"; +import ToolFooter from "@/app/_components/tool-footer"; +import { Callout } from "nextra/components"; + + + + + + + +The Hubspot Events API MCP Server offers a comprehensive suite of tools for managing and analyzing event data within HubSpot. Users can efficiently perform actions such as: + +- Retrieve event completion data for specific contacts to track engagement. +- List and manage custom event definitions and their properties. +- Create, update, and delete custom events and their associated properties. +- Send single or batch event completion data to HubSpot for streamlined reporting. + +This server is designed to enhance event tracking and management capabilities within the HubSpot ecosystem. + +## Available Tools + + + + + If you need to perform an action that's not listed here, you can [get in touch + with us](mailto:contact@arcade.dev) to request a new tool, or [create your own + tools](/home/build-tools/create-a-mcp-server). + + +## HubspotEventsApi.RetrieveEventCompletions + +
+ + +Retrieve instances of event completion data. + +**Parameters** + +- **crm_object_id** (`integer`, optional) The ID of the CRM Object to filter event instances on. Must be used with `object_type`. +- **crm_object_type** (`string`, optional) Specify the CRM object type to filter event instances (e.g., `contact`). +- **event_instance_ids** (`array[string]`, optional) List of event instance IDs. Each ID must uniquely match the event instance, and any additional filters must align with the event instance's attributes. +- **event_property_filter** (`json`, optional) Specify a key-value pair to filter event completions by a property (e.g., `hs_city=portland`). Use `%20` or `+` for spaces. +- **event_type_name** (`string`, optional) The specific name of the event type to retrieve data for. Available event types can be found using the event types endpoint. +- **filter_events_occurred_before** (`string`, optional) Filter for events that occurred before a specific datetime. Accepts an ISO 8601 formatted date-time string. +- **filter_occurred_after_datetime** (`string`, optional) Filter for event data occurring after a specific datetime, in ISO 8601 format (e.g., '2023-01-01T00:00:00Z'). +- **max_results_per_page** (`integer`, optional) The maximum number of results to display per page. +- **paging_before_token** (`string`, optional) The cursor token to fetch results occurring before this point when paginating results. +- **paging_cursor_token** (`string`, optional) The token for the next page of results, returned as `paging.next.after` in the previous response. +- **sort_direction** (`array[string]`, optional) Specify the sort direction for event instances based on the timestamp. Use `ASCENDING` or `DESCENDING`. +- **unique_identifier_property** (`json`, optional) Specify a unique identifier for a CRM object. For contacts, use the email property (e.g., `email=name@domain.com`). + +## HubspotEventsApi.ListEventTypes + +
+ + +Retrieve a list of visible event type names. + +**Parameters** + +This tool does not take any parameters. + +## HubspotEventsApi.RetrieveCustomEventDefinitions + +
+ + +Retrieve existing custom event definitions from Hubspot. + +**Parameters** + +- **event_name_search_string** (`string`, optional) String of characters to search for in event names. This is a simple 'contains' search without fuzzy matching. +- **include_event_properties** (`boolean`, optional) Include event properties in the response. Set to true to include all properties. +- **paging_cursor_token** (`string`, optional) The token indicating the position after the last successfully read resource for continued paged results. +- **results_per_page_limit** (`integer`, optional) The maximum number of event definitions to retrieve per page. +- **sort_order** (`string`, optional) Specify the order to sort results. Use 'ASC' for ascending or 'DESC' for descending. + +## HubspotEventsApi.CreateCustomEventDefinition + +
+ + +Create a custom event definition in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotEventsApi.FetchEventDefinitionByName + +
+ + +Fetch details of a custom event definition by name. + +**Parameters** + +- **event_name** (`string`, required) The internal name of the custom event to fetch its definition. + +## HubspotEventsApi.DeleteCustomEventDefinition + +
+ + +Delete a custom event definition by name. + +**Parameters** + +- **event_name** (`string`, required) The name of the custom event definition to delete. + +## HubspotEventsApi.UpdateCustomEventDefinition + +
+ + +Update a specific custom event definition by name. + +**Parameters** + +- **internal_event_name** (`string`, required) The internal name of the custom event to be updated in Hubspot. +- **event_description** (`string`, optional) Provide a description for the custom event to be displayed as help text in HubSpot. +- **event_label** (`string`, optional) The human-readable label for the event, used in the HubSpot UI. + +## HubspotEventsApi.CreateEventProperty + +
+ + +Create a new property for an existing event definition. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **custom_event_internal_name** (`string`, optional) The internal name of the custom event for which the property is being created. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotEventsApi.DeleteCustomEventProperty + +
+ + +Delete a property from a custom event definition. + +**Parameters** + +- **custom_event_internal_name** (`string`, required) The internal name of the custom event from which the property will be deleted. +- **property_internal_name** (`string`, required) The internal name of the property to delete from the custom event. + +## HubspotEventsApi.UpdateEventProperty + +
+ + +Update a property in a custom event definition. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **custom_event_name** (`string`, optional) The internal name of the custom event to be updated. Required to identify which event's property is being modified. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **property_name_to_update** (`string`, optional) The internal name of the property to update within the event definition. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotEventsApi.SendBatchEvents + +
+ + +Send multiple event completions in one request. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotEventsApi.SendEventData + +
+ + +Send data for a single event completion. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## Reference + +Below is a reference of enumerations used by some of the tools in the HubspotEventsApi MCP Server: + +### ToolMode + +- **GET_REQUEST_SCHEMA**: `get_request_schema` +- **EXECUTE**: `execute` + +## Auth + +The HubspotEventsApi MCP Server uses the Auth Provider with id `arcade-hubspot` to connect to users' HubspotEventsApi accounts. In order to use the MCP Server, you will need to configure the `arcade-hubspot` auth provider. + + diff --git a/app/en/mcp-servers/sales/hubspot-marketing-api/page.mdx b/app/en/mcp-servers/sales/hubspot-marketing-api/page.mdx new file mode 100644 index 000000000..590ef429a --- /dev/null +++ b/app/en/mcp-servers/sales/hubspot-marketing-api/page.mdx @@ -0,0 +1,2811 @@ +# HubspotMarketingApi + +import StarterToolInfo from "@/app/_components/starter-tool-info"; +import ToolInfo from "@/app/_components/tool-info"; +import Badges from "@/app/_components/badges"; +import TabbedCodeBlock from "@/app/_components/tabbed-code-block"; +import TableOfContents from "@/app/_components/table-of-contents"; +import ToolFooter from "@/app/_components/tool-footer"; +import { Callout } from "nextra/components"; + + + + + + + +The HubspotMarketingApi MCP Server offers a comprehensive suite of tools for managing marketing campaigns within HubSpot. Users can efficiently perform actions such as: + +- Create, update, and delete marketing campaigns and associated assets. +- Manage campaign budgets and spending items. +- Retrieve detailed metrics and reports on campaign performance and email statistics. +- Handle marketing events, including participation tracking and event details. +- Create and manage marketing forms and emails, including A/B testing and transactional emails. + +This server streamlines the process of executing marketing strategies and analyzing their effectiveness within the HubSpot platform. + +## Available Tools + + + + + If you need to perform an action that's not listed here, you can [get in touch + with us](mailto:contact@arcade.dev) to request a new tool, or [create your own + tools](/home/build-tools/create-a-mcp-server). + + +## HubspotMarketingApi.GetCampaignSpendItem + +
+ + +Retrieve details of a specific campaign spend item. + +**Parameters** + +- **campaign_guid** (`string`, required) Unique identifier for the marketing campaign to retrieve the spend item from. +- **spend_item_identifier** (`integer`, required) Unique identifier for the spend item in the campaign. + +## HubspotMarketingApi.UpdateCampaignSpend + +
+ + +Update a specific campaign spend item by ID. + +**Parameters** + +- **campaign_guid** (`string`, required) Unique identifier for the campaign. +- **spend_amount** (`number`, required) The new amount value for the campaign spend. Specify this as a number representing the monetary value. +- **spend_identifier** (`integer`, required) Unique identifier for the spend item in the campaign to be updated. +- **spend_item_name** (`string`, required) The new name for the campaign spend item. This should be a descriptive string defining the spend item. +- **spend_order** (`integer`, required) The order or sequence number of the spend item within the campaign. It determines the priority or arrangement of the spend items. +- **spend_item_description** (`string`, optional) Details or notes about the campaign spend item. + +## HubspotMarketingApi.RemoveCampaignSpendItem + +
+ + +Deletes a specific campaign spend item by ID. + +**Parameters** + +- **campaign_identifier** (`string`, required) Unique identifier for the specific marketing campaign. +- **spend_item_id** (`integer`, required) Unique identifier for the specific spend item to be deleted from the campaign. + +## HubspotMarketingApi.UpdateCampaignBatch + +
+ + +Update a batch of marketing campaigns efficiently. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetCampaignBudget + +
+ + +Retrieve details of a specific marketing campaign budget item. + +**Parameters** + +- **budget_item_id** (`integer`, required) Unique identifier for the budget item to retrieve details. +- **campaign_guid** (`string`, required) The unique identifier for the marketing campaign to access its budget details. + +## HubspotMarketingApi.UpdateCampaignBudget + +
+ + +Update a specific campaign budget item by ID. + +**Parameters** + +- **budget_amount** (`number`, required) The amount to set for the budget item. This is a numerical value representing the budget in the specified currency. +- **budget_id** (`integer`, required) Unique identifier for the budget item to be updated. +- **budget_item_name** (`string`, required) The new name for the budget item. It should be a descriptive label that clearly identifies the budget item within the campaign. +- **campaign_guid** (`string`, required) A unique identifier for the campaign. Use this to specify which campaign's budget item to update. +- **priority_order** (`integer`, required) Specify the order in which the budget item appears. Accepted values are integers. +- **budget_item_description** (`string`, optional) A string to describe the budget item. Provide a brief explanation of what this budget is for. + +## HubspotMarketingApi.DeleteCampaignBudgetItem + +
+ + +Delete a specific campaign budget item by ID. + +**Parameters** + +- **budget_item_id** (`integer`, required) Unique identifier for the budget item to be deleted. +- **campaign_guid** (`string`, required) Unique identifier for the campaign to delete the budget item from. + +## HubspotMarketingApi.AssociateAssetWithCampaign + +
+ + +Associate a specified asset with a HubSpot campaign. + +**Parameters** + +- **asset_id** (`string`, required) The unique identifier for the asset to be associated with a campaign. This should be provided as a string. +- **asset_type** (`string`, required) Specify the asset type to associate with the campaign. Allowed values are FORM, OBJECT_LIST, and EXTERNAL_WEB_URL. +- **campaign_unique_identifier** (`string`, required) Unique identifier for the campaign, formatted as a UUID. Essential for associating an asset with the correct campaign. + +## HubspotMarketingApi.DisassociateCampaignAsset + +
+ + +Disassociate an asset from a HubSpot marketing campaign. + +**Parameters** + +- **asset_id** (`string`, required) Unique identifier for the asset to be disassociated from the campaign. +- **asset_type** (`string`, required) Specify the type of asset to disassociate, limited to FORM, OBJECT_LIST, or EXTERNAL_WEB_URL. +- **campaign_unique_identifier** (`string`, required) Unique identifier for the campaign, formatted as a UUID. + +## HubspotMarketingApi.GetCampaignBudgetDetails + +
+ + +Retrieve detailed budget and spend details for a campaign. + +**Parameters** + +- **campaign_unique_identifier** (`string`, required) Unique identifier for the campaign, formatted as a UUID. + +## HubspotMarketingApi.FetchMarketingCampaignBatches + +
+ + +Retrieve a batch of HubSpot marketing campaigns and assets. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **fetch_start_date** (`string`, optional) Start date to fetch asset metrics, formatted as YYYY-MM-DD. Determines the period for asset metrics. Optional. Only used when mode is 'execute'. +- **end_date_for_asset_metrics** (`string`, optional) End date to fetch asset metrics, formatted as YYYY-MM-DD. If not provided, no asset metrics will be fetched. Only used when mode is 'execute'. +- **requested_properties** (`array[string]`, optional) Comma-separated list of properties to return in the response. Ignored if values are empty, resulting in an empty properties map if not specified. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetMarketingCampaigns + +
+ + +Retrieve a page of marketing campaigns with optional filters. + +**Parameters** + +- **campaign_name_filter** (`string`, optional) A substring to filter campaigns by name. Returns campaigns containing this substring. Optional: returns all if not provided. +- **max_results_limit** (`integer`, optional) Maximum number of campaigns to return (1-100). Default is 50. +- **pagination_cursor** (`string`, optional) A cursor for pagination. If provided, results start after the given cursor. Example: NTI1Cg%3D%3D +- **requested_properties** (`array[string]`, optional) A list of properties to be included in the response. Comma-separate values are required. If any specified property is empty, it will be ignored. +- **sort_by** (`string`, optional) Specify the field to sort results by. Use '-' to denote descending order. Options are hs_name, createdAt, updatedAt. Default is hs_name. + +## HubspotMarketingApi.CreateMarketingCampaign + +
+ + +Create a marketing campaign and retrieve its details. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetCampaignAttributionMetrics + +
+ + +Retrieve attribution metrics for a specific campaign. + +**Parameters** + +- **campaign_unique_identifier** (`string`, required) Unique identifier for the campaign, formatted as a UUID. Required to retrieve specific campaign metrics. +- **report_end_date** (`string`, optional) Set the end date for the report data in YYYY-MM-DD format. Defaults to the current date if not specified. +- **start_date_for_report** (`string`, optional) The start date for the report data, formatted as YYYY-MM-DD. Default is 2006-01-01. + +## HubspotMarketingApi.ListCampaignAssets + +
+ + +Retrieve all assets of a specified type for a campaign. + +**Parameters** + +- **asset_type** (`string`, required) The type of asset to fetch for the campaign, e.g., 'email', 'webpage'. +- **campaign_identifier** (`string`, required) Unique identifier for the campaign in UUID format. +- **end_date_for_asset_metrics** (`string`, optional) End date to fetch asset metrics, formatted as YYYY-MM-DD. Used for fetching metrics of assets within a specified period. Optional parameter. +- **maximum_results_limit** (`string`, optional) The maximum number of asset results to return. Default is 10. +- **metrics_start_date** (`string`, optional) Start date to fetch asset metrics, formatted as YYYY-MM-DD. Used to fetch metrics for a specified period. If not provided, no metrics will be fetched. +- **pagination_cursor** (`string`, optional) A cursor for pagination. If provided, results start after this cursor. Example: NTI1Cg%3D%3D + +## HubspotMarketingApi.ArchiveCampaignsBatch + +
+ + +Delete a batch of marketing campaigns. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetCampaignRevenueReport + +
+ + +Fetch revenue attribution report for a specific campaign. + +**Parameters** + +- **campaign_unique_identifier** (`string`, required) Unique identifier for the campaign, formatted as a UUID. +- **attribution_model** (`string`, optional) The revenue attribution model to be used. Allowed values: LINEAR, FIRST_INTERACTION, LAST_INTERACTION, FULL_PATH, U_SHAPED, W_SHAPED, TIME_DECAY, J_SHAPED, INVERSE_J_SHAPED. Defaults to LINEAR. +- **report_end_date** (`string`, optional) End date for the report data in YYYY-MM-DD format. Defaults to the current date. +- **report_start_date** (`string`, optional) The start date for the report data in the format YYYY-MM-DD. Default is 2006-01-01. + +## HubspotMarketingApi.CreateMarketingCampaignBatch + +
+ + +Create a batch of marketing campaigns in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.AddCampaignBudgetItem + +
+ + +Add a new budget item to a marketing campaign. + +**Parameters** + +- **budget_amount** (`number`, required) The monetary amount for the budget item. It should be a numeric value denoting the budget amount to add to the campaign. +- **budget_item_name** (`string`, required) Name of the budget item to be added to the campaign. It should be descriptive and concise. +- **budget_item_order** (`integer`, required) The position or priority of the budget item in the list. Provide as an integer. +- **campaign_id** (`string`, required) Unique identifier for the campaign in HubSpot Marketing. +- **budget_item_description** (`string`, optional) A brief description of the budget item being added to the campaign. This can include details about what the budget will be used for and any other relevant information. + +## HubspotMarketingApi.GetCampaignDetails + +
+ + +Retrieve details and metrics for a specific marketing campaign. + +**Parameters** + +- **campaign_guid** (`string`, required) Unique identifier for the campaign, formatted as a UUID. +- **end_date_for_asset_metrics** (`string`, optional) End date to fetch asset metrics, formatted as YYYY-MM-DD. If omitted, no metrics will be retrieved. +- **metrics_start_date** (`string`, optional) Start date for fetching asset metrics. Format as YYYY-MM-DD. Metrics are only retrieved if both start and end dates are provided. +- **properties_list** (`array[string]`, optional) List specific properties to return in the response. Leave empty for an empty properties map. + +## HubspotMarketingApi.DeleteMarketingCampaign + +
+ + +Delete a specified marketing campaign. + +**Parameters** + +- **campaign_guid** (`string`, required) Unique identifier for the campaign, formatted as a UUID. + +## HubspotMarketingApi.UpdateCampaignProperties + +
+ + +Update properties of a HubSpot marketing campaign. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **campaign_uuid** (`string`, optional) Unique identifier for the campaign, formatted as a UUID. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.FetchCampaignContactIds + +
+ + +Fetch contact IDs for a specific campaign and contact type. + +**Parameters** + +- **campaign_identifier** (`string`, required) Unique identifier for the campaign formatted as a UUID. +- **contact_type_filter** (`string`, required) Specifies the type of metric for filtering contacts. Options: contactFirstTouch, contactLastTouch, influencedContacts. +- **contact_fetch_limit** (`integer`, optional) Specify the maximum number of contact IDs to retrieve, with a default of 100. +- **pagination_cursor** (`string`, optional) A string cursor for pagination to start results after the given point. Example: NTI1Cg%3D%3D +- **report_end_date** (`string`, optional) The end date for the report data in YYYY-MM-DD format. Defaults to the current date if not specified. +- **start_date** (`string`, optional) The start date for the report data in YYYY-MM-DD format. Default is 2006-01-01. + +## HubspotMarketingApi.CreateCampaignSpend + +
+ + +Create a new campaign spend item for a marketing campaign. + +**Parameters** + +- **campaign_id** (`string`, required) Unique identifier for the marketing campaign to add the spend item to. +- **spend_amount** (`number`, required) The monetary value of the spend item to be added to the campaign. This should be a numerical value representing the amount in the currency used by the campaign. +- **spend_item_name** (`string`, required) The name of the spend item to be created for the campaign. This should be a descriptive title or label for the expenditure. +- **spend_item_order** (`integer`, required) The order of the spend item in the campaign. Use an integer to specify the sequence. +- **spend_description** (`string`, optional) A brief description of the campaign spend item, detailing the nature or purpose of the expenditure. + +## HubspotMarketingApi.GetFormById + +
+ + +Retrieve a marketing form by its ID. + +**Parameters** + +- **form_id** (`string`, required) The unique identifier for the specific marketing form to retrieve. This ID is required to fetch the form details. +- **return_archived_only** (`boolean`, optional) Set to true to return only archived forms. + +## HubspotMarketingApi.UpdateHubspotForm + +
+ + +Update all fields of a HubSpot form. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **hubspot_form_id** (`string`, optional) The unique identifier for the HubSpot form to update. This ID specifies which form's fields will be replaced. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.ArchiveMarketingForm + +
+ + +Archive a marketing form in HubSpot. + +**Parameters** + +- **form_id** (`string`, required) The ID of the form to archive in HubSpot. This is required to process the archive request. + +## HubspotMarketingApi.UpdateHubspotMarketingForm + +
+ + +Update components of a HubSpot marketing form. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **form_id** (`string`, optional) The unique identifier for the form to update. Must be provided to specify which form's components to update. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.ListHubspotForms + +
+ + +Retrieve a list of HubSpot marketing forms. + +**Parameters** + +- **included_form_types** (`array[string]`, optional) List of form types to include in results, e.g., 'hubspot', 'workflow', etc. +- **paging_cursor_token** (`string`, optional) The token indicating the cursor position for paginated results. Use `paging.next.after` from the previous response to fetch more results. +- **results_per_page** (`integer`, optional) Specify the maximum number of forms to retrieve per page. +- **return_only_archived_forms** (`boolean`, optional) Set to true to return only archived forms in the results. + +## HubspotMarketingApi.CreateMarketingForm + +
+ + +Create a new marketing form in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetEmailStatistics + +
+ + +Get aggregated email statistics in a specified time span. + +**Parameters** + +This tool does not take any parameters. + +## HubspotMarketingApi.PublishHubspotEmail + +
+ + +Publish a HubSpot marketing email. + +**Parameters** + +- **hubspot_email_id** (`string`, required) The unique identifier for the HubSpot marketing email to publish. + +## HubspotMarketingApi.CreateAbTestEmailVariation + +
+ + +Create a new variation for an email A/B test. + +**Parameters** + +- **email_content_id** (`string`, required) ID of the email content to create a variation for A/B testing. +- **variation_name** (`string`, required) The name of the new email variation for the A/B test. Provide a descriptive name to easily identify this variation. + +## HubspotMarketingApi.FetchEmailStatistics + +
+ + +Fetch aggregated email statistics in specified intervals. + +**Parameters** + +This tool does not take any parameters. + +## HubspotMarketingApi.GetEmailAbTestVariation + +
+ + +Retrieve the variation of an A/B test marketing email. + +**Parameters** + +- **email_identifier** (`string`, required) The unique identifier of the marketing email to obtain its A/B test variation. + +## HubspotMarketingApi.ResetEmailDraftToLive + +
+ + +Reset an email draft to match the live version. + +**Parameters** + +- **email_id** (`string`, required) The unique identifier for the email draft to be reset. This is a string value used to specify which draft to revert. + +## HubspotMarketingApi.RestoreEmailRevisionToDraft + +
+ + +Restore a previous email revision to draft state. + +**Parameters** + +- **email_identifier** (`string`, required) The unique identifier of the marketing email whose revision is to be restored to draft. This should match the specific email ID format used by HubSpot. +- **revision_id** (`string`, required) The unique identifier of the email revision to be restored to draft state. + +## HubspotMarketingApi.RetrieveEmailDraft + +
+ + +Retrieve the draft version of a specified email. + +**Parameters** + +- **email_id** (`string`, required) The unique identifier of the email to retrieve the draft for. This ID is used to specify which email's draft or published version should be accessed. + +## HubspotMarketingApi.UpdateEmailDraft + +
+ + +Create or update the draft version of a marketing email. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **email_id** (`string`, optional) The unique identifier of the marketing email to update or create a draft for. This is required to specify which email draft you are modifying. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetEmailRevisions + +
+ + +Retrieve all versions of a marketing email. + +**Parameters** + +- **email_id** (`string`, required) The unique identifier of the marketing email to retrieve revisions for. + +## HubspotMarketingApi.UnpublishMarketingEmail + +
+ + +Unpublish a HubSpot marketing email. + +**Parameters** + +- **email_identifier** (`string`, required) The unique identifier of the email you wish to unpublish in HubSpot Marketing. + +## HubspotMarketingApi.GetMarketingEmailRevision + +
+ + +Retrieve a specific revision of a marketing email. + +**Parameters** + +- **email_id** (`string`, required) The unique identifier for the marketing email. This ID is required to specify which email's revision details to retrieve. +- **email_revision_id** (`string`, required) The unique ID of the specific email revision to retrieve. Provide the revisionId for accessing the exact version. + +## HubspotMarketingApi.CloneHubspotEmail + +
+ + +Clone an existing HubSpot marketing email. + +**Parameters** + +- **original_email_id** (`string`, required) The unique identifier of the email you wish to clone in HubSpot. +- **cloned_email_name** (`string`, optional) The new name for the cloned email. This should be a descriptive string to identify the copy. +- **email_language** (`string`, optional) Specify the language for the cloned email, e.g., 'en' for English, 'fr' for French. + +## HubspotMarketingApi.HubspotMarketingEmailFilter + +
+ + +Retrieve and filter HubSpot marketing emails. + +**Parameters** + +This tool does not take any parameters. + +## HubspotMarketingApi.CreateMarketingEmail + +
+ + +Create a new marketing email in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.RestoreEmailRevision + +
+ + +Restore a previous revision of a marketing email. + +**Parameters** + +- **email_id** (`string`, required) The unique identifier for the marketing email you want to restore. This ID is required to specify which email's revision needs restoration. +- **revision_id** (`string`, required) The unique identifier for the specific revision of the email to be restored. + +## HubspotMarketingApi.GetMarketingEmailDetails + +
+ + +Retrieve details for a specific marketing email. + +**Parameters** + +- **email_id** (`string`, required) The unique identifier for the specific marketing email. Required to retrieve email details. + +## HubspotMarketingApi.DeleteMarketingEmail + +
+ + +Delete an existing marketing email by ID. + +**Parameters** + +- **email_id** (`string`, required) The unique ID of the marketing email to be deleted. + +## HubspotMarketingApi.UpdateMarketingEmailProperties + +
+ + +Change properties of a marketing email. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **email_identifier** (`string`, optional) The unique identifier of the marketing email to be updated. Required to specify which email's properties are being changed. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetMarketingEventParticipationsBreakdown + +
+ + +Retrieve participations breakdown for a specific marketing event. + +**Parameters** + +- **marketing_event_id** (`integer`, required) The internal id of the marketing event in HubSpot. +- **contact_identifier** (`string`, optional) The identifier of the Contact. It can be an email or internal ID. +- **last_retrieved_position_cursor** (`string`, optional) The cursor indicating the position of the last retrieved item for pagination. +- **participation_state** (`string`, optional) The participation state filter, which can be REGISTERED, CANCELLED, ATTENDED, or NO_SHOW. +- **response_size_limit** (`integer`, optional) Set the maximum number of records to return. Default is 10, maximum is 100. + +## HubspotMarketingApi.RecordMarketingEventAttendance + +
+ + +Record participation of HubSpot contacts in a Marketing Event. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **external_event_id** (`string`, optional) The identifier for the marketing event in the external event application. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **new_subscriber_state** (`string`, optional) Specifies the new state of the contact in relation to the marketing event, such as 'register', 'attend', or 'cancel'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **external_account_id** (`string`, optional) The ID identifying the account associated with the marketing event in the external application. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.RecordHubspotSubscriberState + +
+ + +Record subscriber state for HubSpot contacts and events. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **external_account_id** (`string`, optional) The account ID associated with this marketing event in the external event application. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **event_id_in_external_app** (`string`, optional) The ID of the marketing event in the external application. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **subscriber_state** (`string`, optional) The new subscriber state for the HubSpot contacts and the specified marketing event, such as 'register', 'attend', or 'cancel'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetMarketingEventDetails + +
+ + +Retrieve details of a specific marketing event. + +**Parameters** + +- **external_account_id** (`string`, required) The accountId associated with this marketing event in the external event application. +- **marketing_event_id** (`string`, required) The unique identifier of the marketing event in the external application. + +## HubspotMarketingApi.UpsertMarketingEvent + +
+ + +Upsert a marketing event in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **external_event_id** (`string`, optional) The ID of the marketing event in the external application. Used to upsert the event in HubSpot. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.DeleteMarketingEvent + +
+ + +Deletes a specified HubSpot marketing event. + +**Parameters** + +- **external_account_id** (`string`, required) The account ID associated with the marketing event to be deleted in the external event application. +- **marketing_event_id** (`string`, required) The ID of the marketing event in the external event application to be deleted. + +## HubspotMarketingApi.UpdateMarketingEventDetails + +
+ + +Update details of an existing marketing event. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **external_account_id** (`string`, optional) The account ID associated with this marketing event in the external event application. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **external_event_id** (`string`, optional) The unique identifier of the marketing event in the external event application. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.UpsertMarketingEvents + +
+ + +Upsert multiple marketing events in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.RecordEventParticipationHubspot + +
+ + +Record participation of contacts in a HubSpot marketing event. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **external_event_id** (`string`, optional) The ID of the marketing event in the external event application. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **subscriber_state** (`string`, optional) The new subscriber state for HubSpot contacts in the specified event. Options: 'register', 'attend', 'cancel'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **external_account_id** (`string`, optional) The account ID linked to the marketing event in the external event application. Only used when mode is 'execute'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetMarketingEventParticipationBreakdown + +
+ + +Retrieve the participation breakdown for a marketing event. + +**Parameters** + +- **external_account_id** (`string`, required) The ID associated with the marketing event's account in the external application. +- **external_event_id** (`string`, required) The ID of the marketing event in the external event application. +- **contact_identifier** (`string`, optional) The unique identifier for the contact, such as an email or internal ID. +- **pagination_cursor** (`string`, optional) The cursor indicating the position of the last retrieved item, used for pagination. +- **participation_state_filter** (`string`, optional) The participation state to filter results. Possible values: REGISTERED, CANCELLED, ATTENDED, NO_SHOW. +- **response_size_limit** (`integer`, optional) Maximum number of participations to retrieve. Default is 10, maximum is 100. + +## HubspotMarketingApi.FetchEventDetails + +
+ + +Fetch details of a marketing event by its object ID. + +**Parameters** + +- **marketing_event_object_id** (`string`, required) The internal ID of the marketing event in HubSpot. Used to fetch specific event details. + +## HubspotMarketingApi.RemoveMarketingEvent + +
+ + +Deletes a specified marketing event by objectId. + +**Parameters** + +- **marketing_event_id** (`string`, required) The internal ID of the marketing event to be deleted in HubSpot. + +## HubspotMarketingApi.ModifyEventInformation + +
+ + +Update details of a specific marketing event. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **event_internal_id** (`string`, optional) The internal ID of the marketing event in HubSpot to be updated. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetMarketingEventAssociatedLists + +
+ + +Retrieve lists associated with a specific marketing event. + +**Parameters** + +- **external_account_id** (`string`, required) The account ID associated with the marketing event in the external application. +- **external_event_id** (`string`, required) The ID of the marketing event from the external event application. + +## HubspotMarketingApi.GetMarketingEventLists + +
+ + +Retrieve lists associated with a specific marketing event. + +**Parameters** + +- **marketing_event_id** (`string`, required) The internal ID of the marketing event in HubSpot to retrieve associated lists. + +## HubspotMarketingApi.RegisterEventParticipation + +
+ + +Logs event participation for contacts using email addresses. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **marketing_event_id** (`string`, optional) The internal ID of the marketing event in HubSpot. It is required to log participation for contacts. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **attendance_state** (`string`, optional) The attendance state for the contact in the event. Options: 'register', 'attend', or 'cancel'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetAllMarketingEvents + +
+ + +Retrieve all marketing events from the portal. + +**Parameters** + +- **cursor_position_after** (`string`, optional) The cursor indicating the position of the last retrieved item for pagination purposes. +- **response_limit** (`integer`, optional) Sets the maximum number of marketing events to retrieve, between 10 and 100. + +## HubspotMarketingApi.RecordEventAttendance + +
+ + +Record participation of HubSpot contacts in a marketing event. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **marketing_event_id** (`string`, optional) The internal ID of the marketing event in HubSpot for which attendance is being recorded. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **attendance_state** (`string`, optional) Specifies the attendance state of the contact: 'register', 'attend', or 'cancel'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.UpdateMarketingEventsBatch + +
+ + +Update multiple marketing events by objectId. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.DeleteMarketingEvents + +
+ + +Delete multiple marketing events by object ID. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetEventParticipationCounters + +
+ + +Retrieve participation counters for a specific marketing event. + +**Parameters** + +- **event_id** (`string`, required) The unique identifier for the marketing event in the external application. Required to retrieve participation data. +- **external_account_id** (`string`, required) The account ID associated with the marketing event in the external application. + +## HubspotMarketingApi.SearchMarketingEventsByExternalId + +
+ + +Search for marketing events by external ID. + +**Parameters** + +- **external_event_id** (`string`, required) The ID of the marketing event in the external event application used to search for matching events. + +## HubspotMarketingApi.GetMarketingEventParticipationCounters + +
+ + +Retrieve participation counters for a marketing event. + +**Parameters** + +- **marketing_event_id** (`integer`, required) The internal ID of the marketing event in HubSpot, required to fetch participation counters. + +## HubspotMarketingApi.RemoveMarketingEvents + +
+ + +Delete multiple HubSpot marketing events by specific IDs. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.CancelMarketingEvent + +
+ + +Cancel a HubSpot marketing event. + +**Parameters** + +- **external_account_id** (`string`, required) The account ID associated with the marketing event in the external event application. +- **external_event_id** (`string`, required) The ID of the marketing event in the external event application. Required to identify the event to be cancelled. + +## HubspotMarketingApi.AssociateListWithMarketingEvent + +
+ + +Associate a list with a marketing event by their IDs. + +**Parameters** + +- **list_id** (`string`, required) The ILS ID of the list to associate with the marketing event. +- **marketing_event_id** (`string`, required) The internal ID of the marketing event in HubSpot for association. + +## HubspotMarketingApi.DisassociateListFromMarketingEvent + +
+ + +Disassociate a list from a marketing event using event and list IDs. + +**Parameters** + +- **list_identifier** (`string`, required) The ILS ID of the list to be disassociated from the marketing event. +- **marketing_event_id** (`string`, required) The internal ID of the marketing event in HubSpot to disassociate the list from. + +## HubspotMarketingApi.RecordSubscriberState + +
+ + +Record a subscriber's state for a marketing event using email. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **external_account_id** (`string`, optional) The account ID linked to the marketing event in the external application, required for identifying events. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **marketing_event_id** (`string`, optional) The unique identifier for the marketing event in the external application. Required to record subscriber state. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **subscriber_state** (`string`, optional) The new subscriber state for a HubSpot contact in the specified marketing event. Options include 'register', 'attend', or 'cancel'. Required when mode is 'execute', ignored when mode is 'get_request_schema'. +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.LinkListToEvent + +
+ + +Associates a marketing list with an event in HubSpot. + +**Parameters** + +- **external_account_id** (`string`, required) The account ID associated with the marketing event in the external event application. +- **external_event_id** (`string`, required) The ID of the marketing event in the external event application. Used to specify which event to associate with the list. +- **ils_list_id** (`string`, required) The ILS ID of the list to associate with the marketing event. + +## HubspotMarketingApi.DisassociateMarketingEventList + +
+ + +Disassociate a list from a HubSpot marketing event using IDs. + +**Parameters** + +- **external_account_id** (`string`, required) The account ID linked to the marketing event in the external application. +- **list_id** (`string`, required) The ILS ID of the list to be disassociated from the marketing event. +- **marketing_event_id** (`string`, required) ID of the marketing event in the external application to be disassociated. + +## HubspotMarketingApi.MarkMarketingEventCompleted + +
+ + +Mark a marketing event as completed in HubSpot. + +**Parameters** + +- **event_end_datetime** (`string`, required) The date and time when the marketing event ended. Expected in ISO 8601 format. +- **event_start_date_time** (`string`, required) The start date and time of the marketing event, formatted as an ISO 8601 string. +- **external_account_id** (`string`, required) The account ID associated with the marketing event in the external application. +- **marketing_event_id** (`string`, required) The unique ID of the marketing event in the external event application. + +## HubspotMarketingApi.CreateMarketingEvent + +
+ + +Create a new marketing event in HubSpot. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.GetContactParticipationsBreakdown + +
+ + +Retrieve a contact's event participation details by ID or email. + +**Parameters** + +- **contact_identifier** (`string`, required) The identifier of the contact, which can be either an email or an internal ID. +- **pagination_cursor** (`string`, optional) Cursor for the last retrieved item to manage pagination. +- **participation_state** (`string`, optional) The participation state for the contact. Options: REGISTERED, CANCELLED, ATTENDED, NO_SHOW. +- **response_size_limit** (`integer`, optional) Specify the maximum number of participation records to return. The default is 10, and the maximum is 100. + +## HubspotMarketingApi.FindHubspotMarketingEvents + +
+ + +Fetch HubSpot marketing events by externalEventId. + +**Parameters** + +- **external_event_id** (`string`, required) The ID of the marketing event in the external application (externalEventId) to search for. + +## HubspotMarketingApi.SendMarketingEmail + +
+ + +Send a template email to a specific recipient. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.SendTransactionalEmail + +
+ + +Send a transactional email asynchronously. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMarketingApi.QuerySmtpTokens + +
+ + +Retrieve SMTP API tokens by campaign name or emailCampaignId. + +**Parameters** + +- **campaign_name** (`string`, optional) Name of the campaign tied to the SMTP API token to query tokens. +- **email_campaign_id** (`string`, optional) Identifier assigned to the campaign provided during the token creation. Used to retrieve a specific SMTP API token. +- **maximum_tokens_to_return** (`integer`, optional) Specify the maximum number of SMTP API tokens to return in the response. +- **result_pagination_start** (`string`, optional) Specify a starting point for retrieving the next set of results. Use this for paginating through results. + +## HubspotMarketingApi.CreateSmtpApiToken + +
+ + +Creates a SMTP API token for transaction emails. + +**Parameters** + +- **campaign_name** (`string`, required) The name of the campaign associated with the SMTP API token. +- **create_contact_for_recipients** (`boolean`, required) Indicates whether a contact should be created for email recipients. Set to true to create a contact. + +## HubspotMarketingApi.ResetPasswordForToken + +
+ + +Resets the password for a specified token. + +**Parameters** + +- **token_identifier** (`string`, required) The unique string identifier for the token, used to reset its password. + +## HubspotMarketingApi.GetSmtpTokenById + +
+ + +Retrieve details of an SMTP token using its ID. + +**Parameters** + +- **smtp_token_id** (`string`, required) The unique identifier of the SMTP token to be queried. + +## HubspotMarketingApi.DeleteSmtpToken + +
+ + +Delete an SMTP token by ID in HubSpot Marketing. + +**Parameters** + +- **smtp_token_id** (`string`, required) The unique identifier of the SMTP token to be deleted, provided during token creation. + +## Reference + +Below is a reference of enumerations used by some of the tools in the HubspotMarketingApi MCP Server: + +### ToolMode + +- **GET_REQUEST_SCHEMA**: `get_request_schema` +- **EXECUTE**: `execute` + +## Auth + +The HubspotMarketingApi MCP Server uses the Auth Provider with id `arcade-hubspot` to connect to users' HubspotMarketingApi accounts. In order to use the MCP Server, you will need to configure the `arcade-hubspot` auth provider. + + diff --git a/app/en/mcp-servers/sales/hubspot-meetings-api/page.mdx b/app/en/mcp-servers/sales/hubspot-meetings-api/page.mdx new file mode 100644 index 000000000..cb6f93b5e --- /dev/null +++ b/app/en/mcp-servers/sales/hubspot-meetings-api/page.mdx @@ -0,0 +1,204 @@ +# HubspotMeetingsApi + +import StarterToolInfo from "@/app/_components/starter-tool-info"; +import ToolInfo from "@/app/_components/tool-info"; +import Badges from "@/app/_components/badges"; +import TabbedCodeBlock from "@/app/_components/tabbed-code-block"; +import TableOfContents from "@/app/_components/table-of-contents"; +import ToolFooter from "@/app/_components/tool-footer"; +import { Callout } from "nextra/components"; + + + + + + + +The HubspotMeetingsApi MCP Server provides a set of tools for managing meetings through Hubspot's scheduling system. Users can easily schedule, book, and manage meetings with the following capabilities: + +- Schedule meetings using Hubspot's calendar integration. +- Retrieve details necessary for setting up a meeting scheduler. +- List available meeting scheduling links. +- Book meetings directly through Hubspot's platform. +- Fetch upcoming availability times for specific meeting pages. + +## Available Tools + + + + + If you need to perform an action that's not listed here, you can [get in touch + with us](mailto:contact@arcade.dev) to request a new tool, or [create your own + tools](/home/build-tools/create-a-mcp-server). + + +## HubspotMeetingsApi.ScheduleMeetingHubspot + +
+ + +Schedule a meeting using Hubspot's calendar integration. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMeetingsApi.GetMeetingSchedulerDetails + +
+ + +Get necessary details for setting up a meeting scheduler. + +**Parameters** + +- **meeting_slug** (`string`, required) A unique identifier for the meeting link, used to retrieve specific scheduler details. + +## HubspotMeetingsApi.ListMeetingSchedulingPages + +
+ + +Retrieve a paged list of meeting scheduling links. + +**Parameters** + +This tool does not take any parameters. + +## HubspotMeetingsApi.BookHubspotMeeting + +
+ + +Book a meeting using Hubspot's scheduling feature. + +**Parameters** + +- **mode** (`Enum` [ToolMode](#toolmode), required) Operation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation +- **request_body** (`string`, optional) Stringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema' + +## HubspotMeetingsApi.GetNextMeetingAvailability + +
+ + +Fetch the next availability times for a meeting page. + +**Parameters** + +- **availability_page_slug** (`string`, required) The unique slug identifier for the meeting page to check available time slots. + +## Reference + +Below is a reference of enumerations used by some of the tools in the HubspotMeetingsApi MCP Server: + +### ToolMode + +- **GET_REQUEST_SCHEMA**: `get_request_schema` +- **EXECUTE**: `execute` + +## Auth + +The HubspotMeetingsApi MCP Server uses the Auth Provider with id `arcade-hubspot` to connect to users' HubspotMeetingsApi accounts. In order to use the MCP Server, you will need to configure the `arcade-hubspot` auth provider. + + diff --git a/app/en/mcp-servers/sales/hubspot-users-api/page.mdx b/app/en/mcp-servers/sales/hubspot-users-api/page.mdx new file mode 100644 index 000000000..555d59f29 --- /dev/null +++ b/app/en/mcp-servers/sales/hubspot-users-api/page.mdx @@ -0,0 +1,264 @@ +# HubspotUsersApi + +import StarterToolInfo from "@/app/_components/starter-tool-info"; +import ToolInfo from "@/app/_components/tool-info"; +import Badges from "@/app/_components/badges"; +import TabbedCodeBlock from "@/app/_components/tabbed-code-block"; +import TableOfContents from "@/app/_components/table-of-contents"; +import ToolFooter from "@/app/_components/tool-footer"; +import { Callout } from "nextra/components"; + + + + + + + +The HubspotUsersApi MCP Server provides a comprehensive set of tools for managing users and teams within a HubSpot account. With this server, users can: + +- Retrieve lists of users, teams, and roles associated with the account. +- Create new users with basic permissions. +- Update user information and manage user accounts. +- Remove users from the HubSpot system as needed. + +This server streamlines user management and enhances team collaboration within HubSpot. + +## Available Tools + + + + + If you need to perform an action that's not listed here, you can [get in touch + with us](mailto:contact@arcade.dev) to request a new tool, or [create your own + tools](/home/build-tools/create-a-mcp-server). + + +## HubspotUsersApi.ViewAccountTeams + +
+ + +Retrieve all teams for the account. + +**Parameters** + +This tool does not take any parameters. + +## HubspotUsersApi.GetAccountRoles + +
+ + +Retrieve all user roles from an account. + +**Parameters** + +This tool does not take any parameters. + +## HubspotUsersApi.FetchHubspotUsersList + +
+ + +Retrieve a list of users from a HubSpot account. + +**Parameters** + +- **page_cursor_after** (`string`, optional) A string token used to retrieve the next page of users, if more than 100 users are available. +- **user_retrieval_limit** (`integer`, optional) Specify the maximum number of users to retrieve from the HubSpot account. + +## HubspotUsersApi.CreateHubspotUser + +
+ + +Create a new user in HubSpot with basic permissions. + +**Parameters** + +- **user_email** (`string`, required) The email address of the user to be created in HubSpot. +- **additional_team_ids** (`array[string]`, optional) List of IDs representing the user's additional teams. +- **last_name** (`string`, optional) The last name of the user to be created in HubSpot. +- **primary_team_id** (`string`, optional) The identifier for the user's primary team in HubSpot. +- **send_welcome_email** (`boolean`, optional) Set to true to send a welcome email prompting the user to set a password and log in. +- **user_first_name** (`string`, optional) The first name of the user to be created in HubSpot. +- **user_role_id** (`string`, optional) A string representing the new user's role within HubSpot. + +## HubspotUsersApi.RetrieveHubspotUserById + +
+ + +Retrieve Hubspot user details using user ID or email. + +**Parameters** + +- **user_identifier** (`string`, required) Identifier of the Hubspot user to retrieve. It can be the user ID or email based on the `id_property`. +- **user_identifier_property** (`string`, optional) Specifies the property to identify the user: `USER_ID` (default) or `EMAIL`. + +## HubspotUsersApi.UpdateHubspotUserInfo + +
+ + +Update information for a specified Hubspot user. + +**Parameters** + +- **user_identifier** (`string`, required) The unique identifier for the user. Can be the user's ID or email, based on the `id_property`. +- **additional_teams_ids** (`array[string]`, optional) An array of strings representing the IDs of the user's additional teams. +- **first_name** (`string`, optional) The first name of the user to update. This should be a string value. +- **last_name** (`string`, optional) The last name of the user to be modified. This is the new value of the user's last name. +- **user_identifier_property** (`string`, optional) Specifies if the user is identified by 'USER_ID' or 'EMAIL'. Default is 'USER_ID'. +- **user_primary_team_id** (`string`, optional) The unique ID for the user's primary team. +- **user_role_id** (`string`, optional) The ID representing the user's role. Used to assign the user a specific role within the system. + +## HubspotUsersApi.RemoveUserHubspot + +
+ + +Remove a user from HubSpot using their ID or email. + +**Parameters** + +- **user_identifier** (`string`, required) Identifier of the user to remove from HubSpot. It can be a user ID or an email address. +- **user_identifier_property** (`string`, optional) Specify whether to use `USER_ID` or `EMAIL` to identify the user. + +## Auth + +The HubspotUsersApi MCP Server uses the Auth Provider with id `arcade-hubspot` to connect to users' HubspotUsersApi accounts. In order to use the MCP Server, you will need to configure the `arcade-hubspot` auth provider. + + diff --git a/make_docs/docs_builder.py b/make_docs/docs_builder.py deleted file mode 100644 index 3348b91ed..000000000 --- a/make_docs/docs_builder.py +++ /dev/null @@ -1,666 +0,0 @@ -import asyncio -import json -import os -import pprint -from collections.abc import Callable -from enum import Enum -from typing import Any, cast - -import openai -from openai import AsyncOpenAI -from arcade_core import auth as auth_module -from arcade_core.schema import ( - ToolAuthRequirement, - ToolDefinition, - ToolInput, - ToolSecretRequirement, -) -from rich.console import Console - -from templates import ( - ENUM_ITEM, - ENUM_MDX, - ENUM_VALUE, - GENERIC_PROVIDER_CONFIG, - STARTER_TOOL_INFO_CALL, - STARTER_TOOLKIT_HEADER_IMPORT, - TABBED_EXAMPLES_LIST, - TABLE_OF_CONTENTS, - TABLE_OF_CONTENTS_ITEM, - TOOL_CALL_EXAMPLE_JS, - TOOL_CALL_EXAMPLE_PY, - TOOL_PARAMETER, - TOOL_SPEC, - TOOL_SPEC_SECRETS, - TOOLKIT_FOOTER, - TOOLKIT_FOOTER_OAUTH2, - TOOLKIT_HEADER, - TOOLKIT_PAGE, - WELL_KNOWN_PROVIDER_CONFIG, -) -from utils import ( - clean_fully_qualified_name, - find_enum_by_options, - find_pyproject_toml, - get_pyproject_description, - get_toolkit_auth_type, - is_well_known_provider, - pascal_to_snake_case, -) - -console = Console() - - -def build_toolkit_mdx_dir_path( - docs_section: str, - docs_root_dir: str, - toolkit_name: str, - ensure_exists: bool = True, -) -> str: - dir_path = os.path.join( - docs_root_dir, - "app", - "en", - "mcp-servers", - docs_section, - f"{toolkit_name.lower().replace('_', '-')}", - ) - - if ensure_exists: - os.makedirs(dir_path, exist_ok=True) - return dir_path - - -def build_toolkit_mdx_file_path(docs_section: str, docs_root_dir: str, toolkit_name: str) -> str: - toolkit_dir_path = build_toolkit_mdx_dir_path(docs_section, docs_root_dir, toolkit_name) - return os.path.join(toolkit_dir_path, "page.mdx") - - -def build_example_path(example_filename: str, docs_root_dir: str, toolkit_name: str) -> str: - return os.path.join( - docs_root_dir, - "public", - "examples", - "integrations", - "mcp-servers", - toolkit_name.lower(), - example_filename, - ) - - -def build_toolkit_mdx( - toolkit_package_name: str, - toolkit_dir: str, - tools: list[ToolDefinition], - docs_section: str, - enums: dict[str, type[Enum]], - pip_package_name: str, - openai_model: str, - toolkit_header_template: str = TOOLKIT_HEADER, - toolkit_page_template: str = TOOLKIT_PAGE, - is_wrapper_toolkit: bool = False, -) -> tuple[str, str]: - sample_tool = tools[0] - toolkit_name = sample_tool.toolkit.name - toolkit_version = sample_tool.toolkit.version - auth_type = get_toolkit_auth_type(sample_tool.requirements) - - if is_wrapper_toolkit: - starter_tool_info_import = STARTER_TOOLKIT_HEADER_IMPORT - starter_tool_info_warning = STARTER_TOOL_INFO_CALL.format(toolkit_name=toolkit_name) - else: - starter_tool_info_import = "" - starter_tool_info_warning = "" - - try: - pyproject_path = find_pyproject_toml(toolkit_dir) - tool_info_description = get_pyproject_description(pyproject_path) - - except ValueError: - tool_info_description = f"Enable Agents to interact with the {toolkit_name} MCP Server" - - header = toolkit_header_template.format( - toolkit_title=toolkit_name, - tool_info_description=tool_info_description, - starter_tool_info_import=starter_tool_info_import, - starter_tool_info_warning=starter_tool_info_warning, - description=generate_toolkit_description( - toolkit_name, - [(tool.name, tool.description) for tool in tools], - openai_model, - ), - pip_package_name=pip_package_name, - auth_type=auth_type, - version=toolkit_version, - ) - table_of_contents = build_table_of_contents(tools) - footer = build_footer(toolkit_name, pip_package_name, sample_tool.requirements.authorization) - - referenced_enums, tools_specs = build_tools_specs( - toolkit_package_name, tools, docs_section, enums - ) - reference_mdx = build_reference_mdx(toolkit_name, referenced_enums) if referenced_enums else "" - - toolkit_mdx = toolkit_page_template.format( - header=header, - table_of_contents=table_of_contents, - tools_specs=tools_specs, - reference_mdx=reference_mdx, - footer=footer, - ) - - return toolkit_mdx.strip() - - -def build_reference_mdx( - toolkit_name: str, - referenced_enums: list[tuple[str, type[Enum]]], - enum_item_template: str = ENUM_ITEM, - enum_value_template: str = ENUM_VALUE, - enum_mdx_template: str = ENUM_MDX, -) -> str: - enum_items = "" - enum_names_seen = set() - - for enum_name, enum_class in referenced_enums: - if enum_name in enum_names_seen: - continue - enum_names_seen.add(enum_name) - enum_items += enum_item_template.format( - enum_name=enum_name, - enum_values=build_enum_values( - enum_class=enum_class, - enum_value_template=enum_value_template, - ), - ) - - return enum_mdx_template.format( - toolkit_name=toolkit_name, - enum_items=enum_items, - ) - - -def build_enum_values( - enum_class: type[Enum], - enum_value_template: str = ENUM_VALUE, -) -> str: - enum_values = "" - for enum_member in enum_class: - enum_values += ( - enum_value_template.format( - enum_option_name=enum_member.name, - enum_option_value=enum_member.value, - ) - + "\n" - ) - return enum_values - - -def build_table_of_contents( - tools: list[ToolDefinition], - table_of_contents_item_template: str = TABLE_OF_CONTENTS_ITEM, - table_of_contents_template: str = TABLE_OF_CONTENTS, -) -> str: - tools_items = "" - - for tool in tools: - tools_items += table_of_contents_item_template.format( - tool_fully_qualified_name=clean_fully_qualified_name(tool.fully_qualified_name), - description=tool.description.split("\n")[0], - ) - - return table_of_contents_template.format(tool_items=tools_items) - - -def build_footer( - toolkit_name: str, - pip_package_name: str, - authorization: ToolAuthRequirement | None, - footer_template: str = TOOLKIT_FOOTER, - oauth2_footer_template: str = TOOLKIT_FOOTER_OAUTH2, - well_known_provider_config_template: str = WELL_KNOWN_PROVIDER_CONFIG, - generic_provider_config_template: str = GENERIC_PROVIDER_CONFIG, -) -> str: - if authorization and authorization.provider_type == "oauth2" and authorization.provider_id: - is_well_known = is_well_known_provider( - provider_id=authorization.provider_id, - auth_module=auth_module, - ) - config_template = ( - well_known_provider_config_template - if is_well_known - else generic_provider_config_template - ) - provider_configuration = config_template.format( - toolkit_name=toolkit_name, - provider_id=authorization.provider_id, - provider_name=authorization.provider_id.capitalize(), - ) - - return oauth2_footer_template.format( - pip_package_name=pip_package_name, - provider_configuration=provider_configuration, - ) - return footer_template.format(toolkit_name=toolkit_name, pip_package_name=pip_package_name) - - -def build_tools_specs( - toolkit_name: str, - tools: list[ToolDefinition], - docs_section: str, - enums: dict[str, type[Enum]], - tool_spec_template: str = TOOL_SPEC, - tool_parameter_template: str = TOOL_PARAMETER, - tool_spec_secrets_template: str = TOOL_SPEC_SECRETS, -) -> tuple[list[tuple[str, type[Enum]]], str]: - tools_specs = "" - referenced_enums = [] - for tool in tools: - tool_referenced_enums, tool_spec = build_tool_spec( - toolkit_name=toolkit_name, - tool=tool, - docs_section=docs_section, - enums=enums, - tool_spec_template=tool_spec_template, - tool_parameter_template=tool_parameter_template, - tool_spec_secrets_template=tool_spec_secrets_template, - ) - tools_specs += tool_spec - referenced_enums.extend(tool_referenced_enums) - - return referenced_enums, tools_specs - - -def build_tool_spec( - toolkit_name: str, - tool: ToolDefinition, - docs_section: str, - enums: dict[str, type[Enum]], - tool_spec_template: str = TOOL_SPEC, - tool_parameter_template: str = TOOL_PARAMETER, - tool_spec_secrets_template: str = TOOL_SPEC_SECRETS, -) -> tuple[list[tuple[str, type[Enum]]], str]: - tabbed_examples_list = TABBED_EXAMPLES_LIST.format( - toolkit_name=toolkit_name.lower(), - tool_name=pascal_to_snake_case(tool.name), - ) - referenced_enums, parameters = build_tool_parameters( - tool_input=tool.input, - enums=enums, - tool_parameter_template=tool_parameter_template, - ) - - if not parameters: - parameters = "This tool does not take any parameters." - - secrets = ( - build_tool_secrets( - secrets=tool.requirements.secrets, - template=tool_spec_secrets_template, - ) - if tool.requirements.secrets - else "" - ) - - return referenced_enums, tool_spec_template.format( - tool_fully_qualified_name=clean_fully_qualified_name(tool.fully_qualified_name), - tabbed_examples_list=tabbed_examples_list, - description=tool.description.split("\n")[0], - parameters=parameters, - secrets=secrets, - ) - - -def build_tool_secrets( - secrets: list[ToolSecretRequirement], - template: str = TOOL_SPEC_SECRETS, -) -> str: - if not secrets: - return "" - secret_keys_str = "`, `".join([secret.key for secret in secrets]) - return template.format(secrets=f"`{secret_keys_str}`") - - -def build_tool_parameters( - tool_input: ToolInput, - enums: dict[str, type[Enum]], - tool_parameter_template: str = TOOL_PARAMETER, -) -> tuple[list[tuple[str, type[Enum]]], str]: - referenced_enums = [] - parameters = "" - for parameter in tool_input.parameters: - schema = parameter.value_schema - if schema.enum: - enum_name, enum_class = find_enum_by_options(enums, schema.enum) - referenced_enums.append((enum_name, enum_class)) - param_definition = f"`Enum` [{enum_name}](#{enum_name.lower().replace(' ', '-')})" - else: - if schema.inner_val_type: - param_definition = f"`{schema.val_type}[{schema.inner_val_type}]`" - else: - param_definition = f"`{schema.val_type}`" - - if parameter.required: - param_definition += ", required" - else: - param_definition += ", optional" - - parameters += ( - tool_parameter_template.format( - param_name=parameter.name, - definition=param_definition, - description=parameter.description, - ) - + "\n" - ) - - return referenced_enums, parameters - - -async def build_examples( - print_debug: Callable, - tools: list[ToolDefinition], - openai_model: str, - max_concurrency: int = 5, -) -> list[tuple[str, str]]: - examples = [] - - semaphore = asyncio.Semaphore(max_concurrency) - - async def build_with_semaphore(tool: ToolDefinition): - async with semaphore: - return await build_tool_examples(print_debug, tool, openai_model) - - responses = await asyncio.gather(*[build_with_semaphore(tool) for tool in tools]) - - for response in responses: - examples.extend(response) - - return examples - - -async def build_tool_examples( - print_debug: Callable, - tool: ToolDefinition, - openai_model: str, -) -> list[tuple[str, str]]: - examples = [] - print_debug(f"Generating tool-call examples for {tool.name}") - interface_signature = build_tool_interface_signature(tool) - input_map = await generate_tool_input_map(interface_signature, openai_model) - fully_qualified_name = tool.fully_qualified_name.split("@")[0] - - py_file_name = f"{pascal_to_snake_case(tool.name)}_example_call_tool.py" - examples.append(( - py_file_name, - build_python_example(fully_qualified_name, input_map), - )) - js_file_name = f"{pascal_to_snake_case(tool.name)}_example_call_tool.js" - examples.append(( - js_file_name, - build_javascript_example(fully_qualified_name, input_map), - )) - return examples - - -def build_python_example( - tool_fully_qualified_name: str, - input_map: dict[str, Any], - template: str = TOOL_CALL_EXAMPLE_PY, -) -> str: - input_map_str = pprint.pformat( - input_map, - indent=4, - width=100, - compact=False, - sort_dicts=False, - ) - input_map_str = "{\n " + input_map_str.lstrip("{ ").rstrip("}") + "\n}" - return template.format( - tool_fully_qualified_name=tool_fully_qualified_name, - input_map=input_map_str, - ) - - -def build_javascript_example( - tool_fully_qualified_name: str, - input_map: dict, - template: str = TOOL_CALL_EXAMPLE_JS, -) -> str: - return template.format( - tool_fully_qualified_name=tool_fully_qualified_name, - input_map=json.dumps(input_map, indent=2, ensure_ascii=False), - ) - - -def generate_toolkit_description( - toolkit_name: str, - tools: list[tuple[str, str]], - openai_model: str, -) -> str: - messages = [ - { - "role": "system", - "content": ( - "You are a helpful assistant. " - "When given an MCP Server name and a list of tools, you will generate a " - "short, yet descriptive of the MCP Server and the main actions a user " - "or LLM can perform with it.\n\n" - "As an example, here is the Asana MCP Server description:\n\n" - "The Arcade Asana MCP Server provides a pre-built set of tools for " - "interacting with Asana. These tools make it easy to build agents " - "and AI apps that can:\n\n" - "- Manage teams, projects, and workspaces.\n" - "- Create, update, and search for tasks.\n" - "- Retrieve data about tasks, projects, workspaces, users, etc.\n" - "- Manage task attachments.\n\n" - "And here is a JSON string with the list of tools in the Asana MCP Server:\n\n" - "```json\n\n" - '[["AttachFileToTask", "Attaches a file to an Asana task\n\nProvide exactly ' - "one of file_content_str, file_content_base64, or file_content_url, never " - "more\nthan one.\n\n- Use file_content_str for text files (will be encoded " - "using file_encoding)\n- Use file_content_base64 for binary files like images, " - 'PDFs, etc.\n- Use file_content_url if the file is hosted on an external URL"], ' - '["CreateTag", "Create a tag in Asana"], ["CreateTask", "Creates a task in ' - "Asana\n\nThe task must be associated to at least one of the following: " - "parent_task_id, project, or\nworkspace_id. If none of these are provided and " - "the account has only one workspace, the task\nwill be associated to that " - "workspace. If the account has multiple workspaces, an error will\nbe raised " - 'with a list of available workspaces."], ["GetProjectById", "Get an Asana ' - 'project by its ID"], ["GetSubtasksFromATask", "Get the subtasks of a task"], ' - '["GetTagById", "Get an Asana tag by its ID"], ["GetTaskById", "Get a task by ' - 'its ID"], ["GetTasksWithoutId", "Search for tasks"], ["GetTeamById", "Get an ' - 'Asana team by its ID"], ["GetUserById", "Get a user by ID"], ["GetWorkspaceById", ' - '"Get an Asana workspace by its ID"], ["ListProjects", "List projects in Asana"], ' - '["ListTags", "List tags in an Asana workspace"], ["ListTeams", "List teams in ' - 'an Asana workspace"], ["ListTeamsTheCurrentUserIsAMemberOf", "List teams in ' - 'Asana that the current user is a member of"], ["ListUsers", "List users in ' - 'Asana"], ["ListWorkspaces", "List workspaces in Asana that are visible to the ' - 'authenticated user"], ["MarkTaskAsCompleted", "Mark a task in Asana as ' - 'completed"], ["UpdateTask", "Updates a task in Asana"]]\n\n```\n\n' - "Keep the description concise and to the point. The user will provide you with " - "the MCP Server name and the list of tools. Generate the description according to " - "the instructions above." - ), - }, - { - "role": "user", - "content": ( - f"The MCP Server name is {toolkit_name} and the list of tools is:\n\n" - "```json\n\n" - f"{json.dumps(tools, ensure_ascii=False)}\n\n" - "```\n\n" - "Please generate a description for the MCP Server." - ), - }, - ] - - return request_openai_generation(model=openai_model, max_tokens=512, messages=messages) - - -async def generate_tool_input_map( - interface_signature: dict[str, Any], - openai_model: str, - retries: int = 0, - max_retries: int = 3, -) -> dict[str, Any]: - messages = [ - { - "role": "system", - "content": ( - "You are a helpful assistant expert in generating data for documenting " - "sample scripts to calling tools. A tool is a function that is used in " - "context of LLM tool-calling / function-calling.\n\n" - "When given a tool signature with typed arguments, " - "you must return exactly one JSON object (no markdown, no extra text) " - "where each key is an argument name, and each value is a sample value " - "for that argument that would make sense in a sample script to showcase " - "human software engineers how the tool may be called. Generate the " - "argument sample value based on its name and description\n\n" - "Not every single argument must always be present in the input map. " - "In some cases, the tool may require only one of two arguments to be " - "provided, for example. In such cases, an indication will be present " - "either/or in the tool description or the argument description. " - "Always follow such instructions when present in the tool interface.\n\n" - "Keep argument values as short as possible. Values don't have to always " - "be valid. For instance, for file content base64-encoded arguments, " - "you can use a short text or a placeholder like `[file_content]`, it is " - "not necessary that the value is a valid base64-encoded string.\n\n" - "Remember that you MUST RESPOND ONLY WITH A VALID JSON STRING, NO ADDED " - "TEXT. Your response will be json.load'ed, so it must be a valid JSON " - "string." - ), - }, - { - "role": "user", - "content": ( - "Here is a tool interface:\n\n" - f"{json.dumps(interface_signature, ensure_ascii=False)}\n\n" - "Please provide a sample input map as a JSON object." - ), - }, - ] - - text = await async_request_openai_generation( - model=openai_model, max_tokens=512, messages=messages - ) - - try: - return cast(dict[str, Any], json.loads(text)) - except (json.JSONDecodeError, TypeError): - if retries < max_retries: - return await generate_tool_input_map( - interface_signature=interface_signature, - openai_model=openai_model, - retries=retries + 1, - max_retries=max_retries, - ) - tool_name = interface_signature["tool_name"] - console.print( - f"Attention: {openai_model} failed to generate a valid inputs JSON for the tool '{tool_name}'. " - "Please check the Python & Javascript example scripts generated and enter a sample input manually.", - style="red", - ) - return {} - - -def build_tool_interface_signature(tool: ToolDefinition) -> dict[str, Any]: - args = [] - for arg in tool.input.parameters: - data: dict[str, Any] = { - "arg_name": arg.name, - "arg_description": arg.description, - "is_arg_required": arg.required, - "arg_type": arg.value_schema.val_type, - } - - if arg.value_schema.enum: - data["enum"] = { - "accepted_values": arg.value_schema.enum, - } - - args.append(data) - - return { - "tool_name": tool.name, - "tool_description": tool.description, - "tool_args": args, - } - - -def request_openai_generation( - model: str, - max_tokens: int, - messages: list[dict[str, Any]], -) -> str: - if model.startswith("gpt-5"): - response = openai.responses.create( - model=model, - input=messages, - max_output_tokens=max_tokens, - reasoning={ - "effort": "minimal", - }, - text={ - "verbosity": "low", - }, - ) - response_str = cast(str, response.output_text) - - elif model.startswith("gpt-4o"): - response = openai.chat.completions.create( - model=model, - messages=messages, - temperature=0.0, - max_completion_tokens=max_tokens, - stop=["\n\n"], - ) - response_str = cast(str, response.choices[0].message.content) - - else: - raise ValueError( - f"Unsupported OpenAI model: {model}. Choose a model from the 'gpt-4o' or 'gpt-5' series." - ) - - return response_str.strip() - - -async def async_request_openai_generation( - model: str, - max_tokens: int, - messages: list[dict[str, Any]], -) -> str: - # Create async client instance using the API key from the global openai module - async_client = AsyncOpenAI(api_key=openai.api_key) - - if model.startswith("gpt-5"): - # Note: GPT-5 API might not be available yet, this is placeholder code - response = await async_client.responses.create( - model=model, - input=messages, - max_output_tokens=max_tokens, - reasoning={ - "effort": "minimal", - }, - text={ - "verbosity": "low", - }, - ) - response_str = cast(str, response.output_text) - - elif model.startswith("gpt-4o"): - response = await async_client.chat.completions.create( - model=model, - messages=messages, - temperature=0.0, - max_completion_tokens=max_tokens, - stop=["\n\n"], - ) - response_str = cast(str, response.choices[0].message.content) - - else: - raise ValueError( - f"Unsupported OpenAI model: {model}. Choose a model from the 'gpt-4o' or 'gpt-5' series." - ) - - return response_str.strip() diff --git a/make_toolkit_docs/docs_builder.py b/make_toolkit_docs/docs_builder.py index 18fb1aadc..743920d49 100644 --- a/make_toolkit_docs/docs_builder.py +++ b/make_toolkit_docs/docs_builder.py @@ -616,7 +616,6 @@ def request_openai_generation( messages=messages, temperature=0.0, max_completion_tokens=max_tokens, - stop=["\n\n"], ) response_str = cast(str, response.choices[0].message.content) @@ -655,7 +654,6 @@ async def async_request_openai_generation( messages=messages, temperature=0.0, max_completion_tokens=max_tokens, - stop=["\n\n"], ) response_str = cast(str, response.choices[0].message.content) diff --git a/package.json b/package.json index e70c59395..a66e07b41 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ }, "homepage": "https://arcade.dev/", "dependencies": { - "@arcadeai/design-system": "^3.20.0", + "@arcadeai/design-system": "^3.22.0", "@next/third-parties": "16.0.1", "@ory/client": "1.22.7", "@theguild/remark-mermaid": "0.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 06cfe5a32..2dde2678a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@arcadeai/design-system': - specifier: ^3.20.0 - version: 3.20.0(@hookform/resolvers@5.2.2(react-hook-form@7.65.0(react@19.2.0)))(@types/react-dom@19.2.2(@types/react@19.2.2))(@types/react@19.2.2)(lucide-react@0.548.0(react@19.2.0))(react-dom@19.2.0(react@19.2.0))(react-hook-form@7.65.0(react@19.2.0))(react@19.2.0)(recharts@3.3.0(@types/react@19.2.2)(react-dom@19.2.0(react@19.2.0))(react-is@16.13.1)(react@19.2.0)(redux@5.0.1))(tailwindcss@4.1.16)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(yaml@2.8.1)) + specifier: ^3.22.0 + version: 3.22.0(@hookform/resolvers@5.2.2(react-hook-form@7.65.0(react@19.2.0)))(@types/react-dom@19.2.2(@types/react@19.2.2))(@types/react@19.2.2)(lucide-react@0.548.0(react@19.2.0))(react-dom@19.2.0(react@19.2.0))(react-hook-form@7.65.0(react@19.2.0))(react@19.2.0)(recharts@3.3.0(@types/react@19.2.2)(react-dom@19.2.0(react@19.2.0))(react-is@16.13.1)(react@19.2.0)(redux@5.0.1))(tailwindcss@4.1.16)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(yaml@2.8.1)) '@next/third-parties': specifier: 16.0.1 version: 16.0.1(next@16.0.1(react-dom@19.2.0(react@19.2.0))(react@19.2.0))(react@19.2.0) @@ -172,8 +172,8 @@ packages: '@arcadeai/arcadejs@1.11.1': resolution: {integrity: sha512-6AKMTO/cT/bj3GGMF4F76R2oC/FXIfkkXr6k/5/55NmUdpyzdqb5HhPN1M1txLoKIUc0/BGP8anM9lPFxwRW5g==} - '@arcadeai/design-system@3.20.0': - resolution: {integrity: sha512-XKoOUN88mUB7C8N/7CjbJytPkjB2BCkx7MjKXsaO7A0vIIBW1FZGgP7q7+hS2VEp8KyxlN+/ZbaV3Z7MxShiqA==} + '@arcadeai/design-system@3.22.0': + resolution: {integrity: sha512-A4JPaj3fYm2o0qoVFTlSyIwF6spGqmpvQiLkHW81IIla6pHX0UkYbHSlXtuMcW7DT+Nm+XaFJGxVxkx1yaSRFw==} engines: {node: '>=20.17.0'} peerDependencies: '@hookform/resolvers': ^5.2.1 @@ -4756,7 +4756,7 @@ snapshots: transitivePeerDependencies: - encoding - '@arcadeai/design-system@3.20.0(@hookform/resolvers@5.2.2(react-hook-form@7.65.0(react@19.2.0)))(@types/react-dom@19.2.2(@types/react@19.2.2))(@types/react@19.2.2)(lucide-react@0.548.0(react@19.2.0))(react-dom@19.2.0(react@19.2.0))(react-hook-form@7.65.0(react@19.2.0))(react@19.2.0)(recharts@3.3.0(@types/react@19.2.2)(react-dom@19.2.0(react@19.2.0))(react-is@16.13.1)(react@19.2.0)(redux@5.0.1))(tailwindcss@4.1.16)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(yaml@2.8.1))': + '@arcadeai/design-system@3.22.0(@hookform/resolvers@5.2.2(react-hook-form@7.65.0(react@19.2.0)))(@types/react-dom@19.2.2(@types/react@19.2.2))(@types/react@19.2.2)(lucide-react@0.548.0(react@19.2.0))(react-dom@19.2.0(react@19.2.0))(react-hook-form@7.65.0(react@19.2.0))(react@19.2.0)(recharts@3.3.0(@types/react@19.2.2)(react-dom@19.2.0(react@19.2.0))(react-is@16.13.1)(react@19.2.0)(redux@5.0.1))(tailwindcss@4.1.16)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(yaml@2.8.1))': dependencies: '@arcadeai/arcadejs': 1.11.1 '@hookform/resolvers': 5.2.2(react-hook-form@7.65.0(react@19.2.0)) diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/check_contact_enrollment_status_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_automation_api/check_contact_enrollment_status_example_call_tool.js new file mode 100644 index 000000000..4a3634bd6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/check_contact_enrollment_status_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotAutomationApi.CheckContactEnrollmentStatus"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "contact_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/check_contact_enrollment_status_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_automation_api/check_contact_enrollment_status_example_call_tool.py new file mode 100644 index 000000000..c8bdd8c94 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/check_contact_enrollment_status_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotAutomationApi.CheckContactEnrollmentStatus" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'contact_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/complete_action_execution_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_automation_api/complete_action_execution_example_call_tool.js new file mode 100644 index 000000000..5bf3167dd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/complete_action_execution_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotAutomationApi.CompleteActionExecution"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "action_execution_id": "12345", + "request_body": "{\"status\":\"completed\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/complete_action_execution_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_automation_api/complete_action_execution_example_call_tool.py new file mode 100644 index 000000000..bdc2f0354 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/complete_action_execution_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotAutomationApi.CompleteActionExecution" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'action_execution_id': '12345', 'request_body': '{"status":"completed"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/complete_batch_action_executions_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_automation_api/complete_batch_action_executions_example_call_tool.js new file mode 100644 index 000000000..29620b78b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/complete_batch_action_executions_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotAutomationApi.CompleteBatchActionExecutions"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"actionIds\":[\"123\",\"456\"],\"status\":\"completed\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/complete_batch_action_executions_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_automation_api/complete_batch_action_executions_example_call_tool.py new file mode 100644 index 000000000..f00d9e298 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/complete_batch_action_executions_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotAutomationApi.CompleteBatchActionExecutions" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"actionIds":["123","456"],"status":"completed"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/enroll_contact_in_sequence_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_automation_api/enroll_contact_in_sequence_example_call_tool.js new file mode 100644 index 000000000..0252e3b04 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/enroll_contact_in_sequence_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotAutomationApi.EnrollContactInSequence"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "contact_id": "12345", + "sender_email": "sender@example.com", + "sequence_identifier": "seq-67890", + "sender_alias_address": "alias@example.com" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/enroll_contact_in_sequence_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_automation_api/enroll_contact_in_sequence_example_call_tool.py new file mode 100644 index 000000000..e1a5914cf --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/enroll_contact_in_sequence_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotAutomationApi.EnrollContactInSequence" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'contact_id': '12345', + 'sender_email': 'sender@example.com', + 'sequence_identifier': 'seq-67890', + 'sender_alias_address': 'alias@example.com' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/fetch_email_campaigns_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_automation_api/fetch_email_campaigns_example_call_tool.js new file mode 100644 index 000000000..5378c8572 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/fetch_email_campaigns_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotAutomationApi.FetchEmailCampaigns"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_campaign_flow_ids": [ + "flow123", + "flow456" + ], + "start_date": "2023-01-01", + "max_results": 10 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/fetch_email_campaigns_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_automation_api/fetch_email_campaigns_example_call_tool.py new file mode 100644 index 000000000..644b8090e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/fetch_email_campaigns_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotAutomationApi.FetchEmailCampaigns" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_campaign_flow_ids': ['flow123', 'flow456'], 'start_date': '2023-01-01', 'max_results': 10 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/get_sequence_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_sequence_details_example_call_tool.js new file mode 100644 index 000000000..d23bbb654 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_sequence_details_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotAutomationApi.GetSequenceDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "sequence_id": "seq-12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/get_sequence_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_sequence_details_example_call_tool.py new file mode 100644 index 000000000..974239331 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_sequence_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotAutomationApi.GetSequenceDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'sequence_id': 'seq-12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/get_user_sequences_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_user_sequences_example_call_tool.js new file mode 100644 index 000000000..23d5e9608 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_user_sequences_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotAutomationApi.GetUserSequences"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/get_user_sequences_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_user_sequences_example_call_tool.py new file mode 100644 index 000000000..cd301388e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_user_sequences_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotAutomationApi.GetUserSequences" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/get_workflow_id_mappings_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_workflow_id_mappings_example_call_tool.js new file mode 100644 index 000000000..e870b000a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_workflow_id_mappings_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotAutomationApi.GetWorkflowIdMappings"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"workflowIds\":[\"12345\",\"67890\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/get_workflow_id_mappings_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_workflow_id_mappings_example_call_tool.py new file mode 100644 index 000000000..035c15c7f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_workflow_id_mappings_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotAutomationApi.GetWorkflowIdMappings" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"workflowIds":["12345","67890"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/get_workflows_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_workflows_example_call_tool.js new file mode 100644 index 000000000..e155339da --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_workflows_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotAutomationApi.GetWorkflows"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"workflow_id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_automation_api/get_workflows_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_workflows_example_call_tool.py new file mode 100644 index 000000000..225ef533e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_automation_api/get_workflows_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotAutomationApi.GetWorkflows" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"workflow_id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/add_hubdb_table_row_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/add_hubdb_table_row_example_call_tool.js new file mode 100644 index 000000000..79daca461 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/add_hubdb_table_row_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.AddHubdbTableRow"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "target_table_id_or_name": "my_table", + "request_body": "{\"column1\":\"value1\",\"column2\":\"value2\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/add_hubdb_table_row_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/add_hubdb_table_row_example_call_tool.py new file mode 100644 index 000000000..62051f1ad --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/add_hubdb_table_row_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.AddHubdbTableRow" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'target_table_id_or_name': 'my_table', + 'request_body': '{"column1":"value1","column2":"value2"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/archive_blog_tags_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/archive_blog_tags_example_call_tool.js new file mode 100644 index 000000000..7c5cfbc67 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/archive_blog_tags_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ArchiveBlogTags"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_tag_identifiers": [ + "tag1", + "tag2", + "tag3" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/archive_blog_tags_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/archive_blog_tags_example_call_tool.py new file mode 100644 index 000000000..7d4a03871 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/archive_blog_tags_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ArchiveBlogTags" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_tag_identifiers': ['tag1', 'tag2', 'tag3'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/archive_hubdb_table_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/archive_hubdb_table_example_call_tool.js new file mode 100644 index 000000000..4f092d0e0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/archive_hubdb_table_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ArchiveHubdbTable"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "hubdb_table_identifier": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/archive_hubdb_table_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/archive_hubdb_table_example_call_tool.py new file mode 100644 index 000000000..c52abf089 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/archive_hubdb_table_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ArchiveHubdbTable" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'hubdb_table_identifier': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_author_to_multilang_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_author_to_multilang_group_example_call_tool.js new file mode 100644 index 000000000..bab7a4bb1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_author_to_multilang_group_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.AttachAuthorToMultilangGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "author_object_id": "12345", + "designated_language": "en", + "primary_language_object_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_author_to_multilang_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_author_to_multilang_group_example_call_tool.py new file mode 100644 index 000000000..c60c97d0b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_author_to_multilang_group_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.AttachAuthorToMultilangGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'author_object_id': '12345', 'designated_language': 'en', 'primary_language_object_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_blog_post_to_language_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_blog_post_to_language_group_example_call_tool.js new file mode 100644 index 000000000..a34cef23d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_blog_post_to_language_group_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.AttachBlogPostToLanguageGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "designated_language": "fr", + "object_id": "12345", + "primary_language_object_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_blog_post_to_language_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_blog_post_to_language_group_example_call_tool.py new file mode 100644 index 000000000..adcad3230 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_blog_post_to_language_group_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.AttachBlogPostToLanguageGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'designated_language': 'fr', 'object_id': '12345', 'primary_language_object_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_blog_to_language_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_blog_to_language_group_example_call_tool.js new file mode 100644 index 000000000..23fb44922 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_blog_to_language_group_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.AttachBlogToLanguageGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "designated_language": "fr", + "object_id_to_add": "12345", + "primary_language_object_id": "67890", + "primary_language": "en" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_blog_to_language_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_blog_to_language_group_example_call_tool.py new file mode 100644 index 000000000..2331ab750 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_blog_to_language_group_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.AttachBlogToLanguageGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'designated_language': 'fr', + 'object_id_to_add': '12345', + 'primary_language_object_id': '67890', + 'primary_language': 'en' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_landing_page_to_language_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_landing_page_to_language_group_example_call_tool.js new file mode 100644 index 000000000..4444ecaa6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_landing_page_to_language_group_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.AttachLandingPageToLanguageGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "designated_language_to_add": "fr", + "object_id_for_language_group": "12345", + "primary_language_object_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_landing_page_to_language_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_landing_page_to_language_group_example_call_tool.py new file mode 100644 index 000000000..742148f84 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_landing_page_to_language_group_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.AttachLandingPageToLanguageGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'designated_language_to_add': 'fr', + 'object_id_for_language_group': '12345', + 'primary_language_object_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_page_to_language_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_page_to_language_group_example_call_tool.js new file mode 100644 index 000000000..b9adb4360 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_page_to_language_group_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.AttachPageToLanguageGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_id_to_add_to_language_group": "page123", + "page_language": "fr", + "primary_language_object_id": "lang456", + "primary_language_of_group": "en" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_page_to_language_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_page_to_language_group_example_call_tool.py new file mode 100644 index 000000000..364531df1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_page_to_language_group_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.AttachPageToLanguageGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_id_to_add_to_language_group': 'page123', + 'page_language': 'fr', + 'primary_language_object_id': 'lang456', + 'primary_language_of_group': 'en' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_tag_to_language_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_tag_to_language_group_example_call_tool.js new file mode 100644 index 000000000..f25a8a089 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_tag_to_language_group_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.AttachTagToLanguageGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "designated_language": "fr", + "object_id_for_multilanguage_group": "12345", + "primary_language_object_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_tag_to_language_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_tag_to_language_group_example_call_tool.py new file mode 100644 index 000000000..89f85c0ea --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/attach_tag_to_language_group_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.AttachTagToLanguageGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'designated_language': 'fr', + 'object_id_for_multilanguage_group': '12345', + 'primary_language_object_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/batch_update_table_rows_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/batch_update_table_rows_hubspot_example_call_tool.js new file mode 100644 index 000000000..0eda5146f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/batch_update_table_rows_hubspot_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.BatchUpdateTableRowsHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "table_id_or_name": "my_table", + "request_body": "{\"rows\":[{\"id\":\"1\",\"data\":{\"field\":\"value1\"}},{\"id\":\"2\",\"data\":{\"field\":\"value2\"}}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/batch_update_table_rows_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/batch_update_table_rows_hubspot_example_call_tool.py new file mode 100644 index 000000000..bcb06df26 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/batch_update_table_rows_hubspot_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.BatchUpdateTableRowsHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'table_id_or_name': 'my_table', + 'request_body': '{"rows":[{"id":"1","data":{"field":"value1"}},{"id":"2","data":{"field":"value2"}}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/check_extraction_status_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/check_extraction_status_example_call_tool.js new file mode 100644 index 000000000..91a1fd880 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/check_extraction_status_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CheckExtractionStatus"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "extraction_task_id": 12345 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/check_extraction_status_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/check_extraction_status_example_call_tool.py new file mode 100644 index 000000000..53f4d00ee --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/check_extraction_status_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CheckExtractionStatus" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'extraction_task_id': 12345 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_blog_post_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_blog_post_example_call_tool.js new file mode 100644 index 000000000..694b0cfdc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_blog_post_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CloneBlogPost"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345", + "cloned_blog_post_name": "Copy of My First Blog Post" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_blog_post_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_blog_post_example_call_tool.py new file mode 100644 index 000000000..5ce573042 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_blog_post_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CloneBlogPost" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345', 'cloned_blog_post_name': 'Copy of My First Blog Post' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_draft_table_rows_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_draft_table_rows_hubspot_example_call_tool.js new file mode 100644 index 000000000..cb3ea0886 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_draft_table_rows_hubspot_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CloneDraftTableRowsHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "hubdb_table_id_or_name": "12345", + "request_body": "{\"row_ids\":[\"row1\",\"row2\",\"row3\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_draft_table_rows_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_draft_table_rows_hubspot_example_call_tool.py new file mode 100644 index 000000000..0c733ed20 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_draft_table_rows_hubspot_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CloneDraftTableRowsHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'hubdb_table_id_or_name': '12345', + 'request_body': '{"row_ids":["row1","row2","row3"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_hubdb_draft_row_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_hubdb_draft_row_example_call_tool.js new file mode 100644 index 000000000..a926d3659 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_hubdb_draft_row_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CloneHubdbDraftRow"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "row_id_to_clone": "12345", + "table_id_or_name": "my_table", + "new_row_name": "Cloned Row 1" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_hubdb_draft_row_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_hubdb_draft_row_example_call_tool.py new file mode 100644 index 000000000..8184c5d77 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_hubdb_draft_row_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CloneHubdbDraftRow" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'row_id_to_clone': '12345', 'table_id_or_name': 'my_table', 'new_row_name': 'Cloned Row 1' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_hubdb_table_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_hubdb_table_example_call_tool.js new file mode 100644 index 000000000..827704535 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_hubdb_table_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CloneHubdbTable"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "copy_rows": true, + "is_hubspot_defined": false, + "source_table_id_or_name": "existing_table_123", + "new_table_label": "Draft of Existing Table", + "new_table_name": "cloned_table_draft" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_hubdb_table_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_hubdb_table_example_call_tool.py new file mode 100644 index 000000000..398c1f14d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_hubdb_table_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CloneHubdbTable" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'copy_rows': True, + 'is_hubspot_defined': False, + 'source_table_id_or_name': 'existing_table_123', + 'new_table_label': 'Draft of Existing Table', + 'new_table_name': 'cloned_table_draft' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_landing_page_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_landing_page_hubspot_example_call_tool.js new file mode 100644 index 000000000..53ea9e405 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_landing_page_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CloneLandingPageHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345", + "cloned_landing_page_name": "Copy of Landing Page 1" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_landing_page_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_landing_page_hubspot_example_call_tool.py new file mode 100644 index 000000000..e0eb8a89d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_landing_page_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CloneLandingPageHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345', 'cloned_landing_page_name': 'Copy of Landing Page 1' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_site_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_site_page_example_call_tool.js new file mode 100644 index 000000000..3b1b4fa13 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_site_page_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CloneSitePage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_id_to_clone": "12345", + "clone_name": "Cloned Page - 2023" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_site_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_site_page_example_call_tool.py new file mode 100644 index 000000000..1a5e7d5d0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/clone_site_page_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CloneSitePage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_id_to_clone': '12345', 'clone_name': 'Cloned Page - 2023' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_ab_test_variation_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_ab_test_variation_example_call_tool.js new file mode 100644 index 000000000..fe3e170e8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_ab_test_variation_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateAbTestVariation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "ab_test_variation_name": "Variation A", + "object_test_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_ab_test_variation_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_ab_test_variation_example_call_tool.py new file mode 100644 index 000000000..a34c82f52 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_ab_test_variation_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateAbTestVariation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'ab_test_variation_name': 'Variation A', 'object_test_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_attention_span_event_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_attention_span_event_example_call_tool.js new file mode 100644 index 000000000..17a42f520 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_attention_span_event_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateAttentionSpanEvent"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"eventType\":\"view\",\"duration\":120,\"mediaId\":\"abc123\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_attention_span_event_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_attention_span_event_example_call_tool.py new file mode 100644 index 000000000..f3277b1a2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_attention_span_event_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateAttentionSpanEvent" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"eventType":"view","duration":120,"mediaId":"abc123"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_batch_blog_posts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_batch_blog_posts_example_call_tool.js new file mode 100644 index 000000000..062770a1f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_batch_blog_posts_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateBatchBlogPosts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"posts\":[{\"title\":\"First Blog Post\",\"content\":\"This is the content of the first blog post.\"},{\"title\":\"Second Blog Post\",\"content\":\"This is the content of the second blog post.\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_batch_blog_posts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_batch_blog_posts_example_call_tool.py new file mode 100644 index 000000000..323ba0204 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_batch_blog_posts_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateBatchBlogPosts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"posts":[{"title":"First Blog Post","content":"This is the content of the ' + 'first blog post."},{"title":"Second Blog Post","content":"This is the content ' + 'of the second blog post."}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_author_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_author_example_call_tool.js new file mode 100644 index 000000000..856c45735 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_author_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateBlogAuthor"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"name\":\"John Doe\",\"bio\":\"Tech blogger and software engineer.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_author_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_author_example_call_tool.py new file mode 100644 index 000000000..c9b47bbc0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_author_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateBlogAuthor" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"name":"John Doe","bio":"Tech blogger and software engineer."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_author_language_variation_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_author_language_variation_example_call_tool.js new file mode 100644 index 000000000..490501252 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_author_language_variation_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateBlogAuthorLanguageVariation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"authorId\":\"12345\",\"language\":\"es\",\"variation\":\"Texto de ejemplo\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_author_language_variation_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_author_language_variation_example_call_tool.py new file mode 100644 index 000000000..6efdf7f55 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_author_language_variation_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateBlogAuthorLanguageVariation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"authorId":"12345","language":"es","variation":"Texto de ejemplo"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_authors_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_authors_batch_example_call_tool.js new file mode 100644 index 000000000..7bc158d93 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_authors_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateBlogAuthorsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "[{\"name\":\"John Doe\",\"email\":\"john@example.com\"},{\"name\":\"Jane Smith\",\"email\":\"jane@example.com\"}]" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_authors_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_authors_batch_example_call_tool.py new file mode 100644 index 000000000..578edf9a9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_authors_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateBlogAuthorsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '[{"name":"John Doe","email":"john@example.com"},{"name":"Jane ' + 'Smith","email":"jane@example.com"}]' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_language_variation_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_language_variation_example_call_tool.js new file mode 100644 index 000000000..f18535f6c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_language_variation_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateBlogLanguageVariation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_id": "12345", + "blog_slug": "my-blog", + "target_language_for_blog_variant": "es" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_language_variation_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_language_variation_example_call_tool.py new file mode 100644 index 000000000..b712191d0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_language_variation_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateBlogLanguageVariation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_id': '12345', 'blog_slug': 'my-blog', 'target_language_for_blog_variant': 'es' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_post_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_post_example_call_tool.js new file mode 100644 index 000000000..e0d6e72f3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_post_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateBlogPost"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"title\":\"My First Blog Post\",\"content\":\"This is the content of my first blog post.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_post_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_post_example_call_tool.py new file mode 100644 index 000000000..1cd1dd8e5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_post_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateBlogPost" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"title":"My First Blog Post","content":"This is the content of my first blog ' + 'post."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tag_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tag_example_call_tool.js new file mode 100644 index 000000000..5ab871ed6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tag_example_call_tool.js @@ -0,0 +1,37 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateBlogTag"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_tag_unique_id": "tag-12345", + "creation_timestamp": "2023-10-01T12:00:00Z", + "deletion_timestamp": "2023-10-31T12:00:00Z", + "language_code": "en", + "primary_tag_translation_id": 1, + "tag_name": "Tech", + "updated_timestamp": "2023-10-15T12:00:00Z" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tag_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tag_example_call_tool.py new file mode 100644 index 000000000..defe15ae0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tag_example_call_tool.py @@ -0,0 +1,35 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateBlogTag" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_tag_unique_id': 'tag-12345', + 'creation_timestamp': '2023-10-01T12:00:00Z', + 'deletion_timestamp': '2023-10-31T12:00:00Z', + 'language_code': 'en', + 'primary_tag_translation_id': 1, + 'tag_name': 'Tech', + 'updated_timestamp': '2023-10-15T12:00:00Z' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tag_language_variation_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tag_language_variation_example_call_tool.js new file mode 100644 index 000000000..dcec8c000 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tag_language_variation_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateBlogTagLanguageVariation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_tag_id": "12345", + "new_blog_tag_name": "Tech", + "target_language_for_blog_tag_variation": "fr" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tag_language_variation_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tag_language_variation_example_call_tool.py new file mode 100644 index 000000000..0fb16b69d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tag_language_variation_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateBlogTagLanguageVariation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_tag_id': '12345', + 'new_blog_tag_name': 'Tech', + 'target_language_for_blog_tag_variation': 'fr' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tags_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tags_batch_example_call_tool.js new file mode 100644 index 000000000..323e5472f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tags_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateBlogTagsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"tags\":[{\"name\":\"Tech\"},{\"name\":\"Health\"},{\"name\":\"Travel\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tags_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tags_batch_example_call_tool.py new file mode 100644 index 000000000..3dea415ce --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_blog_tags_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateBlogTagsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"tags":[{"name":"Tech"},{"name":"Health"},{"name":"Travel"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_draft_table_rows_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_draft_table_rows_example_call_tool.js new file mode 100644 index 000000000..703b6e5eb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_draft_table_rows_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateDraftTableRows"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "table_id_or_name": "contacts_table", + "request_body": "[{\"name\":\"John Doe\",\"email\":\"john@example.com\"},{\"name\":\"Jane Smith\",\"email\":\"jane@example.com\"}]" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_draft_table_rows_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_draft_table_rows_example_call_tool.py new file mode 100644 index 000000000..b28fd8c03 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_draft_table_rows_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateDraftTableRows" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'table_id_or_name': 'contacts_table', + 'request_body': '[{"name":"John Doe","email":"john@example.com"},{"name":"Jane ' + 'Smith","email":"jane@example.com"}]' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_hubdb_table_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_hubdb_table_example_call_tool.js new file mode 100644 index 000000000..2bd342d8b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_hubdb_table_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateHubdbTable"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"name\":\"unique_table_name\",\"label\":\"Unique Table Label\",\"columns\":[{\"name\":\"column1\",\"type\":\"text\"},{\"name\":\"column2\",\"type\":\"number\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_hubdb_table_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_hubdb_table_example_call_tool.py new file mode 100644 index 000000000..085fec0e7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_hubdb_table_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateHubdbTable" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"name":"unique_table_name","label":"Unique Table ' + 'Label","columns":[{"name":"column1","type":"text"},{"name":"column2","type":"number"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_example_call_tool.js new file mode 100644 index 000000000..4bd2dfaf6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateLandingPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"title\":\"Sample Landing Page\",\"content\":\"[page_content]\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_example_call_tool.py new file mode 100644 index 000000000..429d4d321 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateLandingPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"title":"Sample Landing Page","content":"[page_content]"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_folder_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_folder_example_call_tool.js new file mode 100644 index 000000000..4dd0cd941 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_folder_example_call_tool.js @@ -0,0 +1,37 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateLandingPageFolder"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "deletion_timestamp": "", + "folder_category": 1, + "folder_creation_date": "2023-10-01T12:00:00Z", + "folder_name": "New Landing Page Folder", + "folder_unique_id": "folder-12345", + "parent_folder_id": 0, + "updated_timestamp": "2023-10-01T12:00:00Z" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_folder_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_folder_example_call_tool.py new file mode 100644 index 000000000..8aa58e65b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_folder_example_call_tool.py @@ -0,0 +1,35 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateLandingPageFolder" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'deletion_timestamp': '', + 'folder_category': 1, + 'folder_creation_date': '2023-10-01T12:00:00Z', + 'folder_name': 'New Landing Page Folder', + 'folder_unique_id': 'folder-12345', + 'parent_folder_id': 0, + 'updated_timestamp': '2023-10-01T12:00:00Z' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_folders_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_folders_example_call_tool.js new file mode 100644 index 000000000..45d11dcd6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_folders_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateLandingPageFolders"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"folders\":[{\"name\":\"Landing Page 1\",\"description\":\"First landing page folder\"},{\"name\":\"Landing Page 2\",\"description\":\"Second landing page folder\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_folders_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_folders_example_call_tool.py new file mode 100644 index 000000000..ba3a2d243 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_page_folders_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateLandingPageFolders" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"folders":[{"name":"Landing Page 1","description":"First landing page ' + 'folder"},{"name":"Landing Page 2","description":"Second landing page ' + 'folder"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_pages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_pages_example_call_tool.js new file mode 100644 index 000000000..8b6149ce4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_pages_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateLandingPages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"title\":\"Landing Page 1\",\"content\":\"[file_content]\",\"url\":\"/landing-page-1\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_pages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_pages_example_call_tool.py new file mode 100644 index 000000000..aa67aa678 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_landing_pages_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateLandingPages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"title":"Landing Page 1","content":"[file_content]","url":"/landing-page-1"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_language_variation_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_language_variation_example_call_tool.js new file mode 100644 index 000000000..9d884c557 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_language_variation_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateLanguageVariation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "content_id_to_clone": "12345", + "target_language": "fr" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_language_variation_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_language_variation_example_call_tool.py new file mode 100644 index 000000000..20c0f1fdd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_language_variation_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateLanguageVariation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'content_id_to_clone': '12345', 'target_language': 'fr' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_media_played_event_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_media_played_event_example_call_tool.js new file mode 100644 index 000000000..49f095ec4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_media_played_event_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateMediaPlayedEvent"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"userId\":\"12345\",\"mediaId\":\"abcde\",\"timestamp\":\"2023-10-01T12:00:00Z\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_media_played_event_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_media_played_event_example_call_tool.py new file mode 100644 index 000000000..284140f38 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_media_played_event_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateMediaPlayedEvent" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"userId":"12345","mediaId":"abcde","timestamp":"2023-10-01T12:00:00Z"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_multilanguage_landing_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_multilanguage_landing_page_example_call_tool.js new file mode 100644 index 000000000..f04910888 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_multilanguage_landing_page_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateMultilanguageLandingPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "content_id_to_clone": "12345", + "target_language": "fr" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_multilanguage_landing_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_multilanguage_landing_page_example_call_tool.py new file mode 100644 index 000000000..2ef83d77c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_multilanguage_landing_page_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateMultilanguageLandingPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'content_id_to_clone': '12345', 'target_language': 'fr' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_site_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_site_page_example_call_tool.js new file mode 100644 index 000000000..e73eee095 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_site_page_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateSitePage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"title\":\"New Page\",\"slug\":\"new-page\",\"content\":\"[file_content]\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_site_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_site_page_example_call_tool.py new file mode 100644 index 000000000..5aca85811 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_site_page_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateSitePage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"title":"New Page","slug":"new-page","content":"[file_content]"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_site_pages_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_site_pages_batch_example_call_tool.js new file mode 100644 index 000000000..29955a824 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_site_pages_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateSitePagesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"pages\":[{\"title\":\"Home\",\"content\":\"Welcome to our site!\"},{\"title\":\"About\",\"content\":\"About us page content.\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_site_pages_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_site_pages_batch_example_call_tool.py new file mode 100644 index 000000000..2d9c585f0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_site_pages_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateSitePagesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"pages":[{"title":"Home","content":"Welcome to our ' + 'site!"},{"title":"About","content":"About us page content."}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_url_redirect_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_url_redirect_example_call_tool.js new file mode 100644 index 000000000..eb3c8c6e8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_url_redirect_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.CreateUrlRedirect"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "redirect_destination_url": "https://www.example.com/new-page", + "redirect_style": 301, + "route_prefix": "/old-page", + "apply_only_after_not_found": false, + "enable_pattern_matching": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/create_url_redirect_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_url_redirect_example_call_tool.py new file mode 100644 index 000000000..947087511 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/create_url_redirect_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.CreateUrlRedirect" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'redirect_destination_url': 'https://www.example.com/new-page', + 'redirect_style': 301, + 'route_prefix': '/old-page', + 'apply_only_after_not_found': False, + 'enable_pattern_matching': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_author_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_author_example_call_tool.js new file mode 100644 index 000000000..98d33b782 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_author_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteBlogAuthor"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_author_id": "12345", + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_author_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_author_example_call_tool.py new file mode 100644 index 000000000..25d20f044 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_author_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteBlogAuthor" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_author_id': '12345', 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_authors_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_authors_example_call_tool.js new file mode 100644 index 000000000..133ead44a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_authors_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteBlogAuthors"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_author_ids": [ + "12345", + "67890" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_authors_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_authors_example_call_tool.py new file mode 100644 index 000000000..6136c0136 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_authors_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteBlogAuthors" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_author_ids': ['12345', '67890'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_post_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_post_example_call_tool.js new file mode 100644 index 000000000..0662c84e1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_post_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteBlogPost"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_ids_to_delete": [ + "12345", + "67890" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_post_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_post_example_call_tool.py new file mode 100644 index 000000000..04398194b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_post_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteBlogPost" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_ids_to_delete': ['12345', '67890'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_tag_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_tag_example_call_tool.js new file mode 100644 index 000000000..5f69a6885 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_tag_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteBlogTag"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_tag_id": "12345", + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_tag_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_tag_example_call_tool.py new file mode 100644 index 000000000..2cec9f0f5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_blog_tag_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteBlogTag" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_tag_id': '12345', 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_cms_site_pages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_cms_site_pages_example_call_tool.js new file mode 100644 index 000000000..4e8d612f8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_cms_site_pages_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteCmsSitePages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "page_ids_to_delete": [ + "12345", + "67890", + "abcde" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_cms_site_pages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_cms_site_pages_example_call_tool.py new file mode 100644 index 000000000..1f416b75a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_cms_site_pages_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteCmsSitePages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'page_ids_to_delete': ['12345', '67890', 'abcde'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_draft_table_row_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_draft_table_row_hubspot_example_call_tool.js new file mode 100644 index 000000000..f2d251e1e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_draft_table_row_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteDraftTableRowHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "row_id": "12345", + "table_id_or_name": "my_draft_table" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_draft_table_row_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_draft_table_row_hubspot_example_call_tool.py new file mode 100644 index 000000000..8df57e2be --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_draft_table_row_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteDraftTableRowHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'row_id': '12345', 'table_id_or_name': 'my_draft_table' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_file_in_cms_environment_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_file_in_cms_environment_example_call_tool.js new file mode 100644 index 000000000..d22f3af84 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_file_in_cms_environment_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteFileInCmsEnvironment"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "file_environment": "draft", + "file_system_location": "/path/to/file.txt" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_file_in_cms_environment_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_file_in_cms_environment_example_call_tool.py new file mode 100644 index 000000000..71a642be2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_file_in_cms_environment_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteFileInCmsEnvironment" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'file_environment': 'draft', 'file_system_location': '/path/to/file.txt' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_example_call_tool.js new file mode 100644 index 000000000..136c97314 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteLandingPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345", + "return_archived_results_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_example_call_tool.py new file mode 100644 index 000000000..6b99615f1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteLandingPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345', 'return_archived_results_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_folder_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_folder_example_call_tool.js new file mode 100644 index 000000000..9bfe357fb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_folder_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteLandingPageFolder"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "folder_id": "12345", + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_folder_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_folder_example_call_tool.py new file mode 100644 index 000000000..ccd4019bb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_folder_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteLandingPageFolder" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'folder_id': '12345', 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_folders_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_folders_example_call_tool.js new file mode 100644 index 000000000..6a19fdf56 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_folders_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteLandingPageFolders"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "folder_identifiers": [ + "folder123", + "folder456" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_folders_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_folders_example_call_tool.py new file mode 100644 index 000000000..34b86e17e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_page_folders_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteLandingPageFolders" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'folder_identifiers': ['folder123', 'folder456'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_pages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_pages_example_call_tool.js new file mode 100644 index 000000000..006481aa0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_pages_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteLandingPages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_ids": [ + "12345", + "67890", + "abcde" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_pages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_pages_example_call_tool.py new file mode 100644 index 000000000..e48371185 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_landing_pages_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteLandingPages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_ids': ['12345', '67890', 'abcde'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_site_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_site_page_example_call_tool.js new file mode 100644 index 000000000..442f9d38c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_site_page_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteSitePage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "site_page_id": "12345", + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_site_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_site_page_example_call_tool.py new file mode 100644 index 000000000..957f001b8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_site_page_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteSitePage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'site_page_id': '12345', 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_table_version_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_table_version_example_call_tool.js new file mode 100644 index 000000000..a7c2ff725 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_table_version_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteTableVersion"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "table_identifier": "my_table", + "table_version_id": 3 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_table_version_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_table_version_example_call_tool.py new file mode 100644 index 000000000..23a0784a9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_table_version_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteTableVersion" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'table_identifier': 'my_table', 'table_version_id': 3 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_url_redirect_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_url_redirect_example_call_tool.js new file mode 100644 index 000000000..5051c792e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_url_redirect_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DeleteUrlRedirect"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "url_redirect_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_url_redirect_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_url_redirect_example_call_tool.py new file mode 100644 index 000000000..64e44a5b7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/delete_url_redirect_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DeleteUrlRedirect" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'url_redirect_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_author_from_lang_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_author_from_lang_group_example_call_tool.js new file mode 100644 index 000000000..da1002589 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_author_from_lang_group_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DetachBlogAuthorFromLangGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "author_id_to_detach": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_author_from_lang_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_author_from_lang_group_example_call_tool.py new file mode 100644 index 000000000..d6b16fd9d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_author_from_lang_group_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DetachBlogAuthorFromLangGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'author_id_to_detach': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_from_language_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_from_language_group_example_call_tool.js new file mode 100644 index 000000000..9b3fefdf0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_from_language_group_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DetachBlogFromLanguageGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_id_to_detach": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_from_language_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_from_language_group_example_call_tool.py new file mode 100644 index 000000000..0caa9a4cd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_from_language_group_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DetachBlogFromLanguageGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_id_to_detach': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_post_language_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_post_language_group_example_call_tool.js new file mode 100644 index 000000000..636afc743 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_post_language_group_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DetachBlogPostLanguageGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_id_to_detach_from_language_group": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_post_language_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_post_language_group_example_call_tool.py new file mode 100644 index 000000000..2eeae17ff --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_post_language_group_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DetachBlogPostLanguageGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_id_to_detach_from_language_group': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_tag_from_language_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_tag_from_language_group_example_call_tool.js new file mode 100644 index 000000000..135c5bee3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_tag_from_language_group_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DetachBlogTagFromLanguageGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_tag_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_tag_from_language_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_tag_from_language_group_example_call_tool.py new file mode 100644 index 000000000..db43f67d4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_blog_tag_from_language_group_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DetachBlogTagFromLanguageGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_tag_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_landing_page_from_language_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_landing_page_from_language_group_example_call_tool.js new file mode 100644 index 000000000..b66c08d33 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_landing_page_from_language_group_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DetachLandingPageFromLanguageGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_landing_page_from_language_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_landing_page_from_language_group_example_call_tool.py new file mode 100644 index 000000000..06d8ce29a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_landing_page_from_language_group_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DetachLandingPageFromLanguageGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_site_page_from_language_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_site_page_from_language_group_example_call_tool.js new file mode 100644 index 000000000..fbe8f6afb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_site_page_from_language_group_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DetachSitePageFromLanguageGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_id_to_detach": "page_12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_site_page_from_language_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_site_page_from_language_group_example_call_tool.py new file mode 100644 index 000000000..cce81db17 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/detach_site_page_from_language_group_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DetachSitePageFromLanguageGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_id_to_detach': 'page_12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/download_file_from_hubspot_cms_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/download_file_from_hubspot_cms_example_call_tool.js new file mode 100644 index 000000000..d1bbaf0c3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/download_file_from_hubspot_cms_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.DownloadFileFromHubspotCms"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "file_environment": "published", + "file_system_path": "/assets/images/sample.png" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/download_file_from_hubspot_cms_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/download_file_from_hubspot_cms_example_call_tool.py new file mode 100644 index 000000000..2e483596d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/download_file_from_hubspot_cms_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.DownloadFileFromHubspotCms" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'file_environment': 'published', 'file_system_path': '/assets/images/sample.png' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/end_ab_test_select_winner_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/end_ab_test_select_winner_example_call_tool.js new file mode 100644 index 000000000..47c06cf9e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/end_ab_test_select_winner_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.EndAbTestSelectWinner"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "test_id_to_end": "test_12345", + "winner_object_id": "variant_A" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/end_ab_test_select_winner_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/end_ab_test_select_winner_example_call_tool.py new file mode 100644 index 000000000..55f5d5699 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/end_ab_test_select_winner_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.EndAbTestSelectWinner" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'test_id_to_end': 'test_12345', 'winner_object_id': 'variant_A' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/end_active_ab_test_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/end_active_ab_test_example_call_tool.js new file mode 100644 index 000000000..b421e6296 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/end_active_ab_test_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.EndActiveAbTest"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "test_id_to_end": "ab_test_123", + "winner_id": "variant_a" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/end_active_ab_test_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/end_active_ab_test_example_call_tool.py new file mode 100644 index 000000000..681b78e14 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/end_active_ab_test_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.EndActiveAbTest" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'test_id_to_end': 'ab_test_123', 'winner_id': 'variant_a' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/export_hubdb_draft_table_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/export_hubdb_draft_table_example_call_tool.js new file mode 100644 index 000000000..db2a054ab --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/export_hubdb_draft_table_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ExportHubdbDraftTable"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "table_id_or_name": "my_draft_table", + "export_file_format": "CSV" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/export_hubdb_draft_table_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/export_hubdb_draft_table_example_call_tool.py new file mode 100644 index 000000000..80d810670 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/export_hubdb_draft_table_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ExportHubdbDraftTable" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'table_id_or_name': 'my_draft_table', 'export_file_format': 'CSV' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/export_table_from_hubdb_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/export_table_from_hubdb_example_call_tool.js new file mode 100644 index 000000000..0e2f825fc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/export_table_from_hubdb_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ExportTableFromHubdb"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "hubdb_table_id_or_name": "12345", + "file_format_to_export": "CSV" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/export_table_from_hubdb_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/export_table_from_hubdb_example_call_tool.py new file mode 100644 index 000000000..9568462d2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/export_table_from_hubdb_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ExportTableFromHubdb" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'hubdb_table_id_or_name': '12345', 'file_format_to_export': 'CSV' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/extract_zip_file_async_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/extract_zip_file_async_example_call_tool.js new file mode 100644 index 000000000..13618a156 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/extract_zip_file_async_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ExtractZipFileAsync"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "zip_file_path": "/files/example.zip" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/extract_zip_file_async_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/extract_zip_file_async_example_call_tool.py new file mode 100644 index 000000000..b3fd5bcc7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/extract_zip_file_async_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ExtractZipFileAsync" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'zip_file_path': '/files/example.zip' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/fetch_hubdb_table_rows_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/fetch_hubdb_table_rows_example_call_tool.js new file mode 100644 index 000000000..96f48036c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/fetch_hubdb_table_rows_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.FetchHubdbTableRows"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "table_identifier": "my_table", + "include_archived_rows": false, + "maximum_results_limit": 500, + "requested_columns": [ + "name", + "email" + ], + "sort_columns": [ + "-created_at" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/fetch_hubdb_table_rows_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/fetch_hubdb_table_rows_example_call_tool.py new file mode 100644 index 000000000..713dbb3d0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/fetch_hubdb_table_rows_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.FetchHubdbTableRows" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'table_identifier': 'my_table', + 'include_archived_rows': False, + 'maximum_results_limit': 500, + 'requested_columns': ['name', 'email'], + 'sort_columns': ['-created_at'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/fetch_url_redirects_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/fetch_url_redirects_example_call_tool.js new file mode 100644 index 000000000..526a1fbef --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/fetch_url_redirects_example_call_tool.js @@ -0,0 +1,38 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.FetchUrlRedirects"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "created_after_date": "2023-01-01", + "filter_updated_after": "2023-10-01", + "results_per_page_limit": 10, + "return_archived_only": false, + "sort_criteria": [ + "createdAt", + "updatedAt" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/fetch_url_redirects_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/fetch_url_redirects_example_call_tool.py new file mode 100644 index 000000000..56de62f60 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/fetch_url_redirects_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.FetchUrlRedirects" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'created_after_date': '2023-01-01', + 'filter_updated_after': '2023-10-01', + 'results_per_page_limit': 10, + 'return_archived_only': False, + 'sort_criteria': ['createdAt', 'updatedAt'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_all_draft_tables_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_all_draft_tables_details_example_call_tool.js new file mode 100644 index 000000000..5636041dc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_all_draft_tables_details_example_call_tool.js @@ -0,0 +1,38 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetAllDraftTablesDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "content_type": "blog_post", + "created_after_date": "2023-01-01T00:00:00Z", + "include_archived_tables": true, + "maximum_results_limit": 500, + "sort_fields_for_results": [ + "name", + "createdAt" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_all_draft_tables_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_all_draft_tables_details_example_call_tool.py new file mode 100644 index 000000000..2402bc6dc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_all_draft_tables_details_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetAllDraftTablesDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'content_type': 'blog_post', + 'created_after_date': '2023-01-01T00:00:00Z', + 'include_archived_tables': True, + 'maximum_results_limit': 500, + 'sort_fields_for_results': ['name', 'createdAt'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_all_hubdb_tables_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_all_hubdb_tables_example_call_tool.js new file mode 100644 index 000000000..4c9fac184 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_all_hubdb_tables_example_call_tool.js @@ -0,0 +1,38 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetAllHubdbTables"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "content_type_filter": "blog_post", + "created_after": "2023-01-01T00:00:00Z", + "include_archived_tables": true, + "max_table_results": 500, + "sort_fields": [ + "name", + "createdAt" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_all_hubdb_tables_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_all_hubdb_tables_example_call_tool.py new file mode 100644 index 000000000..2a3967be1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_all_hubdb_tables_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetAllHubdbTables" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'content_type_filter': 'blog_post', + 'created_after': '2023-01-01T00:00:00Z', + 'include_archived_tables': True, + 'max_table_results': 500, + 'sort_fields': ['name', 'createdAt'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_author_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_author_by_id_example_call_tool.js new file mode 100644 index 000000000..4256daa2b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_author_by_id_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetBlogAuthorById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_author_id": "12345", + "include_deleted_blog_authors": false, + "specific_author_property": "name" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_author_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_author_by_id_example_call_tool.py new file mode 100644 index 000000000..f12313b0d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_author_by_id_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetBlogAuthorById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_author_id': '12345', + 'include_deleted_blog_authors': False, + 'specific_author_property': 'name' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_authors_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_authors_example_call_tool.js new file mode 100644 index 000000000..309e345b2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_authors_example_call_tool.js @@ -0,0 +1,38 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetBlogAuthors"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "created_after": "2023-01-01T00:00:00Z", + "filter_by_last_updated_before": "2023-10-01T00:00:00Z", + "include_archived_authors": true, + "result_limit": 50, + "sort_fields": [ + "name", + "createdAt" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_authors_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_authors_example_call_tool.py new file mode 100644 index 000000000..d169004c9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_authors_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetBlogAuthors" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'created_after': '2023-01-01T00:00:00Z', + 'filter_by_last_updated_before': '2023-10-01T00:00:00Z', + 'include_archived_authors': True, + 'result_limit': 50, + 'sort_fields': ['name', 'createdAt'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_post_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_post_draft_example_call_tool.js new file mode 100644 index 000000000..8cd53086e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_post_draft_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetBlogPostDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_post_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_post_draft_example_call_tool.py new file mode 100644 index 000000000..d4b7eb070 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_post_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetBlogPostDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_revision_history_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_revision_history_example_call_tool.js new file mode 100644 index 000000000..ffa2d6e0f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_revision_history_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetBlogRevisionHistory"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_id": "12345", + "revision_limit": 10, + "start_date_for_revisions": "2023-01-01" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_revision_history_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_revision_history_example_call_tool.py new file mode 100644 index 000000000..be19168d9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_revision_history_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetBlogRevisionHistory" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_id': '12345', 'revision_limit': 10, 'start_date_for_revisions': '2023-01-01' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_settings_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_settings_example_call_tool.js new file mode 100644 index 000000000..b9b791138 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_settings_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetBlogSettings"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_settings_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_settings_example_call_tool.py new file mode 100644 index 000000000..98df75868 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_settings_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetBlogSettings" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_tags_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_tags_example_call_tool.js new file mode 100644 index 000000000..287134295 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_tags_example_call_tool.js @@ -0,0 +1,38 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetBlogTags"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "additional_properties": "author,views", + "created_after_time": "2023-01-01T00:00:00Z", + "maximum_results_to_return": 50, + "sort_fields_for_results": [ + "name", + "createdAt" + ], + "include_archived_tags": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_tags_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_tags_example_call_tool.py new file mode 100644 index 000000000..81820ad04 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_blog_tags_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetBlogTags" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'additional_properties': 'author,views', + 'created_after_time': '2023-01-01T00:00:00Z', + 'maximum_results_to_return': 50, + 'sort_fields_for_results': ['name', 'createdAt'], + 'include_archived_tags': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_domain_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_domain_by_id_example_call_tool.js new file mode 100644 index 000000000..8e53f710c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_domain_by_id_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetDomainById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "domain_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_domain_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_domain_by_id_example_call_tool.py new file mode 100644 index 000000000..34607bbd8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_domain_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetDomainById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'domain_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_hubdb_table_rows_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_hubdb_table_rows_example_call_tool.js new file mode 100644 index 000000000..7d7752752 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_hubdb_table_rows_example_call_tool.js @@ -0,0 +1,37 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetDraftHubdbTableRows"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "table_id_or_name": "my_table", + "include_archived_rows": false, + "maximum_results_limit": 50, + "sort_columns": [ + "name", + "-date_created" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_hubdb_table_rows_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_hubdb_table_rows_example_call_tool.py new file mode 100644 index 000000000..807ee12dc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_hubdb_table_rows_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetDraftHubdbTableRows" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'table_id_or_name': 'my_table', + 'include_archived_rows': False, + 'maximum_results_limit': 50, + 'sort_columns': ['name', '-date_created'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_table_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_table_details_example_call_tool.js new file mode 100644 index 000000000..ef947508c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_table_details_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetDraftTableDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "table_id_or_name": "example_table", + "include_foreign_ids": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_table_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_table_details_example_call_tool.py new file mode 100644 index 000000000..f1f610f9d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_table_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetDraftTableDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'table_id_or_name': 'example_table', 'include_foreign_ids': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_table_row_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_table_row_by_id_example_call_tool.js new file mode 100644 index 000000000..f624a89f9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_table_row_by_id_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetDraftTableRowById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "row_id": "12345", + "table_identifier": "my_table", + "include_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_table_row_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_table_row_by_id_example_call_tool.py new file mode 100644 index 000000000..dce1c956e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_draft_table_row_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetDraftTableRowById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'row_id': '12345', 'table_identifier': 'my_table', 'include_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_existing_domains_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_existing_domains_example_call_tool.js new file mode 100644 index 000000000..0de1e5322 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_existing_domains_example_call_tool.js @@ -0,0 +1,37 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetExistingDomains"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "created_at_date_filter": "2023-10-01", + "maximum_results_per_page": 10, + "return_archived": false, + "sort_criteria": [ + "createdAt", + "updatedAt" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_existing_domains_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_existing_domains_example_call_tool.py new file mode 100644 index 000000000..1bdcce3e7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_existing_domains_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetExistingDomains" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'created_at_date_filter': '2023-10-01', + 'maximum_results_per_page': 10, + 'return_archived': False, + 'sort_criteria': ['createdAt', 'updatedAt'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_file_metadata_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_file_metadata_example_call_tool.js new file mode 100644 index 000000000..38c1cc4ce --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_file_metadata_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetFileMetadata"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "file_environment": "published", + "file_path": "/assets/images/logo.png", + "include_properties": "size,type" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_file_metadata_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_file_metadata_example_call_tool.py new file mode 100644 index 000000000..f0a7b9fc2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_file_metadata_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetFileMetadata" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'file_environment': 'published', + 'file_path': '/assets/images/logo.png', + 'include_properties': 'size,type' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_hubdb_draft_rows_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_hubdb_draft_rows_example_call_tool.js new file mode 100644 index 000000000..5bda89a2d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_hubdb_draft_rows_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetHubdbDraftRows"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "row_ids": [ + "123", + "456", + "789" + ], + "table_id_or_name": "my_table" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_hubdb_draft_rows_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_hubdb_draft_rows_example_call_tool.py new file mode 100644 index 000000000..e0ba48b0f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_hubdb_draft_rows_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetHubdbDraftRows" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'row_ids': ['123', '456', '789'], 'table_id_or_name': 'my_table' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_hubdb_table_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_hubdb_table_details_example_call_tool.js new file mode 100644 index 000000000..b763fce01 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_hubdb_table_details_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetHubdbTableDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "table_id_or_name": "example_table", + "get_localized_schema": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_hubdb_table_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_hubdb_table_details_example_call_tool.py new file mode 100644 index 000000000..304cf3edd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_hubdb_table_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetHubdbTableDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'table_id_or_name': 'example_table', 'get_localized_schema': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_by_id_example_call_tool.js new file mode 100644 index 000000000..d2762c1f4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_by_id_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetLandingPageById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345", + "include_archived": false, + "landing_page_property": "title" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_by_id_example_call_tool.py new file mode 100644 index 000000000..a20c870ad --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetLandingPageById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345', 'include_archived': False, 'landing_page_property': 'title' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_draft_example_call_tool.js new file mode 100644 index 000000000..fa3820ca5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_draft_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetLandingPageDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_draft_example_call_tool.py new file mode 100644 index 000000000..c3790e63f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetLandingPageDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_folder_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_folder_by_id_example_call_tool.js new file mode 100644 index 000000000..8345cb15a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_folder_by_id_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetLandingPageFolderById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "folder_id": "12345", + "filter_by_property": "name", + "include_archived_folders": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_folder_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_folder_by_id_example_call_tool.py new file mode 100644 index 000000000..cb58df357 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_folder_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetLandingPageFolderById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'folder_id': '12345', 'filter_by_property': 'name', 'include_archived_folders': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_folders_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_folders_example_call_tool.js new file mode 100644 index 000000000..64707a875 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_folders_example_call_tool.js @@ -0,0 +1,38 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetLandingPageFolders"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "created_after": "2023-01-01T00:00:00Z", + "folder_property": "name,createdAt", + "include_deleted_folders": true, + "max_results_limit": 50, + "sort_criteria": [ + "name", + "createdAt" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_folders_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_folders_example_call_tool.py new file mode 100644 index 000000000..bec576d54 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_folders_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetLandingPageFolders" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'created_after': '2023-01-01T00:00:00Z', + 'folder_property': 'name,createdAt', + 'include_deleted_folders': True, + 'max_results_limit': 50, + 'sort_criteria': ['name', 'createdAt'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_previous_versions_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_previous_versions_example_call_tool.js new file mode 100644 index 000000000..f163f5e84 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_previous_versions_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetLandingPagePreviousVersions"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345", + "max_results": 10 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_previous_versions_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_previous_versions_example_call_tool.py new file mode 100644 index 000000000..267cf5e04 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_page_previous_versions_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetLandingPagePreviousVersions" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345', 'max_results': 10 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_pages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_pages_example_call_tool.js new file mode 100644 index 000000000..5ce3d18b7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_pages_example_call_tool.js @@ -0,0 +1,37 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetLandingPages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "created_after": "2023-01-01T00:00:00Z", + "max_results": 50, + "sort_fields_for_results": [ + "name", + "createdAt" + ], + "include_archived_pages": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_pages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_pages_example_call_tool.py new file mode 100644 index 000000000..0b94ef388 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_landing_pages_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetLandingPages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'created_after': '2023-01-01T00:00:00Z', + 'max_results': 50, + 'sort_fields_for_results': ['name', 'createdAt'], + 'include_archived_pages': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_blog_post_versions_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_blog_post_versions_example_call_tool.js new file mode 100644 index 000000000..645a25442 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_blog_post_versions_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetPreviousBlogPostVersions"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345", + "before_timestamp": "2023-10-01T00:00:00Z", + "maximum_results_limit": 10 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_blog_post_versions_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_blog_post_versions_example_call_tool.py new file mode 100644 index 000000000..7788a32d6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_blog_post_versions_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetPreviousBlogPostVersions" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345', 'before_timestamp': '2023-10-01T00:00:00Z', 'maximum_results_limit': 10 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_folder_versions_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_folder_versions_example_call_tool.js new file mode 100644 index 000000000..2c79cd7af --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_folder_versions_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetPreviousFolderVersions"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "folder_id": "12345", + "max_results": 50 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_folder_versions_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_folder_versions_example_call_tool.py new file mode 100644 index 000000000..1d5817de7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_folder_versions_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetPreviousFolderVersions" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'folder_id': '12345', 'max_results': 50 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_site_page_versions_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_site_page_versions_example_call_tool.js new file mode 100644 index 000000000..e60b8ce66 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_site_page_versions_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetPreviousSitePageVersions"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "site_page_id": "12345", + "max_results_limit": 50 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_site_page_versions_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_site_page_versions_example_call_tool.py new file mode 100644 index 000000000..ae5dacc04 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_previous_site_page_versions_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetPreviousSitePageVersions" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'site_page_id': '12345', 'max_results_limit': 50 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_site_page_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_site_page_draft_example_call_tool.js new file mode 100644 index 000000000..b22084b15 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_site_page_draft_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetSitePageDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "site_page_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_site_page_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_site_page_draft_example_call_tool.py new file mode 100644 index 000000000..16eb5da54 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_site_page_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetSitePageDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'site_page_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_site_pages_list_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_site_pages_list_example_call_tool.js new file mode 100644 index 000000000..1be4046d8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_site_pages_list_example_call_tool.js @@ -0,0 +1,38 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetSitePagesList"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "created_before_date_time": "2023-10-01T00:00:00Z", + "filter_created_after": "2023-09-01T00:00:00Z", + "include_deleted_site_pages": true, + "maximum_results": 50, + "sort_fields_for_results": [ + "name", + "createdAt" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_site_pages_list_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_site_pages_list_example_call_tool.py new file mode 100644 index 000000000..bad4a4006 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_site_pages_list_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetSitePagesList" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'created_before_date_time': '2023-10-01T00:00:00Z', + 'filter_created_after': '2023-09-01T00:00:00Z', + 'include_deleted_site_pages': True, + 'maximum_results': 50, + 'sort_fields_for_results': ['name', 'createdAt'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_table_row_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_table_row_example_call_tool.js new file mode 100644 index 000000000..2b1fe39c9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_table_row_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetTableRow"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "row_id": "12345", + "table_id_or_name": "my_table", + "archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_table_row_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_table_row_example_call_tool.py new file mode 100644 index 000000000..59808d235 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_table_row_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetTableRow" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'row_id': '12345', 'table_id_or_name': 'my_table', 'archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_url_redirect_details_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_url_redirect_details_by_id_example_call_tool.js new file mode 100644 index 000000000..cc4eaf4d3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_url_redirect_details_by_id_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.GetUrlRedirectDetailsById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "url_redirect_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/get_url_redirect_details_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_url_redirect_details_by_id_example_call_tool.py new file mode 100644 index 000000000..5180a93bb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/get_url_redirect_details_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.GetUrlRedirectDetailsById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'url_redirect_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/new_ab_test_variation_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/new_ab_test_variation_example_call_tool.js new file mode 100644 index 000000000..5ffe79e1c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/new_ab_test_variation_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.NewAbTestVariation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "ab_test_variation_name": "Homepage Variation 1", + "object_id_to_test": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/new_ab_test_variation_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/new_ab_test_variation_example_call_tool.py new file mode 100644 index 000000000..3b3e7b5ce --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/new_ab_test_variation_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.NewAbTestVariation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'ab_test_variation_name': 'Homepage Variation 1', 'object_id_to_test': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/new_language_blog_variation_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/new_language_blog_variation_example_call_tool.js new file mode 100644 index 000000000..c445948ed --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/new_language_blog_variation_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.NewLanguageBlogVariation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345", + "target_language": "fr" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/new_language_blog_variation_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/new_language_blog_variation_example_call_tool.py new file mode 100644 index 000000000..8d250202b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/new_language_blog_variation_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.NewLanguageBlogVariation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345', 'target_language': 'fr' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/permanently_delete_hubdb_draft_rows_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/permanently_delete_hubdb_draft_rows_example_call_tool.js new file mode 100644 index 000000000..0baa94ae5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/permanently_delete_hubdb_draft_rows_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.PermanentlyDeleteHubdbDraftRows"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "row_ids_to_delete": [ + 1, + 2, + 3 + ], + "table_id_or_name": "my_table" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/permanently_delete_hubdb_draft_rows_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/permanently_delete_hubdb_draft_rows_example_call_tool.py new file mode 100644 index 000000000..e0c9bfa01 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/permanently_delete_hubdb_draft_rows_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.PermanentlyDeleteHubdbDraftRows" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'row_ids_to_delete': [1, 2, 3], 'table_id_or_name': 'my_table' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_blog_post_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_blog_post_example_call_tool.js new file mode 100644 index 000000000..3d544c6b2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_blog_post_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.PublishBlogPost"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_blog_post_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_blog_post_example_call_tool.py new file mode 100644 index 000000000..2645967d0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_blog_post_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.PublishBlogPost" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_landing_page_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_landing_page_draft_example_call_tool.js new file mode 100644 index 000000000..ee6bd7867 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_landing_page_draft_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.PublishLandingPageDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_landing_page_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_landing_page_draft_example_call_tool.py new file mode 100644 index 000000000..60866d670 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_landing_page_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.PublishLandingPageDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_site_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_site_page_example_call_tool.js new file mode 100644 index 000000000..9668cbc56 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_site_page_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.PublishSitePage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "site_page_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_site_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_site_page_example_call_tool.py new file mode 100644 index 000000000..52a3ec6ad --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_site_page_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.PublishSitePage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'site_page_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_table_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_table_draft_example_call_tool.js new file mode 100644 index 000000000..ed573968f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_table_draft_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.PublishTableDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "table_identifier": "my_table_123", + "include_foreign_id_values": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_table_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_table_draft_example_call_tool.py new file mode 100644 index 000000000..c404e8ead --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/publish_table_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.PublishTableDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'table_identifier': 'my_table_123', 'include_foreign_id_values': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/read_hubdb_table_rows_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/read_hubdb_table_rows_example_call_tool.js new file mode 100644 index 000000000..a7b2c4660 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/read_hubdb_table_rows_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ReadHubdbTableRows"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "hubdb_table_id_or_name": "my_table", + "row_ids": [ + "row1", + "row2", + "row3" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/read_hubdb_table_rows_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/read_hubdb_table_rows_example_call_tool.py new file mode 100644 index 000000000..b4a421f33 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/read_hubdb_table_rows_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ReadHubdbTableRows" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'hubdb_table_id_or_name': 'my_table', 'row_ids': ['row1', 'row2', 'row3'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/remove_blog_post_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/remove_blog_post_example_call_tool.js new file mode 100644 index 000000000..f36beae85 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/remove_blog_post_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RemoveBlogPost"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345", + "only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/remove_blog_post_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/remove_blog_post_example_call_tool.py new file mode 100644 index 000000000..db1ed07bc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/remove_blog_post_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RemoveBlogPost" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345', 'only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/replace_draft_table_row_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/replace_draft_table_row_example_call_tool.js new file mode 100644 index 000000000..b9426c35e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/replace_draft_table_row_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ReplaceDraftTableRow"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "table_id_or_name": "my_table", + "row_id": "123", + "request_body": "{\"column1\":\"value1\",\"column2\":\"value2\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/replace_draft_table_row_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/replace_draft_table_row_example_call_tool.py new file mode 100644 index 000000000..439c1c1c4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/replace_draft_table_row_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ReplaceDraftTableRow" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'table_id_or_name': 'my_table', + 'row_id': '123', + 'request_body': '{"column1":"value1","column2":"value2"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/replace_draft_table_rows_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/replace_draft_table_rows_example_call_tool.js new file mode 100644 index 000000000..e4a4d85c4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/replace_draft_table_rows_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ReplaceDraftTableRows"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "table_identifier": "draft_table_123", + "request_body": "{\"rows\":[{\"id\":\"row1\",\"data\":\"new data 1\"},{\"id\":\"row2\",\"data\":\"new data 2\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/replace_draft_table_rows_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/replace_draft_table_rows_example_call_tool.py new file mode 100644 index 000000000..a3eb8cf8b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/replace_draft_table_rows_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ReplaceDraftTableRows" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'table_identifier': 'draft_table_123', + 'request_body': '{"rows":[{"id":"row1","data":"new data 1"},{"id":"row2","data":"new data ' + '2"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/rerun_previous_ab_test_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/rerun_previous_ab_test_example_call_tool.js new file mode 100644 index 000000000..17dbd2c80 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/rerun_previous_ab_test_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RerunPreviousAbTest"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "test_id_to_rerun": "12345", + "variation_id": "abcde" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/rerun_previous_ab_test_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/rerun_previous_ab_test_example_call_tool.py new file mode 100644 index 000000000..e75758fba --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/rerun_previous_ab_test_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RerunPreviousAbTest" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'test_id_to_rerun': '12345', 'variation_id': 'abcde' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_blog_post_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_blog_post_draft_example_call_tool.js new file mode 100644 index 000000000..538accfa9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_blog_post_draft_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ResetBlogPostDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_blog_post_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_blog_post_draft_example_call_tool.py new file mode 100644 index 000000000..86ed2a1a6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_blog_post_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ResetBlogPostDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_hubdb_draft_to_published_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_hubdb_draft_to_published_example_call_tool.js new file mode 100644 index 000000000..347e48663 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_hubdb_draft_to_published_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ResetHubdbDraftToPublished"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "table_identifier": "my_table_123", + "include_foreign_ids": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_hubdb_draft_to_published_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_hubdb_draft_to_published_example_call_tool.py new file mode 100644 index 000000000..7f3f8d76f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_hubdb_draft_to_published_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ResetHubdbDraftToPublished" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'table_identifier': 'my_table_123', 'include_foreign_ids': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_hubspot_page_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_hubspot_page_draft_example_call_tool.js new file mode 100644 index 000000000..c4ee2b290 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_hubspot_page_draft_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ResetHubspotPageDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "site_page_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_hubspot_page_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_hubspot_page_draft_example_call_tool.py new file mode 100644 index 000000000..8a65279f4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_hubspot_page_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ResetHubspotPageDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'site_page_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_landing_page_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_landing_page_draft_example_call_tool.js new file mode 100644 index 000000000..d207fe0a0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_landing_page_draft_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ResetLandingPageDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_landing_page_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_landing_page_draft_example_call_tool.py new file mode 100644 index 000000000..fa0cfd331 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/reset_landing_page_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ResetLandingPageDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restart_ab_test_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/restart_ab_test_example_call_tool.js new file mode 100644 index 000000000..0b0b8b69f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restart_ab_test_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RestartAbTest"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "ab_test_id": "test_12345", + "test_variation_id": "variation_a" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restart_ab_test_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/restart_ab_test_example_call_tool.py new file mode 100644 index 000000000..7cf8d61fc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restart_ab_test_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RestartAbTest" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'ab_test_id': 'test_12345', 'test_variation_id': 'variation_a' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_blog_post_to_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_blog_post_to_draft_example_call_tool.js new file mode 100644 index 000000000..5abf654b2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_blog_post_to_draft_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RestoreBlogPostToDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345", + "version_to_restore_id": 2 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_blog_post_to_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_blog_post_to_draft_example_call_tool.py new file mode 100644 index 000000000..9f1b266f8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_blog_post_to_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RestoreBlogPostToDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345', 'version_to_restore_id': 2 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_blog_post_version_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_blog_post_version_example_call_tool.js new file mode 100644 index 000000000..902a23c53 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_blog_post_version_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RestoreBlogPostVersion"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345", + "version_to_restore_id": "v1.0.0" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_blog_post_version_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_blog_post_version_example_call_tool.py new file mode 100644 index 000000000..16369e5b1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_blog_post_version_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RestoreBlogPostVersion" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345', 'version_to_restore_id': 'v1.0.0' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_folder_version_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_folder_version_example_call_tool.js new file mode 100644 index 000000000..278e76605 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_folder_version_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RestoreFolderVersion"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "folder_id": "12345", + "folder_version_id_to_restore": "v1.0" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_folder_version_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_folder_version_example_call_tool.py new file mode 100644 index 000000000..068cf2b68 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_folder_version_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RestoreFolderVersion" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'folder_id': '12345', 'folder_version_id_to_restore': 'v1.0' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_landing_page_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_landing_page_draft_example_call_tool.js new file mode 100644 index 000000000..d6984ad24 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_landing_page_draft_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RestoreLandingPageDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345", + "landing_page_version_id_to_restore": 2 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_landing_page_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_landing_page_draft_example_call_tool.py new file mode 100644 index 000000000..c964f6a23 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_landing_page_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RestoreLandingPageDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345', 'landing_page_version_id_to_restore': 2 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_landing_page_version_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_landing_page_version_example_call_tool.js new file mode 100644 index 000000000..a63f7f7fa --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_landing_page_version_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RestoreLandingPageVersion"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345", + "landing_page_version_id": "v1.0" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_landing_page_version_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_landing_page_version_example_call_tool.py new file mode 100644 index 000000000..1d73aaa64 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_landing_page_version_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RestoreLandingPageVersion" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345', 'landing_page_version_id': 'v1.0' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_page_version_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_page_version_example_call_tool.js new file mode 100644 index 000000000..02746e2fa --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_page_version_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RestorePageVersion"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "page_version_to_restore": "v12345", + "site_page_id": "page_67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_page_version_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_page_version_example_call_tool.py new file mode 100644 index 000000000..5e56f0fd0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_page_version_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RestorePageVersion" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'page_version_to_restore': 'v12345', 'site_page_id': 'page_67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_site_page_to_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_site_page_to_draft_example_call_tool.js new file mode 100644 index 000000000..fce5a9b46 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_site_page_to_draft_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RestoreSitePageToDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "site_page_id": "12345", + "site_page_version_id_to_restore": 2 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_site_page_to_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_site_page_to_draft_example_call_tool.py new file mode 100644 index 000000000..a20598744 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/restore_site_page_to_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RestoreSitePageToDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'site_page_id': '12345', 'site_page_version_id_to_restore': 2 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_audit_logs_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_audit_logs_example_call_tool.js new file mode 100644 index 000000000..019c87c2a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_audit_logs_example_call_tool.js @@ -0,0 +1,51 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveAuditLogs"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "event_types": [ + "CREATED", + "UPDATED" + ], + "filter_by_object_ids": [ + "123", + "456" + ], + "filter_by_object_type": [ + "BLOG", + "LANDING_PAGE" + ], + "number_of_logs_to_return": 10, + "sort_direction": [ + "desc" + ], + "timestamp_after": "2023-01-01T00:00:00Z", + "user_ids_to_filter": [ + "user1", + "user2" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_audit_logs_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_audit_logs_example_call_tool.py new file mode 100644 index 000000000..c9aaa5845 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_audit_logs_example_call_tool.py @@ -0,0 +1,35 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveAuditLogs" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'event_types': ['CREATED', 'UPDATED'], + 'filter_by_object_ids': ['123', '456'], + 'filter_by_object_type': ['BLOG', 'LANDING_PAGE'], + 'number_of_logs_to_return': 10, + 'sort_direction': ['desc'], + 'timestamp_after': '2023-01-01T00:00:00Z', + 'user_ids_to_filter': ['user1', 'user2'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_authors_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_authors_example_call_tool.js new file mode 100644 index 000000000..0f8b50958 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_authors_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveBlogAuthors"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "author_identifiers": [ + "author123", + "author456" + ], + "include_deleted_authors": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_authors_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_authors_example_call_tool.py new file mode 100644 index 000000000..d440a1db8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_authors_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveBlogAuthors" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'author_identifiers': ['author123', 'author456'], 'include_deleted_authors': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_post_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_post_by_id_example_call_tool.js new file mode 100644 index 000000000..810be788a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_post_by_id_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveBlogPostById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345", + "include_archived_posts": false, + "return_specific_properties": "title,content" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_post_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_post_by_id_example_call_tool.py new file mode 100644 index 000000000..2b105c934 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_post_by_id_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveBlogPostById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345', + 'include_archived_posts': False, + 'return_specific_properties': 'title,content' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_posts_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_posts_by_id_example_call_tool.js new file mode 100644 index 000000000..d98d68f92 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_posts_by_id_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveBlogPostsById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_ids": [ + "123", + "456", + "789" + ], + "include_archived_posts": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_posts_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_posts_by_id_example_call_tool.py new file mode 100644 index 000000000..ebe6caaf5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_posts_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveBlogPostsById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_ids': ['123', '456', '789'], 'include_archived_posts': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_posts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_posts_example_call_tool.js new file mode 100644 index 000000000..9cc9ec284 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_posts_example_call_tool.js @@ -0,0 +1,38 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveBlogPosts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "created_after": "2023-01-01T00:00:00Z", + "max_results": 10, + "include_archived_posts": true, + "return_specific_properties": "title,author", + "sort_fields_for_results": [ + "createdAt", + "updatedAt" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_posts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_posts_example_call_tool.py new file mode 100644 index 000000000..358835e43 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_posts_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveBlogPosts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'created_after': '2023-01-01T00:00:00Z', + 'max_results': 10, + 'include_archived_posts': True, + 'return_specific_properties': 'title,author', + 'sort_fields_for_results': ['createdAt', 'updatedAt'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_revision_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_revision_details_example_call_tool.js new file mode 100644 index 000000000..db5c8b191 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_revision_details_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveBlogRevisionDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_id": "12345", + "revision_id": "rev-67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_revision_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_revision_details_example_call_tool.py new file mode 100644 index 000000000..47facea69 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_revision_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveBlogRevisionDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_id': '12345', 'revision_id': 'rev-67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_settings_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_settings_example_call_tool.js new file mode 100644 index 000000000..0f8039d15 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_settings_example_call_tool.js @@ -0,0 +1,37 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveBlogSettings"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "created_before": "2023-01-01", + "include_archived": true, + "max_number_of_results": 10, + "sort_options": [ + "createdAt", + "-updatedAt" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_settings_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_settings_example_call_tool.py new file mode 100644 index 000000000..3a0267eed --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_settings_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveBlogSettings" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'created_before': '2023-01-01', + 'include_archived': True, + 'max_number_of_results': 10, + 'sort_options': ['createdAt', '-updatedAt'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_tag_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_tag_by_id_example_call_tool.js new file mode 100644 index 000000000..c5243022e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_tag_by_id_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveBlogTagById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_tag_id": "12345", + "include_archived_blog_tags": false, + "property_name": "name" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_tag_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_tag_by_id_example_call_tool.py new file mode 100644 index 000000000..9590bfe9e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_tag_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveBlogTagById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_tag_id': '12345', 'include_archived_blog_tags': False, 'property_name': 'name' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_tags_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_tags_example_call_tool.js new file mode 100644 index 000000000..4684db1a9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_tags_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveBlogTags"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_tag_ids": [ + "123", + "456", + "789" + ], + "include_deleted_tags": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_tags_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_tags_example_call_tool.py new file mode 100644 index 000000000..df22ffc42 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_blog_tags_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveBlogTags" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_tag_ids': ['123', '456', '789'], 'include_deleted_tags': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_folder_previous_version_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_folder_previous_version_example_call_tool.js new file mode 100644 index 000000000..13eed766c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_folder_previous_version_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveFolderPreviousVersion"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "folder_id": "12345", + "folder_version_id": "v1.0" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_folder_previous_version_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_folder_previous_version_example_call_tool.py new file mode 100644 index 000000000..07a729191 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_folder_previous_version_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveFolderPreviousVersion" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'folder_id': '12345', 'folder_version_id': 'v1.0' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_indexed_data_by_content_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_indexed_data_by_content_id_example_call_tool.js new file mode 100644 index 000000000..952d4e856 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_indexed_data_by_content_id_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveIndexedDataByContentId"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "document_id": "12345", + "document_type": "BLOG_POST" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_indexed_data_by_content_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_indexed_data_by_content_id_example_call_tool.py new file mode 100644 index 000000000..657094115 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_indexed_data_by_content_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveIndexedDataByContentId" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'document_id': '12345', 'document_type': 'BLOG_POST' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_landing_pages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_landing_pages_example_call_tool.js new file mode 100644 index 000000000..7bd3eb7bc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_landing_pages_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveLandingPages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_ids": [ + "12345", + "67890" + ], + "return_archived_landing_pages": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_landing_pages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_landing_pages_example_call_tool.py new file mode 100644 index 000000000..fab4d7c93 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_landing_pages_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveLandingPages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_ids': ['12345', '67890'], 'return_archived_landing_pages': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_blog_version_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_blog_version_example_call_tool.js new file mode 100644 index 000000000..47584ec09 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_blog_version_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrievePreviousBlogVersion"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345", + "version_id": "v1.0" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_blog_version_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_blog_version_example_call_tool.py new file mode 100644 index 000000000..6c676a7d5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_blog_version_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrievePreviousBlogVersion" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345', 'version_id': 'v1.0' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_landing_page_version_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_landing_page_version_example_call_tool.js new file mode 100644 index 000000000..521c53fe8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_landing_page_version_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrievePreviousLandingPageVersion"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345", + "landing_page_version_id": "v1.0" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_landing_page_version_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_landing_page_version_example_call_tool.py new file mode 100644 index 000000000..9618de4e2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_landing_page_version_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrievePreviousLandingPageVersion" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345', 'landing_page_version_id': 'v1.0' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_site_page_version_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_site_page_version_example_call_tool.js new file mode 100644 index 000000000..2815cfb58 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_site_page_version_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrievePreviousSitePageVersion"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "site_page_id": "12345", + "site_page_revision_id": "rev67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_site_page_version_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_site_page_version_example_call_tool.py new file mode 100644 index 000000000..5b27dbc2e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_previous_site_page_version_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrievePreviousSitePageVersion" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'site_page_id': '12345', 'site_page_revision_id': 'rev67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_site_page_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_site_page_by_id_example_call_tool.js new file mode 100644 index 000000000..e226518f0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_site_page_by_id_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveSitePageById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "site_page_id": "12345", + "return_archived_site_pages": false, + "site_page_property": "" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_site_page_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_site_page_by_id_example_call_tool.py new file mode 100644 index 000000000..741399334 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_site_page_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveSitePageById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'site_page_id': '12345', 'return_archived_site_pages': False, 'site_page_property': '' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_site_pages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_site_pages_example_call_tool.js new file mode 100644 index 000000000..baecfd23f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_site_pages_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.RetrieveSitePages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "page_identifiers": [ + "page-123", + "page-456" + ], + "return_deleted_site_pages": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_site_pages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_site_pages_example_call_tool.py new file mode 100644 index 000000000..5996e584a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/retrieve_site_pages_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.RetrieveSitePages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'page_identifiers': ['page-123', 'page-456'], 'return_deleted_site_pages': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_blog_post_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_blog_post_example_call_tool.js new file mode 100644 index 000000000..b47687370 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_blog_post_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ScheduleBlogPost"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345", + "scheduled_publish_date": "2023-12-31T23:59:59" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_blog_post_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_blog_post_example_call_tool.py new file mode 100644 index 000000000..fd4ad9a93 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_blog_post_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ScheduleBlogPost" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345', 'scheduled_publish_date': '2023-12-31T23:59:59' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_landing_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_landing_page_example_call_tool.js new file mode 100644 index 000000000..4c09ec506 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_landing_page_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ScheduleLandingPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345", + "publication_date": "2023-10-15" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_landing_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_landing_page_example_call_tool.py new file mode 100644 index 000000000..2ae27bb84 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_landing_page_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ScheduleLandingPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345', 'publication_date': '2023-10-15' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_site_page_publication_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_site_page_publication_example_call_tool.js new file mode 100644 index 000000000..1726ec198 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_site_page_publication_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.ScheduleSitePagePublication"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_id_to_schedule": "12345", + "publication_date": "2023-12-31T23:59:00Z" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_site_page_publication_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_site_page_publication_example_call_tool.py new file mode 100644 index 000000000..e80a00e4b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/schedule_site_page_publication_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.ScheduleSitePagePublication" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_id_to_schedule': '12345', 'publication_date': '2023-12-31T23:59:00Z' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/search_website_content_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/search_website_content_example_call_tool.js new file mode 100644 index 000000000..4b70a6c58 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/search_website_content_example_call_tool.js @@ -0,0 +1,61 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.SearchWebsiteContent"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_ids_to_search": [ + 123, + 456 + ], + "boost_recent_time_window": "10d", + "content_language_code": "en", + "content_type_filters": [ + "BLOG_POST", + "SITE_PAGE" + ], + "hubdb_table_id": 789, + "invert_path_prefix_filter": false, + "maximum_boost_limit": 5.0, + "pagination_offset": 0, + "path_prefixes": [ + "/blog", + "/articles" + ], + "popularity_boost": 2.0, + "result_length": "LONG", + "results_limit": 10, + "search_domains": [ + "example.com", + "test.com" + ], + "search_properties": [ + "title", + "description" + ], + "search_term": "marketing", + "show_autocomplete": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/search_website_content_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/search_website_content_example_call_tool.py new file mode 100644 index 000000000..f69c35f4e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/search_website_content_example_call_tool.py @@ -0,0 +1,44 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.SearchWebsiteContent" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_ids_to_search': [123, 456], + 'boost_recent_time_window': '10d', + 'content_language_code': 'en', + 'content_type_filters': ['BLOG_POST', 'SITE_PAGE'], + 'hubdb_table_id': 789, + 'invert_path_prefix_filter': False, + 'maximum_boost_limit': 5.0, + 'pagination_offset': 0, + 'path_prefixes': ['/blog', '/articles'], + 'popularity_boost': 2.0, + 'result_length': 'LONG', + 'results_limit': 10, + 'search_domains': ['example.com', 'test.com'], + 'search_properties': ['title', 'description'], + 'search_term': 'marketing', + 'show_autocomplete': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/set_blog_tag_primary_language_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_blog_tag_primary_language_example_call_tool.js new file mode 100644 index 000000000..a087b30c8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_blog_tag_primary_language_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.SetBlogTagPrimaryLanguage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "primary_language_tag_id": "en" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/set_blog_tag_primary_language_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_blog_tag_primary_language_example_call_tool.py new file mode 100644 index 000000000..f51c9e00c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_blog_tag_primary_language_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.SetBlogTagPrimaryLanguage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'primary_language_tag_id': 'en' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/set_new_blog_primary_language_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_new_blog_primary_language_example_call_tool.js new file mode 100644 index 000000000..ff3f8b6ac --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_new_blog_primary_language_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.SetNewBlogPrimaryLanguage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "primary_language_object_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/set_new_blog_primary_language_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_new_blog_primary_language_example_call_tool.py new file mode 100644 index 000000000..e71462178 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_new_blog_primary_language_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.SetNewBlogPrimaryLanguage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'primary_language_object_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_landing_page_language_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_landing_page_language_example_call_tool.js new file mode 100644 index 000000000..17f4dec96 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_landing_page_language_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.SetPrimaryLandingPageLanguage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "landing_page_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_landing_page_language_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_landing_page_language_example_call_tool.py new file mode 100644 index 000000000..bc8eef571 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_landing_page_language_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.SetPrimaryLandingPageLanguage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'landing_page_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_blog_author_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_blog_author_example_call_tool.js new file mode 100644 index 000000000..54f0c5e7c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_blog_author_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.SetPrimaryLanguageBlogAuthor"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "primary_language_author_id": "author_12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_blog_author_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_blog_author_example_call_tool.py new file mode 100644 index 000000000..2399049f9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_blog_author_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.SetPrimaryLanguageBlogAuthor" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'primary_language_author_id': 'author_12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_blog_post_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_blog_post_example_call_tool.js new file mode 100644 index 000000000..f7bf4b33b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_blog_post_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.SetPrimaryLanguageBlogPost"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_post_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_blog_post_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_blog_post_example_call_tool.py new file mode 100644 index 000000000..9a567b847 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_blog_post_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.SetPrimaryLanguageBlogPost" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_post_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_for_site_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_for_site_page_example_call_tool.js new file mode 100644 index 000000000..ff1ea4c49 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_for_site_page_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.SetPrimaryLanguageForSitePage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "page_id_to_set_primary": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_for_site_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_for_site_page_example_call_tool.py new file mode 100644 index 000000000..50216f646 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/set_primary_language_for_site_page_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.SetPrimaryLanguageForSitePage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'page_id_to_set_primary': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/track_media_milestones_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/track_media_milestones_example_call_tool.js new file mode 100644 index 000000000..e121b507e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/track_media_milestones_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.TrackMediaMilestones"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"userId\":\"12345\",\"mediaId\":\"abcde\",\"milestone\":\"quarterly\",\"timestamp\":\"2023-10-01T12:00:00Z\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/track_media_milestones_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/track_media_milestones_example_call_tool.py new file mode 100644 index 000000000..ca92fefce --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/track_media_milestones_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.TrackMediaMilestones" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"userId":"12345","mediaId":"abcde","milestone":"quarterly","timestamp":"2023-10-01T12:00:00Z"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/unpublish_hubdb_table_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/unpublish_hubdb_table_example_call_tool.js new file mode 100644 index 000000000..dfa69549d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/unpublish_hubdb_table_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UnpublishHubdbTable"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "table_identifier": "12345", + "include_foreign_ids": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/unpublish_hubdb_table_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/unpublish_hubdb_table_example_call_tool.py new file mode 100644 index 000000000..0d1db640b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/unpublish_hubdb_table_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UnpublishHubdbTable" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'table_identifier': '12345', 'include_foreign_ids': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_author_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_author_example_call_tool.js new file mode 100644 index 000000000..75bf89f37 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_author_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateBlogAuthor"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "blog_author_id": "12345", + "update_deleted_blog_authors": false, + "request_body": "{\"name\":\"John Doe\",\"bio\":\"Tech blogger\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_author_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_author_example_call_tool.py new file mode 100644 index 000000000..121d67024 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_author_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateBlogAuthor" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'blog_author_id': '12345', + 'update_deleted_blog_authors': False, + 'request_body': '{"name":"John Doe","bio":"Tech blogger"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_author_languages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_author_languages_example_call_tool.js new file mode 100644 index 000000000..a5ebcbc78 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_author_languages_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateBlogAuthorLanguages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"authors\":[{\"id\":\"1\",\"languages\":[\"English\",\"Spanish\"]},{\"id\":\"2\",\"languages\":[\"French\"]}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_author_languages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_author_languages_example_call_tool.py new file mode 100644 index 000000000..916e835bb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_author_languages_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateBlogAuthorLanguages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"authors":[{"id":"1","languages":["English","Spanish"]},{"id":"2","languages":["French"]}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_authors_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_authors_batch_example_call_tool.js new file mode 100644 index 000000000..8e0a91527 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_authors_batch_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateBlogAuthorsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "update_deleted_blog_authors": true, + "request_body": "{\"authors\":[{\"id\":\"1\",\"name\":\"John Doe\"},{\"id\":\"2\",\"name\":\"Jane Smith\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_authors_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_authors_batch_example_call_tool.py new file mode 100644 index 000000000..540fca995 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_authors_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateBlogAuthorsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'update_deleted_blog_authors': True, + 'request_body': '{"authors":[{"id":"1","name":"John Doe"},{"id":"2","name":"Jane Smith"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_languages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_languages_example_call_tool.js new file mode 100644 index 000000000..7b15eea09 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_languages_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateBlogLanguages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"languages\":[\"en\",\"fr\",\"es\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_languages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_languages_example_call_tool.py new file mode 100644 index 000000000..07c25b630 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_languages_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateBlogLanguages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"languages":["en","fr","es"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_draft_example_call_tool.js new file mode 100644 index 000000000..17ad94919 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_draft_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateBlogPostDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "blog_post_id": "12345", + "request_body": "{\"title\":\"Updated Blog Post Title\",\"content\":\"This is the updated content of the blog post.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_draft_example_call_tool.py new file mode 100644 index 000000000..152ee8587 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_draft_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateBlogPostDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'blog_post_id': '12345', + 'request_body': '{"title":"Updated Blog Post Title","content":"This is the updated content of ' + 'the blog post."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_example_call_tool.js new file mode 100644 index 000000000..1109d5f5a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateBlogPost"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "blog_post_id": "12345", + "update_archived_posts": false, + "request_body": "{\"title\":\"Updated Blog Title\",\"content\":\"This is the updated content of the blog post.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_example_call_tool.py new file mode 100644 index 000000000..135e15163 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateBlogPost" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'blog_post_id': '12345', + 'update_archived_posts': False, + 'request_body': '{"title":"Updated Blog Title","content":"This is the updated content of the ' + 'blog post."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_languages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_languages_example_call_tool.js new file mode 100644 index 000000000..228838db9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_languages_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateBlogPostLanguages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"postId\":\"12345\",\"languages\":[\"en\",\"fr\",\"es\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_languages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_languages_example_call_tool.py new file mode 100644 index 000000000..897dde1b1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_post_languages_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateBlogPostLanguages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"postId":"12345","languages":["en","fr","es"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_posts_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_posts_batch_example_call_tool.js new file mode 100644 index 000000000..8ad7294fb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_posts_batch_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateBlogPostsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "update_archived_posts": true, + "request_body": "{\"posts\":[{\"id\":\"1\",\"title\":\"Updated Title 1\",\"content\":\"New content for post 1\"},{\"id\":\"2\",\"title\":\"Updated Title 2\",\"content\":\"New content for post 2\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_posts_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_posts_batch_example_call_tool.py new file mode 100644 index 000000000..5dc9dba17 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_posts_batch_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateBlogPostsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'update_archived_posts': True, + 'request_body': '{"posts":[{"id":"1","title":"Updated Title 1","content":"New content for post ' + '1"},{"id":"2","title":"Updated Title 2","content":"New content for post 2"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tag_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tag_example_call_tool.js new file mode 100644 index 000000000..6feb3a016 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tag_example_call_tool.js @@ -0,0 +1,39 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateBlogTag"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "blog_tag_id": "12345", + "blog_tag_unique_id": "tag-67890", + "created_timestamp": "2023-01-01T12:00:00Z", + "deleted_timestamp": "2023-10-01T12:00:00Z", + "language": "en", + "last_updated_timestamp": "2023-10-10T12:00:00Z", + "primary_tag_translated_from_id": 1, + "tag_name": "Updated Tag Name", + "update_deleted_blog_tags": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tag_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tag_example_call_tool.py new file mode 100644 index 000000000..638995a09 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tag_example_call_tool.py @@ -0,0 +1,37 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateBlogTag" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'blog_tag_id': '12345', + 'blog_tag_unique_id': 'tag-67890', + 'created_timestamp': '2023-01-01T12:00:00Z', + 'deleted_timestamp': '2023-10-01T12:00:00Z', + 'language': 'en', + 'last_updated_timestamp': '2023-10-10T12:00:00Z', + 'primary_tag_translated_from_id': 1, + 'tag_name': 'Updated Tag Name', + 'update_deleted_blog_tags': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tag_languages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tag_languages_example_call_tool.js new file mode 100644 index 000000000..34c435469 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tag_languages_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateBlogTagLanguages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"tags\":[{\"id\":\"1\",\"languages\":[\"en\",\"fr\"]},{\"id\":\"2\",\"languages\":[\"es\",\"de\"]}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tag_languages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tag_languages_example_call_tool.py new file mode 100644 index 000000000..674cd64ad --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tag_languages_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateBlogTagLanguages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"tags":[{"id":"1","languages":["en","fr"]},{"id":"2","languages":["es","de"]}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tags_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tags_example_call_tool.js new file mode 100644 index 000000000..a26fd6865 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tags_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateBlogTags"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "update_deleted_blog_tags": true, + "request_body": "{\"tags\":[{\"id\":\"123\",\"name\":\"Tech\"},{\"id\":\"456\",\"name\":\"Health\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tags_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tags_example_call_tool.py new file mode 100644 index 000000000..a2612a53d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_blog_tags_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateBlogTags" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'update_deleted_blog_tags': True, + 'request_body': '{"tags":[{"id":"123","name":"Tech"},{"id":"456","name":"Health"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_folder_objects_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_folder_objects_example_call_tool.js new file mode 100644 index 000000000..595c19f67 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_folder_objects_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateFolderObjects"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "folder_identifiers": [ + "folder1", + "folder2", + "folder3" + ], + "include_archived_folders": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_folder_objects_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_folder_objects_example_call_tool.py new file mode 100644 index 000000000..b550a6808 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_folder_objects_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateFolderObjects" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'folder_identifiers': ['folder1', 'folder2', 'folder3'], 'include_archived_folders': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_hubdb_draft_table_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_hubdb_draft_table_example_call_tool.js new file mode 100644 index 000000000..2ef9cd628 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_hubdb_draft_table_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateHubdbDraftTable"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "table_id_or_name": "my_table", + "return_archived_tables": false, + "request_body": "{\"columns\":[{\"name\":\"title\",\"type\":\"text\"},{\"name\":\"description\",\"type\":\"text\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_hubdb_draft_table_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_hubdb_draft_table_example_call_tool.py new file mode 100644 index 000000000..2dbe53f39 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_hubdb_draft_table_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateHubdbDraftTable" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'table_id_or_name': 'my_table', + 'return_archived_tables': False, + 'request_body': '{"columns":[{"name":"title","type":"text"},{"name":"description","type":"text"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_hubdb_row_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_hubdb_row_draft_example_call_tool.js new file mode 100644 index 000000000..06e7ea151 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_hubdb_row_draft_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateHubdbRowDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "table_identifier": "my_table", + "row_id": "123", + "request_body": "{\"field1\":\"value1\",\"field2\":\"value2\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_hubdb_row_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_hubdb_row_draft_example_call_tool.py new file mode 100644 index 000000000..479a14f62 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_hubdb_row_draft_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateHubdbRowDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'table_identifier': 'my_table', + 'row_id': '123', + 'request_body': '{"field1":"value1","field2":"value2"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_draft_example_call_tool.js new file mode 100644 index 000000000..da11773e6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_draft_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateLandingPageDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "landing_page_id": "12345", + "request_body": "{\"title\":\"New Landing Page Title\",\"content\":\"[file_content]\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_draft_example_call_tool.py new file mode 100644 index 000000000..c6e2a5e5e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_draft_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateLandingPageDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'landing_page_id': '12345', + 'request_body': '{"title":"New Landing Page Title","content":"[file_content]"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_example_call_tool.js new file mode 100644 index 000000000..81a642188 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateLandingPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "landing_page_id": "12345", + "update_archived_pages": false, + "request_body": "{\"title\":\"New Landing Page Title\",\"content\":\"Updated content here.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_example_call_tool.py new file mode 100644 index 000000000..4940fc0f6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateLandingPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'landing_page_id': '12345', + 'update_archived_pages': False, + 'request_body': '{"title":"New Landing Page Title","content":"Updated content here."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_folder_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_folder_example_call_tool.js new file mode 100644 index 000000000..934156ff5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_folder_example_call_tool.js @@ -0,0 +1,39 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateLandingPageFolder"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "content_folder_unique_id": "12345", + "creation_timestamp": "2023-01-01T12:00:00Z", + "deletion_timestamp_iso8601": "2023-12-31T12:00:00Z", + "folder_category": 1, + "folder_id": "67890", + "folder_name": "New Landing Page Folder", + "parent_folder_id": 2, + "update_timestamp": "2023-10-01T12:00:00Z", + "update_deleted_folders": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_folder_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_folder_example_call_tool.py new file mode 100644 index 000000000..f0b6ac39d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_folder_example_call_tool.py @@ -0,0 +1,37 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateLandingPageFolder" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'content_folder_unique_id': '12345', + 'creation_timestamp': '2023-01-01T12:00:00Z', + 'deletion_timestamp_iso8601': '2023-12-31T12:00:00Z', + 'folder_category': 1, + 'folder_id': '67890', + 'folder_name': 'New Landing Page Folder', + 'parent_folder_id': 2, + 'update_timestamp': '2023-10-01T12:00:00Z', + 'update_deleted_folders': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_folders_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_folders_example_call_tool.js new file mode 100644 index 000000000..49d6089c9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_folders_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateLandingPageFolders"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "only_include_archived_results": false, + "request_body": "{\"folders\":[{\"id\":\"123\",\"name\":\"New Folder\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_folders_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_folders_example_call_tool.py new file mode 100644 index 000000000..470b19c7d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_folders_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateLandingPageFolders" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'only_include_archived_results': False, + 'request_body': '{"folders":[{"id":"123","name":"New Folder"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_languages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_languages_example_call_tool.js new file mode 100644 index 000000000..879b4b566 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_languages_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateLandingPageLanguages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"languages\":[\"en\",\"fr\",\"es\"],\"group_id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_languages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_languages_example_call_tool.py new file mode 100644 index 000000000..a915fe70c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_page_languages_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateLandingPageLanguages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"languages":["en","fr","es"],"group_id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_pages_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_pages_batch_example_call_tool.js new file mode 100644 index 000000000..e906d8a0f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_pages_batch_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateLandingPagesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "update_deleted_landing_pages": true, + "request_body": "{\"landingPages\":[{\"id\":\"123\",\"title\":\"New Title\",\"content\":\"Updated content\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_pages_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_pages_batch_example_call_tool.py new file mode 100644 index 000000000..e678b0fe3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_landing_pages_batch_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateLandingPagesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'update_deleted_landing_pages': True, + 'request_body': '{"landingPages":[{"id":"123","title":"New Title","content":"Updated ' + 'content"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_draft_example_call_tool.js new file mode 100644 index 000000000..fff966c5b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_draft_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateSitePageDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "site_page_id": "12345", + "request_body": "{\"title\":\"Updated Page Title\",\"content\":\"[file_content]\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_draft_example_call_tool.py new file mode 100644 index 000000000..faab35737 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_draft_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateSitePageDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'site_page_id': '12345', + 'request_body': '{"title":"Updated Page Title","content":"[file_content]"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_example_call_tool.js new file mode 100644 index 000000000..a947a94eb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateSitePage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "site_page_id": "12345", + "update_deleted_site_pages": false, + "request_body": "{\"title\":\"Updated Title\",\"content\":\"New content for the page.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_example_call_tool.py new file mode 100644 index 000000000..7d6b1ce91 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateSitePage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'site_page_id': '12345', + 'update_deleted_site_pages': False, + 'request_body': '{"title":"Updated Title","content":"New content for the page."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_languages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_languages_example_call_tool.js new file mode 100644 index 000000000..6bb28ffe7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_languages_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateSitePageLanguages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"pageId\":\"123\",\"languages\":[\"en\",\"fr\",\"es\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_languages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_languages_example_call_tool.py new file mode 100644 index 000000000..7f883b34a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_page_languages_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateSitePageLanguages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"pageId":"123","languages":["en","fr","es"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_pages_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_pages_batch_example_call_tool.js new file mode 100644 index 000000000..e48d7ddb8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_pages_batch_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateSitePagesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "update_deleted_site_pages": true, + "request_body": "{\"pages\":[{\"id\":\"123\",\"title\":\"Updated Page Title\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_pages_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_pages_batch_example_call_tool.py new file mode 100644 index 000000000..1feeec24b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_site_pages_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateSitePagesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'update_deleted_site_pages': True, + 'request_body': '{"pages":[{"id":"123","title":"Updated Page Title"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_url_redirect_settings_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_url_redirect_settings_example_call_tool.js new file mode 100644 index 000000000..bd9d4adcb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_url_redirect_settings_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCmsApi.UpdateUrlRedirectSettings"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "url_redirect_id": "12345", + "request_body": "{\"destination\":\"/new-url\",\"status\":\"active\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_cms_api/update_url_redirect_settings_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_url_redirect_settings_example_call_tool.py new file mode 100644 index 000000000..050762ed3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_cms_api/update_url_redirect_settings_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCmsApi.UpdateUrlRedirectSettings" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'url_redirect_id': '12345', + 'request_body': '{"destination":"/new-url","status":"active"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/archive_conversation_thread_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/archive_conversation_thread_example_call_tool.js new file mode 100644 index 000000000..7f4562335 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/archive_conversation_thread_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.ArchiveConversationThread"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "thread_identifier": "thread_12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/archive_conversation_thread_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/archive_conversation_thread_example_call_tool.py new file mode 100644 index 000000000..8582fada9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/archive_conversation_thread_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.ArchiveConversationThread" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'thread_identifier': 'thread_12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/create_channel_account_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/create_channel_account_example_call_tool.js new file mode 100644 index 000000000..9091da492 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/create_channel_account_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.CreateChannelAccount"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "account_name": "Support Account", + "channel_id": "channel_12345", + "inbox_id": "inbox_67890", + "is_authorized": true, + "delivery_identifier_type": "HS_EMAIL_ADDRESS", + "delivery_identifier_value": "support@example.com" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/create_channel_account_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/create_channel_account_example_call_tool.py new file mode 100644 index 000000000..643a91b10 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/create_channel_account_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.CreateChannelAccount" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'account_name': 'Support Account', + 'channel_id': 'channel_12345', + 'inbox_id': 'inbox_67890', + 'is_authorized': True, + 'delivery_identifier_type': 'HS_EMAIL_ADDRESS', + 'delivery_identifier_value': 'support@example.com' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_channel_account_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_channel_account_details_example_call_tool.js new file mode 100644 index 000000000..7c4813d85 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_channel_account_details_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.GetChannelAccountDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "channel_account_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_channel_account_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_channel_account_details_example_call_tool.py new file mode 100644 index 000000000..7eee71324 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_channel_account_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.GetChannelAccountDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'channel_account_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_custom_channel_accounts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_custom_channel_accounts_example_call_tool.js new file mode 100644 index 000000000..877747594 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_custom_channel_accounts_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.GetCustomChannelAccounts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "custom_channel_id": "channel_12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_custom_channel_accounts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_custom_channel_accounts_example_call_tool.py new file mode 100644 index 000000000..1b305c3c3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_custom_channel_accounts_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.GetCustomChannelAccounts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'custom_channel_id': 'channel_12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_custom_channel_message_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_custom_channel_message_details_example_call_tool.js new file mode 100644 index 000000000..d8702c980 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_custom_channel_message_details_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.GetCustomChannelMessageDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "channel_id": "12345", + "message_id": "abcde" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_custom_channel_message_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_custom_channel_message_details_example_call_tool.py new file mode 100644 index 000000000..bb2704d59 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_custom_channel_message_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.GetCustomChannelMessageDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'channel_id': '12345', 'message_id': 'abcde' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_inbox_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_inbox_details_example_call_tool.js new file mode 100644 index 000000000..f41e4ec5f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_inbox_details_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.GetInboxDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "inbox_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_inbox_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_inbox_details_example_call_tool.py new file mode 100644 index 000000000..ed1ad422b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_inbox_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.GetInboxDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'inbox_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_message_history_for_thread_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_message_history_for_thread_example_call_tool.js new file mode 100644 index 000000000..1acb56bd1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_message_history_for_thread_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.GetMessageHistoryForThread"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "thread_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_message_history_for_thread_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_message_history_for_thread_example_call_tool.py new file mode 100644 index 000000000..5a7140aad --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/get_message_history_for_thread_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.GetMessageHistoryForThread" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'thread_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/list_conversation_channels_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/list_conversation_channels_example_call_tool.js new file mode 100644 index 000000000..df65eea24 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/list_conversation_channels_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.ListConversationChannels"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/list_conversation_channels_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/list_conversation_channels_example_call_tool.py new file mode 100644 index 000000000..80f194da3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/list_conversation_channels_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.ListConversationChannels" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/list_conversation_inboxes_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/list_conversation_inboxes_example_call_tool.js new file mode 100644 index 000000000..74bc926d1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/list_conversation_inboxes_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.ListConversationInboxes"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/list_conversation_inboxes_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/list_conversation_inboxes_example_call_tool.py new file mode 100644 index 000000000..eadb0e782 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/list_conversation_inboxes_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.ListConversationInboxes" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/publish_custom_channel_message_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/publish_custom_channel_message_example_call_tool.js new file mode 100644 index 000000000..e0db56fd3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/publish_custom_channel_message_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.PublishCustomChannelMessage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "custom_channel_id": "12345", + "request_body": "{\"message\":\"Hello, World!\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/publish_custom_channel_message_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/publish_custom_channel_message_example_call_tool.py new file mode 100644 index 000000000..f9aa261c9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/publish_custom_channel_message_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.PublishCustomChannelMessage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'custom_channel_id': '12345', 'request_body': '{"message":"Hello, World!"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/resolve_conversation_actors_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/resolve_conversation_actors_example_call_tool.js new file mode 100644 index 000000000..ef7cd808a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/resolve_conversation_actors_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.ResolveConversationActors"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "actor_ids": [ + "actor_123", + "actor_456", + "actor_789" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/resolve_conversation_actors_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/resolve_conversation_actors_example_call_tool.py new file mode 100644 index 000000000..771ffd93e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/resolve_conversation_actors_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.ResolveConversationActors" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'actor_ids': ['actor_123', 'actor_456', 'actor_789'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_actor_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_actor_details_example_call_tool.js new file mode 100644 index 000000000..9df1d9267 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_actor_details_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.RetrieveActorDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "actor_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_actor_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_actor_details_example_call_tool.py new file mode 100644 index 000000000..e0b351686 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_actor_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.RetrieveActorDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'actor_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_account_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_account_details_example_call_tool.js new file mode 100644 index 000000000..6ce4f31d6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_account_details_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.RetrieveChannelAccountDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "channel_account_id": "12345", + "channel_identifier": "channel_abc" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_account_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_account_details_example_call_tool.py new file mode 100644 index 000000000..a38a4e00c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_account_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.RetrieveChannelAccountDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'channel_account_id': '12345', 'channel_identifier': 'channel_abc' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_accounts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_accounts_example_call_tool.js new file mode 100644 index 000000000..f3f83b488 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_accounts_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.RetrieveChannelAccounts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_accounts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_accounts_example_call_tool.py new file mode 100644 index 000000000..f2c05cb7d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_accounts_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.RetrieveChannelAccounts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_details_example_call_tool.js new file mode 100644 index 000000000..8a48c0118 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_details_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.RetrieveChannelDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "channel_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_details_example_call_tool.py new file mode 100644 index 000000000..d6e39b15b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_channel_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.RetrieveChannelDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'channel_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_conversation_threads_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_conversation_threads_example_call_tool.js new file mode 100644 index 000000000..32cbbadd2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_conversation_threads_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.RetrieveConversationThreads"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_conversation_threads_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_conversation_threads_example_call_tool.py new file mode 100644 index 000000000..d7efddc6a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_conversation_threads_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.RetrieveConversationThreads" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_full_message_content_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_full_message_content_example_call_tool.js new file mode 100644 index 000000000..5c83e167d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_full_message_content_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.RetrieveFullMessageContent"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "conversation_thread_id": "12345", + "message_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_full_message_content_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_full_message_content_example_call_tool.py new file mode 100644 index 000000000..9911c82ea --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_full_message_content_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.RetrieveFullMessageContent" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'conversation_thread_id': '12345', 'message_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_thread_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_thread_by_id_example_call_tool.js new file mode 100644 index 000000000..fb7d2bf70 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_thread_by_id_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.RetrieveThreadById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "conversation_thread_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_thread_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_thread_by_id_example_call_tool.py new file mode 100644 index 000000000..9dec4e652 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_thread_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.RetrieveThreadById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'conversation_thread_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_thread_message_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_thread_message_example_call_tool.js new file mode 100644 index 000000000..2a6b9dd09 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_thread_message_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.RetrieveThreadMessage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "message_id": "msg12345", + "thread_id": "thread67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_thread_message_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_thread_message_example_call_tool.py new file mode 100644 index 000000000..3b11af382 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/retrieve_thread_message_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.RetrieveThreadMessage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'message_id': 'msg12345', 'thread_id': 'thread67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/send_conversation_message_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/send_conversation_message_example_call_tool.js new file mode 100644 index 000000000..8b7b3dc12 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/send_conversation_message_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.SendConversationMessage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "thread_id": "12345", + "request_body": "{\"message\":\"Hello, this is a test message.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/send_conversation_message_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/send_conversation_message_example_call_tool.py new file mode 100644 index 000000000..8eb7731bc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/send_conversation_message_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.SendConversationMessage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'thread_id': '12345', + 'request_body': '{"message":"Hello, this is a test message."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_channel_account_info_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_channel_account_info_example_call_tool.js new file mode 100644 index 000000000..cf2ce4bbc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_channel_account_info_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.UpdateChannelAccountInfo"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "channel_account_id": "12345", + "channel_id": "abcde", + "channel_account_name": "New Channel Name", + "set_authorization_status": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_channel_account_info_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_channel_account_info_example_call_tool.py new file mode 100644 index 000000000..3fc5bc097 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_channel_account_info_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.UpdateChannelAccountInfo" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'channel_account_id': '12345', + 'channel_id': 'abcde', + 'channel_account_name': 'New Channel Name', + 'set_authorization_status': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_channel_account_staging_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_channel_account_staging_example_call_tool.js new file mode 100644 index 000000000..2f25e9b1c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_channel_account_staging_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.UpdateChannelAccountStaging"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "account_name": "John Doe", + "account_token": "abc123token", + "channel_id": "channel_456", + "delivery_identifier_type": "HS_EMAIL_ADDRESS", + "delivery_identifier_value": "john.doe@example.com" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_channel_account_staging_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_channel_account_staging_example_call_tool.py new file mode 100644 index 000000000..9c92e099c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_channel_account_staging_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.UpdateChannelAccountStaging" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'account_name': 'John Doe', + 'account_token': 'abc123token', + 'channel_id': 'channel_456', + 'delivery_identifier_type': 'HS_EMAIL_ADDRESS', + 'delivery_identifier_value': 'john.doe@example.com' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_conversation_thread_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_conversation_thread_example_call_tool.js new file mode 100644 index 000000000..f5c739707 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_conversation_thread_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.UpdateConversationThread"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "thread_identifier": "12345", + "is_thread_archived": false, + "thread_status": "OPEN" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_conversation_thread_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_conversation_thread_example_call_tool.py new file mode 100644 index 000000000..41e088f50 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_conversation_thread_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.UpdateConversationThread" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'thread_identifier': '12345', 'is_thread_archived': False, 'thread_status': 'OPEN' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_message_status_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_message_status_example_call_tool.js new file mode 100644 index 000000000..41b5c32cc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_message_status_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotConversationsApi.UpdateMessageStatus"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "channel_identifier": "channel_123", + "message_id": "msg_456", + "message_status": "FAILED", + "error_message_for_failed_status": "Network error" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_message_status_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_message_status_example_call_tool.py new file mode 100644 index 000000000..c675ab921 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_conversations_api/update_message_status_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotConversationsApi.UpdateMessageStatus" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'channel_identifier': 'channel_123', + 'message_id': 'msg_456', + 'message_status': 'FAILED', + 'error_message_for_failed_status': 'Network error' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/add_all_from_source_list_to_destination_list_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/add_all_from_source_list_to_destination_list_example_call_tool.js new file mode 100644 index 000000000..e23fce60b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/add_all_from_source_list_to_destination_list_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.AddAllFromSourceListToDestinationList"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "destination_list_id": "12345", + "source_list_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/add_all_from_source_list_to_destination_list_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/add_all_from_source_list_to_destination_list_example_call_tool.py new file mode 100644 index 000000000..1cb4c2ba3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/add_all_from_source_list_to_destination_list_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.AddAllFromSourceListToDestinationList" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'destination_list_id': '12345', 'source_list_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/add_to_hubspot_crm_list_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/add_to_hubspot_crm_list_example_call_tool.js new file mode 100644 index 000000000..61178d389 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/add_to_hubspot_crm_list_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.AddToHubspotCrmList"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_id": "12345", + "record_ids_to_add": [ + "abc123", + "def456", + "ghi789" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/add_to_hubspot_crm_list_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/add_to_hubspot_crm_list_example_call_tool.py new file mode 100644 index 000000000..f46012c6f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/add_to_hubspot_crm_list_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.AddToHubspotCrmList" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_id': '12345', 'record_ids_to_add': ['abc123', 'def456', 'ghi789'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_call_in_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_call_in_hubspot_example_call_tool.js new file mode 100644 index 000000000..f62c3805d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_call_in_hubspot_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveCallInHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "call_identifier": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_call_in_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_call_in_hubspot_example_call_tool.py new file mode 100644 index 000000000..6f6e855b3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_call_in_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveCallInHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'call_identifier': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_calls_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_calls_batch_example_call_tool.js new file mode 100644 index 000000000..9736944df --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_calls_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveCallsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"call_ids\":[\"12345\",\"67890\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_calls_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_calls_batch_example_call_tool.py new file mode 100644 index 000000000..9e5725bb7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_calls_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveCallsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"call_ids":["12345","67890"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_carts_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_carts_batch_example_call_tool.js new file mode 100644 index 000000000..560a54a91 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_carts_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveCartsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"cart_ids\":[\"cart123\",\"cart456\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_carts_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_carts_batch_example_call_tool.py new file mode 100644 index 000000000..326886e71 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_carts_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveCartsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"cart_ids":["cart123","cart456"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_commerce_payments_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_commerce_payments_batch_example_call_tool.js new file mode 100644 index 000000000..33f2ee454 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_commerce_payments_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveCommercePaymentsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"payment_ids\":[\"12345\",\"67890\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_commerce_payments_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_commerce_payments_batch_example_call_tool.py new file mode 100644 index 000000000..563734a5c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_commerce_payments_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveCommercePaymentsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"payment_ids":["12345","67890"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_communication_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_communication_example_call_tool.js new file mode 100644 index 000000000..03f50e43d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_communication_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveCommunication"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "communication_id": "comm_12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_communication_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_communication_example_call_tool.py new file mode 100644 index 000000000..4d33ea8e5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_communication_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveCommunication" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'communication_id': 'comm_12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_contacts_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_contacts_batch_example_call_tool.js new file mode 100644 index 000000000..5ff054fa2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_contacts_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveContactsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"contact_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_contacts_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_contacts_batch_example_call_tool.py new file mode 100644 index 000000000..9eb628ce3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_contacts_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveContactsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"contact_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_courses_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_courses_batch_example_call_tool.js new file mode 100644 index 000000000..6000795fd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_courses_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveCoursesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"course_ids\":[\"course_1\",\"course_2\",\"course_3\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_courses_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_courses_batch_example_call_tool.py new file mode 100644 index 000000000..94c589c00 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_courses_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveCoursesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"course_ids":["course_1","course_2","course_3"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_crm_properties_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_crm_properties_example_call_tool.js new file mode 100644 index 000000000..fc318abff --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_crm_properties_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveCrmProperties"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "crm_object_type": "contacts", + "request_body": "{\"properties\":[\"email\",\"phone\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_crm_properties_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_crm_properties_example_call_tool.py new file mode 100644 index 000000000..93f11ed00 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_crm_properties_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveCrmProperties" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'crm_object_type': 'contacts', + 'request_body': '{"properties":["email","phone"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_deal_in_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_deal_in_hubspot_example_call_tool.js new file mode 100644 index 000000000..d5788ce9a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_deal_in_hubspot_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveDealInHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "deal_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_deal_in_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_deal_in_hubspot_example_call_tool.py new file mode 100644 index 000000000..7dfb97a84 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_deal_in_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveDealInHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'deal_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_discounts_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_discounts_batch_example_call_tool.js new file mode 100644 index 000000000..d1e29eeb0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_discounts_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveDiscountsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"discount_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_discounts_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_discounts_batch_example_call_tool.py new file mode 100644 index 000000000..9a6ec4d5b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_discounts_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveDiscountsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"discount_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_emails_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_emails_batch_example_call_tool.js new file mode 100644 index 000000000..eedce1bad --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_emails_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveEmailsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"email_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_emails_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_emails_batch_example_call_tool.py new file mode 100644 index 000000000..b7f675dcc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_emails_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveEmailsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"email_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_fees_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_fees_batch_example_call_tool.js new file mode 100644 index 000000000..6f8f463e6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_fees_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveFeesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"fee_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_fees_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_fees_batch_example_call_tool.py new file mode 100644 index 000000000..5651eed8c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_fees_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveFeesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"fee_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_goal_targets_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_goal_targets_batch_example_call_tool.js new file mode 100644 index 000000000..4e17efad9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_goal_targets_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveGoalTargetsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"goal_target_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_goal_targets_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_goal_targets_batch_example_call_tool.py new file mode 100644 index 000000000..b8d4e8fff --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_goal_targets_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveGoalTargetsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"goal_target_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_lead_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_lead_example_call_tool.js new file mode 100644 index 000000000..1705ca0d4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_lead_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveHubspotLead"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "lead_identifier": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_lead_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_lead_example_call_tool.py new file mode 100644 index 000000000..45b46248c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_lead_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveHubspotLead" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'lead_identifier': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_objects_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_objects_batch_example_call_tool.js new file mode 100644 index 000000000..b2f5d117a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_objects_batch_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveHubspotObjectsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "hubspot_object_type": "contacts", + "request_body": "{\"ids\":[\"123\",\"456\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_objects_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_objects_batch_example_call_tool.py new file mode 100644 index 000000000..aacc199f3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_objects_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveHubspotObjectsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'hubspot_object_type': 'contacts', 'request_body': '{"ids":["123","456"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_tasks_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_tasks_example_call_tool.js new file mode 100644 index 000000000..2dadc1e73 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_tasks_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveHubspotTasks"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"task_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_tasks_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_tasks_example_call_tool.py new file mode 100644 index 000000000..45e6fccc1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_hubspot_tasks_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveHubspotTasks" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"task_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_invoices_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_invoices_batch_example_call_tool.js new file mode 100644 index 000000000..46b65d9a9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_invoices_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveInvoicesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"invoice_ids\":[\"inv123\",\"inv456\",\"inv789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_invoices_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_invoices_batch_example_call_tool.py new file mode 100644 index 000000000..a7789ac38 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_invoices_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveInvoicesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"invoice_ids":["inv123","inv456","inv789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_leads_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_leads_batch_example_call_tool.js new file mode 100644 index 000000000..776f0509c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_leads_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveLeadsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"lead_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_leads_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_leads_batch_example_call_tool.py new file mode 100644 index 000000000..06b66d315 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_leads_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveLeadsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"lead_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_line_items_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_line_items_batch_example_call_tool.js new file mode 100644 index 000000000..7cea6d482 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_line_items_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveLineItemsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"line_item_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_line_items_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_line_items_batch_example_call_tool.py new file mode 100644 index 000000000..5b30d14be --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_line_items_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveLineItemsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"line_item_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_meetings_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_meetings_batch_example_call_tool.js new file mode 100644 index 000000000..a65a0137d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_meetings_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveMeetingsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"meeting_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_meetings_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_meetings_batch_example_call_tool.py new file mode 100644 index 000000000..6ee9339bb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_meetings_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveMeetingsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"meeting_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_appointments_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_appointments_example_call_tool.js new file mode 100644 index 000000000..8f45a0dab --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_appointments_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveMultipleAppointments"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "appointment_object_type": "appointments", + "request_body": "{\"ids\":[\"123\",\"456\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_appointments_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_appointments_example_call_tool.py new file mode 100644 index 000000000..e1d8ce6c8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_appointments_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveMultipleAppointments" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'appointment_object_type': 'appointments', + 'request_body': '{"ids":["123","456"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_deals_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_deals_example_call_tool.js new file mode 100644 index 000000000..add6502a6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_deals_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveMultipleDeals"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"deal_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_deals_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_deals_example_call_tool.py new file mode 100644 index 000000000..4c6af5d2e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_deals_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveMultipleDeals" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"deal_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_listings_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_listings_example_call_tool.js new file mode 100644 index 000000000..601fcb9a8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_listings_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveMultipleListings"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"listing_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_listings_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_listings_example_call_tool.py new file mode 100644 index 000000000..c20fe75ec --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_multiple_listings_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveMultipleListings" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"listing_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_notes_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_notes_batch_example_call_tool.js new file mode 100644 index 000000000..6ebb14312 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_notes_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveNotesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"note_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_notes_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_notes_batch_example_call_tool.py new file mode 100644 index 000000000..01464ace5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_notes_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveNotesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"note_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_orders_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_orders_batch_example_call_tool.js new file mode 100644 index 000000000..0c752e2a6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_orders_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveOrdersBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"order_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_orders_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_orders_batch_example_call_tool.py new file mode 100644 index 000000000..ca2eb0a6f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_orders_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveOrdersBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"order_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_postal_mail_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_postal_mail_batch_example_call_tool.js new file mode 100644 index 000000000..eddffa36b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_postal_mail_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchivePostalMailBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_postal_mail_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_postal_mail_batch_example_call_tool.py new file mode 100644 index 000000000..229d37523 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_postal_mail_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchivePostalMailBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_postal_mail_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_postal_mail_example_call_tool.js new file mode 100644 index 000000000..1dcc01352 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_postal_mail_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchivePostalMail"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "postal_mail_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_postal_mail_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_postal_mail_example_call_tool.py new file mode 100644 index 000000000..5bbc2de2a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_postal_mail_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchivePostalMail" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'postal_mail_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_products_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_products_batch_example_call_tool.js new file mode 100644 index 000000000..15a5ac065 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_products_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveProductsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"product_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_products_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_products_batch_example_call_tool.py new file mode 100644 index 000000000..752165678 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_products_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveProductsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"product_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_quote_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_quote_example_call_tool.js new file mode 100644 index 000000000..8646d530c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_quote_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveQuote"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "quote_identifier": "Q12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_quote_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_quote_example_call_tool.py new file mode 100644 index 000000000..454857020 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_quote_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveQuote" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'quote_identifier': 'Q12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_quotes_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_quotes_batch_example_call_tool.js new file mode 100644 index 000000000..ef7ae3a1d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_quotes_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveQuotesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"quoteIds\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_quotes_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_quotes_batch_example_call_tool.py new file mode 100644 index 000000000..53d6dff3b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_quotes_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveQuotesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"quoteIds":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_services_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_services_batch_example_call_tool.js new file mode 100644 index 000000000..caf26b06b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_services_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveServicesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"service_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_services_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_services_batch_example_call_tool.py new file mode 100644 index 000000000..55f84ad7d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_services_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveServicesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"service_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_subscriptions_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_subscriptions_batch_example_call_tool.js new file mode 100644 index 000000000..56185c020 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_subscriptions_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveSubscriptionsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"subscription_ids\":[\"sub_123\",\"sub_456\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_subscriptions_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_subscriptions_batch_example_call_tool.py new file mode 100644 index 000000000..2ba1be83d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_subscriptions_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveSubscriptionsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"subscription_ids":["sub_123","sub_456"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_tax_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_tax_batch_example_call_tool.js new file mode 100644 index 000000000..56e6a972a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_tax_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveTaxBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"tax_ids\":[\"tax123\",\"tax456\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_tax_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_tax_batch_example_call_tool.py new file mode 100644 index 000000000..30ef3cf01 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_tax_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveTaxBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"tax_ids":["tax123","tax456"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_users_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_users_batch_example_call_tool.js new file mode 100644 index 000000000..96ede4638 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_users_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ArchiveUsersBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"user_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_users_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_users_batch_example_call_tool.py new file mode 100644 index 000000000..831246921 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/archive_users_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ArchiveUsersBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"user_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/associate_partner_client_with_object_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/associate_partner_client_with_object_example_call_tool.js new file mode 100644 index 000000000..0e45aa127 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/associate_partner_client_with_object_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.AssociatePartnerClientWithObject"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "association_type": "contact", + "partner_client_id": "partner123", + "target_object_id": "object456", + "target_object_type": "company" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/associate_partner_client_with_object_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/associate_partner_client_with_object_example_call_tool.py new file mode 100644 index 000000000..631fdf516 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/associate_partner_client_with_object_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.AssociatePartnerClientWithObject" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'association_type': 'contact', + 'partner_client_id': 'partner123', + 'target_object_id': 'object456', + 'target_object_type': 'company' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/associate_partner_service_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/associate_partner_service_example_call_tool.js new file mode 100644 index 000000000..d3e37a22e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/associate_partner_service_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.AssociatePartnerService"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "association_type": "owner", + "partner_service_id": "ps_12345", + "target_object_id": "obj_67890", + "target_object_type": "contacts" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/associate_partner_service_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/associate_partner_service_example_call_tool.py new file mode 100644 index 000000000..8a1055ae1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/associate_partner_service_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.AssociatePartnerService" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'association_type': 'owner', + 'partner_service_id': 'ps_12345', + 'target_object_id': 'obj_67890', + 'target_object_type': 'contacts' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_create_timeline_events_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_create_timeline_events_example_call_tool.js new file mode 100644 index 000000000..940447b93 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_create_timeline_events_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.BatchCreateTimelineEvents"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"events\":[{\"title\":\"Meeting\",\"start\":\"2023-10-01T10:00:00Z\",\"end\":\"2023-10-01T11:00:00Z\"},{\"title\":\"Workshop\",\"start\":\"2023-10-02T14:00:00Z\",\"end\":\"2023-10-02T16:00:00Z\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_create_timeline_events_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_create_timeline_events_example_call_tool.py new file mode 100644 index 000000000..7dd9476e3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_create_timeline_events_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.BatchCreateTimelineEvents" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"events":[{"title":"Meeting","start":"2023-10-01T10:00:00Z","end":"2023-10-01T11:00:00Z"},{"title":"Workshop","start":"2023-10-02T14:00:00Z","end":"2023-10-02T16:00:00Z"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_associations_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_associations_example_call_tool.js new file mode 100644 index 000000000..579b500bb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_associations_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.BatchReadAssociations"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "source_object_type": "contacts", + "destination_object_type": "companies", + "request_body": "{\"associations\":[{\"id\":1},{\"id\":2}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_associations_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_associations_example_call_tool.py new file mode 100644 index 000000000..6b1efd276 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_associations_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.BatchReadAssociations" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'source_object_type': 'contacts', + 'destination_object_type': 'companies', + 'request_body': '{"associations":[{"id":1},{"id":2}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_contacts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_contacts_example_call_tool.js new file mode 100644 index 000000000..c700cdcd8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_contacts_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.BatchReadContacts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_only": false, + "request_body": "{\"ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_contacts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_contacts_example_call_tool.py new file mode 100644 index 000000000..007dbb8f3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_contacts_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.BatchReadContacts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_archived_only': False, 'request_body': '{"ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_partner_clients_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_partner_clients_example_call_tool.js new file mode 100644 index 000000000..ecd52c586 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_partner_clients_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.BatchReadPartnerClients"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "include_archived": true, + "request_body": "{\"client_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_partner_clients_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_partner_clients_example_call_tool.py new file mode 100644 index 000000000..9e508298d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_read_partner_clients_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.BatchReadPartnerClients" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'include_archived': True, 'request_body': '{"client_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_retrieve_hubspot_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_retrieve_hubspot_records_example_call_tool.js new file mode 100644 index 000000000..db2c017fc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_retrieve_hubspot_records_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.BatchRetrieveHubspotRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "crm_object_type": "contact", + "return_archived_results": false, + "request_body": "{\"ids\":[\"123\",\"456\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_retrieve_hubspot_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_retrieve_hubspot_records_example_call_tool.py new file mode 100644 index 000000000..8186fd32d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_retrieve_hubspot_records_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.BatchRetrieveHubspotRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'crm_object_type': 'contact', + 'return_archived_results': False, + 'request_body': '{"ids":["123","456"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_update_notes_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_update_notes_example_call_tool.js new file mode 100644 index 000000000..bcca18afc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_update_notes_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.BatchUpdateNotes"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"notes\":[{\"id\":\"123\",\"content\":\"Updated note content\"},{\"id\":\"456\",\"content\":\"Another updated note\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_update_notes_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_update_notes_example_call_tool.py new file mode 100644 index 000000000..bd040993d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_update_notes_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.BatchUpdateNotes" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"notes":[{"id":"123","content":"Updated note ' + 'content"},{"id":"456","content":"Another updated note"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_upsert_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_upsert_records_example_call_tool.js new file mode 100644 index 000000000..3ee50e49d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_upsert_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.BatchUpsertRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"records\":[{\"id\":\"123\",\"properties\":{\"name\":\"John Doe\",\"email\":\"john@example.com\"}}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_upsert_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_upsert_records_example_call_tool.py new file mode 100644 index 000000000..2bef1f316 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/batch_upsert_records_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.BatchUpsertRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"records":[{"id":"123","properties":{"name":"John ' + 'Doe","email":"john@example.com"}}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_appointments_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_appointments_example_call_tool.js new file mode 100644 index 000000000..705517f49 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_appointments_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchAppointments"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "appointment_object_type": "appointments", + "request_body": "{\"appointments\":[{\"date\":\"2023-10-01\",\"time\":\"10:00\",\"duration\":30},{\"date\":\"2023-10-02\",\"time\":\"11:00\",\"duration\":60}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_appointments_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_appointments_example_call_tool.py new file mode 100644 index 000000000..c709f808b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_appointments_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchAppointments" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'appointment_object_type': 'appointments', + 'request_body': '{"appointments":[{"date":"2023-10-01","time":"10:00","duration":30},{"date":"2023-10-02","time":"11:00","duration":60}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_associations_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_associations_hubspot_example_call_tool.js new file mode 100644 index 000000000..648992bf0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_associations_hubspot_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchAssociationsHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "from_object_type": "contact", + "target_object_type": "company", + "request_body": "{\"associations\":[{\"fromId\":1,\"toId\":2},{\"fromId\":3,\"toId\":4}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_associations_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_associations_hubspot_example_call_tool.py new file mode 100644 index 000000000..281d6548b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_associations_hubspot_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchAssociationsHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'from_object_type': 'contact', + 'target_object_type': 'company', + 'request_body': '{"associations":[{"fromId":1,"toId":2},{"fromId":3,"toId":4}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_commerce_payments_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_commerce_payments_example_call_tool.js new file mode 100644 index 000000000..b288042a5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_commerce_payments_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchCommercePayments"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"payments\":[{\"amount\":100,\"currency\":\"USD\",\"description\":\"Payment for services\"},{\"amount\":200,\"currency\":\"EUR\",\"description\":\"Payment for goods\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_commerce_payments_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_commerce_payments_example_call_tool.py new file mode 100644 index 000000000..afd3ba901 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_commerce_payments_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchCommercePayments" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"payments":[{"amount":100,"currency":"USD","description":"Payment for ' + 'services"},{"amount":200,"currency":"EUR","description":"Payment for ' + 'goods"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_contacts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_contacts_example_call_tool.js new file mode 100644 index 000000000..a12c074e1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_contacts_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchContacts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"contacts\":[{\"email\":\"john.doe@example.com\",\"firstName\":\"John\",\"lastName\":\"Doe\"},{\"email\":\"jane.smith@example.com\",\"firstName\":\"Jane\",\"lastName\":\"Smith\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_contacts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_contacts_example_call_tool.py new file mode 100644 index 000000000..553ddc5d3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_contacts_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchContacts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"contacts":[{"email":"john.doe@example.com","firstName":"John","lastName":"Doe"},{"email":"jane.smith@example.com","firstName":"Jane","lastName":"Smith"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_discounts_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_discounts_hubspot_example_call_tool.js new file mode 100644 index 000000000..2507c098a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_discounts_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchDiscountsHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"discounts\":[{\"name\":\"Spring Sale\",\"amount\":10},{\"name\":\"Summer Discount\",\"amount\":15}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_discounts_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_discounts_hubspot_example_call_tool.py new file mode 100644 index 000000000..b744451a0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_discounts_hubspot_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchDiscountsHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"discounts":[{"name":"Spring Sale","amount":10},{"name":"Summer ' + 'Discount","amount":15}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_fees_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_fees_example_call_tool.js new file mode 100644 index 000000000..4c8f8aa67 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_fees_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchFees"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"fees\":[{\"amount\":100,\"description\":\"Service Fee\"},{\"amount\":200,\"description\":\"Consultation Fee\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_fees_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_fees_example_call_tool.py new file mode 100644 index 000000000..3e3def5f5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_fees_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchFees" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"fees":[{"amount":100,"description":"Service ' + 'Fee"},{"amount":200,"description":"Consultation Fee"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_meetings_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_meetings_example_call_tool.js new file mode 100644 index 000000000..7e322b994 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_meetings_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchMeetings"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"meetings\":[{\"title\":\"Project Kickoff\",\"date\":\"2023-10-15T10:00:00Z\",\"duration\":60},{\"title\":\"Weekly Sync\",\"date\":\"2023-10-16T14:00:00Z\",\"duration\":30}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_meetings_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_meetings_example_call_tool.py new file mode 100644 index 000000000..137b2e3ae --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_meetings_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchMeetings" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"meetings":[{"title":"Project ' + 'Kickoff","date":"2023-10-15T10:00:00Z","duration":60},{"title":"Weekly ' + 'Sync","date":"2023-10-16T14:00:00Z","duration":30}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_calls_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_calls_example_call_tool.js new file mode 100644 index 000000000..3c9c7f3ff --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_calls_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchOfCalls"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"calls\":[{\"subject\":\"Follow up\",\"body\":\"Discuss project updates\",\"associations\":{\"contactId\":\"12345\"}}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_calls_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_calls_example_call_tool.py new file mode 100644 index 000000000..bc540558f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_calls_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchOfCalls" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"calls":[{"subject":"Follow up","body":"Discuss project ' + 'updates","associations":{"contactId":"12345"}}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_carts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_carts_example_call_tool.js new file mode 100644 index 000000000..c8c50e23a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_carts_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchOfCarts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"carts\":[{\"id\":\"cart1\",\"items\":[{\"product_id\":\"prod1\",\"quantity\":2},{\"product_id\":\"prod2\",\"quantity\":1}]},{\"id\":\"cart2\",\"items\":[{\"product_id\":\"prod3\",\"quantity\":1}]}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_carts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_carts_example_call_tool.py new file mode 100644 index 000000000..17fad67ed --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_carts_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchOfCarts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"carts":[{"id":"cart1","items":[{"product_id":"prod1","quantity":2},{"product_id":"prod2","quantity":1}]},{"id":"cart2","items":[{"product_id":"prod3","quantity":1}]}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_companies_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_companies_example_call_tool.js new file mode 100644 index 000000000..c126fc402 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_companies_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchOfCompanies"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"companies\":[{\"name\":\"Company A\",\"industry\":\"Tech\"},{\"name\":\"Company B\",\"industry\":\"Finance\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_companies_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_companies_example_call_tool.py new file mode 100644 index 000000000..c31e5ad8a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_companies_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchOfCompanies" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"companies":[{"name":"Company A","industry":"Tech"},{"name":"Company ' + 'B","industry":"Finance"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_courses_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_courses_example_call_tool.js new file mode 100644 index 000000000..bf4a679fa --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_courses_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchOfCourses"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"courses\":[{\"title\":\"Course 1\",\"description\":\"Description of Course 1\"},{\"title\":\"Course 2\",\"description\":\"Description of Course 2\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_courses_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_courses_example_call_tool.py new file mode 100644 index 000000000..75185aacf --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_courses_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchOfCourses" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"courses":[{"title":"Course 1","description":"Description of Course ' + '1"},{"title":"Course 2","description":"Description of Course 2"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_emails_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_emails_example_call_tool.js new file mode 100644 index 000000000..6c487037b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_emails_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchOfEmails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"emails\":[{\"to\":\"example@example.com\",\"subject\":\"Hello World\",\"body\":\"This is a test email.\"},{\"to\":\"test@test.com\",\"subject\":\"Greetings\",\"body\":\"This is another test email.\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_emails_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_emails_example_call_tool.py new file mode 100644 index 000000000..d453dacc7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_emails_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchOfEmails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"emails":[{"to":"example@example.com","subject":"Hello World","body":"This ' + 'is a test email."},{"to":"test@test.com","subject":"Greetings","body":"This ' + 'is another test email."}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_invoices_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_invoices_example_call_tool.js new file mode 100644 index 000000000..85f7d2538 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_invoices_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchOfInvoices"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"invoices\":[{\"amount\":100,\"currency\":\"USD\",\"customer_id\":\"12345\"},{\"amount\":200,\"currency\":\"USD\",\"customer_id\":\"67890\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_invoices_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_invoices_example_call_tool.py new file mode 100644 index 000000000..a18d7d69f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_invoices_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchOfInvoices" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"invoices":[{"amount":100,"currency":"USD","customer_id":"12345"},{"amount":200,"currency":"USD","customer_id":"67890"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_notes_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_notes_example_call_tool.js new file mode 100644 index 000000000..2fea140da --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_notes_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchOfNotes"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"notes\":[{\"title\":\"Note 1\",\"content\":\"Content for note 1\"},{\"title\":\"Note 2\",\"content\":\"Content for note 2\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_notes_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_notes_example_call_tool.py new file mode 100644 index 000000000..1b2ddd058 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_notes_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchOfNotes" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"notes":[{"title":"Note 1","content":"Content for note 1"},{"title":"Note ' + '2","content":"Content for note 2"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_products_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_products_example_call_tool.js new file mode 100644 index 000000000..0cc3e7815 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_products_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchOfProducts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"products\":[{\"name\":\"Product 1\",\"price\":100},{\"name\":\"Product 2\",\"price\":150}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_products_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_products_example_call_tool.py new file mode 100644 index 000000000..95f761a9d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_products_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchOfProducts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"products":[{"name":"Product 1","price":100},{"name":"Product ' + '2","price":150}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_quotes_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_quotes_example_call_tool.js new file mode 100644 index 000000000..ff8db1f13 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_quotes_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchOfQuotes"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"quotes\":[{\"client\":\"Client A\",\"amount\":1000},{\"client\":\"Client B\",\"amount\":2000}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_quotes_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_quotes_example_call_tool.py new file mode 100644 index 000000000..9d40e0f34 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_quotes_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchOfQuotes" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"quotes":[{"client":"Client A","amount":1000},{"client":"Client ' + 'B","amount":2000}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_services_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_services_example_call_tool.js new file mode 100644 index 000000000..ec06828f7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_services_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchOfServices"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"services\":[{\"name\":\"Service A\",\"description\":\"Description of Service A\"},{\"name\":\"Service B\",\"description\":\"Description of Service B\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_services_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_services_example_call_tool.py new file mode 100644 index 000000000..75ffb8294 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_of_services_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchOfServices" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"services":[{"name":"Service A","description":"Description of Service ' + 'A"},{"name":"Service B","description":"Description of Service B"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_orders_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_orders_example_call_tool.js new file mode 100644 index 000000000..c068647be --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_orders_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchOrders"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"orders\":[{\"product_id\":\"123\",\"quantity\":2},{\"product_id\":\"456\",\"quantity\":1}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_orders_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_orders_example_call_tool.py new file mode 100644 index 000000000..086f5b5fb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_orders_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchOrders" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"orders":[{"product_id":"123","quantity":2},{"product_id":"456","quantity":1}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_properties_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_properties_example_call_tool.js new file mode 100644 index 000000000..c6d3226c0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_properties_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchProperties"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "object_type": "contacts", + "request_body": "{\"properties\":[{\"name\":\"email\",\"label\":\"Email\",\"type\":\"string\"},{\"name\":\"firstname\",\"label\":\"First Name\",\"type\":\"string\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_properties_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_properties_example_call_tool.py new file mode 100644 index 000000000..41f1c2a81 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_properties_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchProperties" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'object_type': 'contacts', + 'request_body': '{"properties":[{"name":"email","label":"Email","type":"string"},{"name":"firstname","label":"First ' + 'Name","type":"string"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_subscriptions_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_subscriptions_example_call_tool.js new file mode 100644 index 000000000..1568592d2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_subscriptions_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchSubscriptions"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"subscriptions\":[{\"email\":\"test@example.com\",\"plan\":\"basic\"},{\"email\":\"user@example.com\",\"plan\":\"premium\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_subscriptions_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_subscriptions_example_call_tool.py new file mode 100644 index 000000000..5b29e6dae --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_subscriptions_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchSubscriptions" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"subscriptions":[{"email":"test@example.com","plan":"basic"},{"email":"user@example.com","plan":"premium"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_tasks_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_tasks_example_call_tool.js new file mode 100644 index 000000000..ce6235450 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_tasks_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchTasks"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"tasks\":[{\"title\":\"Follow up with client\",\"due_date\":\"2023-10-30\",\"priority\":\"high\"},{\"title\":\"Send proposal\",\"due_date\":\"2023-11-05\",\"priority\":\"medium\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_tasks_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_tasks_example_call_tool.py new file mode 100644 index 000000000..544dd5f54 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_tasks_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchTasks" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"tasks":[{"title":"Follow up with ' + 'client","due_date":"2023-10-30","priority":"high"},{"title":"Send ' + 'proposal","due_date":"2023-11-05","priority":"medium"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_tickets_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_tickets_example_call_tool.js new file mode 100644 index 000000000..fd2709fa6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_tickets_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateBatchTickets"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"tickets\":[{\"subject\":\"Issue with login\",\"status\":\"open\"},{\"subject\":\"Feature request\",\"status\":\"pending\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_tickets_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_tickets_example_call_tool.py new file mode 100644 index 000000000..bdd7a133d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_batch_tickets_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateBatchTickets" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"tickets":[{"subject":"Issue with ' + 'login","status":"open"},{"subject":"Feature request","status":"pending"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_cart_hubspot_crm_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_cart_hubspot_crm_example_call_tool.js new file mode 100644 index 000000000..a760104af --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_cart_hubspot_crm_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateCartHubspotCrm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"customer_id\":\"12345\",\"items\":[{\"product_id\":\"abc\",\"quantity\":2}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_cart_hubspot_crm_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_cart_hubspot_crm_example_call_tool.py new file mode 100644 index 000000000..b5b0bad7a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_cart_hubspot_crm_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateCartHubspotCrm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"customer_id":"12345","items":[{"product_id":"abc","quantity":2}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_commerce_payment_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_commerce_payment_example_call_tool.js new file mode 100644 index 000000000..8e174b165 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_commerce_payment_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateCommercePayment"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"amount\":100,\"currency\":\"USD\",\"payment_method\":\"credit_card\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_commerce_payment_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_commerce_payment_example_call_tool.py new file mode 100644 index 000000000..24dbdae07 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_commerce_payment_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateCommercePayment" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"amount":100,"currency":"USD","payment_method":"credit_card"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_company_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_company_hubspot_example_call_tool.js new file mode 100644 index 000000000..89ca34e8a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_company_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateCompanyHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"name\":\"Sample Company\",\"domain\":\"samplecompany.com\",\"properties\":{\"industry\":\"Technology\",\"size\":\"50-100\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_company_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_company_hubspot_example_call_tool.py new file mode 100644 index 000000000..cdfdeeb25 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_company_hubspot_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateCompanyHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"name":"Sample ' + 'Company","domain":"samplecompany.com","properties":{"industry":"Technology","size":"50-100"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_appointment_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_appointment_example_call_tool.js new file mode 100644 index 000000000..834b45486 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_appointment_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateCrmAppointment"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "appointment_object_type": "appointment", + "request_body": "{\"title\":\"Meeting with client\",\"date\":\"2023-10-15T10:00:00Z\",\"duration\":60}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_appointment_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_appointment_example_call_tool.py new file mode 100644 index 000000000..13937ad1e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_appointment_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateCrmAppointment" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'appointment_object_type': 'appointment', + 'request_body': '{"title":"Meeting with client","date":"2023-10-15T10:00:00Z","duration":60}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_association_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_association_example_call_tool.js new file mode 100644 index 000000000..777b6cd5e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_association_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateCrmObjectAssociation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "crm_object_type_schema": "crm.objects.contact", + "primary_object_type_id": "12345", + "target_object_type_id": "67890", + "association_name": "Contact to Company Link" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_association_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_association_example_call_tool.py new file mode 100644 index 000000000..ca84514a6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_association_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateCrmObjectAssociation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'crm_object_type_schema': 'crm.objects.contact', + 'primary_object_type_id': '12345', + 'target_object_type_id': '67890', + 'association_name': 'Contact to Company Link' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_example_call_tool.js new file mode 100644 index 000000000..1d8fa6479 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateCrmObject"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "crm_object_type": "contact", + "request_body": "{\"properties\":{\"firstname\":\"John\",\"lastname\":\"Doe\",\"email\":\"john.doe@example.com\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_example_call_tool.py new file mode 100644 index 000000000..afd62405f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateCrmObject" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'crm_object_type': 'contact', + 'request_body': '{"properties":{"firstname":"John","lastname":"Doe","email":"john.doe@example.com"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_schema_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_schema_example_call_tool.js new file mode 100644 index 000000000..99a8ee27d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_schema_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateCrmObjectSchema"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"name\":\"CustomObject\",\"properties\":[{\"name\":\"property1\",\"type\":\"string\"},{\"name\":\"property2\",\"type\":\"number\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_schema_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_schema_example_call_tool.py new file mode 100644 index 000000000..a8fee8177 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_object_schema_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateCrmObjectSchema" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"name":"CustomObject","properties":[{"name":"property1","type":"string"},{"name":"property2","type":"number"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_pipeline_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_pipeline_example_call_tool.js new file mode 100644 index 000000000..06ae02f62 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_pipeline_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateCrmPipeline"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "pipeline_object_type": "deals", + "request_body": "{\"name\":\"New Sales Pipeline\",\"stages\":[{\"label\":\"Initial Contact\",\"probability\":0},{\"label\":\"Negotiation\",\"probability\":50},{\"label\":\"Closed Won\",\"probability\":100}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_pipeline_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_pipeline_example_call_tool.py new file mode 100644 index 000000000..cde9b644e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_pipeline_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateCrmPipeline" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'pipeline_object_type': 'deals', + 'request_body': '{"name":"New Sales Pipeline","stages":[{"label":"Initial ' + 'Contact","probability":0},{"label":"Negotiation","probability":50},{"label":"Closed ' + 'Won","probability":100}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_user_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_user_example_call_tool.js new file mode 100644 index 000000000..06ee420f8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_user_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateCrmUser"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"name\":\"John Doe\",\"email\":\"john.doe@example.com\",\"role\":\"Sales\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_user_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_user_example_call_tool.py new file mode 100644 index 000000000..328c6cca6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_crm_user_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateCrmUser" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"name":"John Doe","email":"john.doe@example.com","role":"Sales"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_discount_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_discount_example_call_tool.js new file mode 100644 index 000000000..2c2571dfd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_discount_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateDiscount"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"discount_name\":\"Spring Sale\",\"discount_percentage\":20}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_discount_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_discount_example_call_tool.py new file mode 100644 index 000000000..ed3046011 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_discount_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateDiscount" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"discount_name":"Spring Sale","discount_percentage":20}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_fee_in_crm_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_fee_in_crm_example_call_tool.js new file mode 100644 index 000000000..86fb79ad2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_fee_in_crm_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateFeeInCrm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"feeAmount\":100,\"description\":\"Service fee\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_fee_in_crm_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_fee_in_crm_example_call_tool.py new file mode 100644 index 000000000..d63669a8a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_fee_in_crm_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateFeeInCrm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"feeAmount":100,"description":"Service fee"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_folder_hubspot_crm_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_folder_hubspot_crm_example_call_tool.js new file mode 100644 index 000000000..addab836b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_folder_hubspot_crm_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateFolderHubspotCrm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "folder_name": "Project Documents", + "parent_folder_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_folder_hubspot_crm_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_folder_hubspot_crm_example_call_tool.py new file mode 100644 index 000000000..80e5a3039 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_folder_hubspot_crm_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateFolderHubspotCrm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'folder_name': 'Project Documents', 'parent_folder_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_goal_target_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_goal_target_example_call_tool.js new file mode 100644 index 000000000..8901b1bea --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_goal_target_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateGoalTarget"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"goal_name\":\"Increase Sales\",\"target_value\":10000,\"time_frame\":\"Q1 2024\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_goal_target_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_goal_target_example_call_tool.py new file mode 100644 index 000000000..ee503f63a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_goal_target_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateGoalTarget" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"goal_name":"Increase Sales","target_value":10000,"time_frame":"Q1 2024"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_goal_targets_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_goal_targets_batch_example_call_tool.js new file mode 100644 index 000000000..fa003d128 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_goal_targets_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateGoalTargetsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"targets\":[{\"name\":\"Target 1\",\"value\":100},{\"name\":\"Target 2\",\"value\":200}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_goal_targets_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_goal_targets_batch_example_call_tool.py new file mode 100644 index 000000000..b1055e238 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_goal_targets_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateGoalTargetsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"targets":[{"name":"Target 1","value":100},{"name":"Target 2","value":200}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_call_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_call_example_call_tool.js new file mode 100644 index 000000000..a01de6d4a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_call_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotCall"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"subject\":\"Follow up call\",\"duration\":30,\"contactId\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_call_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_call_example_call_tool.py new file mode 100644 index 000000000..81b6dddf4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_call_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotCall" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"subject":"Follow up call","duration":30,"contactId":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_communication_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_communication_example_call_tool.js new file mode 100644 index 000000000..81b8d4878 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_communication_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotCommunication"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"subject\":\"Meeting Reminder\",\"body\":\"Don't forget about the meeting tomorrow at 10 AM.\",\"recipient\":\"john.doe@example.com\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_communication_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_communication_example_call_tool.py new file mode 100644 index 000000000..3ea43b9ac --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_communication_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotCommunication" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"subject":"Meeting Reminder","body":"Don\'t forget about the meeting ' + 'tomorrow at 10 AM.","recipient":"john.doe@example.com"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_contact_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_contact_example_call_tool.js new file mode 100644 index 000000000..2b0a9abc5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_contact_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotContact"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"properties\":{\"email\":\"john.doe@example.com\",\"firstname\":\"John\",\"lastname\":\"Doe\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_contact_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_contact_example_call_tool.py new file mode 100644 index 000000000..522ae3cc4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_contact_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotContact" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"properties":{"email":"john.doe@example.com","firstname":"John","lastname":"Doe"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_course_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_course_example_call_tool.js new file mode 100644 index 000000000..7dbc828b8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_course_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotCourse"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"course_name\":\"Introduction to AI\",\"description\":\"A beginner's course on AI concepts.\",\"duration\":\"4 weeks\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_course_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_course_example_call_tool.py new file mode 100644 index 000000000..54bf9523f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_course_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotCourse" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"course_name":"Introduction to AI","description":"A beginner\'s course on AI ' + 'concepts.","duration":"4 weeks"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_crm_property_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_crm_property_example_call_tool.js new file mode 100644 index 000000000..7457d84d1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_crm_property_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotCrmProperty"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "object_type": "contact", + "request_body": "{\"name\":\"custom_property\",\"type\":\"string\",\"fieldType\":\"text\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_crm_property_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_crm_property_example_call_tool.py new file mode 100644 index 000000000..5fc59563d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_crm_property_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotCrmProperty" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'object_type': 'contact', + 'request_body': '{"name":"custom_property","type":"string","fieldType":"text"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_deal_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_deal_example_call_tool.js new file mode 100644 index 000000000..b603ca0c5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_deal_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotDeal"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"dealName\":\"New Deal\",\"amount\":10000,\"stage\":\"Negotiation\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_deal_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_deal_example_call_tool.py new file mode 100644 index 000000000..7c9553381 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_deal_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotDeal" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"dealName":"New Deal","amount":10000,"stage":"Negotiation"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_email_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_email_example_call_tool.js new file mode 100644 index 000000000..b6c8812bf --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_email_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotEmail"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"subject\":\"Monthly Newsletter\",\"content\":\"Hello, this is our monthly newsletter!\",\"recipient_list\":[\"example@example.com\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_email_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_email_example_call_tool.py new file mode 100644 index 000000000..83e1a055c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_email_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotEmail" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"subject":"Monthly Newsletter","content":"Hello, this is our monthly ' + 'newsletter!","recipient_list":["example@example.com"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_invoice_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_invoice_example_call_tool.js new file mode 100644 index 000000000..a951fbe3c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_invoice_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotInvoice"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"customer_id\":\"12345\",\"amount\":250.00,\"currency\":\"USD\",\"line_items\":[{\"description\":\"Web Development Services\",\"quantity\":1,\"price\":250.00}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_invoice_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_invoice_example_call_tool.py new file mode 100644 index 000000000..a1dd3ae17 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_invoice_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotInvoice" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"customer_id":"12345","amount":250.00,"currency":"USD","line_items":[{"description":"Web ' + 'Development Services","quantity":1,"price":250.00}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_line_item_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_line_item_example_call_tool.js new file mode 100644 index 000000000..689c61f53 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_line_item_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotLineItem"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"name\":\"Sample Line Item\",\"price\":100,\"quantity\":1}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_line_item_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_line_item_example_call_tool.py new file mode 100644 index 000000000..d485f8aa1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_line_item_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotLineItem" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"name":"Sample Line Item","price":100,"quantity":1}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_listing_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_listing_example_call_tool.js new file mode 100644 index 000000000..388178cfc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_listing_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotListing"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"name\":\"Sample Listing\",\"description\":\"This is a sample listing for demonstration purposes.\",\"price\":100}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_listing_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_listing_example_call_tool.py new file mode 100644 index 000000000..d5ef6156c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_listing_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotListing" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"name":"Sample Listing","description":"This is a sample listing for ' + 'demonstration purposes.","price":100}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_meeting_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_meeting_example_call_tool.js new file mode 100644 index 000000000..5b535bba8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_meeting_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotMeeting"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"subject\":\"Project Update\",\"start_time\":\"2023-10-10T10:00:00Z\",\"end_time\":\"2023-10-10T11:00:00Z\",\"participants\":[{\"email\":\"example@example.com\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_meeting_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_meeting_example_call_tool.py new file mode 100644 index 000000000..84f367ce3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_meeting_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotMeeting" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"subject":"Project ' + 'Update","start_time":"2023-10-10T10:00:00Z","end_time":"2023-10-10T11:00:00Z","participants":[{"email":"example@example.com"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_messages_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_messages_batch_example_call_tool.js new file mode 100644 index 000000000..a760387d8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_messages_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotMessagesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"messages\":[{\"to\":\"example@example.com\",\"subject\":\"Hello\",\"body\":\"This is a test message.\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_messages_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_messages_batch_example_call_tool.py new file mode 100644 index 000000000..f7b04216e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_messages_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotMessagesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"messages":[{"to":"example@example.com","subject":"Hello","body":"This is a ' + 'test message."}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_objects_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_objects_batch_example_call_tool.js new file mode 100644 index 000000000..86823158a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_objects_batch_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotObjectsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "hubspot_object_type": "contacts", + "request_body": "{\"properties\":{\"email\":\"test@example.com\",\"firstname\":\"John\",\"lastname\":\"Doe\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_objects_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_objects_batch_example_call_tool.py new file mode 100644 index 000000000..a48072dd2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_objects_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotObjectsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'hubspot_object_type': 'contacts', + 'request_body': '{"properties":{"email":"test@example.com","firstname":"John","lastname":"Doe"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_order_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_order_example_call_tool.js new file mode 100644 index 000000000..17b232805 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_order_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotOrder"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"customer_id\":\"12345\",\"product_id\":\"abcde\",\"quantity\":2,\"status\":\"pending\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_order_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_order_example_call_tool.py new file mode 100644 index 000000000..5d609d093 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_order_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotOrder" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"customer_id":"12345","product_id":"abcde","quantity":2,"status":"pending"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_quote_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_quote_example_call_tool.js new file mode 100644 index 000000000..ece685950 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_quote_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotQuote"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"quote_name\":\"Sample Quote\",\"amount\":1000,\"currency\":\"USD\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_quote_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_quote_example_call_tool.py new file mode 100644 index 000000000..8c9caecd1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_quote_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotQuote" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"quote_name":"Sample Quote","amount":1000,"currency":"USD"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_tax_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_tax_example_call_tool.js new file mode 100644 index 000000000..076bf3f29 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_tax_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateHubspotTax"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"name\":\"Sales Tax\",\"rate\":0.07}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_tax_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_tax_example_call_tool.py new file mode 100644 index 000000000..6fc693147 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_hubspot_tax_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateHubspotTax" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"name":"Sales Tax","rate":0.07}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_lead_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_lead_hubspot_example_call_tool.js new file mode 100644 index 000000000..5a9534516 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_lead_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateLeadHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"email\":\"test@example.com\",\"firstName\":\"John\",\"lastName\":\"Doe\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_lead_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_lead_hubspot_example_call_tool.py new file mode 100644 index 000000000..13445cbbf --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_lead_hubspot_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateLeadHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"email":"test@example.com","firstName":"John","lastName":"Doe"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_leads_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_leads_batch_example_call_tool.js new file mode 100644 index 000000000..ad1817072 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_leads_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateLeadsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"leads\":[{\"name\":\"John Doe\",\"email\":\"john@example.com\"},{\"name\":\"Jane Smith\",\"email\":\"jane@example.com\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_leads_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_leads_batch_example_call_tool.py new file mode 100644 index 000000000..3506ff04c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_leads_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateLeadsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"leads":[{"name":"John Doe","email":"john@example.com"},{"name":"Jane ' + 'Smith","email":"jane@example.com"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_line_items_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_line_items_batch_example_call_tool.js new file mode 100644 index 000000000..955b92d7f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_line_items_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateLineItemsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"line_items\":[{\"name\":\"Item 1\",\"quantity\":2,\"price\":10.0},{\"name\":\"Item 2\",\"quantity\":1,\"price\":15.0}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_line_items_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_line_items_batch_example_call_tool.py new file mode 100644 index 000000000..c4b6649f3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_line_items_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateLineItemsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"line_items":[{"name":"Item 1","quantity":2,"price":10.0},{"name":"Item ' + '2","quantity":1,"price":15.0}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_multiple_deals_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_multiple_deals_example_call_tool.js new file mode 100644 index 000000000..641d5b4f9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_multiple_deals_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateMultipleDeals"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"deals\":[{\"name\":\"Deal 1\",\"amount\":1000},{\"name\":\"Deal 2\",\"amount\":2000}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_multiple_deals_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_multiple_deals_example_call_tool.py new file mode 100644 index 000000000..e0a22f619 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_multiple_deals_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateMultipleDeals" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"deals":[{"name":"Deal 1","amount":1000},{"name":"Deal 2","amount":2000}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_multiple_listings_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_multiple_listings_example_call_tool.js new file mode 100644 index 000000000..439504b0c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_multiple_listings_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateMultipleListings"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"listings\":[{\"title\":\"Listing 1\",\"description\":\"Description for listing 1\"},{\"title\":\"Listing 2\",\"description\":\"Description for listing 2\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_multiple_listings_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_multiple_listings_example_call_tool.py new file mode 100644 index 000000000..58ad3032b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_multiple_listings_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateMultipleListings" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"listings":[{"title":"Listing 1","description":"Description for listing ' + '1"},{"title":"Listing 2","description":"Description for listing 2"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_note_in_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_note_in_hubspot_example_call_tool.js new file mode 100644 index 000000000..eadc28ad9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_note_in_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateNoteInHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"note\":\"This is a sample note\",\"associations\":{\"contacts\":[12345]}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_note_in_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_note_in_hubspot_example_call_tool.py new file mode 100644 index 000000000..0021e00ca --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_note_in_hubspot_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateNoteInHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"note":"This is a sample note","associations":{"contacts":[12345]}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_object_association_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_object_association_example_call_tool.js new file mode 100644 index 000000000..d5972484e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_object_association_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateObjectAssociation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "association_type": "contact_to_company", + "source_object_id": "12345", + "source_object_type": "contact", + "target_object_id": "67890", + "target_object_type": "company" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_object_association_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_object_association_example_call_tool.py new file mode 100644 index 000000000..607c171c6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_object_association_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateObjectAssociation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'association_type': 'contact_to_company', + 'source_object_id': '12345', + 'source_object_type': 'contact', + 'target_object_id': '67890', + 'target_object_type': 'company' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_batch_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_batch_records_example_call_tool.js new file mode 100644 index 000000000..9bec53f50 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_batch_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateOrUpdateBatchRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"records\":[{\"id\":\"1\",\"name\":\"John Doe\",\"email\":\"john@example.com\"},{\"id\":\"2\",\"name\":\"Jane Smith\",\"email\":\"jane@example.com\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_batch_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_batch_records_example_call_tool.py new file mode 100644 index 000000000..5fe68f158 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_batch_records_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateOrUpdateBatchRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"records":[{"id":"1","name":"John ' + 'Doe","email":"john@example.com"},{"id":"2","name":"Jane ' + 'Smith","email":"jane@example.com"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_companies_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_companies_example_call_tool.js new file mode 100644 index 000000000..2dc82bd79 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_companies_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateOrUpdateCompanies"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"unique_id\":\"12345\",\"name\":\"Sample Company\",\"domain\":\"samplecompany.com\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_companies_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_companies_example_call_tool.py new file mode 100644 index 000000000..98f9fcc4c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_companies_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateOrUpdateCompanies" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"unique_id":"12345","name":"Sample Company","domain":"samplecompany.com"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_hubspot_emails_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_hubspot_emails_example_call_tool.js new file mode 100644 index 000000000..43aab0fe1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_hubspot_emails_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateOrUpdateHubspotEmails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"emails\":[{\"id\":\"1\",\"subject\":\"Welcome Email\",\"content\":\"[email_content]\"},{\"id\":\"2\",\"subject\":\"Thank You Email\",\"content\":\"[email_content]\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_hubspot_emails_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_hubspot_emails_example_call_tool.py new file mode 100644 index 000000000..f1d80d6da --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_hubspot_emails_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateOrUpdateHubspotEmails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"emails":[{"id":"1","subject":"Welcome ' + 'Email","content":"[email_content]"},{"id":"2","subject":"Thank You ' + 'Email","content":"[email_content]"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_hubspot_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_hubspot_records_example_call_tool.js new file mode 100644 index 000000000..aa0dccf01 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_hubspot_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateOrUpdateHubspotRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"unique_id\":\"12345\",\"properties\":{\"name\":\"John Doe\",\"email\":\"john@example.com\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_hubspot_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_hubspot_records_example_call_tool.py new file mode 100644 index 000000000..186c6bc41 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_hubspot_records_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateOrUpdateHubspotRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"unique_id":"12345","properties":{"name":"John ' + 'Doe","email":"john@example.com"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_quotes_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_quotes_example_call_tool.js new file mode 100644 index 000000000..3b406982f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_quotes_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateOrUpdateQuotes"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"idProperty\":\"quoteId\",\"amount\":1000,\"currency\":\"USD\",\"customer\":\"John Doe\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_quotes_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_quotes_example_call_tool.py new file mode 100644 index 000000000..18ac88b62 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_quotes_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateOrUpdateQuotes" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"idProperty":"quoteId","amount":1000,"currency":"USD","customer":"John Doe"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_tax_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_tax_records_example_call_tool.js new file mode 100644 index 000000000..17a2acda0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_tax_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateOrUpdateTaxRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"idProperty\":\"taxId\",\"amount\":1000,\"currency\":\"USD\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_tax_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_tax_records_example_call_tool.py new file mode 100644 index 000000000..6bd33bdac --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_or_update_tax_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateOrUpdateTaxRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"idProperty":"taxId","amount":1000,"currency":"USD"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_pipeline_stage_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_pipeline_stage_example_call_tool.js new file mode 100644 index 000000000..89d552b4d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_pipeline_stage_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreatePipelineStage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "crm_object_type": "deals", + "pipeline_id": "12345", + "request_body": "{\"stage_name\":\"New Stage\",\"stage_order\":3}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_pipeline_stage_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_pipeline_stage_example_call_tool.py new file mode 100644 index 000000000..9b1acab0a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_pipeline_stage_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreatePipelineStage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'crm_object_type': 'deals', + 'pipeline_id': '12345', + 'request_body': '{"stage_name":"New Stage","stage_order":3}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_postal_mail_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_postal_mail_batch_example_call_tool.js new file mode 100644 index 000000000..dead93dba --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_postal_mail_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreatePostalMailBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"mailItems\":[{\"recipient\":\"John Doe\",\"address\":\"123 Main St, Anytown, USA\",\"content\":\"Hello, this is a test mail.\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_postal_mail_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_postal_mail_batch_example_call_tool.py new file mode 100644 index 000000000..98d691dfd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_postal_mail_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreatePostalMailBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"mailItems":[{"recipient":"John Doe","address":"123 Main St, Anytown, ' + 'USA","content":"Hello, this is a test mail."}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_postal_mail_object_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_postal_mail_object_example_call_tool.js new file mode 100644 index 000000000..bad16b7ee --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_postal_mail_object_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreatePostalMailObject"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"recipient\":\"John Doe\",\"address\":\"123 Main St, Anytown, USA\",\"content\":\"Hello, this is a test mail.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_postal_mail_object_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_postal_mail_object_example_call_tool.py new file mode 100644 index 000000000..e13c9f132 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_postal_mail_object_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreatePostalMailObject" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"recipient":"John Doe","address":"123 Main St, Anytown, ' + 'USA","content":"Hello, this is a test mail."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_product_in_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_product_in_hubspot_example_call_tool.js new file mode 100644 index 000000000..0b7559477 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_product_in_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateProductInHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"name\":\"Sample Product\",\"price\":29.99,\"description\":\"A sample product for demonstration.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_product_in_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_product_in_hubspot_example_call_tool.py new file mode 100644 index 000000000..dcd586fbd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_product_in_hubspot_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateProductInHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"name":"Sample Product","price":29.99,"description":"A sample product for ' + 'demonstration."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_property_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_property_group_example_call_tool.js new file mode 100644 index 000000000..7693ca186 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_property_group_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreatePropertyGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "internal_property_group_name": "group_001", + "object_type": "contacts", + "property_group_label": "Contact Information", + "property_group_display_order": 1 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_property_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_property_group_example_call_tool.py new file mode 100644 index 000000000..a4eb5f57d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_property_group_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreatePropertyGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'internal_property_group_name': 'group_001', + 'object_type': 'contacts', + 'property_group_label': 'Contact Information', + 'property_group_display_order': 1 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_service_record_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_service_record_example_call_tool.js new file mode 100644 index 000000000..1c6c48cda --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_service_record_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateServiceRecord"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"service_name\":\"Website Maintenance\",\"description\":\"Monthly maintenance for the website\",\"customer_id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_service_record_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_service_record_example_call_tool.py new file mode 100644 index 000000000..d820fb5ea --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_service_record_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateServiceRecord" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"service_name":"Website Maintenance","description":"Monthly maintenance for ' + 'the website","customer_id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_subscription_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_subscription_example_call_tool.js new file mode 100644 index 000000000..b26eb538d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_subscription_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateSubscription"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"subscriptionType\":\"monthly\",\"customerId\":\"12345\",\"startDate\":\"2023-10-01\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_subscription_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_subscription_example_call_tool.py new file mode 100644 index 000000000..955357a3d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_subscription_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateSubscription" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"subscriptionType":"monthly","customerId":"12345","startDate":"2023-10-01"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_task_in_crm_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_task_in_crm_example_call_tool.js new file mode 100644 index 000000000..d14834b8e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_task_in_crm_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateTaskInCrm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"task_name\":\"Follow up with client\",\"due_date\":\"2023-10-30\",\"priority\":\"high\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_task_in_crm_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_task_in_crm_example_call_tool.py new file mode 100644 index 000000000..85ca2a779 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_task_in_crm_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateTaskInCrm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"task_name":"Follow up with ' + 'client","due_date":"2023-10-30","priority":"high"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_tax_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_tax_batch_example_call_tool.js new file mode 100644 index 000000000..1c1c1a6ae --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_tax_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateTaxBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"taxes\":[{\"name\":\"Sales Tax\",\"rate\":0.07},{\"name\":\"Service Tax\",\"rate\":0.05}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_tax_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_tax_batch_example_call_tool.py new file mode 100644 index 000000000..2488e7ed8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_tax_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateTaxBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"taxes":[{"name":"Sales Tax","rate":0.07},{"name":"Service ' + 'Tax","rate":0.05}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_ticket_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_ticket_example_call_tool.js new file mode 100644 index 000000000..07321cef3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_ticket_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateTicket"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"subject\":\"Need help with billing\",\"description\":\"I have a question about my recent invoice.\",\"priority\":\"high\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_ticket_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_ticket_example_call_tool.py new file mode 100644 index 000000000..5c7aaafa7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_ticket_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateTicket" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"subject":"Need help with billing","description":"I have a question about my ' + 'recent invoice.","priority":"high"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_users_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_users_batch_example_call_tool.js new file mode 100644 index 000000000..d2f87fb76 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_users_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.CreateUsersBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"users\":[{\"name\":\"John Doe\",\"email\":\"john@example.com\"},{\"name\":\"Jane Smith\",\"email\":\"jane@example.com\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/create_users_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_users_batch_example_call_tool.py new file mode 100644 index 000000000..23a031a1b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/create_users_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.CreateUsersBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"users":[{"name":"John Doe","email":"john@example.com"},{"name":"Jane ' + 'Smith","email":"jane@example.com"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_batch_messages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_batch_messages_example_call_tool.js new file mode 100644 index 000000000..a9e16ed3b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_batch_messages_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteBatchMessages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"message_ids\":[\"msg1\",\"msg2\",\"msg3\"],\"restore\":true}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_batch_messages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_batch_messages_example_call_tool.py new file mode 100644 index 000000000..441e7ae86 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_batch_messages_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteBatchMessages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"message_ids":["msg1","msg2","msg3"],"restore":true}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_call_transcript_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_call_transcript_example_call_tool.js new file mode 100644 index 000000000..83a12377d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_call_transcript_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteCallTranscript"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "transcript_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_call_transcript_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_call_transcript_example_call_tool.py new file mode 100644 index 000000000..bc840efa5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_call_transcript_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteCallTranscript" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'transcript_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_commerce_payment_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_commerce_payment_example_call_tool.js new file mode 100644 index 000000000..e7ea1cbaf --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_commerce_payment_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteCommercePayment"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "commerce_payment_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_commerce_payment_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_commerce_payment_example_call_tool.py new file mode 100644 index 000000000..904aa1263 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_commerce_payment_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteCommercePayment" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'commerce_payment_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_companies_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_companies_batch_example_call_tool.js new file mode 100644 index 000000000..a12047066 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_companies_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteCompaniesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_companies_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_companies_batch_example_call_tool.py new file mode 100644 index 000000000..1aeab252c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_companies_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteCompaniesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_company_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_company_example_call_tool.js new file mode 100644 index 000000000..1bf34dda3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_company_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteCompany"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "company_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_company_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_company_example_call_tool.py new file mode 100644 index 000000000..28ccddfba --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_company_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteCompany" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'company_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_contact_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_contact_example_call_tool.js new file mode 100644 index 000000000..e21b4b09b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_contact_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteContact"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "contact_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_contact_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_contact_example_call_tool.py new file mode 100644 index 000000000..808f75214 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_contact_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteContact" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'contact_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_course_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_course_example_call_tool.js new file mode 100644 index 000000000..150ebb457 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_course_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteCourse"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "course_id": "course_12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_course_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_course_example_call_tool.py new file mode 100644 index 000000000..3851b6494 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_course_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteCourse" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'course_id': 'course_12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_association_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_association_example_call_tool.js new file mode 100644 index 000000000..ed306cf5a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_association_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteCrmAssociation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "association_id": "12345", + "schema_object_type": "contact" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_association_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_association_example_call_tool.py new file mode 100644 index 000000000..2ac5c2890 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_association_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteCrmAssociation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'association_id': '12345', 'schema_object_type': 'contact' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_folder_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_folder_example_call_tool.js new file mode 100644 index 000000000..d46859c59 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_folder_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteCrmFolder"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "folder_id_to_delete": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_folder_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_folder_example_call_tool.py new file mode 100644 index 000000000..f68a6f107 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_folder_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteCrmFolder" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'folder_id_to_delete': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_object_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_object_example_call_tool.js new file mode 100644 index 000000000..a4c1d0479 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_object_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteCrmObject"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "crm_object_id": "12345", + "crm_object_type": "contact" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_object_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_object_example_call_tool.py new file mode 100644 index 000000000..81a56f909 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_object_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteCrmObject" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'crm_object_id': '12345', 'crm_object_type': 'contact' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_object_schema_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_object_schema_example_call_tool.js new file mode 100644 index 000000000..e2e5de554 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_object_schema_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteCrmObjectSchema"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type_identifier": "custom_object_123", + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_object_schema_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_object_schema_example_call_tool.py new file mode 100644 index 000000000..8038aabf2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_crm_object_schema_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteCrmObjectSchema" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type_identifier': 'custom_object_123', 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_discount_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_discount_example_call_tool.js new file mode 100644 index 000000000..7c2ff344e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_discount_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteDiscount"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "discount_identifier": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_discount_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_discount_example_call_tool.py new file mode 100644 index 000000000..c7d1b6b2c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_discount_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteDiscount" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'discount_identifier': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_email_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_email_example_call_tool.js new file mode 100644 index 000000000..161ee7215 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_email_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteEmail"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_email_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_email_example_call_tool.py new file mode 100644 index 000000000..846599603 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_email_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteEmail" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_fee_object_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_fee_object_example_call_tool.js new file mode 100644 index 000000000..0d778c47d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_fee_object_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteFeeObject"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "fee_id_to_delete": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_fee_object_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_fee_object_example_call_tool.py new file mode 100644 index 000000000..7f3d7fe22 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_fee_object_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteFeeObject" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'fee_id_to_delete': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_goal_target_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_goal_target_example_call_tool.js new file mode 100644 index 000000000..b6af19683 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_goal_target_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteGoalTarget"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "goal_target_id": "gt-12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_goal_target_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_goal_target_example_call_tool.py new file mode 100644 index 000000000..cb0d34f50 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_goal_target_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteGoalTarget" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'goal_target_id': 'gt-12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_hubspot_tickets_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_hubspot_tickets_batch_example_call_tool.js new file mode 100644 index 000000000..fc5ec8366 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_hubspot_tickets_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteHubspotTicketsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"ticket_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_hubspot_tickets_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_hubspot_tickets_batch_example_call_tool.py new file mode 100644 index 000000000..7983b303f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_hubspot_tickets_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteHubspotTicketsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"ticket_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_invoice_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_invoice_example_call_tool.js new file mode 100644 index 000000000..072668b8f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_invoice_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteInvoice"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "invoice_identifier": "INV-12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_invoice_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_invoice_example_call_tool.py new file mode 100644 index 000000000..b31c556df --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_invoice_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteInvoice" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'invoice_identifier': 'INV-12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_line_item_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_line_item_example_call_tool.js new file mode 100644 index 000000000..787142109 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_line_item_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteLineItem"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "line_item_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_line_item_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_line_item_example_call_tool.py new file mode 100644 index 000000000..ff1e9385f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_line_item_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteLineItem" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'line_item_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_list_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_list_example_call_tool.js new file mode 100644 index 000000000..34f61a285 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_list_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteList"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_id_to_delete": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_list_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_list_example_call_tool.py new file mode 100644 index 000000000..3247091f3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_list_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteList" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_id_to_delete': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_meeting_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_meeting_example_call_tool.js new file mode 100644 index 000000000..5bacf7766 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_meeting_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteMeeting"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "meeting_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_meeting_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_meeting_example_call_tool.py new file mode 100644 index 000000000..2b421ac1b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_meeting_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteMeeting" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'meeting_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_note_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_note_hubspot_example_call_tool.js new file mode 100644 index 000000000..a4be90909 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_note_hubspot_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteNoteHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "note_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_note_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_note_hubspot_example_call_tool.py new file mode 100644 index 000000000..1db75e4f8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_note_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteNoteHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'note_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_object_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_object_hubspot_example_call_tool.js new file mode 100644 index 000000000..c20f671f3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_object_hubspot_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteObjectHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_service_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_object_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_object_hubspot_example_call_tool.py new file mode 100644 index 000000000..a496624e0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_object_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteObjectHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_service_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_order_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_order_by_id_example_call_tool.js new file mode 100644 index 000000000..dc808077d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_order_by_id_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteOrderById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "order_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_order_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_order_by_id_example_call_tool.py new file mode 100644 index 000000000..5e2c745b8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_order_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteOrderById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'order_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_pipeline_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_pipeline_example_call_tool.js new file mode 100644 index 000000000..938f4db24 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_pipeline_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeletePipeline"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "pipeline_id": "12345", + "pipeline_object_type": "deals", + "validate_deal_stage_usages_before_deletion": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_pipeline_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_pipeline_example_call_tool.py new file mode 100644 index 000000000..6b66dda74 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_pipeline_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeletePipeline" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'pipeline_id': '12345', + 'pipeline_object_type': 'deals', + 'validate_deal_stage_usages_before_deletion': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_pipeline_stage_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_pipeline_stage_example_call_tool.js new file mode 100644 index 000000000..947fbabdb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_pipeline_stage_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeletePipelineStage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type": "deals", + "pipeline_id": "12345", + "stage_identifier": "stage_1" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_pipeline_stage_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_pipeline_stage_example_call_tool.py new file mode 100644 index 000000000..56e94cb3b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_pipeline_stage_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeletePipelineStage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type': 'deals', 'pipeline_id': '12345', 'stage_identifier': 'stage_1' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_property_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_property_group_example_call_tool.js new file mode 100644 index 000000000..3483035af --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_property_group_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeletePropertyGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "crm_object_type": "contacts", + "property_group_name": "Customer Information" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_property_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_property_group_example_call_tool.py new file mode 100644 index 000000000..d283e3f50 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_property_group_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeletePropertyGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'crm_object_type': 'contacts', 'property_group_name': 'Customer Information' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_property_hubspot_crm_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_property_hubspot_crm_example_call_tool.js new file mode 100644 index 000000000..0e874c6e2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_property_hubspot_crm_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeletePropertyHubspotCrm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type": "contacts", + "property_name": "email" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_property_hubspot_crm_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_property_hubspot_crm_example_call_tool.py new file mode 100644 index 000000000..a3ea8dda3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_property_hubspot_crm_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeletePropertyHubspotCrm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type': 'contacts', 'property_name': 'email' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_scheduled_conversion_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_scheduled_conversion_example_call_tool.js new file mode 100644 index 000000000..2bff85d38 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_scheduled_conversion_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteScheduledConversion"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_scheduled_conversion_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_scheduled_conversion_example_call_tool.py new file mode 100644 index 000000000..5080b15a0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_scheduled_conversion_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteScheduledConversion" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_shopping_cart_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_shopping_cart_example_call_tool.js new file mode 100644 index 000000000..2c309f509 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_shopping_cart_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteShoppingCart"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "cart_identifier": "cart_12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_shopping_cart_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_shopping_cart_example_call_tool.py new file mode 100644 index 000000000..fb35666e6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_shopping_cart_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteShoppingCart" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'cart_identifier': 'cart_12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_subscription_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_subscription_example_call_tool.js new file mode 100644 index 000000000..c77e8acbc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_subscription_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteSubscription"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "subscription_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_subscription_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_subscription_example_call_tool.py new file mode 100644 index 000000000..ee1de6875 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_subscription_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteSubscription" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'subscription_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_task_in_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_task_in_hubspot_example_call_tool.js new file mode 100644 index 000000000..47d3c376e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_task_in_hubspot_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteTaskInHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "task_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_task_in_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_task_in_hubspot_example_call_tool.py new file mode 100644 index 000000000..51b30cca4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_task_in_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteTaskInHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'task_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_tax_entry_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_tax_entry_example_call_tool.js new file mode 100644 index 000000000..77e526d20 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_tax_entry_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteTaxEntry"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "tax_entry_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_tax_entry_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_tax_entry_example_call_tool.py new file mode 100644 index 000000000..9f7b5379c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_tax_entry_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteTaxEntry" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'tax_entry_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_ticket_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_ticket_example_call_tool.js new file mode 100644 index 000000000..27940c962 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_ticket_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteTicket"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "ticket_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_ticket_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_ticket_example_call_tool.py new file mode 100644 index 000000000..47bf5ac17 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_ticket_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteTicket" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'ticket_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_user_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_user_example_call_tool.js new file mode 100644 index 000000000..525921318 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_user_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.DeleteUser"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "user_id_to_delete": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_user_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_user_example_call_tool.py new file mode 100644 index 000000000..f3e1553fe --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/delete_user_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.DeleteUser" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'user_id_to_delete': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/edit_hubspot_object_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/edit_hubspot_object_example_call_tool.js new file mode 100644 index 000000000..1804f52e3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/edit_hubspot_object_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.EditHubspotObject"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "object_identifier": "12345", + "request_body": "{\"property1\":\"value1\",\"property2\":\"value2\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/edit_hubspot_object_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/edit_hubspot_object_example_call_tool.py new file mode 100644 index 000000000..df867dbee --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/edit_hubspot_object_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.EditHubspotObject" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'object_identifier': '12345', + 'request_body': '{"property1":"value1","property2":"value2"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/enable_object_type_in_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/enable_object_type_in_hubspot_example_call_tool.js new file mode 100644 index 000000000..a2c7cec3a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/enable_object_type_in_hubspot_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.EnableObjectTypeInHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/enable_object_type_in_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/enable_object_type_in_hubspot_example_call_tool.py new file mode 100644 index 000000000..ecf8a3f5f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/enable_object_type_in_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.EnableObjectTypeInHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_association_limit_objects_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_association_limit_objects_example_call_tool.js new file mode 100644 index 000000000..b6f2d9f7f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_association_limit_objects_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.FetchAssociationLimitObjects"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "from_object_type_id": "contact" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_association_limit_objects_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_association_limit_objects_example_call_tool.py new file mode 100644 index 000000000..051df1ca4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_association_limit_objects_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.FetchAssociationLimitObjects" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'from_object_type_id': 'contact' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_enablement_data_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_enablement_data_example_call_tool.js new file mode 100644 index 000000000..b5027310c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_enablement_data_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.FetchEnablementData"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_enablement_data_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_enablement_data_example_call_tool.py new file mode 100644 index 000000000..43db534fc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_enablement_data_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.FetchEnablementData" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_list_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_list_by_id_example_call_tool.js new file mode 100644 index 000000000..01cc906c9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_list_by_id_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.FetchHubspotListById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_id": "12345", + "include_filter_definitions": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_list_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_list_by_id_example_call_tool.py new file mode 100644 index 000000000..b4cb1dbb3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_list_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.FetchHubspotListById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_id': '12345', 'include_filter_definitions': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_list_memberships_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_list_memberships_example_call_tool.js new file mode 100644 index 000000000..37462e06b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_list_memberships_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.FetchHubspotListMemberships"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_identifier": "12345", + "number_of_records_to_return": 10 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_list_memberships_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_list_memberships_example_call_tool.py new file mode 100644 index 000000000..e61280aad --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_list_memberships_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.FetchHubspotListMemberships" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_identifier': '12345', 'number_of_records_to_return': 10 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_object_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_object_by_id_example_call_tool.js new file mode 100644 index 000000000..a1d2b65d9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_object_by_id_example_call_tool.js @@ -0,0 +1,41 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.FetchHubspotObjectById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_identifier": "12345", + "object_type": "contact", + "associated_object_types": [ + "company", + "deal" + ], + "return_properties": [ + "email", + "firstname", + "lastname" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_object_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_object_by_id_example_call_tool.py new file mode 100644 index 000000000..a56907f53 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_object_by_id_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.FetchHubspotObjectById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_identifier': '12345', + 'object_type': 'contact', + 'associated_object_types': ['company', 'deal'], + 'return_properties': ['email', 'firstname', 'lastname'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_object_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_object_records_example_call_tool.js new file mode 100644 index 000000000..0263dbcc9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_object_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.FetchHubspotObjectRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_only": false, + "request_body": "{\"id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_object_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_object_records_example_call_tool.py new file mode 100644 index 000000000..19a5f69a9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_object_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.FetchHubspotObjectRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_archived_only': False, 'request_body': '{"id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_records_example_call_tool.js new file mode 100644 index 000000000..f1c580b5c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.FetchHubspotRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_records_only": false, + "request_body": "{\"id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_records_example_call_tool.py new file mode 100644 index 000000000..4e1c9937f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_hubspot_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.FetchHubspotRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_archived_records_only': False, 'request_body': '{"id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_list_by_name_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_list_by_name_example_call_tool.js new file mode 100644 index 000000000..b07bc349e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_list_by_name_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.FetchListByName"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_name": "My Contacts", + "object_type_id": "0-1", + "include_filters": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_list_by_name_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_list_by_name_example_call_tool.py new file mode 100644 index 000000000..3a88d1f79 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_list_by_name_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.FetchListByName" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_name': 'My Contacts', 'object_type_id': '0-1', 'include_filters': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_list_memberships_ordered_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_list_memberships_ordered_example_call_tool.js new file mode 100644 index 000000000..8d066be06 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_list_memberships_ordered_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.FetchListMembershipsOrdered"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_id": "12345", + "after_paging_offset_token": "abcde12345", + "record_limit": 50 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_list_memberships_ordered_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_list_memberships_ordered_example_call_tool.py new file mode 100644 index 000000000..403766dce --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_list_memberships_ordered_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.FetchListMembershipsOrdered" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_id': '12345', 'after_paging_offset_token': 'abcde12345', 'record_limit': 50 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_property_validation_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_property_validation_example_call_tool.js new file mode 100644 index 000000000..b7684a775 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_property_validation_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.FetchPropertyValidation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type_id": "contacts", + "property_name": "email" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_property_validation_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_property_validation_example_call_tool.py new file mode 100644 index 000000000..021056179 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_property_validation_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.FetchPropertyValidation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type_id': 'contacts', 'property_name': 'email' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_tickets_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_tickets_page_example_call_tool.js new file mode 100644 index 000000000..38f5a2889 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_tickets_page_example_call_tool.js @@ -0,0 +1,41 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.FetchTicketsPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contacts", + "companies" + ], + "include_properties": [ + "subject", + "status" + ], + "paging_cursor_token": "abc123", + "results_per_page": 10, + "return_only_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_tickets_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_tickets_page_example_call_tool.py new file mode 100644 index 000000000..c63dc116a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/fetch_tickets_page_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.FetchTicketsPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contacts', 'companies'], + 'include_properties': ['subject', 'status'], + 'paging_cursor_token': 'abc123', + 'results_per_page': 10, + 'return_only_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/gdpr_delete_contact_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/gdpr_delete_contact_example_call_tool.js new file mode 100644 index 000000000..6cd0cc401 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/gdpr_delete_contact_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GdprDeleteContact"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "contact_identifier": "john.doe@example.com", + "contact_identifier_property": "email" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/gdpr_delete_contact_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/gdpr_delete_contact_example_call_tool.py new file mode 100644 index 000000000..154d20731 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/gdpr_delete_contact_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GdprDeleteContact" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'contact_identifier': 'john.doe@example.com', 'contact_identifier_property': 'email' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/gdpr_delete_object_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/gdpr_delete_object_example_call_tool.js new file mode 100644 index 000000000..ab4d547e1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/gdpr_delete_object_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GdprDeleteObject"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_id": "12345", + "object_type_for_gdpr_deletion": "contacts", + "unique_property_name": "email" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/gdpr_delete_object_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/gdpr_delete_object_example_call_tool.py new file mode 100644 index 000000000..4ad48b3f8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/gdpr_delete_object_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GdprDeleteObject" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_id': '12345', 'object_type_for_gdpr_deletion': 'contacts', 'unique_property_name': 'email' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_all_pipelines_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_all_pipelines_example_call_tool.js new file mode 100644 index 000000000..1534a3951 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_all_pipelines_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetAllPipelines"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type": "deals" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_all_pipelines_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_all_pipelines_example_call_tool.py new file mode 100644 index 000000000..b83ee0a8b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_all_pipelines_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetAllPipelines" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type': 'deals' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_appointments_data_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_appointments_data_example_call_tool.js new file mode 100644 index 000000000..96e56215e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_appointments_data_example_call_tool.js @@ -0,0 +1,38 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetAppointmentsData"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "appointment_object_type": "appointment", + "appointment_properties_to_return": [ + "subject", + "date", + "duration" + ], + "only_archived_results": false, + "results_limit": 10 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_appointments_data_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_appointments_data_example_call_tool.py new file mode 100644 index 000000000..2c6667fb8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_appointments_data_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetAppointmentsData" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'appointment_object_type': 'appointment', + 'appointment_properties_to_return': ['subject', 'date', 'duration'], + 'only_archived_results': False, + 'results_limit': 10 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_association_limit_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_association_limit_records_example_call_tool.js new file mode 100644 index 000000000..d165aa9b8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_association_limit_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetAssociationLimitRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "source_object_type_id": "123", + "to_object_type_id": "456" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_association_limit_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_association_limit_records_example_call_tool.py new file mode 100644 index 000000000..6db369fad --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_association_limit_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetAssociationLimitRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'source_object_type_id': '123', 'to_object_type_id': '456' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_association_types_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_association_types_example_call_tool.js new file mode 100644 index 000000000..9c41a91f4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_association_types_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetAssociationTypes"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "source_object_type": "contact", + "target_object_type": "deal" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_association_types_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_association_types_example_call_tool.py new file mode 100644 index 000000000..331ca2ba3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_association_types_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetAssociationTypes" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'source_object_type': 'contact', 'target_object_type': 'deal' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_associations_in_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_associations_in_hubspot_example_call_tool.js new file mode 100644 index 000000000..149ee0161 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_associations_in_hubspot_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetAssociationsInHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "hubspot_object_id": "12345", + "object_type": "contact", + "target_object_type": "deal", + "include_full_associations": true, + "max_results": 10 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_associations_in_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_associations_in_hubspot_example_call_tool.py new file mode 100644 index 000000000..ea8b33dd9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_associations_in_hubspot_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetAssociationsInHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'hubspot_object_id': '12345', + 'object_type': 'contact', + 'target_object_type': 'deal', + 'include_full_associations': True, + 'max_results': 10 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_calculated_properties_limits_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_calculated_properties_limits_example_call_tool.js new file mode 100644 index 000000000..38b80a38d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_calculated_properties_limits_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCalculatedPropertiesLimits"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_calculated_properties_limits_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_calculated_properties_limits_example_call_tool.py new file mode 100644 index 000000000..e0d3666df --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_calculated_properties_limits_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCalculatedPropertiesLimits" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_call_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_call_details_example_call_tool.js new file mode 100644 index 000000000..4293990e3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_call_details_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCallDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "call_identifier": "12345", + "associated_object_types": [ + "contact", + "company" + ], + "only_archived_results": false, + "return_properties": [ + "duration", + "outcome" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_call_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_call_details_example_call_tool.py new file mode 100644 index 000000000..6e5a990f0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_call_details_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCallDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'call_identifier': '12345', + 'associated_object_types': ['contact', 'company'], + 'only_archived_results': False, + 'return_properties': ['duration', 'outcome'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_calls_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_calls_page_example_call_tool.js new file mode 100644 index 000000000..50eb2da4f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_calls_page_example_call_tool.js @@ -0,0 +1,41 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCallsPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contact", + "company" + ], + "call_properties": [ + "call_date", + "duration" + ], + "paging_cursor_token": "abc123", + "results_per_page": 10, + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_calls_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_calls_page_example_call_tool.py new file mode 100644 index 000000000..37e052d7b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_calls_page_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCallsPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contact', 'company'], + 'call_properties': ['call_date', 'duration'], + 'paging_cursor_token': 'abc123', + 'results_per_page': 10, + 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_cart_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_cart_details_example_call_tool.js new file mode 100644 index 000000000..0311129d3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_cart_details_example_call_tool.js @@ -0,0 +1,45 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCartDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "cart_identifier": "cart_12345", + "associated_object_types": [ + "deals", + "contacts" + ], + "only_return_archived_results": false, + "properties_with_history": [ + "status", + "total" + ], + "return_properties": [ + "items", + "total_price" + ], + "unique_property_name": "custom_id" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_cart_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_cart_details_example_call_tool.py new file mode 100644 index 000000000..d7c52ab83 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_cart_details_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCartDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'cart_identifier': 'cart_12345', + 'associated_object_types': ['deals', 'contacts'], + 'only_return_archived_results': False, + 'properties_with_history': ['status', 'total'], + 'return_properties': ['items', 'total_price'], + 'unique_property_name': 'custom_id' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_commerce_payments_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_commerce_payments_example_call_tool.js new file mode 100644 index 000000000..318027c7e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_commerce_payments_example_call_tool.js @@ -0,0 +1,46 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCommercePayments"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associations_to_retrieve": [ + "contact", + "company" + ], + "paging_cursor_token": "abc123", + "properties_with_history": [ + "amount", + "status" + ], + "results_per_page": 10, + "returned_properties": [ + "id", + "amount", + "currency" + ], + "show_only_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_commerce_payments_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_commerce_payments_example_call_tool.py new file mode 100644 index 000000000..f09f4de95 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_commerce_payments_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCommercePayments" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associations_to_retrieve': ['contact', 'company'], + 'paging_cursor_token': 'abc123', + 'properties_with_history': ['amount', 'status'], + 'results_per_page': 10, + 'returned_properties': ['id', 'amount', 'currency'], + 'show_only_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_communication_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_communication_by_id_example_call_tool.js new file mode 100644 index 000000000..59cbcf472 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_communication_by_id_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCommunicationById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "communication_identifier": "comm_12345", + "properties_to_return": [ + "subject", + "body" + ], + "return_only_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_communication_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_communication_by_id_example_call_tool.py new file mode 100644 index 000000000..845a98aae --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_communication_by_id_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCommunicationById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'communication_identifier': 'comm_12345', + 'properties_to_return': ['subject', 'body'], + 'return_only_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_contact_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_contact_details_example_call_tool.js new file mode 100644 index 000000000..aa426861e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_contact_details_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetContactDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "contact_identifier": "12345", + "associated_object_types": [ + "company", + "deal" + ], + "return_properties": [ + "email", + "phone" + ], + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_contact_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_contact_details_example_call_tool.py new file mode 100644 index 000000000..c43d098f3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_contact_details_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetContactDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'contact_identifier': '12345', + 'associated_object_types': ['company', 'deal'], + 'return_properties': ['email', 'phone'], + 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_contacts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_contacts_example_call_tool.js new file mode 100644 index 000000000..3c6c7e017 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_contacts_example_call_tool.js @@ -0,0 +1,45 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetContacts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "contact_properties_to_retrieve": [ + "firstname", + "lastname", + "email" + ], + "max_results_per_page": 10, + "paging_cursor_token": "abc123", + "properties_with_history": [ + "email" + ], + "retrieve_associated_ids": [ + "company", + "deal" + ], + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_contacts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_contacts_example_call_tool.py new file mode 100644 index 000000000..a16d53bab --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_contacts_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetContacts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'contact_properties_to_retrieve': ['firstname', 'lastname', 'email'], + 'max_results_per_page': 10, + 'paging_cursor_token': 'abc123', + 'properties_with_history': ['email'], + 'retrieve_associated_ids': ['company', 'deal'], + 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_course_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_course_details_example_call_tool.js new file mode 100644 index 000000000..112a9b294 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_course_details_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCourseDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "course_id": "CS101", + "include_properties": [ + "title", + "description" + ], + "return_only_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_course_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_course_details_example_call_tool.py new file mode 100644 index 000000000..89a7c5fec --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_course_details_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCourseDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'course_id': 'CS101', + 'include_properties': ['title', 'description'], + 'return_only_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_courses_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_courses_example_call_tool.js new file mode 100644 index 000000000..1a5cda77a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_courses_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCourses"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "maximum_results_per_page": 10, + "properties_to_return": [ + "name", + "description" + ], + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_courses_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_courses_example_call_tool.py new file mode 100644 index 000000000..f90f6b73e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_courses_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCourses" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'maximum_results_per_page': 10, + 'properties_to_return': ['name', 'description'], + 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_crm_fees_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_crm_fees_example_call_tool.js new file mode 100644 index 000000000..b838828f3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_crm_fees_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCrmFees"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "customer", + "invoice" + ], + "fee_properties_to_return": [ + "amount", + "type" + ], + "maximum_results_per_page": 10, + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_crm_fees_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_crm_fees_example_call_tool.py new file mode 100644 index 000000000..ed8b27e9f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_crm_fees_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCrmFees" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['customer', 'invoice'], + 'fee_properties_to_return': ['amount', 'type'], + 'maximum_results_per_page': 10, + 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_crm_object_schema_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_crm_object_schema_example_call_tool.js new file mode 100644 index 000000000..aa8570152 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_crm_object_schema_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCrmObjectSchema"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type": "contact" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_crm_object_schema_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_crm_object_schema_example_call_tool.py new file mode 100644 index 000000000..397caba50 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_crm_object_schema_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCrmObjectSchema" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type': 'contact' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_association_labels_limits_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_association_labels_limits_example_call_tool.js new file mode 100644 index 000000000..40f253c15 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_association_labels_limits_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCustomAssociationLabelsLimits"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "source_object_type_id": "123", + "target_object_type_id": "456" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_association_labels_limits_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_association_labels_limits_example_call_tool.py new file mode 100644 index 000000000..11efa2a58 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_association_labels_limits_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCustomAssociationLabelsLimits" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'source_object_type_id': '123', 'target_object_type_id': '456' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_object_limits_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_object_limits_example_call_tool.js new file mode 100644 index 000000000..76f8ed029 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_object_limits_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCustomObjectLimits"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_object_limits_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_object_limits_example_call_tool.py new file mode 100644 index 000000000..46aff5c1f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_object_limits_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCustomObjectLimits" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_property_limits_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_property_limits_example_call_tool.js new file mode 100644 index 000000000..b99f0b7a2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_property_limits_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetCustomPropertyLimits"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_property_limits_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_property_limits_example_call_tool.py new file mode 100644 index 000000000..1928f31e4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_custom_property_limits_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetCustomPropertyLimits" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_deals_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_deals_page_example_call_tool.js new file mode 100644 index 000000000..d89f76b7a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_deals_page_example_call_tool.js @@ -0,0 +1,44 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetDealsPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contact", + "company" + ], + "deal_properties": [ + "amount", + "stage" + ], + "paging_cursor_token": "abc123", + "properties_with_history": [ + "amount" + ], + "results_limit_per_page": 10, + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_deals_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_deals_page_example_call_tool.py new file mode 100644 index 000000000..3dd3b34b3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_deals_page_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetDealsPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contact', 'company'], + 'deal_properties': ['amount', 'stage'], + 'paging_cursor_token': 'abc123', + 'properties_with_history': ['amount'], + 'results_limit_per_page': 10, + 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_fee_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_fee_details_example_call_tool.js new file mode 100644 index 000000000..7b89ac43c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_fee_details_example_call_tool.js @@ -0,0 +1,41 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetFeeDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "fee_identifier": "12345", + "associated_object_types": [ + "contact", + "company" + ], + "only_return_archived_results": false, + "return_properties": [ + "amount", + "currency" + ], + "unique_property_name": "fee_code" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_fee_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_fee_details_example_call_tool.py new file mode 100644 index 000000000..f103cf4ea --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_fee_details_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetFeeDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'fee_identifier': '12345', + 'associated_object_types': ['contact', 'company'], + 'only_return_archived_results': False, + 'return_properties': ['amount', 'currency'], + 'unique_property_name': 'fee_code' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_feedback_submission_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_feedback_submission_by_id_example_call_tool.js new file mode 100644 index 000000000..9691628fc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_feedback_submission_by_id_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetFeedbackSubmissionById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "feedback_submission_id": "12345", + "associated_object_types": [ + "user", + "project" + ], + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_feedback_submission_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_feedback_submission_by_id_example_call_tool.py new file mode 100644 index 000000000..2fd7ab3d7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_feedback_submission_by_id_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetFeedbackSubmissionById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'feedback_submission_id': '12345', + 'associated_object_types': ['user', 'project'], + 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_feedback_submissions_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_feedback_submissions_example_call_tool.js new file mode 100644 index 000000000..e6fc7bdbf --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_feedback_submissions_example_call_tool.js @@ -0,0 +1,44 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetFeedbackSubmissions"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contacts", + "companies" + ], + "max_results_per_page": 10, + "paging_cursor_token": "abc123", + "properties_to_return": [ + "submission_id", + "feedback_text" + ], + "properties_with_history": [ + "feedback_text" + ], + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_feedback_submissions_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_feedback_submissions_example_call_tool.py new file mode 100644 index 000000000..22f9974ac --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_feedback_submissions_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetFeedbackSubmissions" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contacts', 'companies'], + 'max_results_per_page': 10, + 'paging_cursor_token': 'abc123', + 'properties_to_return': ['submission_id', 'feedback_text'], + 'properties_with_history': ['feedback_text'], + 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_goal_target_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_goal_target_by_id_example_call_tool.js new file mode 100644 index 000000000..dbb1c5604 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_goal_target_by_id_example_call_tool.js @@ -0,0 +1,37 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetGoalTargetById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "goal_target_id": "12345", + "archived_results": false, + "returned_properties": [ + "name", + "status" + ], + "unique_property_name": "goalName" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_goal_target_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_goal_target_by_id_example_call_tool.py new file mode 100644 index 000000000..484a26fbc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_goal_target_by_id_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetGoalTargetById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'goal_target_id': '12345', + 'archived_results': False, + 'returned_properties': ['name', 'status'], + 'unique_property_name': 'goalName' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_goal_targets_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_goal_targets_example_call_tool.js new file mode 100644 index 000000000..c7da9189f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_goal_targets_example_call_tool.js @@ -0,0 +1,45 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetGoalTargets"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contact", + "company" + ], + "paging_cursor_token": "abc123", + "properties_with_history": [ + "status", + "priority" + ], + "results_per_page_limit": 10, + "return_only_archived": false, + "returned_properties": [ + "name", + "due_date" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_goal_targets_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_goal_targets_example_call_tool.py new file mode 100644 index 000000000..0a023e914 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_goal_targets_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetGoalTargets" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contact', 'company'], + 'paging_cursor_token': 'abc123', + 'properties_with_history': ['status', 'priority'], + 'results_per_page_limit': 10, + 'return_only_archived': False, + 'returned_properties': ['name', 'due_date'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_crm_limits_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_crm_limits_records_example_call_tool.js new file mode 100644 index 000000000..b1234a699 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_crm_limits_records_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetHubspotCrmLimitsRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_crm_limits_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_crm_limits_records_example_call_tool.py new file mode 100644 index 000000000..f95706ff4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_crm_limits_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetHubspotCrmLimitsRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_crm_object_schemas_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_crm_object_schemas_example_call_tool.js new file mode 100644 index 000000000..2b7658e0c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_crm_object_schemas_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetHubspotCrmObjectSchemas"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_crm_object_schemas_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_crm_object_schemas_example_call_tool.py new file mode 100644 index 000000000..f494b219d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_crm_object_schemas_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetHubspotCrmObjectSchemas" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_deal_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_deal_by_id_example_call_tool.js new file mode 100644 index 000000000..96ad6fd7a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_deal_by_id_example_call_tool.js @@ -0,0 +1,45 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetHubspotDealById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "deal_id": "12345", + "associated_object_types": [ + "contact", + "company" + ], + "properties_with_history": [ + "amount", + "stage" + ], + "return_archived_only": false, + "return_properties": [ + "name", + "status" + ], + "unique_property_name": "custom_id" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_deal_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_deal_by_id_example_call_tool.py new file mode 100644 index 000000000..637220876 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_deal_by_id_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetHubspotDealById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'deal_id': '12345', + 'associated_object_types': ['contact', 'company'], + 'properties_with_history': ['amount', 'stage'], + 'return_archived_only': False, + 'return_properties': ['name', 'status'], + 'unique_property_name': 'custom_id' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_discounts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_discounts_example_call_tool.js new file mode 100644 index 000000000..76755e0e4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_discounts_example_call_tool.js @@ -0,0 +1,46 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetHubspotDiscounts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contact", + "company" + ], + "maximum_results_per_page": 10, + "paging_cursor_token": "abc123", + "properties_with_history": [ + "amount", + "expiration_date" + ], + "return_only_archived": false, + "returned_discount_properties": [ + "id", + "name", + "amount" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_discounts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_discounts_example_call_tool.py new file mode 100644 index 000000000..564f7fade --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_discounts_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetHubspotDiscounts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contact', 'company'], + 'maximum_results_per_page': 10, + 'paging_cursor_token': 'abc123', + 'properties_with_history': ['amount', 'expiration_date'], + 'return_only_archived': False, + 'returned_discount_properties': ['id', 'name', 'amount'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_leads_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_leads_page_example_call_tool.js new file mode 100644 index 000000000..21726a399 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_leads_page_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetHubspotLeadsPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "archived_leads_only": false, + "lead_properties_to_return": [ + "email", + "name" + ], + "results_limit_per_page": 10 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_leads_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_leads_page_example_call_tool.py new file mode 100644 index 000000000..987d5366b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_leads_page_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetHubspotLeadsPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'archived_leads_only': False, + 'lead_properties_to_return': ['email', 'name'], + 'results_limit_per_page': 10 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_object_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_object_by_id_example_call_tool.js new file mode 100644 index 000000000..68d3b1de9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_object_by_id_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetHubspotObjectById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "hubspot_crm_service_id": "12345", + "associated_object_types": [ + "contact", + "company" + ], + "return_properties_list": [ + "name", + "email" + ], + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_object_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_object_by_id_example_call_tool.py new file mode 100644 index 000000000..26698d227 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_object_by_id_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetHubspotObjectById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'hubspot_crm_service_id': '12345', + 'associated_object_types': ['contact', 'company'], + 'return_properties_list': ['name', 'email'], + 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_objects_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_objects_page_example_call_tool.js new file mode 100644 index 000000000..156880f22 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_objects_page_example_call_tool.js @@ -0,0 +1,38 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetHubspotObjectsPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type": "contacts", + "max_results_per_page": 10, + "requested_properties": [ + "email", + "firstname", + "lastname" + ], + "return_archived_results_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_objects_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_objects_page_example_call_tool.py new file mode 100644 index 000000000..610085c7e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_hubspot_objects_page_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetHubspotObjectsPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type': 'contacts', + 'max_results_per_page': 10, + 'requested_properties': ['email', 'firstname', 'lastname'], + 'return_archived_results_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_invoice_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_invoice_by_id_example_call_tool.js new file mode 100644 index 000000000..fc6231d5f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_invoice_by_id_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetInvoiceById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "invoice_identifier": "INV-12345", + "associated_object_types": [ + "customer", + "payment" + ], + "requested_properties": [ + "amount", + "date" + ], + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_invoice_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_invoice_by_id_example_call_tool.py new file mode 100644 index 000000000..3b717bbd5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_invoice_by_id_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetInvoiceById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'invoice_identifier': 'INV-12345', + 'associated_object_types': ['customer', 'payment'], + 'requested_properties': ['amount', 'date'], + 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_lead_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_lead_by_id_example_call_tool.js new file mode 100644 index 000000000..6db919e0d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_lead_by_id_example_call_tool.js @@ -0,0 +1,41 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetLeadById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "lead_identifier": "12345", + "associated_object_types": [ + "contact", + "company" + ], + "only_archived_results": false, + "returned_properties": [ + "email", + "name" + ], + "unique_property_name": "custom_id" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_lead_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_lead_by_id_example_call_tool.py new file mode 100644 index 000000000..0e39fe4f3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_lead_by_id_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetLeadById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'lead_identifier': '12345', + 'associated_object_types': ['contact', 'company'], + 'only_archived_results': False, + 'returned_properties': ['email', 'name'], + 'unique_property_name': 'custom_id' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_line_item_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_line_item_details_example_call_tool.js new file mode 100644 index 000000000..c9be37afd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_line_item_details_example_call_tool.js @@ -0,0 +1,45 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetLineItemDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "line_item_id": "12345", + "associated_object_types": [ + "contact", + "deal" + ], + "only_return_archived": false, + "properties_with_history": [ + "quantity", + "price" + ], + "return_properties": [ + "name", + "description" + ], + "unique_identifier_property": "sku" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_line_item_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_line_item_details_example_call_tool.py new file mode 100644 index 000000000..27f39e6f4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_line_item_details_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetLineItemDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'line_item_id': '12345', + 'associated_object_types': ['contact', 'deal'], + 'only_return_archived': False, + 'properties_with_history': ['quantity', 'price'], + 'return_properties': ['name', 'description'], + 'unique_identifier_property': 'sku' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_listing_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_listing_details_example_call_tool.js new file mode 100644 index 000000000..85d7fdb06 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_listing_details_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetListingDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "unique_listing_id": "12345", + "properties_to_return": [ + "name", + "price" + ], + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_listing_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_listing_details_example_call_tool.py new file mode 100644 index 000000000..92a7f1565 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_listing_details_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetListingDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'unique_listing_id': '12345', + 'properties_to_return': ['name', 'price'], + 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_meeting_details_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_meeting_details_by_id_example_call_tool.js new file mode 100644 index 000000000..d28b9daee --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_meeting_details_by_id_example_call_tool.js @@ -0,0 +1,37 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetMeetingDetailsById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "meeting_identifier": "12345", + "only_archived": false, + "return_properties": [ + "title", + "date", + "participants" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_meeting_details_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_meeting_details_by_id_example_call_tool.py new file mode 100644 index 000000000..972a3ab99 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_meeting_details_by_id_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetMeetingDetailsById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'meeting_identifier': '12345', + 'only_archived': False, + 'return_properties': ['title', 'date', 'participants'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_meetings_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_meetings_page_example_call_tool.js new file mode 100644 index 000000000..03e05cf2e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_meetings_page_example_call_tool.js @@ -0,0 +1,44 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetMeetingsPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "maximum_results_per_page": 10, + "paging_cursor_token": "abc123", + "properties": [ + "subject", + "start_time" + ], + "properties_with_history": [ + "duration" + ], + "retrieve_associated_object_ids": [ + "contacts", + "deals" + ], + "return_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_meetings_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_meetings_page_example_call_tool.py new file mode 100644 index 000000000..0f0e30987 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_meetings_page_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetMeetingsPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'maximum_results_per_page': 10, + 'paging_cursor_token': 'abc123', + 'properties': ['subject', 'start_time'], + 'properties_with_history': ['duration'], + 'retrieve_associated_object_ids': ['contacts', 'deals'], + 'return_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_multiple_postal_mail_objects_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_multiple_postal_mail_objects_example_call_tool.js new file mode 100644 index 000000000..c168b3685 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_multiple_postal_mail_objects_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetMultiplePostalMailObjects"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "include_archived": false, + "request_body": "{\"ids\":[\"123\",\"456\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_multiple_postal_mail_objects_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_multiple_postal_mail_objects_example_call_tool.py new file mode 100644 index 000000000..34adddda0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_multiple_postal_mail_objects_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetMultiplePostalMailObjects" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'include_archived': False, 'request_body': '{"ids":["123","456"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_note_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_note_details_example_call_tool.js new file mode 100644 index 000000000..163010265 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_note_details_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetNoteDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "note_id": "12345", + "associated_object_types": [ + "contact", + "company" + ], + "properties_to_return": [ + "title", + "content" + ], + "return_archived_results_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_note_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_note_details_example_call_tool.py new file mode 100644 index 000000000..79b50600f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_note_details_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetNoteDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'note_id': '12345', + 'associated_object_types': ['contact', 'company'], + 'properties_to_return': ['title', 'content'], + 'return_archived_results_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_order_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_order_details_example_call_tool.js new file mode 100644 index 000000000..3774d2732 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_order_details_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetOrderDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "order_identifier": "12345", + "associated_object_types": [ + "contact", + "company" + ], + "return_properties": [ + "status", + "amount" + ], + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_order_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_order_details_example_call_tool.py new file mode 100644 index 000000000..33947f603 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_order_details_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetOrderDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'order_identifier': '12345', + 'associated_object_types': ['contact', 'company'], + 'return_properties': ['status', 'amount'], + 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_orders_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_orders_page_example_call_tool.js new file mode 100644 index 000000000..f6a61d28c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_orders_page_example_call_tool.js @@ -0,0 +1,45 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetOrdersPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "customer", + "product" + ], + "only_return_archived_orders": false, + "order_properties_to_return": [ + "id", + "status", + "total" + ], + "paging_cursor_token": "abc123", + "properties_with_history": [ + "status" + ], + "results_per_page": 10 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_orders_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_orders_page_example_call_tool.py new file mode 100644 index 000000000..b9bf7d872 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_orders_page_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetOrdersPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['customer', 'product'], + 'only_return_archived_orders': False, + 'order_properties_to_return': ['id', 'status', 'total'], + 'paging_cursor_token': 'abc123', + 'properties_with_history': ['status'], + 'results_per_page': 10 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_client_info_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_client_info_example_call_tool.js new file mode 100644 index 000000000..fb5490fe3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_client_info_example_call_tool.js @@ -0,0 +1,44 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPartnerClientInfo"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "partner_client_id": "12345", + "associated_objects": [ + "contacts", + "deals" + ], + "include_archived_data": true, + "optional_properties": [ + "name", + "email" + ], + "properties_with_history": [ + "status" + ], + "property_id": "custom_id" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_client_info_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_client_info_example_call_tool.py new file mode 100644 index 000000000..b306bdb1f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_client_info_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPartnerClientInfo" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'partner_client_id': '12345', + 'associated_objects': ['contacts', 'deals'], + 'include_archived_data': True, + 'optional_properties': ['name', 'email'], + 'properties_with_history': ['status'], + 'property_id': 'custom_id' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_clients_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_clients_example_call_tool.js new file mode 100644 index 000000000..86621b428 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_clients_example_call_tool.js @@ -0,0 +1,44 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPartnerClients"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "client_properties": [ + "name", + "email" + ], + "include_archived": false, + "include_associations": [ + "deals", + "tickets" + ], + "pagination_cursor": "abc123", + "properties_with_history": [ + "last_contacted" + ], + "retrieval_limit": 50 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_clients_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_clients_example_call_tool.py new file mode 100644 index 000000000..1e6d6daff --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_clients_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPartnerClients" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'client_properties': ['name', 'email'], + 'include_archived': False, + 'include_associations': ['deals', 'tickets'], + 'pagination_cursor': 'abc123', + 'properties_with_history': ['last_contacted'], + 'retrieval_limit': 50 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_service_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_service_details_example_call_tool.js new file mode 100644 index 000000000..0fa33280b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_service_details_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPartnerServiceDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "partner_service_id": "12345", + "properties_to_return": [ + "name", + "status" + ], + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_service_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_service_details_example_call_tool.py new file mode 100644 index 000000000..c3caf73ce --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_service_details_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPartnerServiceDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'partner_service_id': '12345', + 'properties_to_return': ['name', 'status'], + 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_services_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_services_example_call_tool.js new file mode 100644 index 000000000..a703daf65 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_services_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPartnerServices"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "maximum_results_per_page": 10, + "properties_with_history": [ + "name", + "status" + ], + "return_only_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_services_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_services_example_call_tool.py new file mode 100644 index 000000000..8d818df68 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_partner_services_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPartnerServices" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'maximum_results_per_page': 10, + 'properties_with_history': ['name', 'status'], + 'return_only_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_payment_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_payment_details_example_call_tool.js new file mode 100644 index 000000000..d213a57fb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_payment_details_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPaymentDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "payment_identifier": "12345", + "requested_properties": [ + "amount", + "currency" + ], + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_payment_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_payment_details_example_call_tool.py new file mode 100644 index 000000000..9d07a0a72 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_payment_details_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPaymentDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'payment_identifier': '12345', + 'requested_properties': ['amount', 'currency'], + 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_payment_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_payment_records_example_call_tool.js new file mode 100644 index 000000000..319c4675f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_payment_records_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPaymentRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "archived_results_only": false, + "associated_object_types": [ + "contact", + "company" + ], + "results_per_page_limit": 10 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_payment_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_payment_records_example_call_tool.py new file mode 100644 index 000000000..cd6e577a7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_payment_records_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPaymentRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'archived_results_only': False, + 'associated_object_types': ['contact', 'company'], + 'results_per_page_limit': 10 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_audit_log_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_audit_log_example_call_tool.js new file mode 100644 index 000000000..ae64edc19 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_audit_log_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPipelineAuditLog"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type": "deals", + "pipeline_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_audit_log_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_audit_log_example_call_tool.py new file mode 100644 index 000000000..2d41fe838 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_audit_log_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPipelineAuditLog" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type': 'deals', 'pipeline_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_by_id_example_call_tool.js new file mode 100644 index 000000000..3bb62191e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_by_id_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPipelineById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type_in_crm": "deals", + "pipeline_unique_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_by_id_example_call_tool.py new file mode 100644 index 000000000..c9335b37b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPipelineById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type_in_crm': 'deals', 'pipeline_unique_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stage_audit_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stage_audit_example_call_tool.js new file mode 100644 index 000000000..fe59b9536 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stage_audit_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPipelineStageAudit"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type": "deals", + "pipeline_id": "12345", + "stage_identifier": "stage_1" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stage_audit_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stage_audit_example_call_tool.py new file mode 100644 index 000000000..5626c4ddd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stage_audit_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPipelineStageAudit" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type': 'deals', 'pipeline_id': '12345', 'stage_identifier': 'stage_1' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stage_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stage_by_id_example_call_tool.js new file mode 100644 index 000000000..857fb9056 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stage_by_id_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPipelineStageById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type": "deals", + "pipeline_id": "12345", + "stage_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stage_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stage_by_id_example_call_tool.py new file mode 100644 index 000000000..b7cfbbc86 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stage_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPipelineStageById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type': 'deals', 'pipeline_id': '12345', 'stage_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stages_example_call_tool.js new file mode 100644 index 000000000..4b701eacc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stages_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPipelineStages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type": "deals", + "pipeline_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stages_example_call_tool.py new file mode 100644 index 000000000..b45f50212 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_pipeline_stages_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPipelineStages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type': 'deals', 'pipeline_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_postal_mail_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_postal_mail_by_id_example_call_tool.js new file mode 100644 index 000000000..60f960217 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_postal_mail_by_id_example_call_tool.js @@ -0,0 +1,45 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPostalMailById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "postal_mail_id": "12345", + "identify_by_id_property": "mail_id", + "include_archived": true, + "properties_with_history": [ + "status", + "delivery_date" + ], + "related_objects_associations": [ + "contact_1", + "company_2" + ], + "specified_properties": [ + "subject", + "sender" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_postal_mail_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_postal_mail_by_id_example_call_tool.py new file mode 100644 index 000000000..8f984452a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_postal_mail_by_id_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPostalMailById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'postal_mail_id': '12345', + 'identify_by_id_property': 'mail_id', + 'include_archived': True, + 'properties_with_history': ['status', 'delivery_date'], + 'related_objects_associations': ['contact_1', 'company_2'], + 'specified_properties': ['subject', 'sender'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_postal_mail_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_postal_mail_records_example_call_tool.js new file mode 100644 index 000000000..686e2455b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_postal_mail_records_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPostalMailRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_objects": [ + "contacts", + "companies" + ], + "include_archived_records": true, + "max_records": 50, + "retrieve_specific_properties": [ + "subject", + "date_sent" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_postal_mail_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_postal_mail_records_example_call_tool.py new file mode 100644 index 000000000..ca761a07c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_postal_mail_records_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPostalMailRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_objects': ['contacts', 'companies'], + 'include_archived_records': True, + 'max_records': 50, + 'retrieve_specific_properties': ['subject', 'date_sent'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_product_details_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_product_details_by_id_example_call_tool.js new file mode 100644 index 000000000..af3b0605d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_product_details_by_id_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetProductDetailsById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "product_id": "12345", + "properties_to_return": [ + "name", + "price" + ], + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_product_details_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_product_details_by_id_example_call_tool.py new file mode 100644 index 000000000..1f90fe79f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_product_details_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetProductDetailsById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'product_id': '12345', 'properties_to_return': ['name', 'price'], 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_products_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_products_page_example_call_tool.js new file mode 100644 index 000000000..0b69fbccb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_products_page_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetProductsPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "maximum_results_per_page": 10, + "product_properties_to_return": [ + "name", + "price" + ], + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_products_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_products_page_example_call_tool.py new file mode 100644 index 000000000..8cc6b9069 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_products_page_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetProductsPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'maximum_results_per_page': 10, + 'product_properties_to_return': ['name', 'price'], + 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_property_validation_rules_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_property_validation_rules_example_call_tool.js new file mode 100644 index 000000000..6d6500cf1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_property_validation_rules_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetPropertyValidationRules"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_property_validation_rules_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_property_validation_rules_example_call_tool.py new file mode 100644 index 000000000..43fa04e1a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_property_validation_rules_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetPropertyValidationRules" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_quote_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_quote_by_id_example_call_tool.js new file mode 100644 index 000000000..5fcee28a2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_quote_by_id_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetQuoteById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "quote_id": "12345", + "included_properties": [ + "amount", + "currency" + ], + "only_return_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_quote_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_quote_by_id_example_call_tool.py new file mode 100644 index 000000000..f170ed175 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_quote_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetQuoteById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'quote_id': '12345', 'included_properties': ['amount', 'currency'], 'only_return_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_quotes_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_quotes_page_example_call_tool.js new file mode 100644 index 000000000..06e837c43 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_quotes_page_example_call_tool.js @@ -0,0 +1,38 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetQuotesPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "paging_cursor_token": "abc123", + "quote_properties_to_return": [ + "id", + "text", + "author" + ], + "results_limit": 10, + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_quotes_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_quotes_page_example_call_tool.py new file mode 100644 index 000000000..573488d8c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_quotes_page_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetQuotesPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'paging_cursor_token': 'abc123', + 'quote_properties_to_return': ['id', 'text', 'author'], + 'results_limit': 10, + 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_record_list_memberships_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_record_list_memberships_example_call_tool.js new file mode 100644 index 000000000..e353a1097 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_record_list_memberships_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetRecordListMemberships"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type_id": "contact", + "record_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_record_list_memberships_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_record_list_memberships_example_call_tool.py new file mode 100644 index 000000000..b2363020c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_record_list_memberships_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetRecordListMemberships" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type_id': 'contact', 'record_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_subscription_data_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_subscription_data_example_call_tool.js new file mode 100644 index 000000000..e55aa9193 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_subscription_data_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetSubscriptionData"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contact", + "company" + ], + "max_results_per_page": 10, + "requested_properties": [ + "email", + "status" + ], + "return_only_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_subscription_data_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_subscription_data_example_call_tool.py new file mode 100644 index 000000000..0c4b43936 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_subscription_data_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetSubscriptionData" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contact', 'company'], + 'max_results_per_page': 10, + 'requested_properties': ['email', 'status'], + 'return_only_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_subscription_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_subscription_details_example_call_tool.js new file mode 100644 index 000000000..a48c60077 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_subscription_details_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetSubscriptionDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "subscription_id": "sub_12345", + "association_types_to_retrieve": [ + "user", + "plan" + ], + "only_archived_results": false, + "requested_properties": [ + "status", + "start_date" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_subscription_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_subscription_details_example_call_tool.py new file mode 100644 index 000000000..21f4d64ff --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_subscription_details_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetSubscriptionDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'subscription_id': 'sub_12345', + 'association_types_to_retrieve': ['user', 'plan'], + 'only_archived_results': False, + 'requested_properties': ['status', 'start_date'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_task_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_task_details_example_call_tool.js new file mode 100644 index 000000000..bf832e29c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_task_details_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetTaskDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "task_id": "12345", + "associated_object_types": [ + "contact", + "company" + ], + "requested_properties": [ + "subject", + "due_date" + ], + "return_only_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_task_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_task_details_example_call_tool.py new file mode 100644 index 000000000..e127ff6a1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_task_details_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetTaskDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'task_id': '12345', + 'associated_object_types': ['contact', 'company'], + 'requested_properties': ['subject', 'due_date'], + 'return_only_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_tasks_list_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_tasks_list_example_call_tool.js new file mode 100644 index 000000000..8d15326e4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_tasks_list_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetTasksList"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "max_results_per_page": 10, + "properties_with_history": [ + "status", + "due_date" + ], + "return_only_archived_results": false, + "task_properties_to_return": [ + "title", + "description" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_tasks_list_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_tasks_list_example_call_tool.py new file mode 100644 index 000000000..2d56a9b32 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_tasks_list_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetTasksList" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'max_results_per_page': 10, + 'properties_with_history': ['status', 'due_date'], + 'return_only_archived_results': False, + 'task_properties_to_return': ['title', 'description'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_tax_details_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_tax_details_by_id_example_call_tool.js new file mode 100644 index 000000000..40306c2db --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_tax_details_by_id_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetTaxDetailsById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "tax_id": "12345", + "associated_object_types": [ + "invoice", + "payment" + ], + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_tax_details_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_tax_details_by_id_example_call_tool.py new file mode 100644 index 000000000..5546ab192 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_tax_details_by_id_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetTaxDetailsById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'tax_id': '12345', + 'associated_object_types': ['invoice', 'payment'], + 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_taxes_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_taxes_page_example_call_tool.js new file mode 100644 index 000000000..b2de73785 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_taxes_page_example_call_tool.js @@ -0,0 +1,44 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetTaxesPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "archived_only": true, + "included_properties": [ + "name", + "amount" + ], + "max_results_per_page": 10, + "paging_cursor_token": "abc123", + "properties_with_history": [ + "amount" + ], + "retrieve_associated_object_ids": [ + "customer", + "invoice" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_taxes_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_taxes_page_example_call_tool.py new file mode 100644 index 000000000..b8525f4c8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_taxes_page_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetTaxesPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'archived_only': True, + 'included_properties': ['name', 'amount'], + 'max_results_per_page': 10, + 'paging_cursor_token': 'abc123', + 'properties_with_history': ['amount'], + 'retrieve_associated_object_ids': ['customer', 'invoice'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_ticket_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_ticket_details_example_call_tool.js new file mode 100644 index 000000000..987bc97c6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_ticket_details_example_call_tool.js @@ -0,0 +1,44 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetTicketDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "ticket_id": "12345", + "associated_object_types": [ + "contact", + "company" + ], + "only_return_archived": false, + "properties_to_return": [ + "subject", + "status" + ], + "properties_with_history": [ + "status" + ], + "unique_identifier_property": "ticket_number" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_ticket_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_ticket_details_example_call_tool.py new file mode 100644 index 000000000..19880ce4b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_ticket_details_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetTicketDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'ticket_id': '12345', + 'associated_object_types': ['contact', 'company'], + 'only_return_archived': False, + 'properties_to_return': ['subject', 'status'], + 'properties_with_history': ['status'], + 'unique_identifier_property': 'ticket_number' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_transcript_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_transcript_by_id_example_call_tool.js new file mode 100644 index 000000000..e6ffd9ab9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_transcript_by_id_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetTranscriptById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "transcript_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_transcript_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_transcript_by_id_example_call_tool.py new file mode 100644 index 000000000..537a2cb32 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_transcript_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetTranscriptById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'transcript_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_user_info_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_user_info_example_call_tool.js new file mode 100644 index 000000000..4d0de59cd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_user_info_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetUserInfo"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "user_identifier": "12345", + "object_associations": [ + "contact", + "deal" + ], + "properties_to_return": [ + "email", + "firstName" + ], + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_user_info_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_user_info_example_call_tool.py new file mode 100644 index 000000000..00227669b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_user_info_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetUserInfo" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'user_identifier': '12345', + 'object_associations': ['contact', 'deal'], + 'properties_to_return': ['email', 'firstName'], + 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_users_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_users_page_example_call_tool.js new file mode 100644 index 000000000..1ce46bc2d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_users_page_example_call_tool.js @@ -0,0 +1,45 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.GetUsersPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contact", + "company" + ], + "max_results_per_page": 10, + "paging_cursor_token": "abc123", + "properties_with_history": [ + "last_login", + "email" + ], + "return_only_archived": false, + "user_properties": [ + "name", + "role" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/get_users_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_users_page_example_call_tool.py new file mode 100644 index 000000000..925112ca7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/get_users_page_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.GetUsersPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contact', 'company'], + 'max_results_per_page': 10, + 'paging_cursor_token': 'abc123', + 'properties_with_history': ['last_login', 'email'], + 'return_only_archived': False, + 'user_properties': ['name', 'role'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_batch_archive_associations_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_batch_archive_associations_example_call_tool.js new file mode 100644 index 000000000..09c00a297 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_batch_archive_associations_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.HubspotBatchArchiveAssociations"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "source_object_type": "contacts", + "target_object_type": "companies", + "request_body": "{\"associations\":[{\"id\":\"123\",\"type\":\"company\"},{\"id\":\"456\",\"type\":\"company\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_batch_archive_associations_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_batch_archive_associations_example_call_tool.py new file mode 100644 index 000000000..9a1540191 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_batch_archive_associations_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.HubspotBatchArchiveAssociations" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'source_object_type': 'contacts', + 'target_object_type': 'companies', + 'request_body': '{"associations":[{"id":"123","type":"company"},{"id":"456","type":"company"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_crm_search_objects_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_crm_search_objects_example_call_tool.js new file mode 100644 index 000000000..70bff5aa5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_crm_search_objects_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.HubspotCrmSearchObjects"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"objectType\":\"contact\",\"searchCriteria\":{\"email\":\"example@example.com\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_crm_search_objects_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_crm_search_objects_example_call_tool.py new file mode 100644 index 000000000..bccd54728 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_crm_search_objects_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.HubspotCrmSearchObjects" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"objectType":"contact","searchCriteria":{"email":"example@example.com"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_crm_upsert_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_crm_upsert_records_example_call_tool.js new file mode 100644 index 000000000..7691f9e17 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_crm_upsert_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.HubspotCrmUpsertRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"uniqueIdentifier\":\"12345\",\"properties\":{\"name\":\"John Doe\",\"email\":\"john@example.com\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_crm_upsert_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_crm_upsert_records_example_call_tool.py new file mode 100644 index 000000000..7922e36e1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_crm_upsert_records_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.HubspotCrmUpsertRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"uniqueIdentifier":"12345","properties":{"name":"John ' + 'Doe","email":"john@example.com"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_search_custom_objects_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_search_custom_objects_example_call_tool.js new file mode 100644 index 000000000..189942d4f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_search_custom_objects_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.HubspotSearchCustomObjects"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"objectType\":\"contact\",\"properties\":{\"email\":\"example@example.com\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_search_custom_objects_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_search_custom_objects_example_call_tool.py new file mode 100644 index 000000000..db2d5f7e9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_search_custom_objects_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.HubspotSearchCustomObjects" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"objectType":"contact","properties":{"email":"example@example.com"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_update_listing_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_update_listing_example_call_tool.js new file mode 100644 index 000000000..f5ee338de --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_update_listing_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.HubspotUpdateListing"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "listing_id": "12345", + "request_body": "{\"name\":\"Updated Listing Name\",\"description\":\"Updated description\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_update_listing_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_update_listing_example_call_tool.py new file mode 100644 index 000000000..ff489d9c7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/hubspot_update_listing_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.HubspotUpdateListing" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'listing_id': '12345', + 'request_body': '{"name":"Updated Listing Name","description":"Updated description"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/list_crm_entries_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/list_crm_entries_example_call_tool.js new file mode 100644 index 000000000..4e255610c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/list_crm_entries_example_call_tool.js @@ -0,0 +1,41 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ListCrmEntries"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contacts", + "deals" + ], + "include_only_archived_results": false, + "maximum_results_per_page": 10, + "properties_to_return": [ + "name", + "email", + "phone" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/list_crm_entries_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/list_crm_entries_example_call_tool.py new file mode 100644 index 000000000..9345a19ab --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/list_crm_entries_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ListCrmEntries" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contacts', 'deals'], + 'include_only_archived_results': False, + 'maximum_results_per_page': 10, + 'properties_to_return': ['name', 'email', 'phone'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/list_partner_client_associations_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/list_partner_client_associations_example_call_tool.js new file mode 100644 index 000000000..0a130c3cd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/list_partner_client_associations_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ListPartnerClientAssociations"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "partner_client_id": "12345", + "target_object_type": "contact", + "include_family_associations": true, + "max_results_per_page": 10 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/list_partner_client_associations_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/list_partner_client_associations_example_call_tool.py new file mode 100644 index 000000000..1b3c4c0b3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/list_partner_client_associations_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ListPartnerClientAssociations" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'partner_client_id': '12345', + 'target_object_type': 'contact', + 'include_family_associations': True, + 'max_results_per_page': 10 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/list_partner_service_associations_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/list_partner_service_associations_example_call_tool.js new file mode 100644 index 000000000..65383a125 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/list_partner_service_associations_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ListPartnerServiceAssociations"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "partner_service_id": "12345", + "target_object_type": "contacts", + "include_associated_fields": true, + "max_results_per_page": 10 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/list_partner_service_associations_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/list_partner_service_associations_example_call_tool.py new file mode 100644 index 000000000..84468bb16 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/list_partner_service_associations_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ListPartnerServiceAssociations" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'partner_service_id': '12345', + 'target_object_type': 'contacts', + 'include_associated_fields': True, + 'max_results_per_page': 10 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/manage_deal_splits_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/manage_deal_splits_example_call_tool.js new file mode 100644 index 000000000..88a5668b7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/manage_deal_splits_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ManageDealSplits"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"dealId\":\"12345\",\"splits\":[{\"stakeholder\":\"Alice\",\"percentage\":50.0},{\"stakeholder\":\"Bob\",\"percentage\":50.0}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/manage_deal_splits_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/manage_deal_splits_example_call_tool.py new file mode 100644 index 000000000..8340d3e72 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/manage_deal_splits_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ManageDealSplits" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"dealId":"12345","splits":[{"stakeholder":"Alice","percentage":50.0},{"stakeholder":"Bob","percentage":50.0}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_company_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_company_records_example_call_tool.js new file mode 100644 index 000000000..506c4d867 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_company_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.MergeCompanyRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "company_id_to_merge": "12345", + "primary_company_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_company_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_company_records_example_call_tool.py new file mode 100644 index 000000000..93fa1a6c0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_company_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.MergeCompanyRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'company_id_to_merge': '12345', 'primary_company_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_contacts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_contacts_example_call_tool.js new file mode 100644 index 000000000..0cd99a724 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_contacts_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.MergeContacts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "contact_id_to_merge": "12345", + "primary_contact_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_contacts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_contacts_example_call_tool.py new file mode 100644 index 000000000..37e6b7ce5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_contacts_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.MergeContacts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'contact_id_to_merge': '12345', 'primary_contact_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_deals_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_deals_example_call_tool.js new file mode 100644 index 000000000..7d9ff46c8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_deals_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.MergeDeals"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "deal_id_to_merge": "12345", + "primary_deal_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_deals_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_deals_example_call_tool.py new file mode 100644 index 000000000..b8c60ae41 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_deals_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.MergeDeals" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'deal_id_to_merge': '12345', 'primary_deal_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_hubspot_crm_objects_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_hubspot_crm_objects_example_call_tool.js new file mode 100644 index 000000000..59f230ee2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_hubspot_crm_objects_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.MergeHubspotCrmObjects"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "hubspot_object_type": "contact", + "object_id_to_merge": "12345", + "primary_object_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_hubspot_crm_objects_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_hubspot_crm_objects_example_call_tool.py new file mode 100644 index 000000000..bfa0f3172 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_hubspot_crm_objects_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.MergeHubspotCrmObjects" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'hubspot_object_type': 'contact', 'object_id_to_merge': '12345', 'primary_object_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_hubspot_objects_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_hubspot_objects_example_call_tool.js new file mode 100644 index 000000000..2aabab387 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_hubspot_objects_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.MergeHubspotObjects"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_id_to_merge": "12345", + "object_type_to_merge": "contacts", + "primary_object_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_hubspot_objects_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_hubspot_objects_example_call_tool.py new file mode 100644 index 000000000..b04ab1e9e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_hubspot_objects_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.MergeHubspotObjects" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_id_to_merge': '12345', 'object_type_to_merge': 'contacts', 'primary_object_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_support_tickets_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_support_tickets_example_call_tool.js new file mode 100644 index 000000000..cb3c68a3b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_support_tickets_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.MergeSupportTickets"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "primary_ticket_id": "TICKET-123", + "secondary_ticket_id": "TICKET-456" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_support_tickets_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_support_tickets_example_call_tool.py new file mode 100644 index 000000000..3209cd4a9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/merge_support_tickets_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.MergeSupportTickets" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'primary_ticket_id': 'TICKET-123', 'secondary_ticket_id': 'TICKET-456' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/modify_hubspot_object_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/modify_hubspot_object_example_call_tool.js new file mode 100644 index 000000000..c4d4d22d7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/modify_hubspot_object_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ModifyHubspotObject"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "hubspot_object_type": "contacts", + "object_identifier": "12345", + "request_body": "{\"property\":\"value\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/modify_hubspot_object_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/modify_hubspot_object_example_call_tool.py new file mode 100644 index 000000000..95da997d5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/modify_hubspot_object_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ModifyHubspotObject" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'hubspot_object_type': 'contacts', + 'object_identifier': '12345', + 'request_body': '{"property":"value"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/move_folder_in_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_folder_in_hubspot_example_call_tool.js new file mode 100644 index 000000000..4aac173b2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_folder_in_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.MoveFolderInHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "folder_id_to_move": "12345", + "target_parent_folder_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/move_folder_in_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_folder_in_hubspot_example_call_tool.py new file mode 100644 index 000000000..f1aa86bfa --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_folder_in_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.MoveFolderInHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'folder_id_to_move': '12345', 'target_parent_folder_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/move_list_to_folder_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_list_to_folder_example_call_tool.js new file mode 100644 index 000000000..3ebaa9b4b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_list_to_folder_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.MoveListToFolder"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_id": "12345", + "target_folder_id": "67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/move_list_to_folder_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_list_to_folder_example_call_tool.py new file mode 100644 index 000000000..73dd65655 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_list_to_folder_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.MoveListToFolder" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_id': '12345', 'target_folder_id': '67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/move_listing_to_recycle_bin_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_listing_to_recycle_bin_example_call_tool.js new file mode 100644 index 000000000..4a02ddc92 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_listing_to_recycle_bin_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.MoveListingToRecycleBin"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "listing_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/move_listing_to_recycle_bin_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_listing_to_recycle_bin_example_call_tool.py new file mode 100644 index 000000000..e479dbd01 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_listing_to_recycle_bin_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.MoveListingToRecycleBin" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'listing_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/move_object_to_recycle_bin_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_object_to_recycle_bin_example_call_tool.js new file mode 100644 index 000000000..f0b6761d3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_object_to_recycle_bin_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.MoveObjectToRecycleBin"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_id": "12345", + "object_type": "contacts" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/move_object_to_recycle_bin_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_object_to_recycle_bin_example_call_tool.py new file mode 100644 index 000000000..1733be468 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/move_object_to_recycle_bin_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.MoveObjectToRecycleBin" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_id': '12345', 'object_type': 'contacts' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/pipeline_limits_usage_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/pipeline_limits_usage_example_call_tool.js new file mode 100644 index 000000000..ffcc3b836 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/pipeline_limits_usage_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.PipelineLimitsUsage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/pipeline_limits_usage_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/pipeline_limits_usage_example_call_tool.py new file mode 100644 index 000000000..c9aed8ef8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/pipeline_limits_usage_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.PipelineLimitsUsage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_deal_splits_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_deal_splits_example_call_tool.js new file mode 100644 index 000000000..b1006860f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_deal_splits_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ReadBatchDealSplits"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"deal_id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_deal_splits_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_deal_splits_example_call_tool.py new file mode 100644 index 000000000..4aa2d9923 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_deal_splits_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ReadBatchDealSplits" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"deal_id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_payments_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_payments_example_call_tool.js new file mode 100644 index 000000000..8696b7958 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_payments_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ReadBatchPayments"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "only_return_archived_results": false, + "request_body": "{\"payment_ids\":[\"123\",\"456\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_payments_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_payments_example_call_tool.py new file mode 100644 index 000000000..c38698ae2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_payments_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ReadBatchPayments" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'only_return_archived_results': False, + 'request_body': '{"payment_ids":["123","456"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_properties_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_properties_example_call_tool.js new file mode 100644 index 000000000..86d4530ca --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_properties_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ReadBatchProperties"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "crm_object_type": "contacts", + "request_body": "{\"fields\":[\"name\",\"email\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_properties_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_properties_example_call_tool.py new file mode 100644 index 000000000..1e57b2c96 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_batch_properties_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ReadBatchProperties" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'crm_object_type': 'contacts', 'request_body': '{"fields":["name","email"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_communications_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_communications_page_example_call_tool.js new file mode 100644 index 000000000..9bc26e530 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_communications_page_example_call_tool.js @@ -0,0 +1,45 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ReadCommunicationsPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "paging_cursor_token": "abc123", + "properties_with_history": [ + "status", + "last_contacted" + ], + "results_per_page": 10, + "retrieve_associations": [ + "contact", + "company" + ], + "return_only_archived_results": false, + "specified_properties": [ + "subject", + "body" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_communications_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_communications_page_example_call_tool.py new file mode 100644 index 000000000..eade91456 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_communications_page_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ReadCommunicationsPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'paging_cursor_token': 'abc123', + 'properties_with_history': ['status', 'last_contacted'], + 'results_per_page': 10, + 'retrieve_associations': ['contact', 'company'], + 'return_only_archived_results': False, + 'specified_properties': ['subject', 'body'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_property_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_property_example_call_tool.js new file mode 100644 index 000000000..30882faf1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_property_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ReadProperty"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "crm_object_type": "contact", + "property_name": "email", + "property_specifications": "label,fieldType", + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_property_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_property_example_call_tool.py new file mode 100644 index 000000000..bf2bc71b2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_property_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ReadProperty" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'crm_object_type': 'contact', + 'property_name': 'email', + 'property_specifications': 'label,fieldType', + 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_property_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_property_group_example_call_tool.js new file mode 100644 index 000000000..9d0b1d08a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_property_group_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ReadPropertyGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type": "contacts", + "property_group_name": "contact_information" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_property_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_property_group_example_call_tool.py new file mode 100644 index 000000000..19de9df03 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_property_group_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ReadPropertyGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type': 'contacts', 'property_group_name': 'contact_information' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_services_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_services_page_example_call_tool.js new file mode 100644 index 000000000..397c6b637 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_services_page_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ReadServicesPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contact", + "company" + ], + "max_results_per_page": 10, + "requested_properties": [ + "name", + "description" + ], + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/read_services_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_services_page_example_call_tool.py new file mode 100644 index 000000000..fd1f87816 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/read_services_page_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ReadServicesPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contact', 'company'], + 'max_results_per_page': 10, + 'requested_properties': ['name', 'description'], + 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_all_list_memberships_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_all_list_memberships_example_call_tool.js new file mode 100644 index 000000000..04cef6d29 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_all_list_memberships_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RemoveAllListMemberships"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_all_list_memberships_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_all_list_memberships_example_call_tool.py new file mode 100644 index 000000000..d7a4df695 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_all_list_memberships_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RemoveAllListMemberships" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_crm_association_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_crm_association_example_call_tool.js new file mode 100644 index 000000000..0d993ff15 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_crm_association_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RemoveCrmAssociation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "association_type": "contact-to-company", + "object_type": "contact", + "source_object_id": "12345", + "target_object_id": "67890", + "target_object_type": "company" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_crm_association_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_crm_association_example_call_tool.py new file mode 100644 index 000000000..e2255d33d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_crm_association_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RemoveCrmAssociation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'association_type': 'contact-to-company', + 'object_type': 'contact', + 'source_object_id': '12345', + 'target_object_id': '67890', + 'target_object_type': 'company' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_partner_client_association_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_partner_client_association_example_call_tool.js new file mode 100644 index 000000000..31a159dbb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_partner_client_association_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RemovePartnerClientAssociation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "association_type": "partner", + "partner_client_id": "12345", + "target_object_id": "67890", + "target_object_type": "contacts" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_partner_client_association_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_partner_client_association_example_call_tool.py new file mode 100644 index 000000000..9ef2dc4dd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_partner_client_association_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RemovePartnerClientAssociation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'association_type': 'partner', + 'partner_client_id': '12345', + 'target_object_id': '67890', + 'target_object_type': 'contacts' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_partner_service_association_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_partner_service_association_example_call_tool.js new file mode 100644 index 000000000..4f5fd3280 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_partner_service_association_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RemovePartnerServiceAssociation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "association_type": "service_link", + "partner_service_id": "12345", + "target_object_id": "67890", + "target_object_type": "company" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_partner_service_association_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_partner_service_association_example_call_tool.py new file mode 100644 index 000000000..08ac24967 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_partner_service_association_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RemovePartnerServiceAssociation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'association_type': 'service_link', + 'partner_service_id': '12345', + 'target_object_id': '67890', + 'target_object_type': 'company' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_product_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_product_example_call_tool.js new file mode 100644 index 000000000..809b08d85 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_product_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RemoveProduct"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "product_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_product_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_product_example_call_tool.py new file mode 100644 index 000000000..979bac627 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_product_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RemoveProduct" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'product_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_records_from_list_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_records_from_list_example_call_tool.js new file mode 100644 index 000000000..8164db01c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_records_from_list_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RemoveRecordsFromList"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_id": "12345", + "record_ids_to_remove": [ + "67890", + "23456", + "78901" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_records_from_list_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_records_from_list_example_call_tool.py new file mode 100644 index 000000000..bc3d643b2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/remove_records_from_list_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RemoveRecordsFromList" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_id': '12345', 'record_ids_to_remove': ['67890', '23456', '78901'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/rename_crm_folder_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/rename_crm_folder_example_call_tool.js new file mode 100644 index 000000000..27ee2bf6f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/rename_crm_folder_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RenameCrmFolder"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "folder_id": "12345", + "new_folder_name": "Updated Folder Name" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/rename_crm_folder_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/rename_crm_folder_example_call_tool.py new file mode 100644 index 000000000..f47dced3b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/rename_crm_folder_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RenameCrmFolder" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'folder_id': '12345', 'new_folder_name': 'Updated Folder Name' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/replace_pipeline_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/replace_pipeline_hubspot_example_call_tool.js new file mode 100644 index 000000000..cc4198c99 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/replace_pipeline_hubspot_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ReplacePipelineHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "object_type": "deals", + "pipeline_identifier": "12345", + "validate_references_before_deletion": true, + "request_body": "{\"name\":\"New Pipeline\",\"stages\":[{\"stage\":\"Initial Contact\",\"probability\":0.1},{\"stage\":\"Negotiation\",\"probability\":0.5}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/replace_pipeline_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/replace_pipeline_hubspot_example_call_tool.py new file mode 100644 index 000000000..f81520a46 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/replace_pipeline_hubspot_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ReplacePipelineHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'object_type': 'deals', + 'pipeline_identifier': '12345', + 'validate_references_before_deletion': True, + 'request_body': '{"name":"New Pipeline","stages":[{"stage":"Initial ' + 'Contact","probability":0.1},{"stage":"Negotiation","probability":0.5}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/replace_pipeline_stage_properties_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/replace_pipeline_stage_properties_example_call_tool.js new file mode 100644 index 000000000..7d5ff81b7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/replace_pipeline_stage_properties_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ReplacePipelineStageProperties"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "crm_object_type": "deals", + "pipeline_id": "12345", + "pipeline_stage_id": "67890", + "request_body": "{\"name\":\"New Stage Name\",\"properties\":{\"probability\":0.75}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/replace_pipeline_stage_properties_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/replace_pipeline_stage_properties_example_call_tool.py new file mode 100644 index 000000000..1e68f1a8b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/replace_pipeline_stage_properties_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ReplacePipelineStageProperties" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'crm_object_type': 'deals', + 'pipeline_id': '12345', + 'pipeline_stage_id': '67890', + 'request_body': '{"name":"New Stage Name","properties":{"probability":0.75}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/restore_deleted_list_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/restore_deleted_list_example_call_tool.js new file mode 100644 index 000000000..452019ca3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/restore_deleted_list_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RestoreDeletedList"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_id_to_restore": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/restore_deleted_list_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/restore_deleted_list_example_call_tool.py new file mode 100644 index 000000000..f3236f7ab --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/restore_deleted_list_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RestoreDeletedList" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_id_to_restore': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_all_companies_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_all_companies_example_call_tool.js new file mode 100644 index 000000000..7de062e81 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_all_companies_example_call_tool.js @@ -0,0 +1,41 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveAllCompanies"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contact", + "deal" + ], + "paging_cursor_token": "abc123", + "properties_to_return": [ + "name", + "industry" + ], + "results_per_page_limit": 50, + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_all_companies_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_all_companies_example_call_tool.py new file mode 100644 index 000000000..e38c49444 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_all_companies_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveAllCompanies" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contact', 'deal'], + 'paging_cursor_token': 'abc123', + 'properties_to_return': ['name', 'industry'], + 'results_per_page_limit': 50, + 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_communications_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_communications_example_call_tool.js new file mode 100644 index 000000000..3b22ddc9b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_communications_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveBatchCommunications"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_only": false, + "request_body": "{\"message_ids\":[\"12345\",\"67890\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_communications_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_communications_example_call_tool.py new file mode 100644 index 000000000..7d87ae300 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_communications_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveBatchCommunications" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'return_archived_only': False, + 'request_body': '{"message_ids":["12345","67890"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_companies_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_companies_hubspot_example_call_tool.js new file mode 100644 index 000000000..4f5e8e7ad --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_companies_hubspot_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveBatchCompaniesHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_only": false, + "request_body": "{\"ids\":[\"123\",\"456\"],\"properties\":[\"name\",\"industry\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_companies_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_companies_hubspot_example_call_tool.py new file mode 100644 index 000000000..fa575e088 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_companies_hubspot_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveBatchCompaniesHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'return_archived_only': False, + 'request_body': '{"ids":["123","456"],"properties":["name","industry"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_line_items_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_line_items_example_call_tool.js new file mode 100644 index 000000000..074bd519f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_line_items_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveBatchLineItems"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"ids\":[\"123\",\"456\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_line_items_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_line_items_example_call_tool.py new file mode 100644 index 000000000..37deb00e2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_batch_line_items_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveBatchLineItems" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"ids":["123","456"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_calls_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_calls_batch_example_call_tool.js new file mode 100644 index 000000000..9652222f2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_calls_batch_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveCallsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_only_archived": false, + "request_body": "{\"call_ids\":[\"12345\",\"67890\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_calls_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_calls_batch_example_call_tool.py new file mode 100644 index 000000000..e5ad20910 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_calls_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveCallsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_only_archived': False, 'request_body': '{"call_ids":["12345","67890"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_cart_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_cart_details_example_call_tool.js new file mode 100644 index 000000000..bbbc2b46f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_cart_details_example_call_tool.js @@ -0,0 +1,44 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveCartDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "product", + "discount" + ], + "cart_properties_to_return": [ + "total_price", + "item_count" + ], + "max_results_per_page": 10, + "paging_cursor_token": "abc123", + "properties_with_history_list": [ + "total_price" + ], + "return_only_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_cart_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_cart_details_example_call_tool.py new file mode 100644 index 000000000..412ccea5a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_cart_details_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveCartDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['product', 'discount'], + 'cart_properties_to_return': ['total_price', 'item_count'], + 'max_results_per_page': 10, + 'paging_cursor_token': 'abc123', + 'properties_with_history_list': ['total_price'], + 'return_only_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_cart_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_cart_records_example_call_tool.js new file mode 100644 index 000000000..3f61cd67c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_cart_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveCartRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "only_archived_results": false, + "request_body": "{\"recordId\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_cart_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_cart_records_example_call_tool.py new file mode 100644 index 000000000..a777bfc48 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_cart_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveCartRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'only_archived_results': False, 'request_body': '{"recordId":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_commerce_payment_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_commerce_payment_details_example_call_tool.js new file mode 100644 index 000000000..d71606091 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_commerce_payment_details_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveCommercePaymentDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "commerce_payment_id": "12345", + "associated_object_types": [ + "invoice", + "customer" + ], + "only_return_archived_results": false, + "return_properties": [ + "amount", + "status" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_commerce_payment_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_commerce_payment_details_example_call_tool.py new file mode 100644 index 000000000..2dacf6cab --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_commerce_payment_details_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveCommercePaymentDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'commerce_payment_id': '12345', + 'associated_object_types': ['invoice', 'customer'], + 'only_return_archived_results': False, + 'return_properties': ['amount', 'status'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_commerce_payment_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_commerce_payment_records_example_call_tool.js new file mode 100644 index 000000000..ffaa06a20 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_commerce_payment_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveCommercePaymentRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"id\":\"12345\"}", + "return_archived_results_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_commerce_payment_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_commerce_payment_records_example_call_tool.py new file mode 100644 index 000000000..6d6d2de35 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_commerce_payment_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveCommercePaymentRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"id":"12345"}', 'return_archived_results_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_company_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_company_by_id_example_call_tool.js new file mode 100644 index 000000000..b556be65d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_company_by_id_example_call_tool.js @@ -0,0 +1,40 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveCompanyById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "company_identifier": "12345", + "associated_object_types": [ + "employee", + "project" + ], + "company_properties_to_retrieve": [ + "name", + "location" + ], + "return_only_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_company_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_company_by_id_example_call_tool.py new file mode 100644 index 000000000..f5d96fb2a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_company_by_id_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveCompanyById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'company_identifier': '12345', + 'associated_object_types': ['employee', 'project'], + 'company_properties_to_retrieve': ['name', 'location'], + 'return_only_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_conversion_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_conversion_details_example_call_tool.js new file mode 100644 index 000000000..4d7c3dafa --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_conversion_details_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveConversionDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_conversion_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_conversion_details_example_call_tool.py new file mode 100644 index 000000000..7b352ae2d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_conversion_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveConversionDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_crm_object_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_crm_object_example_call_tool.js new file mode 100644 index 000000000..75a6353e4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_crm_object_example_call_tool.js @@ -0,0 +1,44 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveCrmObject"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_id": "12345", + "object_type": "contacts", + "associated_object_types": [ + "companies", + "deals" + ], + "properties_list": [ + "name", + "email" + ], + "properties_with_history": [ + "status" + ], + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_crm_object_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_crm_object_example_call_tool.py new file mode 100644 index 000000000..28c919c97 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_crm_object_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveCrmObject" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_id': '12345', + 'object_type': 'contacts', + 'associated_object_types': ['companies', 'deals'], + 'properties_list': ['name', 'email'], + 'properties_with_history': ['status'], + 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_crm_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_crm_records_example_call_tool.js new file mode 100644 index 000000000..0e26c9d25 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_crm_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveCrmRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "retrieve_only_archived_records": false, + "request_body": "{\"id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_crm_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_crm_records_example_call_tool.py new file mode 100644 index 000000000..522cef832 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_crm_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveCrmRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'retrieve_only_archived_records': False, 'request_body': '{"id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_discount_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_discount_details_example_call_tool.js new file mode 100644 index 000000000..662a53209 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_discount_details_example_call_tool.js @@ -0,0 +1,37 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveDiscountDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "discount_identifier": "12345", + "archived_results_only": false, + "return_properties": [ + "name", + "amount" + ], + "unique_property_name": "code" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_discount_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_discount_details_example_call_tool.py new file mode 100644 index 000000000..21844ae63 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_discount_details_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveDiscountDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'discount_identifier': '12345', + 'archived_results_only': False, + 'return_properties': ['name', 'amount'], + 'unique_property_name': 'code' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_discount_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_discount_records_example_call_tool.js new file mode 100644 index 000000000..374ea892a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_discount_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveDiscountRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"ids\":[\"123\",\"456\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_discount_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_discount_records_example_call_tool.py new file mode 100644 index 000000000..7071c0715 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_discount_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveDiscountRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"ids":["123","456"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_email_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_email_by_id_example_call_tool.js new file mode 100644 index 000000000..9ca75d6dd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_email_by_id_example_call_tool.js @@ -0,0 +1,45 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveEmailById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_id": "12345", + "object_types_for_associated_ids": [ + "contact", + "company" + ], + "properties_with_history": [ + "subject", + "body" + ], + "return_only_archived_results": false, + "returned_properties": [ + "subject", + "from", + "to" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_email_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_email_by_id_example_call_tool.py new file mode 100644 index 000000000..ac108c92a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_email_by_id_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveEmailById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_id': '12345', + 'object_types_for_associated_ids': ['contact', 'company'], + 'properties_with_history': ['subject', 'body'], + 'return_only_archived_results': False, + 'returned_properties': ['subject', 'from', 'to'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_email_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_email_records_example_call_tool.js new file mode 100644 index 000000000..195156af3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_email_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveEmailRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "only_archived_records": false, + "request_body": "{\"emailId\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_email_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_email_records_example_call_tool.py new file mode 100644 index 000000000..5019614de --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_email_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveEmailRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'only_archived_records': False, 'request_body': '{"emailId":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_emails_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_emails_page_example_call_tool.js new file mode 100644 index 000000000..5e014588e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_emails_page_example_call_tool.js @@ -0,0 +1,37 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveEmailsPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "max_results_per_page": 10, + "returned_email_properties": [ + "subject", + "from", + "to" + ], + "return_only_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_emails_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_emails_page_example_call_tool.py new file mode 100644 index 000000000..1b172bde3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_emails_page_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveEmailsPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'max_results_per_page': 10, + 'returned_email_properties': ['subject', 'from', 'to'], + 'return_only_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_event_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_event_details_example_call_tool.js new file mode 100644 index 000000000..c35ae7998 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_event_details_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveEventDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "event_id": "12345", + "event_template_id": "template_67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_event_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_event_details_example_call_tool.py new file mode 100644 index 000000000..f4f7826b0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_event_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveEventDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'event_id': '12345', 'event_template_id': 'template_67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_event_instance_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_event_instance_example_call_tool.js new file mode 100644 index 000000000..47f5d5e75 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_event_instance_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveEventInstance"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "event_id": "evt_12345", + "event_template_id": "tmpl_67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_event_instance_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_event_instance_example_call_tool.py new file mode 100644 index 000000000..7cf64bb63 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_event_instance_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveEventInstance" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'event_id': 'evt_12345', 'event_template_id': 'tmpl_67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_fee_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_fee_records_example_call_tool.js new file mode 100644 index 000000000..12f222d8e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_fee_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveFeeRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_only": false, + "request_body": "{\"ids\":[\"12345\",\"67890\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_fee_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_fee_records_example_call_tool.py new file mode 100644 index 000000000..2b08ddf1b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_fee_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveFeeRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_archived_only': False, 'request_body': '{"ids":["12345","67890"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_feedback_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_feedback_records_example_call_tool.js new file mode 100644 index 000000000..dd428e70f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_feedback_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveFeedbackRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_only": false, + "request_body": "{\"idProperty\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_feedback_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_feedback_records_example_call_tool.py new file mode 100644 index 000000000..9aeac3d39 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_feedback_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveFeedbackRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_archived_only': False, 'request_body': '{"idProperty":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_folders_with_child_nodes_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_folders_with_child_nodes_example_call_tool.js new file mode 100644 index 000000000..cc79d3e97 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_folders_with_child_nodes_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveFoldersWithChildNodes"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "target_folder_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_folders_with_child_nodes_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_folders_with_child_nodes_example_call_tool.py new file mode 100644 index 000000000..0fbe56510 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_folders_with_child_nodes_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveFoldersWithChildNodes" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'target_folder_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_goal_targets_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_goal_targets_example_call_tool.js new file mode 100644 index 000000000..98f869578 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_goal_targets_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveGoalTargets"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"recordId\":\"12345\"}", + "return_only_archived_results": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_goal_targets_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_goal_targets_example_call_tool.py new file mode 100644 index 000000000..b0c964258 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_goal_targets_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveGoalTargets" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"recordId":"12345"}', 'return_only_archived_results': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_crm_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_crm_records_example_call_tool.js new file mode 100644 index 000000000..9bc911447 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_crm_records_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveHubspotCrmRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "crm_object_type": "contacts", + "return_only_archived_records": false, + "request_body": "{\"idProperty\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_crm_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_crm_records_example_call_tool.py new file mode 100644 index 000000000..1ed5f2dfc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_crm_records_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveHubspotCrmRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'crm_object_type': 'contacts', + 'return_only_archived_records': False, + 'request_body': '{"idProperty":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_orders_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_orders_example_call_tool.js new file mode 100644 index 000000000..78fe387d5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_orders_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveHubspotOrders"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_only_archived_orders": false, + "request_body": "{\"orderId\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_orders_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_orders_example_call_tool.py new file mode 100644 index 000000000..1558d30d8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_orders_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveHubspotOrders" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_only_archived_orders': False, 'request_body': '{"orderId":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_product_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_product_records_example_call_tool.js new file mode 100644 index 000000000..df2c6e134 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_product_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveHubspotProductRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "only_archived": false, + "request_body": "{\"id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_product_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_product_records_example_call_tool.py new file mode 100644 index 000000000..3351fa354 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_product_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveHubspotProductRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'only_archived': False, 'request_body': '{"id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_properties_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_properties_example_call_tool.js new file mode 100644 index 000000000..d6305a818 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_properties_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveHubspotProperties"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type": "contact", + "return_archived_only": false, + "selected_properties": "firstname,lastname,email" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_properties_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_properties_example_call_tool.py new file mode 100644 index 000000000..e78cb579b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_properties_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveHubspotProperties" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type': 'contact', + 'return_archived_only': False, + 'selected_properties': 'firstname,lastname,email' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_property_groups_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_property_groups_example_call_tool.js new file mode 100644 index 000000000..aa91bc399 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_property_groups_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveHubspotPropertyGroups"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "hubspot_object_type": "contacts" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_property_groups_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_property_groups_example_call_tool.py new file mode 100644 index 000000000..1999572c9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_property_groups_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveHubspotPropertyGroups" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'hubspot_object_type': 'contacts' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_records_example_call_tool.js new file mode 100644 index 000000000..9b1a212fe --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveHubspotRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_records": false, + "request_body": "{\"idProperty\":\"email\",\"ids\":[\"example@example.com\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_records_example_call_tool.py new file mode 100644 index 000000000..aa45a028d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_records_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveHubspotRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'return_archived_records': False, + 'request_body': '{"idProperty":"email","ids":["example@example.com"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_tasks_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_tasks_example_call_tool.js new file mode 100644 index 000000000..806cd9848 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_tasks_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveHubspotTasks"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_only": false, + "request_body": "{\"idProperty\":\"task_id\",\"ids\":[\"12345\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_tasks_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_tasks_example_call_tool.py new file mode 100644 index 000000000..b6325257d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_tasks_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveHubspotTasks" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'return_archived_only': False, + 'request_body': '{"idProperty":"task_id","ids":["12345"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_user_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_user_records_example_call_tool.js new file mode 100644 index 000000000..4c88a2dae --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_user_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveHubspotUserRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_only_archived_results": false, + "request_body": "{\"id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_user_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_user_records_example_call_tool.py new file mode 100644 index 000000000..50c4f42e4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_hubspot_user_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveHubspotUserRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_only_archived_results': False, 'request_body': '{"id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_invoice_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_invoice_records_example_call_tool.js new file mode 100644 index 000000000..2ef8cb584 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_invoice_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveInvoiceRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_only": false, + "request_body": "{\"invoice_id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_invoice_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_invoice_records_example_call_tool.py new file mode 100644 index 000000000..a18d1f19f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_invoice_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveInvoiceRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_archived_only': False, 'request_body': '{"invoice_id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_invoices_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_invoices_example_call_tool.js new file mode 100644 index 000000000..eded00f59 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_invoices_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveInvoices"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "maximum_results_per_page": 10, + "return_archived_only": false, + "specified_properties": [ + "invoice_id", + "amount" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_invoices_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_invoices_example_call_tool.py new file mode 100644 index 000000000..28422c520 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_invoices_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveInvoices" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'maximum_results_per_page': 10, + 'return_archived_only': False, + 'specified_properties': ['invoice_id', 'amount'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_lead_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_lead_records_example_call_tool.js new file mode 100644 index 000000000..ac503e605 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_lead_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveLeadRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_only": false, + "request_body": "{\"id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_lead_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_lead_records_example_call_tool.py new file mode 100644 index 000000000..0e511513b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_lead_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveLeadRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_archived_only': False, 'request_body': '{"id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_limit_approaching_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_limit_approaching_records_example_call_tool.js new file mode 100644 index 000000000..a37ebc633 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_limit_approaching_records_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveLimitApproachingRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_limit_approaching_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_limit_approaching_records_example_call_tool.py new file mode 100644 index 000000000..2726f0306 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_limit_approaching_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveLimitApproachingRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_line_items_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_line_items_page_example_call_tool.js new file mode 100644 index 000000000..211f532b9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_line_items_page_example_call_tool.js @@ -0,0 +1,44 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveLineItemsPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contact", + "company" + ], + "include_properties": [ + "name", + "amount" + ], + "max_results_per_page": 10, + "pagination_cursor_after": "abc123", + "properties_with_history": [ + "amount" + ], + "return_only_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_line_items_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_line_items_page_example_call_tool.py new file mode 100644 index 000000000..50a9722d0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_line_items_page_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveLineItemsPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contact', 'company'], + 'include_properties': ['name', 'amount'], + 'max_results_per_page': 10, + 'pagination_cursor_after': 'abc123', + 'properties_with_history': ['amount'], + 'return_only_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_meeting_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_meeting_records_example_call_tool.js new file mode 100644 index 000000000..62c7a3f72 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_meeting_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveMeetingRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_only_archived_results": false, + "request_body": "{\"meeting_id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_meeting_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_meeting_records_example_call_tool.py new file mode 100644 index 000000000..80672b87e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_meeting_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveMeetingRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_only_archived_results': False, 'request_body': '{"meeting_id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_notes_page_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_notes_page_example_call_tool.js new file mode 100644 index 000000000..09be6b848 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_notes_page_example_call_tool.js @@ -0,0 +1,41 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveNotesPage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "associated_object_types": [ + "contact", + "company" + ], + "paging_cursor_token": "abc123", + "results_per_page": 10, + "return_only_archived_notes": false, + "returned_properties_list": [ + "title", + "content" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_notes_page_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_notes_page_example_call_tool.py new file mode 100644 index 000000000..781811be6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_notes_page_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveNotesPage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'associated_object_types': ['contact', 'company'], + 'paging_cursor_token': 'abc123', + 'results_per_page': 10, + 'return_only_archived_notes': False, + 'returned_properties_list': ['title', 'content'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_notes_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_notes_records_example_call_tool.js new file mode 100644 index 000000000..fa22dbff8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_notes_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveNotesRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_only": false, + "request_body": "{\"id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_notes_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_notes_records_example_call_tool.py new file mode 100644 index 000000000..5e4b22085 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_notes_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveNotesRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_archived_only': False, 'request_body': '{"id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_owner_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_owner_details_example_call_tool.js new file mode 100644 index 000000000..071a4973d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_owner_details_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveOwnerDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "owner_id": 12345, + "include_archived": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_owner_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_owner_details_example_call_tool.py new file mode 100644 index 000000000..f692fd6ed --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_owner_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveOwnerDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'owner_id': 12345, 'include_archived': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_owners_list_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_owners_list_example_call_tool.js new file mode 100644 index 000000000..00b56a20a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_owners_list_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveOwnersList"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "filter_by_email": "owner@example.com", + "include_archived": true, + "owners_list_limit": 10 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_owners_list_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_owners_list_example_call_tool.py new file mode 100644 index 000000000..0c79b5104 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_owners_list_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveOwnersList" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'filter_by_email': 'owner@example.com', 'include_archived': True, 'owners_list_limit': 10 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_partner_services_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_partner_services_records_example_call_tool.js new file mode 100644 index 000000000..f9cb26bda --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_partner_services_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrievePartnerServicesRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_only_archived_records": false, + "request_body": "{\"id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_partner_services_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_partner_services_records_example_call_tool.py new file mode 100644 index 000000000..ad6e14622 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_partner_services_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrievePartnerServicesRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_only_archived_records': False, 'request_body': '{"id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_quotes_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_quotes_batch_example_call_tool.js new file mode 100644 index 000000000..3f81abaff --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_quotes_batch_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveQuotesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "archived_results_only": false, + "request_body": "{\"quote_ids\":[\"123\",\"456\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_quotes_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_quotes_batch_example_call_tool.py new file mode 100644 index 000000000..2c7134b3b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_quotes_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveQuotesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'archived_results_only': False, 'request_body': '{"quote_ids":["123","456"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_subscription_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_subscription_records_example_call_tool.js new file mode 100644 index 000000000..84dca8305 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_subscription_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveSubscriptionRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "only_archived_records": false, + "request_body": "{\"subscriptionId\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_subscription_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_subscription_records_example_call_tool.py new file mode 100644 index 000000000..a33541e4a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_subscription_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveSubscriptionRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'only_archived_records': False, 'request_body': '{"subscriptionId":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_tax_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_tax_records_example_call_tool.js new file mode 100644 index 000000000..87748bcb4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_tax_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveTaxRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_only": false, + "request_body": "{\"recordId\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_tax_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_tax_records_example_call_tool.py new file mode 100644 index 000000000..052c818ca --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_tax_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveTaxRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'return_archived_only': False, 'request_body': '{"recordId":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_ticket_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_ticket_batch_example_call_tool.js new file mode 100644 index 000000000..84c0a3f44 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_ticket_batch_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.RetrieveTicketBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "return_archived_tickets_only": false, + "request_body": "{\"ticket_ids\":[\"123\",\"456\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_ticket_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_ticket_batch_example_call_tool.py new file mode 100644 index 000000000..e82a67a35 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/retrieve_ticket_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.RetrieveTicketBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'return_archived_tickets_only': False, + 'request_body': '{"ticket_ids":["123","456"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/schedule_list_conversion_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/schedule_list_conversion_example_call_tool.js new file mode 100644 index 000000000..93753c9aa --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/schedule_list_conversion_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.ScheduleListConversion"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "list_id": "12345", + "request_body": "{\"conversion_date\":\"2023-10-30\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/schedule_list_conversion_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/schedule_list_conversion_example_call_tool.py new file mode 100644 index 000000000..9460bb021 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/schedule_list_conversion_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.ScheduleListConversion" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'list_id': '12345', 'request_body': '{"conversion_date":"2023-10-30"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_appointments_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_appointments_example_call_tool.js new file mode 100644 index 000000000..073b57689 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_appointments_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchAppointments"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "appointment_search_criteria_type": "appointments", + "request_body": "{\"date\":\"2023-10-01\",\"status\":\"confirmed\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_appointments_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_appointments_example_call_tool.py new file mode 100644 index 000000000..93967a932 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_appointments_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchAppointments" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'appointment_search_criteria_type': 'appointments', + 'request_body': '{"date":"2023-10-01","status":"confirmed"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_calls_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_calls_hubspot_example_call_tool.js new file mode 100644 index 000000000..cc0ef56f3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_calls_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchCallsHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"filters\":{\"status\":\"completed\"},\"sort\":\"date\",\"limit\":10}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_calls_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_calls_hubspot_example_call_tool.py new file mode 100644 index 000000000..3dfc0203a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_calls_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchCallsHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"filters":{"status":"completed"},"sort":"date","limit":10}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_commerce_payments_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_commerce_payments_example_call_tool.js new file mode 100644 index 000000000..5ed823072 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_commerce_payments_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchCommercePayments"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"paymentId\":\"12345\",\"amount\":100.0,\"currency\":\"USD\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_commerce_payments_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_commerce_payments_example_call_tool.py new file mode 100644 index 000000000..2851532c1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_commerce_payments_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchCommercePayments" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"paymentId":"12345","amount":100.0,"currency":"USD"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_companies_in_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_companies_in_hubspot_example_call_tool.js new file mode 100644 index 000000000..b124cb856 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_companies_in_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchCompaniesInHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"filters\":{\"industry\":\"Technology\"},\"sort\":\"name\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_companies_in_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_companies_in_hubspot_example_call_tool.py new file mode 100644 index 000000000..40a6f0e22 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_companies_in_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchCompaniesInHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"filters":{"industry":"Technology"},"sort":"name"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_contacts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_contacts_example_call_tool.js new file mode 100644 index 000000000..5f32e0399 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_contacts_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchContacts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"query\":\"John Doe\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_contacts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_contacts_example_call_tool.py new file mode 100644 index 000000000..fda7cf3cc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_contacts_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchContacts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"query":"John Doe"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_leads_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_leads_example_call_tool.js new file mode 100644 index 000000000..a96ab7320 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_leads_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchCrmLeads"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"criteria\":\"new leads\",\"limit\":10}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_leads_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_leads_example_call_tool.py new file mode 100644 index 000000000..aba73de76 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_leads_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchCrmLeads" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"criteria":"new leads","limit":10}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_messages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_messages_example_call_tool.js new file mode 100644 index 000000000..3d1a8a92b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_messages_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchCrmMessages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"filter\":{\"status\":\"sent\"},\"sort\":\"date\",\"limit\":10}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_messages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_messages_example_call_tool.py new file mode 100644 index 000000000..4603b54d7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_messages_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchCrmMessages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"filter":{"status":"sent"},"sort":"date","limit":10}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_users_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_users_example_call_tool.js new file mode 100644 index 000000000..453e7217f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_users_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchCrmUsers"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"criteria\":\"active_users\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_users_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_users_example_call_tool.py new file mode 100644 index 000000000..5f1b6ec43 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_crm_users_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchCrmUsers" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"criteria":"active_users"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_deals_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_deals_example_call_tool.js new file mode 100644 index 000000000..f68986230 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_deals_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchDeals"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"criteria\":{\"status\":\"open\",\"amount\":{\"gte\":1000}}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_deals_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_deals_example_call_tool.py new file mode 100644 index 000000000..ad90ae5c0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_deals_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchDeals" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"criteria":{"status":"open","amount":{"gte":1000}}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_discounts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_discounts_example_call_tool.js new file mode 100644 index 000000000..4d1339ece --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_discounts_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchDiscounts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"criteria\":\"seasonal discounts\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_discounts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_discounts_example_call_tool.py new file mode 100644 index 000000000..3257f9740 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_discounts_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchDiscounts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"criteria":"seasonal discounts"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_emails_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_emails_example_call_tool.js new file mode 100644 index 000000000..9011ee636 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_emails_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchEmails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"query\":\"from:example@example.com\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_emails_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_emails_example_call_tool.py new file mode 100644 index 000000000..bd0471718 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_emails_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchEmails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"query":"from:example@example.com"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_feedback_submissions_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_feedback_submissions_example_call_tool.js new file mode 100644 index 000000000..95196eabc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_feedback_submissions_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchFeedbackSubmissions"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"searchCriteria\":\"positive feedback\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_feedback_submissions_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_feedback_submissions_example_call_tool.py new file mode 100644 index 000000000..85407fec8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_feedback_submissions_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchFeedbackSubmissions" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"searchCriteria":"positive feedback"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_fees_in_crm_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_fees_in_crm_example_call_tool.js new file mode 100644 index 000000000..1f4a2808a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_fees_in_crm_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchFeesInCrm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"search_criteria\":\"fee_type: monthly\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_fees_in_crm_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_fees_in_crm_example_call_tool.py new file mode 100644 index 000000000..a8227e900 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_fees_in_crm_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchFeesInCrm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"search_criteria":"fee_type: monthly"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_goal_targets_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_goal_targets_example_call_tool.js new file mode 100644 index 000000000..82e1017ce --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_goal_targets_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchGoalTargets"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"criteria\":\"target_name:example\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_goal_targets_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_goal_targets_example_call_tool.py new file mode 100644 index 000000000..02aef1658 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_goal_targets_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchGoalTargets" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"criteria":"target_name:example"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_carts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_carts_example_call_tool.js new file mode 100644 index 000000000..2a304dc6b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_carts_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchHubspotCarts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"search\":\"cart123\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_carts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_carts_example_call_tool.py new file mode 100644 index 000000000..941b2023a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_carts_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchHubspotCarts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"search":"cart123"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_listings_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_listings_example_call_tool.js new file mode 100644 index 000000000..560c35ea7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_listings_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchHubspotListings"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"filters\":{\"status\":\"active\"},\"properties\":[\"name\",\"price\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_listings_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_listings_example_call_tool.py new file mode 100644 index 000000000..6c3f8bd83 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_listings_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchHubspotListings" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"filters":{"status":"active"},"properties":["name","price"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_lists_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_lists_example_call_tool.js new file mode 100644 index 000000000..d96f5a75f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_lists_example_call_tool.js @@ -0,0 +1,37 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchHubspotLists"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "filter_by_list_ids": [ + 123, + 456 + ], + "search_query": "Marketing", + "number_of_lists_to_return": 10, + "sort_order": "asc" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_lists_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_lists_example_call_tool.py new file mode 100644 index 000000000..d9ca3195b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_lists_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchHubspotLists" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'filter_by_list_ids': [123, 456], + 'search_query': 'Marketing', + 'number_of_lists_to_return': 10, + 'sort_order': 'asc' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_meetings_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_meetings_example_call_tool.js new file mode 100644 index 000000000..f29629261 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_meetings_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchHubspotMeetings"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"filter\":\"upcoming\",\"date_range\":\"2023-10-01 to 2023-10-31\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_meetings_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_meetings_example_call_tool.py new file mode 100644 index 000000000..efa839e06 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_meetings_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchHubspotMeetings" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"filter":"upcoming","date_range":"2023-10-01 to 2023-10-31"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_notes_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_notes_example_call_tool.js new file mode 100644 index 000000000..69958ba77 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_notes_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchHubspotNotes"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"search\":\"meeting notes\",\"limit\":10}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_notes_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_notes_example_call_tool.py new file mode 100644 index 000000000..7aee27b4d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_notes_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchHubspotNotes" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"search":"meeting notes","limit":10}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_objects_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_objects_example_call_tool.js new file mode 100644 index 000000000..cf73d8cf3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_objects_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchHubspotObjects"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "object_type": "contacts", + "request_body": "{\"filter\":\"active\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_objects_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_objects_example_call_tool.py new file mode 100644 index 000000000..27105d36a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_objects_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchHubspotObjects" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'object_type': 'contacts', 'request_body': '{"filter":"active"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_payments_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_payments_example_call_tool.js new file mode 100644 index 000000000..f63aaeb4e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_payments_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchHubspotPayments"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"paymentId\":\"12345\",\"amount\":100.0,\"currency\":\"USD\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_payments_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_payments_example_call_tool.py new file mode 100644 index 000000000..1bf062247 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_payments_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchHubspotPayments" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"paymentId":"12345","amount":100.0,"currency":"USD"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_products_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_products_example_call_tool.js new file mode 100644 index 000000000..f6d47e0d6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_products_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchHubspotProducts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"query\":\"laptop\",\"limit\":10}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_products_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_products_example_call_tool.py new file mode 100644 index 000000000..467ad081d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_products_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchHubspotProducts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"query":"laptop","limit":10}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_subscriptions_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_subscriptions_example_call_tool.js new file mode 100644 index 000000000..5cc31cbd6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_subscriptions_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchHubspotSubscriptions"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"subscriptionId\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_subscriptions_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_subscriptions_example_call_tool.py new file mode 100644 index 000000000..d26638798 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_subscriptions_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchHubspotSubscriptions" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"subscriptionId":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_tasks_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_tasks_example_call_tool.js new file mode 100644 index 000000000..3b2541249 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_tasks_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchHubspotTasks"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"search_criteria\":\"follow-up tasks\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_tasks_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_tasks_example_call_tool.py new file mode 100644 index 000000000..657f196ee --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_hubspot_tasks_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchHubspotTasks" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"search_criteria":"follow-up tasks"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_invoices_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_invoices_example_call_tool.js new file mode 100644 index 000000000..e072a6ce3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_invoices_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchInvoices"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"customer_id\":\"12345\",\"status\":\"paid\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_invoices_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_invoices_example_call_tool.py new file mode 100644 index 000000000..4a551ee3f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_invoices_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchInvoices" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"customer_id":"12345","status":"paid"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_line_items_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_line_items_example_call_tool.js new file mode 100644 index 000000000..e486beebb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_line_items_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchLineItems"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"searchCriteria\":\"active\",\"limit\":10}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_line_items_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_line_items_example_call_tool.py new file mode 100644 index 000000000..c144dfd18 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_line_items_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchLineItems" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"searchCriteria":"active","limit":10}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_order_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_order_records_example_call_tool.js new file mode 100644 index 000000000..b0f971f87 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_order_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchOrderRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"filter\":\"status:completed\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_order_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_order_records_example_call_tool.py new file mode 100644 index 000000000..081bbd216 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_order_records_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchOrderRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"filter":"status:completed"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_partner_clients_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_partner_clients_example_call_tool.js new file mode 100644 index 000000000..b90a36843 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_partner_clients_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchPartnerClients"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"search_criteria\":\"active_clients\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_partner_clients_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_partner_clients_example_call_tool.py new file mode 100644 index 000000000..03962ca70 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_partner_clients_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchPartnerClients" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"search_criteria":"active_clients"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_partner_services_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_partner_services_hubspot_example_call_tool.js new file mode 100644 index 000000000..465a9e2cb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_partner_services_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchPartnerServicesHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"criteria\":\"partner services\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_partner_services_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_partner_services_hubspot_example_call_tool.py new file mode 100644 index 000000000..ab52ee4bd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_partner_services_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchPartnerServicesHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"criteria":"partner services"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_postal_mail_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_postal_mail_hubspot_example_call_tool.js new file mode 100644 index 000000000..27a29212b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_postal_mail_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchPostalMailHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"criteria\":\"recent_mail\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_postal_mail_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_postal_mail_hubspot_example_call_tool.py new file mode 100644 index 000000000..08020cd60 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_postal_mail_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchPostalMailHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"criteria":"recent_mail"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_quotes_in_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_quotes_in_hubspot_example_call_tool.js new file mode 100644 index 000000000..df245cf1d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_quotes_in_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchQuotesInHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"criteria\":\"recent quotes\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_quotes_in_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_quotes_in_hubspot_example_call_tool.py new file mode 100644 index 000000000..91f83659d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_quotes_in_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchQuotesInHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"criteria":"recent quotes"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_taxes_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_taxes_example_call_tool.js new file mode 100644 index 000000000..737e85c7d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_taxes_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchTaxes"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"search_criteria\":\"tax_id:12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_taxes_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_taxes_example_call_tool.py new file mode 100644 index 000000000..3d386525a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_taxes_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchTaxes" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"search_criteria":"tax_id:12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_tickets_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_tickets_example_call_tool.js new file mode 100644 index 000000000..3a55a8c54 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_tickets_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SearchTickets"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"filter\":{\"status\":\"open\"},\"sort\":\"created_at\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/search_tickets_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_tickets_example_call_tool.py new file mode 100644 index 000000000..d66da44be --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/search_tickets_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SearchTickets" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"filter":{"status":"open"},"sort":"created_at"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/send_event_to_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/send_event_to_hubspot_example_call_tool.js new file mode 100644 index 000000000..fd34ae9f7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/send_event_to_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.SendEventToHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"eventType\":\"page_view\",\"properties\":{\"url\":\"https://example.com\",\"title\":\"Example Page\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/send_event_to_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/send_event_to_hubspot_example_call_tool.py new file mode 100644 index 000000000..1e983c33d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/send_event_to_hubspot_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.SendEventToHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"eventType":"page_view","properties":{"url":"https://example.com","title":"Example ' + 'Page"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/translate_legacy_list_ids_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/translate_legacy_list_ids_batch_example_call_tool.js new file mode 100644 index 000000000..1e063897e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/translate_legacy_list_ids_batch_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.TranslateLegacyListIdsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "legacy_list_ids": [ + "legacy_id_1", + "legacy_id_2", + "legacy_id_3" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/translate_legacy_list_ids_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/translate_legacy_list_ids_batch_example_call_tool.py new file mode 100644 index 000000000..056724fe9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/translate_legacy_list_ids_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.TranslateLegacyListIdsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'legacy_list_ids': ['legacy_id_1', 'legacy_id_2', 'legacy_id_3'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/translate_legacy_to_new_list_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/translate_legacy_to_new_list_id_example_call_tool.js new file mode 100644 index 000000000..c1b540897 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/translate_legacy_to_new_list_id_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.TranslateLegacyToNewListId"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "legacy_list_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/translate_legacy_to_new_list_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/translate_legacy_to_new_list_id_example_call_tool.py new file mode 100644 index 000000000..65a6a2fbb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/translate_legacy_to_new_list_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.TranslateLegacyToNewListId" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'legacy_list_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_calls_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_calls_example_call_tool.js new file mode 100644 index 000000000..333563d2e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_calls_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateBatchCalls"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"callIds\":[\"123\",\"456\"],\"updateFields\":{\"status\":\"completed\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_calls_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_calls_example_call_tool.py new file mode 100644 index 000000000..ee93ade48 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_calls_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateBatchCalls" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"callIds":["123","456"],"updateFields":{"status":"completed"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_contacts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_contacts_example_call_tool.js new file mode 100644 index 000000000..bfe39bd0d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_contacts_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateBatchContacts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"contacts\":[{\"id\":\"1\",\"properties\":{\"firstname\":\"John\",\"lastname\":\"Doe\"}},{\"id\":\"2\",\"properties\":{\"firstname\":\"Jane\",\"lastname\":\"Smith\"}}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_contacts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_contacts_example_call_tool.py new file mode 100644 index 000000000..05dfb6ccf --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_contacts_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateBatchContacts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"contacts":[{"id":"1","properties":{"firstname":"John","lastname":"Doe"}},{"id":"2","properties":{"firstname":"Jane","lastname":"Smith"}}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_emails_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_emails_example_call_tool.js new file mode 100644 index 000000000..75f555a0e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_emails_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateBatchEmails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"emails\":[{\"id\":\"123\",\"new_property\":\"value1\"},{\"id\":\"456\",\"new_property\":\"value2\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_emails_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_emails_example_call_tool.py new file mode 100644 index 000000000..c69c8f3a7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_emails_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateBatchEmails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"emails":[{"id":"123","new_property":"value1"},{"id":"456","new_property":"value2"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_fees_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_fees_example_call_tool.js new file mode 100644 index 000000000..86e2bdc0c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_fees_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateBatchFees"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"fees\":[{\"id\":\"123\",\"amount\":100},{\"id\":\"456\",\"amount\":200}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_fees_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_fees_example_call_tool.py new file mode 100644 index 000000000..c9e61f86f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_fees_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateBatchFees" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"fees":[{"id":"123","amount":100},{"id":"456","amount":200}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_goal_targets_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_goal_targets_example_call_tool.js new file mode 100644 index 000000000..e9ff0be25 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_goal_targets_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateBatchGoalTargets"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"goalTargets\":[{\"id\":\"123\",\"target\":100},{\"id\":\"456\",\"target\":200}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_goal_targets_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_goal_targets_example_call_tool.py new file mode 100644 index 000000000..50a8d6904 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_goal_targets_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateBatchGoalTargets" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"goalTargets":[{"id":"123","target":100},{"id":"456","target":200}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_of_companies_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_of_companies_example_call_tool.js new file mode 100644 index 000000000..20427ec07 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_of_companies_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateBatchOfCompanies"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"companies\":[{\"id\":\"123\",\"name\":\"Company A\",\"domain\":\"companya.com\"},{\"id\":\"456\",\"name\":\"Company B\",\"domain\":\"companyb.com\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_of_companies_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_of_companies_example_call_tool.py new file mode 100644 index 000000000..7ee64e0ac --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_of_companies_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateBatchOfCompanies" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"companies":[{"id":"123","name":"Company ' + 'A","domain":"companya.com"},{"id":"456","name":"Company ' + 'B","domain":"companyb.com"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_tasks_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_tasks_example_call_tool.js new file mode 100644 index 000000000..bdb33127b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_tasks_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateBatchTasks"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"tasks\":[{\"id\":\"123\",\"status\":\"completed\"},{\"id\":\"456\",\"status\":\"in_progress\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_tasks_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_tasks_example_call_tool.py new file mode 100644 index 000000000..248d3d047 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_tasks_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateBatchTasks" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"tasks":[{"id":"123","status":"completed"},{"id":"456","status":"in_progress"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_taxes_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_taxes_example_call_tool.js new file mode 100644 index 000000000..20ab5d1c8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_taxes_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateBatchTaxes"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"taxes\":[{\"id\":\"123\",\"rate\":0.07},{\"id\":\"456\",\"rate\":0.05}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_taxes_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_taxes_example_call_tool.py new file mode 100644 index 000000000..85c178fa8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_batch_taxes_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateBatchTaxes" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"taxes":[{"id":"123","rate":0.07},{"id":"456","rate":0.05}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_call_info_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_call_info_example_call_tool.js new file mode 100644 index 000000000..5553138a3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_call_info_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateCallInfo"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "call_identifier": "12345", + "request_body": "{\"status\":\"completed\",\"duration\":300}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_call_info_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_call_info_example_call_tool.py new file mode 100644 index 000000000..9021f333c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_call_info_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateCallInfo" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'call_identifier': '12345', + 'request_body': '{"status":"completed","duration":300}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_cart_properties_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_cart_properties_example_call_tool.js new file mode 100644 index 000000000..5d1cc9a6b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_cart_properties_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateCartProperties"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "cart_identifier": "cart_12345", + "unique_identifier_property": "cartId", + "request_body": "{\"property1\":\"value1\",\"property2\":\"value2\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_cart_properties_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_cart_properties_example_call_tool.py new file mode 100644 index 000000000..4f3419659 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_cart_properties_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateCartProperties" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'cart_identifier': 'cart_12345', + 'unique_identifier_property': 'cartId', + 'request_body': '{"property1":"value1","property2":"value2"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_carts_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_carts_batch_example_call_tool.js new file mode 100644 index 000000000..86b368855 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_carts_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateCartsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"carts\":[{\"id\":\"123\",\"items\":[{\"product_id\":\"abc\",\"quantity\":2}]}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_carts_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_carts_batch_example_call_tool.py new file mode 100644 index 000000000..bb6852674 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_carts_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateCartsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"carts":[{"id":"123","items":[{"product_id":"abc","quantity":2}]}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_commerce_payment_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_commerce_payment_example_call_tool.js new file mode 100644 index 000000000..f745a4835 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_commerce_payment_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateCommercePayment"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "commerce_payment_id": "12345", + "request_body": "{\"amount\":100,\"status\":\"completed\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_commerce_payment_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_commerce_payment_example_call_tool.py new file mode 100644 index 000000000..472de800e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_commerce_payment_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateCommercePayment" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'commerce_payment_id': '12345', + 'request_body': '{"amount":100,"status":"completed"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_commerce_payments_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_commerce_payments_batch_example_call_tool.js new file mode 100644 index 000000000..4f19531de --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_commerce_payments_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateCommercePaymentsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"payments\":[{\"id\":\"123\",\"amount\":100},{\"id\":\"456\",\"amount\":200}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_commerce_payments_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_commerce_payments_batch_example_call_tool.py new file mode 100644 index 000000000..0a096b410 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_commerce_payments_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateCommercePaymentsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"payments":[{"id":"123","amount":100},{"id":"456","amount":200}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_communication_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_communication_details_example_call_tool.js new file mode 100644 index 000000000..33bcf94f2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_communication_details_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateCommunicationDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "communication_id": "12345", + "request_body": "{\"subject\":\"Updated Subject\",\"body\":\"Updated body content\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_communication_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_communication_details_example_call_tool.py new file mode 100644 index 000000000..cec26dd60 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_communication_details_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateCommunicationDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'communication_id': '12345', + 'request_body': '{"subject":"Updated Subject","body":"Updated body content"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_contact_information_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_contact_information_example_call_tool.js new file mode 100644 index 000000000..3a207940f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_contact_information_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateContactInformation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "contact_id": "12345", + "request_body": "{\"properties\":{\"email\":\"example@example.com\",\"phone\":\"123-456-7890\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_contact_information_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_contact_information_example_call_tool.py new file mode 100644 index 000000000..7cb4e46df --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_contact_information_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateContactInformation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'contact_id': '12345', + 'request_body': '{"properties":{"email":"example@example.com","phone":"123-456-7890"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_courses_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_courses_batch_example_call_tool.js new file mode 100644 index 000000000..8f2990a46 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_courses_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateCoursesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"courses\":[{\"id\":\"123\",\"name\":\"Math 101\",\"description\":\"Basic Mathematics\"},{\"id\":\"456\",\"name\":\"History 201\",\"description\":\"World History Overview\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_courses_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_courses_batch_example_call_tool.py new file mode 100644 index 000000000..df91242c1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_courses_batch_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateCoursesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"courses":[{"id":"123","name":"Math 101","description":"Basic ' + 'Mathematics"},{"id":"456","name":"History 201","description":"World History ' + 'Overview"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_crm_object_schema_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_crm_object_schema_example_call_tool.js new file mode 100644 index 000000000..5b27d7eae --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_crm_object_schema_example_call_tool.js @@ -0,0 +1,49 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateCrmObjectSchema"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type_identifier": "custom_object_123", + "clear_description": false, + "object_description": "This is a custom object for tracking user interactions.", + "object_singular_name": "Interaction", + "plural_labels": "Interactions", + "primary_display_property": "interaction_name", + "required_properties": [ + "user_id", + "timestamp" + ], + "restorable": true, + "searchable_properties": [ + "interaction_name", + "user_id" + ], + "secondary_display_properties": [ + "status", + "category" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_crm_object_schema_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_crm_object_schema_example_call_tool.py new file mode 100644 index 000000000..0bcb4acc3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_crm_object_schema_example_call_tool.py @@ -0,0 +1,38 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateCrmObjectSchema" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type_identifier': 'custom_object_123', + 'clear_description': False, + 'object_description': 'This is a custom object for tracking user interactions.', + 'object_singular_name': 'Interaction', + 'plural_labels': 'Interactions', + 'primary_display_property': 'interaction_name', + 'required_properties': ['user_id', 'timestamp'], + 'restorable': True, + 'searchable_properties': ['interaction_name', 'user_id'], + 'secondary_display_properties': ['status', 'category'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_discount_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_discount_details_example_call_tool.js new file mode 100644 index 000000000..7bcdb4103 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_discount_details_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateDiscountDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "discount_identifier": "12345", + "request_body": "{\"discountAmount\": 20}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_discount_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_discount_details_example_call_tool.py new file mode 100644 index 000000000..38f250b16 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_discount_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateDiscountDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'discount_identifier': '12345', 'request_body': '{"discountAmount": 20}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_discounts_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_discounts_batch_example_call_tool.js new file mode 100644 index 000000000..6b954a458 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_discounts_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateDiscountsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"discounts\":[{\"id\":\"123\",\"amount\":10},{\"id\":\"456\",\"amount\":15}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_discounts_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_discounts_batch_example_call_tool.py new file mode 100644 index 000000000..d0608088b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_discounts_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateDiscountsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"discounts":[{"id":"123","amount":10},{"id":"456","amount":15}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_email_in_hubspot_crm_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_email_in_hubspot_crm_example_call_tool.js new file mode 100644 index 000000000..be89b17f9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_email_in_hubspot_crm_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateEmailInHubspotCrm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "email_identifier": "12345", + "request_body": "{\"subject\":\"New Subject\",\"body\":\"Updated email content\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_email_in_hubspot_crm_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_email_in_hubspot_crm_example_call_tool.py new file mode 100644 index 000000000..9f7055f9f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_email_in_hubspot_crm_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateEmailInHubspotCrm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'email_identifier': '12345', + 'request_body': '{"subject":"New Subject","body":"Updated email content"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_fee_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_fee_details_example_call_tool.js new file mode 100644 index 000000000..185ae3484 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_fee_details_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateFeeDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "fee_identifier": "12345", + "request_body": "{\"amount\": 100, \"currency\": \"USD\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_fee_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_fee_details_example_call_tool.py new file mode 100644 index 000000000..50c7df711 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_fee_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateFeeDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'fee_identifier': '12345', 'request_body': '{"amount": 100, "currency": "USD"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_goal_target_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_goal_target_example_call_tool.js new file mode 100644 index 000000000..513ab0909 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_goal_target_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateGoalTarget"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "goal_target_id": "12345", + "request_body": "{\"target\":\"new_value\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_goal_target_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_goal_target_example_call_tool.py new file mode 100644 index 000000000..07fef8746 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_goal_target_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateGoalTarget" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'goal_target_id': '12345', 'request_body': '{"target":"new_value"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_company_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_company_example_call_tool.js new file mode 100644 index 000000000..40fb0c609 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_company_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateHubspotCompany"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "company_unique_identifier": "12345", + "request_body": "{\"name\":\"New Company Name\",\"address\":\"123 New St\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_company_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_company_example_call_tool.py new file mode 100644 index 000000000..b0216dc14 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_company_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateHubspotCompany" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'company_unique_identifier': '12345', + 'request_body': '{"name":"New Company Name","address":"123 New St"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_course_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_course_example_call_tool.js new file mode 100644 index 000000000..41514d909 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_course_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateHubspotCourse"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "course_identifier": "12345", + "request_body": "{\"title\":\"Updated Course Title\",\"description\":\"This is an updated description.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_course_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_course_example_call_tool.py new file mode 100644 index 000000000..aa87da421 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_course_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateHubspotCourse" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'course_identifier': '12345', + 'request_body': '{"title":"Updated Course Title","description":"This is an updated ' + 'description."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_deal_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_deal_example_call_tool.js new file mode 100644 index 000000000..36c31a966 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_deal_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateHubspotDeal"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "deal_identifier": "12345", + "request_body": "{\"status\":\"closed-won\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_deal_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_deal_example_call_tool.py new file mode 100644 index 000000000..c8a8c79ca --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_deal_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateHubspotDeal" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'deal_identifier': '12345', 'request_body': '{"status":"closed-won"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_meeting_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_meeting_example_call_tool.js new file mode 100644 index 000000000..1d3c83cfb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_meeting_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateHubspotMeeting"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "meeting_id": "12345", + "request_body": "{\"title\":\"Updated Meeting Title\",\"description\":\"Updated description\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_meeting_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_meeting_example_call_tool.py new file mode 100644 index 000000000..7399ce8ee --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_meeting_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateHubspotMeeting" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'meeting_id': '12345', + 'request_body': '{"title":"Updated Meeting Title","description":"Updated description"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_note_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_note_example_call_tool.js new file mode 100644 index 000000000..d9002ca36 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_note_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateHubspotNote"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "note_identifier": "12345", + "request_body": "{\"content\":\"Updated note content\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_note_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_note_example_call_tool.py new file mode 100644 index 000000000..6b6fc99a2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_note_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateHubspotNote" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'note_identifier': '12345', + 'request_body': '{"content":"Updated note content"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_object_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_object_example_call_tool.js new file mode 100644 index 000000000..b9ee4f316 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_object_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateHubspotObject"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "object_type": "contacts", + "object_identifier": "12345", + "request_body": "{\"property\":\"value\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_object_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_object_example_call_tool.py new file mode 100644 index 000000000..1396f7ba6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_object_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateHubspotObject" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'object_type': 'contacts', + 'object_identifier': '12345', + 'request_body': '{"property":"value"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_objects_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_objects_batch_example_call_tool.js new file mode 100644 index 000000000..f1ed71d66 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_objects_batch_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateHubspotObjectsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "object_type": "contacts", + "request_body": "{\"id\":123,\"properties\":{\"firstname\":\"John\",\"lastname\":\"Doe\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_objects_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_objects_batch_example_call_tool.py new file mode 100644 index 000000000..d052b12ae --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_objects_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateHubspotObjectsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'object_type': 'contacts', + 'request_body': '{"id":123,"properties":{"firstname":"John","lastname":"Doe"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_orders_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_orders_batch_example_call_tool.js new file mode 100644 index 000000000..949035fc9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_orders_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateHubspotOrdersBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"orders\":[{\"id\":\"123\",\"status\":\"shipped\"},{\"id\":\"456\",\"status\":\"pending\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_orders_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_orders_batch_example_call_tool.py new file mode 100644 index 000000000..64e4d48e1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_orders_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateHubspotOrdersBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"orders":[{"id":"123","status":"shipped"},{"id":"456","status":"pending"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_products_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_products_batch_example_call_tool.js new file mode 100644 index 000000000..8e7a8394b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_products_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateHubspotProductsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"products\":[{\"id\":\"123\",\"name\":\"Product A\",\"price\":29.99},{\"id\":\"456\",\"name\":\"Product B\",\"price\":39.99}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_products_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_products_batch_example_call_tool.py new file mode 100644 index 000000000..3f1ae22c0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_products_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateHubspotProductsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"products":[{"id":"123","name":"Product ' + 'A","price":29.99},{"id":"456","name":"Product B","price":39.99}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_task_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_task_example_call_tool.js new file mode 100644 index 000000000..2b9d362f9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_task_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateHubspotTask"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "task_identifier": "12345", + "request_body": "{\"status\":\"completed\",\"priority\":\"high\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_task_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_task_example_call_tool.py new file mode 100644 index 000000000..e1aaf1d81 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_task_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateHubspotTask" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'task_identifier': '12345', + 'request_body': '{"status":"completed","priority":"high"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_user_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_user_example_call_tool.js new file mode 100644 index 000000000..e913985ff --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_user_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateHubspotUser"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "user_id": "12345", + "request_body": "{\"property\":\"value\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_user_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_user_example_call_tool.py new file mode 100644 index 000000000..72b30060e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_hubspot_user_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateHubspotUser" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'user_id': '12345', 'request_body': '{"property":"value"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_invoice_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_invoice_details_example_call_tool.js new file mode 100644 index 000000000..4c1304cdf --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_invoice_details_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateInvoiceDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "invoice_identifier": "12345", + "request_body": "{\"amount\": 250.00, \"status\": \"paid\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_invoice_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_invoice_details_example_call_tool.py new file mode 100644 index 000000000..6fb0b1950 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_invoice_details_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateInvoiceDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'invoice_identifier': '12345', + 'request_body': '{"amount": 250.00, "status": "paid"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_invoices_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_invoices_batch_example_call_tool.js new file mode 100644 index 000000000..eea26ce16 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_invoices_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateInvoicesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"invoices\":[{\"id\":\"123\",\"amount\":100},{\"id\":\"456\",\"amount\":200}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_invoices_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_invoices_batch_example_call_tool.py new file mode 100644 index 000000000..7200951d7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_invoices_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateInvoicesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"invoices":[{"id":"123","amount":100},{"id":"456","amount":200}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_lead_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_lead_details_example_call_tool.js new file mode 100644 index 000000000..ab2820294 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_lead_details_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateLeadDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "lead_identifier": "12345", + "request_body": "{\"email\":\"example@example.com\",\"firstName\":\"John\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_lead_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_lead_details_example_call_tool.py new file mode 100644 index 000000000..1efcce11a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_lead_details_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateLeadDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'lead_identifier': '12345', + 'request_body': '{"email":"example@example.com","firstName":"John"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_leads_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_leads_batch_example_call_tool.js new file mode 100644 index 000000000..c355a9ffb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_leads_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateLeadsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"leads\":[{\"id\":\"123\",\"properties\":{\"status\":\"active\"}},{\"id\":\"456\",\"properties\":{\"status\":\"inactive\"}}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_leads_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_leads_batch_example_call_tool.py new file mode 100644 index 000000000..71fd7711b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_leads_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateLeadsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"leads":[{"id":"123","properties":{"status":"active"}},{"id":"456","properties":{"status":"inactive"}}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_line_item_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_line_item_example_call_tool.js new file mode 100644 index 000000000..3bb8b014c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_line_item_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateLineItem"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "line_item_id": "12345", + "request_body": "{\"status\":\"updated\",\"amount\":150}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_line_item_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_line_item_example_call_tool.py new file mode 100644 index 000000000..7f500c89c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_line_item_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateLineItem" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'line_item_id': '12345', 'request_body': '{"status":"updated","amount":150}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_line_items_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_line_items_batch_example_call_tool.js new file mode 100644 index 000000000..fc8354f00 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_line_items_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateLineItemsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"line_items\":[{\"id\":\"123\",\"property\":\"value\"},{\"id\":\"456\",\"property\":\"value2\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_line_items_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_line_items_batch_example_call_tool.py new file mode 100644 index 000000000..8879a4ba4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_line_items_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateLineItemsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"line_items":[{"id":"123","property":"value"},{"id":"456","property":"value2"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_list_memberships_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_list_memberships_example_call_tool.js new file mode 100644 index 000000000..a8d18078f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_list_memberships_example_call_tool.js @@ -0,0 +1,39 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateListMemberships"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_identifier": "12345", + "record_ids_to_add": [ + "abc123", + "def456" + ], + "record_ids_to_remove": [ + "ghi789", + "jkl012" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_list_memberships_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_list_memberships_example_call_tool.py new file mode 100644 index 000000000..db4f9e5aa --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_list_memberships_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateListMemberships" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_identifier': '12345', + 'record_ids_to_add': ['abc123', 'def456'], + 'record_ids_to_remove': ['ghi789', 'jkl012'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_list_name_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_list_name_example_call_tool.js new file mode 100644 index 000000000..5f5684e34 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_list_name_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateListName"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_id": "12345", + "new_list_name": "Updated CRM List" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_list_name_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_list_name_example_call_tool.py new file mode 100644 index 000000000..39bc58055 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_list_name_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateListName" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_id': '12345', 'new_list_name': 'Updated CRM List' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_meetings_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_meetings_batch_example_call_tool.js new file mode 100644 index 000000000..b2cd3a592 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_meetings_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateMeetingsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"meetings\":[{\"id\":\"123\",\"subject\":\"Team Sync\",\"start_time\":\"2023-10-01T10:00:00Z\",\"duration\":30},{\"id\":\"456\",\"subject\":\"Project Update\",\"start_time\":\"2023-10-01T11:00:00Z\",\"duration\":45}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_meetings_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_meetings_batch_example_call_tool.py new file mode 100644 index 000000000..7771aed5e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_meetings_batch_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateMeetingsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"meetings":[{"id":"123","subject":"Team ' + 'Sync","start_time":"2023-10-01T10:00:00Z","duration":30},{"id":"456","subject":"Project ' + 'Update","start_time":"2023-10-01T11:00:00Z","duration":45}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_messages_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_messages_batch_example_call_tool.js new file mode 100644 index 000000000..db3f1be47 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_messages_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateMessagesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"communicationId\":\"12345\",\"properties\":{\"subject\":\"Updated Subject\",\"body\":\"New message content\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_messages_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_messages_batch_example_call_tool.py new file mode 100644 index 000000000..fe89a92ab --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_messages_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateMessagesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"communicationId":"12345","properties":{"subject":"Updated ' + 'Subject","body":"New message content"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_crm_listings_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_crm_listings_example_call_tool.js new file mode 100644 index 000000000..08ffafda3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_crm_listings_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateMultipleCrmListings"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"listings\":[{\"id\":\"123\",\"property\":\"value1\"},{\"id\":\"456\",\"property\":\"value2\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_crm_listings_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_crm_listings_example_call_tool.py new file mode 100644 index 000000000..fc23f58ed --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_crm_listings_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateMultipleCrmListings" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"listings":[{"id":"123","property":"value1"},{"id":"456","property":"value2"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_deals_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_deals_example_call_tool.js new file mode 100644 index 000000000..3360fe29e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_deals_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateMultipleDeals"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"deals\":[{\"id\":\"123\",\"properties\":{\"amount\":1000,\"stage\":\"closed_won\"}},{\"id\":\"456\",\"properties\":{\"amount\":2000,\"stage\":\"in_progress\"}}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_deals_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_deals_example_call_tool.py new file mode 100644 index 000000000..71a761678 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_deals_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateMultipleDeals" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"deals":[{"id":"123","properties":{"amount":1000,"stage":"closed_won"}},{"id":"456","properties":{"amount":2000,"stage":"in_progress"}}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_hubspot_appointments_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_hubspot_appointments_example_call_tool.js new file mode 100644 index 000000000..5a98f1712 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_hubspot_appointments_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateMultipleHubspotAppointments"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "hubspot_object_type": "appointments", + "request_body": "{\"appointments\":[{\"id\":\"123\",\"status\":\"confirmed\"},{\"id\":\"456\",\"status\":\"rescheduled\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_hubspot_appointments_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_hubspot_appointments_example_call_tool.py new file mode 100644 index 000000000..0a4213b1b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_hubspot_appointments_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateMultipleHubspotAppointments" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'hubspot_object_type': 'appointments', + 'request_body': '{"appointments":[{"id":"123","status":"confirmed"},{"id":"456","status":"rescheduled"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_postal_mails_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_postal_mails_example_call_tool.js new file mode 100644 index 000000000..c42a6e787 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_postal_mails_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateMultiplePostalMails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"postalMails\":[{\"id\":\"1\",\"status\":\"delivered\"},{\"id\":\"2\",\"status\":\"in transit\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_postal_mails_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_postal_mails_example_call_tool.py new file mode 100644 index 000000000..1b5a8e542 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_postal_mails_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateMultiplePostalMails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"postalMails":[{"id":"1","status":"delivered"},{"id":"2","status":"in ' + 'transit"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_users_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_users_example_call_tool.js new file mode 100644 index 000000000..0c574111b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_users_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateMultipleUsers"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"users\":[{\"id\":\"123\",\"properties\":{\"email\":\"user1@example.com\",\"name\":\"User One\"}},{\"id\":\"456\",\"properties\":{\"email\":\"user2@example.com\",\"name\":\"User Two\"}}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_users_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_users_example_call_tool.py new file mode 100644 index 000000000..36058dbb9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_multiple_users_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateMultipleUsers" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"users":[{"id":"123","properties":{"email":"user1@example.com","name":"User ' + 'One"}},{"id":"456","properties":{"email":"user2@example.com","name":"User ' + 'Two"}}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_or_create_hubspot_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_or_create_hubspot_records_example_call_tool.js new file mode 100644 index 000000000..ec1ff61d0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_or_create_hubspot_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateOrCreateHubspotRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "crm_object_type": "contacts", + "request_body": "{\"email\":\"example@example.com\",\"firstname\":\"John\",\"lastname\":\"Doe\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_or_create_hubspot_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_or_create_hubspot_records_example_call_tool.py new file mode 100644 index 000000000..c861e2fbb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_or_create_hubspot_records_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateOrCreateHubspotRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'crm_object_type': 'contacts', + 'request_body': '{"email":"example@example.com","firstname":"John","lastname":"Doe"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_order_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_order_details_example_call_tool.js new file mode 100644 index 000000000..12df05d5c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_order_details_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateOrderDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "order_id": "12345", + "request_body": "{\"status\":\"shipped\",\"tracking_number\":\"ABC123\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_order_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_order_details_example_call_tool.py new file mode 100644 index 000000000..9ba138e46 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_order_details_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateOrderDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'order_id': '12345', + 'request_body': '{"status":"shipped","tracking_number":"ABC123"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_client_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_client_example_call_tool.js new file mode 100644 index 000000000..c7e658b56 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_client_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdatePartnerClient"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "partner_client_id": "12345", + "identifier_property": "email", + "request_body": "{\"name\":\"New Partner Name\",\"status\":\"active\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_client_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_client_example_call_tool.py new file mode 100644 index 000000000..7cb0d8dac --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_client_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdatePartnerClient" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'partner_client_id': '12345', + 'identifier_property': 'email', + 'request_body': '{"name":"New Partner Name","status":"active"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_clients_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_clients_batch_example_call_tool.js new file mode 100644 index 000000000..0573e89c0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_clients_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdatePartnerClientsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"clients\":[{\"id\":\"123\",\"name\":\"Client A\",\"status\":\"active\"},{\"id\":\"456\",\"name\":\"Client B\",\"status\":\"inactive\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_clients_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_clients_batch_example_call_tool.py new file mode 100644 index 000000000..49b61d3af --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_clients_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdatePartnerClientsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"clients":[{"id":"123","name":"Client ' + 'A","status":"active"},{"id":"456","name":"Client B","status":"inactive"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_service_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_service_example_call_tool.js new file mode 100644 index 000000000..f9bceff87 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_service_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdatePartnerService"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "partner_service_id": "12345", + "request_body": "{\"name\":\"Updated Service\",\"status\":\"active\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_service_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_service_example_call_tool.py new file mode 100644 index 000000000..cc3cf27ae --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_service_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdatePartnerService" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'partner_service_id': '12345', + 'request_body': '{"name":"Updated Service","status":"active"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_services_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_services_batch_example_call_tool.js new file mode 100644 index 000000000..326d9d01f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_services_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdatePartnerServicesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"services\":[{\"id\":\"123\",\"status\":\"active\"},{\"id\":\"456\",\"status\":\"inactive\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_services_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_services_batch_example_call_tool.py new file mode 100644 index 000000000..4b9b22deb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_partner_services_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdatePartnerServicesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"services":[{"id":"123","status":"active"},{"id":"456","status":"inactive"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_pipeline_in_crm_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_pipeline_in_crm_example_call_tool.js new file mode 100644 index 000000000..5081ecfde --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_pipeline_in_crm_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdatePipelineInCrm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "crm_object_type": "deals", + "pipeline_identifier": "pipeline_123", + "pipeline_label": "New Sales Pipeline" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_pipeline_in_crm_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_pipeline_in_crm_example_call_tool.py new file mode 100644 index 000000000..62b28281d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_pipeline_in_crm_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdatePipelineInCrm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'crm_object_type': 'deals', + 'pipeline_identifier': 'pipeline_123', + 'pipeline_label': 'New Sales Pipeline' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_pipeline_stage_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_pipeline_stage_example_call_tool.js new file mode 100644 index 000000000..7e378f3ee --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_pipeline_stage_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdatePipelineStage"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "pipeline_object_type": "deals", + "pipeline_id": "pipeline_123", + "stage_id": "stage_456", + "request_body": "{\"name\":\"New Stage Name\",\"order\":2}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_pipeline_stage_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_pipeline_stage_example_call_tool.py new file mode 100644 index 000000000..08fe2d2eb --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_pipeline_stage_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdatePipelineStage" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'pipeline_object_type': 'deals', + 'pipeline_id': 'pipeline_123', + 'stage_id': 'stage_456', + 'request_body': '{"name":"New Stage Name","order":2}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_postal_mail_record_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_postal_mail_record_example_call_tool.js new file mode 100644 index 000000000..23d977f94 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_postal_mail_record_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdatePostalMailRecord"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "postal_mail_id": "12345", + "property_identifier": "status", + "request_body": "{\"status\":\"delivered\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_postal_mail_record_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_postal_mail_record_example_call_tool.py new file mode 100644 index 000000000..d202618d2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_postal_mail_record_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdatePostalMailRecord" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'postal_mail_id': '12345', + 'property_identifier': 'status', + 'request_body': '{"status":"delivered"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_product_info_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_product_info_example_call_tool.js new file mode 100644 index 000000000..0cc3560b2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_product_info_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateProductInfo"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "product_id": "12345", + "request_body": "{\"name\":\"New Product Name\",\"price\":29.99}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_product_info_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_product_info_example_call_tool.py new file mode 100644 index 000000000..a39e820c2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_product_info_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateProductInfo" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'product_id': '12345', + 'request_body': '{"name":"New Product Name","price":29.99}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_property_group_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_property_group_example_call_tool.js new file mode 100644 index 000000000..09029acec --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_property_group_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdatePropertyGroup"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "object_type": "contacts", + "property_group_name": "Contact Info", + "property_group_display_order": 1, + "property_group_label": "Contact Details" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_property_group_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_property_group_example_call_tool.py new file mode 100644 index 000000000..aabc7f9a5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_property_group_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdatePropertyGroup" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'object_type': 'contacts', + 'property_group_name': 'Contact Info', + 'property_group_display_order': 1, + 'property_group_label': 'Contact Details' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_property_value_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_property_value_example_call_tool.js new file mode 100644 index 000000000..da6110243 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_property_value_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdatePropertyValue"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "crm_object_type": "contacts", + "property_identifier": "email", + "request_body": "{\"value\":\"new_email@example.com\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_property_value_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_property_value_example_call_tool.py new file mode 100644 index 000000000..ad07a962c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_property_value_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdatePropertyValue" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'crm_object_type': 'contacts', + 'property_identifier': 'email', + 'request_body': '{"value":"new_email@example.com"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_quote_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_quote_batch_example_call_tool.js new file mode 100644 index 000000000..c62a0d347 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_quote_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateQuoteBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"quotes\":[{\"id\":\"123\",\"amount\":250.00},{\"id\":\"456\",\"amount\":300.00}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_quote_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_quote_batch_example_call_tool.py new file mode 100644 index 000000000..1612ae936 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_quote_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateQuoteBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"quotes":[{"id":"123","amount":250.00},{"id":"456","amount":300.00}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_quote_information_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_quote_information_example_call_tool.js new file mode 100644 index 000000000..682b9d582 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_quote_information_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateQuoteInformation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "quote_identifier": "12345", + "request_body": "{\"amount\": 5000, \"status\": \"approved\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_quote_information_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_quote_information_example_call_tool.py new file mode 100644 index 000000000..d954027e4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_quote_information_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateQuoteInformation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'quote_identifier': '12345', + 'request_body': '{"amount": 5000, "status": "approved"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_services_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_services_batch_example_call_tool.js new file mode 100644 index 000000000..2ba0eb792 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_services_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateServicesBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"records\":[{\"id\":\"123\",\"property\":\"value\"},{\"id\":\"456\",\"property\":\"value2\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_services_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_services_batch_example_call_tool.py new file mode 100644 index 000000000..1d8dbfa4e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_services_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateServicesBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"records":[{"id":"123","property":"value"},{"id":"456","property":"value2"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_subscription_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_subscription_batch_example_call_tool.js new file mode 100644 index 000000000..ab381482c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_subscription_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateSubscriptionBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"subscriptions\":[{\"id\":\"123\",\"property\":\"value1\"},{\"id\":\"456\",\"property\":\"value2\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_subscription_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_subscription_batch_example_call_tool.py new file mode 100644 index 000000000..6168e5e08 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_subscription_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateSubscriptionBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"subscriptions":[{"id":"123","property":"value1"},{"id":"456","property":"value2"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_subscription_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_subscription_example_call_tool.js new file mode 100644 index 000000000..8dc3a31c2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_subscription_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateSubscription"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "subscription_id": "12345", + "request_body": "{\"status\":\"active\",\"plan\":\"premium\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_subscription_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_subscription_example_call_tool.py new file mode 100644 index 000000000..cc7c80bb0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_subscription_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateSubscription" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'subscription_id': '12345', + 'request_body': '{"status":"active","plan":"premium"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_tax_object_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_tax_object_example_call_tool.js new file mode 100644 index 000000000..23aa388c7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_tax_object_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateTaxObject"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "tax_object_identifier": "12345", + "request_body": "{\"property1\":\"value1\",\"property2\":\"value2\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_tax_object_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_tax_object_example_call_tool.py new file mode 100644 index 000000000..8c21a2d96 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_tax_object_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateTaxObject" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'tax_object_identifier': '12345', + 'request_body': '{"property1":"value1","property2":"value2"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_ticket_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_ticket_batch_example_call_tool.js new file mode 100644 index 000000000..b1565f51b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_ticket_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateTicketBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"ticket_ids\":[\"123\",\"456\"],\"properties\":{\"status\":\"closed\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_ticket_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_ticket_batch_example_call_tool.py new file mode 100644 index 000000000..98eeb8159 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_ticket_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateTicketBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"ticket_ids":["123","456"],"properties":{"status":"closed"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_ticket_info_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_ticket_info_example_call_tool.js new file mode 100644 index 000000000..13db0dcf9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_ticket_info_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpdateTicketInfo"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "ticket_id": "12345", + "request_body": "{\"status\":\"resolved\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/update_ticket_info_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_ticket_info_example_call_tool.py new file mode 100644 index 000000000..cd5a790c4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/update_ticket_info_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpdateTicketInfo" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'ticket_id': '12345', 'request_body': '{"status":"resolved"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upload_call_transcripts_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upload_call_transcripts_example_call_tool.js new file mode 100644 index 000000000..5d8359095 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upload_call_transcripts_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UploadCallTranscripts"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"transcript\":\"[call_transcript]\",\"call_id\":\"12345\",\"contact_id\":\"67890\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upload_call_transcripts_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upload_call_transcripts_example_call_tool.py new file mode 100644 index 000000000..3e5cf699f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upload_call_transcripts_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UploadCallTranscripts" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"transcript":"[call_transcript]","call_id":"12345","contact_id":"67890"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_call_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_call_records_example_call_tool.js new file mode 100644 index 000000000..56552209e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_call_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertCallRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"idProperty\":\"callId\",\"records\":[{\"callId\":\"12345\",\"duration\":300,\"contactId\":\"67890\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_call_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_call_records_example_call_tool.py new file mode 100644 index 000000000..8f99e45de --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_call_records_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertCallRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"idProperty":"callId","records":[{"callId":"12345","duration":300,"contactId":"67890"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_cart_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_cart_records_example_call_tool.js new file mode 100644 index 000000000..3c1f979ae --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_cart_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertCartRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"idProperty\":\"cartId\",\"items\":[{\"productId\":\"123\",\"quantity\":2},{\"productId\":\"456\",\"quantity\":1}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_cart_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_cart_records_example_call_tool.py new file mode 100644 index 000000000..def342504 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_cart_records_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertCartRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"idProperty":"cartId","items":[{"productId":"123","quantity":2},{"productId":"456","quantity":1}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_commerce_payments_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_commerce_payments_example_call_tool.js new file mode 100644 index 000000000..438189a80 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_commerce_payments_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertCommercePayments"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"idProperty\":\"paymentId\",\"amount\":100,\"currency\":\"USD\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_commerce_payments_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_commerce_payments_example_call_tool.py new file mode 100644 index 000000000..af97f163b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_commerce_payments_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertCommercePayments" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"idProperty":"paymentId","amount":100,"currency":"USD"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_communications_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_communications_records_example_call_tool.js new file mode 100644 index 000000000..c0b6f0541 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_communications_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertCommunicationsRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"records\":[{\"id\":\"1\",\"type\":\"email\",\"content\":\"Hello World\"},{\"id\":\"2\",\"type\":\"call\",\"content\":\"Follow up on project\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_communications_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_communications_records_example_call_tool.py new file mode 100644 index 000000000..4e11a15ad --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_communications_records_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertCommunicationsRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"records":[{"id":"1","type":"email","content":"Hello ' + 'World"},{"id":"2","type":"call","content":"Follow up on project"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_contact_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_contact_batch_example_call_tool.js new file mode 100644 index 000000000..d23b1b345 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_contact_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertContactBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"contacts\":[{\"email\":\"john.doe@example.com\",\"firstName\":\"John\",\"lastName\":\"Doe\"},{\"email\":\"jane.smith@example.com\",\"firstName\":\"Jane\",\"lastName\":\"Smith\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_contact_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_contact_batch_example_call_tool.py new file mode 100644 index 000000000..f59cfd3e9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_contact_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertContactBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"contacts":[{"email":"john.doe@example.com","firstName":"John","lastName":"Doe"},{"email":"jane.smith@example.com","firstName":"Jane","lastName":"Smith"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_crm_tickets_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_crm_tickets_example_call_tool.js new file mode 100644 index 000000000..e2372a3d2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_crm_tickets_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertCrmTickets"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"tickets\":[{\"id\":\"123\",\"subject\":\"Issue with login\",\"status\":\"open\"},{\"id\":\"456\",\"subject\":\"Payment not processed\",\"status\":\"closed\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_crm_tickets_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_crm_tickets_example_call_tool.py new file mode 100644 index 000000000..eb8b1470f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_crm_tickets_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertCrmTickets" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"tickets":[{"id":"123","subject":"Issue with ' + 'login","status":"open"},{"id":"456","subject":"Payment not ' + 'processed","status":"closed"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_discount_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_discount_records_example_call_tool.js new file mode 100644 index 000000000..63ecaf77a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_discount_records_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertDiscountRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"idProperty\":\"discountId\",\"discountValue\":20,\"description\":\"Seasonal discount\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_discount_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_discount_records_example_call_tool.py new file mode 100644 index 000000000..499f9887d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_discount_records_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertDiscountRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"idProperty":"discountId","discountValue":20,"description":"Seasonal ' + 'discount"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_goal_targets_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_goal_targets_example_call_tool.js new file mode 100644 index 000000000..6ee0e9679 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_goal_targets_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertGoalTargets"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"goalId\":\"12345\",\"targetValue\":100}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_goal_targets_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_goal_targets_example_call_tool.py new file mode 100644 index 000000000..a55984bf2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_goal_targets_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertGoalTargets" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"goalId":"12345","targetValue":100}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_fees_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_fees_example_call_tool.js new file mode 100644 index 000000000..35b287363 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_fees_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertHubspotFees"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"idProperty\":\"feeId\",\"amount\":100,\"currency\":\"USD\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_fees_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_fees_example_call_tool.py new file mode 100644 index 000000000..0b4d11427 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_fees_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertHubspotFees" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"idProperty":"feeId","amount":100,"currency":"USD"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_invoices_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_invoices_example_call_tool.js new file mode 100644 index 000000000..9ff55b99b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_invoices_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertHubspotInvoices"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"invoices\":[{\"id\":\"123\",\"amount\":100.0,\"currency\":\"USD\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_invoices_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_invoices_example_call_tool.py new file mode 100644 index 000000000..439344f55 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_invoices_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertHubspotInvoices" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"invoices":[{"id":"123","amount":100.0,"currency":"USD"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_products_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_products_batch_example_call_tool.js new file mode 100644 index 000000000..0d7df39f7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_products_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertHubspotProductsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"products\":[{\"id\":\"123\",\"name\":\"Product A\",\"price\":29.99},{\"id\":\"456\",\"name\":\"Product B\",\"price\":39.99}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_products_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_products_batch_example_call_tool.py new file mode 100644 index 000000000..180e9040f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_products_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertHubspotProductsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"products":[{"id":"123","name":"Product ' + 'A","price":29.99},{"id":"456","name":"Product B","price":39.99}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_records_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_records_example_call_tool.js new file mode 100644 index 000000000..a2a0deec8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_records_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertHubspotRecords"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "object_type": "contacts", + "request_body": "{\"email\":\"example@example.com\",\"firstname\":\"John\",\"lastname\":\"Doe\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_records_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_records_example_call_tool.py new file mode 100644 index 000000000..ef294b0a9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_records_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertHubspotRecords" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'object_type': 'contacts', + 'request_body': '{"email":"example@example.com","firstname":"John","lastname":"Doe"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_tasks_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_tasks_example_call_tool.js new file mode 100644 index 000000000..d852f5207 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_tasks_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertHubspotTasks"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"idProperty\":\"task_id\",\"taskDetails\":{\"title\":\"Follow up with client\",\"dueDate\":\"2023-10-30\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_tasks_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_tasks_example_call_tool.py new file mode 100644 index 000000000..8e8ba1b47 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_tasks_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertHubspotTasks" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"idProperty":"task_id","taskDetails":{"title":"Follow up with ' + 'client","dueDate":"2023-10-30"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_users_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_users_example_call_tool.js new file mode 100644 index 000000000..23b62f1ca --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_users_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertHubspotUsers"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"idProperty\":\"email\",\"properties\":{\"name\":\"John Doe\",\"role\":\"Developer\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_users_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_users_example_call_tool.py new file mode 100644 index 000000000..74069358d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_hubspot_users_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertHubspotUsers" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"idProperty":"email","properties":{"name":"John Doe","role":"Developer"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_line_items_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_line_items_batch_example_call_tool.js new file mode 100644 index 000000000..971434cbe --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_line_items_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertLineItemsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"lineItems\":[{\"id\":\"item1\",\"quantity\":2},{\"id\":\"item2\",\"quantity\":5}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_line_items_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_line_items_batch_example_call_tool.py new file mode 100644 index 000000000..7cc2dbcd8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_line_items_batch_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertLineItemsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"lineItems":[{"id":"item1","quantity":2},{"id":"item2","quantity":5}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_meetings_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_meetings_example_call_tool.js new file mode 100644 index 000000000..2978b9dca --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_meetings_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertMeetings"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"meetingId\":\"12345\",\"title\":\"Project Update\",\"date\":\"2023-10-01T10:00:00Z\",\"participants\":[\"alice@example.com\",\"bob@example.com\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_meetings_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_meetings_example_call_tool.py new file mode 100644 index 000000000..97f08e5d5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_meetings_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertMeetings" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"meetingId":"12345","title":"Project ' + 'Update","date":"2023-10-01T10:00:00Z","participants":["alice@example.com","bob@example.com"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_notes_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_notes_hubspot_example_call_tool.js new file mode 100644 index 000000000..41046bf2f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_notes_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertNotesHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"idProperty\":\"noteId\",\"content\":\"This is a sample note.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_notes_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_notes_hubspot_example_call_tool.py new file mode 100644 index 000000000..0bf5a21e6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_notes_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertNotesHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"idProperty":"noteId","content":"This is a sample note."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_orders_in_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_orders_in_hubspot_example_call_tool.js new file mode 100644 index 000000000..91e397832 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_orders_in_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertOrdersInHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"orders\":[{\"id\":\"123\",\"amount\":250},{\"id\":\"456\",\"amount\":150}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_orders_in_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_orders_in_hubspot_example_call_tool.py new file mode 100644 index 000000000..45ffc4db2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_orders_in_hubspot_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertOrdersInHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"orders":[{"id":"123","amount":250},{"id":"456","amount":150}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_postal_mail_in_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_postal_mail_in_hubspot_example_call_tool.js new file mode 100644 index 000000000..9bcb95156 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_postal_mail_in_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertPostalMailInHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"idProperty\":\"12345\",\"mailType\":\"letter\",\"recipient\":\"John Doe\",\"address\":\"123 Main St, Anytown, USA\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_postal_mail_in_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_postal_mail_in_hubspot_example_call_tool.py new file mode 100644 index 000000000..30a931605 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_postal_mail_in_hubspot_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertPostalMailInHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"idProperty":"12345","mailType":"letter","recipient":"John ' + 'Doe","address":"123 Main St, Anytown, USA"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_subscriptions_in_hubspot_crm_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_subscriptions_in_hubspot_crm_example_call_tool.js new file mode 100644 index 000000000..388637335 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_subscriptions_in_hubspot_crm_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotCrmApi.UpsertSubscriptionsInHubspotCrm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"subscriptions\":[{\"email\":\"test@example.com\",\"status\":\"active\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_subscriptions_in_hubspot_crm_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_subscriptions_in_hubspot_crm_example_call_tool.py new file mode 100644 index 000000000..4757e8005 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_crm_api/upsert_subscriptions_in_hubspot_crm_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotCrmApi.UpsertSubscriptionsInHubspotCrm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"subscriptions":[{"email":"test@example.com","status":"active"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/create_custom_event_definition_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_events_api/create_custom_event_definition_example_call_tool.js new file mode 100644 index 000000000..bf5175b3e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/create_custom_event_definition_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotEventsApi.CreateCustomEventDefinition"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"eventName\":\"custom_event\",\"properties\":{\"property1\":\"value1\",\"property2\":\"value2\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/create_custom_event_definition_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_events_api/create_custom_event_definition_example_call_tool.py new file mode 100644 index 000000000..7e0614fa1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/create_custom_event_definition_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotEventsApi.CreateCustomEventDefinition" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"eventName":"custom_event","properties":{"property1":"value1","property2":"value2"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/create_event_property_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_events_api/create_event_property_example_call_tool.js new file mode 100644 index 000000000..609e98168 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/create_event_property_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotEventsApi.CreateEventProperty"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "custom_event_internal_name": "user_signup", + "request_body": "{\"property_name\":\"signup_source\",\"property_type\":\"string\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/create_event_property_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_events_api/create_event_property_example_call_tool.py new file mode 100644 index 000000000..1b7fccb82 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/create_event_property_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotEventsApi.CreateEventProperty" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'custom_event_internal_name': 'user_signup', + 'request_body': '{"property_name":"signup_source","property_type":"string"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/delete_custom_event_definition_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_events_api/delete_custom_event_definition_example_call_tool.js new file mode 100644 index 000000000..f62daf857 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/delete_custom_event_definition_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotEventsApi.DeleteCustomEventDefinition"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "event_name": "UserSignup" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/delete_custom_event_definition_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_events_api/delete_custom_event_definition_example_call_tool.py new file mode 100644 index 000000000..b9163992c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/delete_custom_event_definition_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotEventsApi.DeleteCustomEventDefinition" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'event_name': 'UserSignup' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/delete_custom_event_property_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_events_api/delete_custom_event_property_example_call_tool.js new file mode 100644 index 000000000..ff1b165b8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/delete_custom_event_property_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotEventsApi.DeleteCustomEventProperty"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "custom_event_internal_name": "user_signup", + "property_internal_name": "signup_source" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/delete_custom_event_property_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_events_api/delete_custom_event_property_example_call_tool.py new file mode 100644 index 000000000..15b6949ee --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/delete_custom_event_property_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotEventsApi.DeleteCustomEventProperty" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'custom_event_internal_name': 'user_signup', 'property_internal_name': 'signup_source' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/fetch_event_definition_by_name_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_events_api/fetch_event_definition_by_name_example_call_tool.js new file mode 100644 index 000000000..e5ff3e3fa --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/fetch_event_definition_by_name_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotEventsApi.FetchEventDefinitionByName"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "event_name": "UserSignup" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/fetch_event_definition_by_name_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_events_api/fetch_event_definition_by_name_example_call_tool.py new file mode 100644 index 000000000..f65b932c3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/fetch_event_definition_by_name_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotEventsApi.FetchEventDefinitionByName" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'event_name': 'UserSignup' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/list_event_types_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_events_api/list_event_types_example_call_tool.js new file mode 100644 index 000000000..1c1b42778 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/list_event_types_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotEventsApi.ListEventTypes"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/list_event_types_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_events_api/list_event_types_example_call_tool.py new file mode 100644 index 000000000..46104026f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/list_event_types_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotEventsApi.ListEventTypes" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/retrieve_custom_event_definitions_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_events_api/retrieve_custom_event_definitions_example_call_tool.js new file mode 100644 index 000000000..d9210d6fe --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/retrieve_custom_event_definitions_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotEventsApi.RetrieveCustomEventDefinitions"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "event_name_search_string": "purchase", + "include_event_properties": true, + "results_per_page_limit": 10, + "sort_order": "ASC" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/retrieve_custom_event_definitions_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_events_api/retrieve_custom_event_definitions_example_call_tool.py new file mode 100644 index 000000000..dfa845f45 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/retrieve_custom_event_definitions_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotEventsApi.RetrieveCustomEventDefinitions" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'event_name_search_string': 'purchase', + 'include_event_properties': True, + 'results_per_page_limit': 10, + 'sort_order': 'ASC' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/retrieve_event_completions_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_events_api/retrieve_event_completions_example_call_tool.js new file mode 100644 index 000000000..520304909 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/retrieve_event_completions_example_call_tool.js @@ -0,0 +1,49 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotEventsApi.RetrieveEventCompletions"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "crm_object_id": 12345, + "crm_object_type": "contact", + "event_instance_ids": [ + 1, + 2, + 3 + ], + "event_property_filter": { + "hs_city": "portland" + }, + "event_type_name": "webinar", + "filter_events_occurred_before": "2023-12-31T23:59:59Z", + "max_results_per_page": 10, + "sort_direction": [ + "DESCENDING" + ], + "unique_identifier_property": { + "email": "example@domain.com" + } +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/retrieve_event_completions_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_events_api/retrieve_event_completions_example_call_tool.py new file mode 100644 index 000000000..4165b5d33 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/retrieve_event_completions_example_call_tool.py @@ -0,0 +1,37 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotEventsApi.RetrieveEventCompletions" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'crm_object_id': 12345, + 'crm_object_type': 'contact', + 'event_instance_ids': [1, 2, 3], + 'event_property_filter': {'hs_city': 'portland'}, + 'event_type_name': 'webinar', + 'filter_events_occurred_before': '2023-12-31T23:59:59Z', + 'max_results_per_page': 10, + 'sort_direction': ['DESCENDING'], + 'unique_identifier_property': {'email': 'example@domain.com' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/send_batch_events_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_events_api/send_batch_events_example_call_tool.js new file mode 100644 index 000000000..da31dc89b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/send_batch_events_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotEventsApi.SendBatchEvents"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"events\":[{\"eventType\":\"page_view\",\"timestamp\":\"2023-10-01T12:00:00Z\"},{\"eventType\":\"button_click\",\"timestamp\":\"2023-10-01T12:01:00Z\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/send_batch_events_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_events_api/send_batch_events_example_call_tool.py new file mode 100644 index 000000000..af0c2e913 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/send_batch_events_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotEventsApi.SendBatchEvents" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"events":[{"eventType":"page_view","timestamp":"2023-10-01T12:00:00Z"},{"eventType":"button_click","timestamp":"2023-10-01T12:01:00Z"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/send_event_data_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_events_api/send_event_data_example_call_tool.js new file mode 100644 index 000000000..d670bf327 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/send_event_data_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotEventsApi.SendEventData"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"event\":\"user_signup\",\"timestamp\":\"2023-10-01T12:00:00Z\",\"user_id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/send_event_data_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_events_api/send_event_data_example_call_tool.py new file mode 100644 index 000000000..ab56b5e3a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/send_event_data_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotEventsApi.SendEventData" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"event":"user_signup","timestamp":"2023-10-01T12:00:00Z","user_id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/update_custom_event_definition_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_events_api/update_custom_event_definition_example_call_tool.js new file mode 100644 index 000000000..d0b4fd231 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/update_custom_event_definition_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotEventsApi.UpdateCustomEventDefinition"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "internal_event_name": "user_signup", + "event_description": "Triggered when a user signs up for the service.", + "event_label": "User Signup Event" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/update_custom_event_definition_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_events_api/update_custom_event_definition_example_call_tool.py new file mode 100644 index 000000000..834ab1790 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/update_custom_event_definition_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotEventsApi.UpdateCustomEventDefinition" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'internal_event_name': 'user_signup', + 'event_description': 'Triggered when a user signs up for the service.', + 'event_label': 'User Signup Event' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/update_event_property_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_events_api/update_event_property_example_call_tool.js new file mode 100644 index 000000000..4632ff7c5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/update_event_property_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotEventsApi.UpdateEventProperty"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "custom_event_name": "user_signup", + "property_name_to_update": "email", + "request_body": "{\"new_value\":\"example@example.com\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_events_api/update_event_property_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_events_api/update_event_property_example_call_tool.py new file mode 100644 index 000000000..daa0347ff --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_events_api/update_event_property_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotEventsApi.UpdateEventProperty" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'custom_event_name': 'user_signup', + 'property_name_to_update': 'email', + 'request_body': '{"new_value":"example@example.com"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/add_campaign_budget_item_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/add_campaign_budget_item_example_call_tool.js new file mode 100644 index 000000000..7635b14b4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/add_campaign_budget_item_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.AddCampaignBudgetItem"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "budget_amount": 1000, + "budget_item_name": "Social Media Ads", + "budget_item_order": 1, + "campaign_id": "12345", + "budget_item_description": "Budget for Facebook and Instagram ads." +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/add_campaign_budget_item_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/add_campaign_budget_item_example_call_tool.py new file mode 100644 index 000000000..665200f90 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/add_campaign_budget_item_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.AddCampaignBudgetItem" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'budget_amount': 1000, + 'budget_item_name': 'Social Media Ads', + 'budget_item_order': 1, + 'campaign_id': '12345', + 'budget_item_description': 'Budget for Facebook and Instagram ads.' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/archive_campaigns_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/archive_campaigns_batch_example_call_tool.js new file mode 100644 index 000000000..0135474f0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/archive_campaigns_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.ArchiveCampaignsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"campaign_ids\":[\"123\",\"456\",\"789\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/archive_campaigns_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/archive_campaigns_batch_example_call_tool.py new file mode 100644 index 000000000..44dbb73ff --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/archive_campaigns_batch_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.ArchiveCampaignsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"campaign_ids":["123","456","789"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/archive_marketing_form_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/archive_marketing_form_example_call_tool.js new file mode 100644 index 000000000..d2eacd54a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/archive_marketing_form_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.ArchiveMarketingForm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "form_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/archive_marketing_form_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/archive_marketing_form_example_call_tool.py new file mode 100644 index 000000000..262e8692f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/archive_marketing_form_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.ArchiveMarketingForm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'form_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/associate_asset_with_campaign_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/associate_asset_with_campaign_example_call_tool.js new file mode 100644 index 000000000..dec548d24 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/associate_asset_with_campaign_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.AssociateAssetWithCampaign"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "asset_id": "12345", + "asset_type": "FORM", + "campaign_unique_identifier": "550e8400-e29b-41d4-a716-446655440000" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/associate_asset_with_campaign_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/associate_asset_with_campaign_example_call_tool.py new file mode 100644 index 000000000..2c6938471 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/associate_asset_with_campaign_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.AssociateAssetWithCampaign" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'asset_id': '12345', + 'asset_type': 'FORM', + 'campaign_unique_identifier': '550e8400-e29b-41d4-a716-446655440000' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/associate_list_with_marketing_event_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/associate_list_with_marketing_event_example_call_tool.js new file mode 100644 index 000000000..e335ad15e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/associate_list_with_marketing_event_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.AssociateListWithMarketingEvent"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_id": "12345", + "marketing_event_id": "event_67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/associate_list_with_marketing_event_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/associate_list_with_marketing_event_example_call_tool.py new file mode 100644 index 000000000..8877238ff --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/associate_list_with_marketing_event_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.AssociateListWithMarketingEvent" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_id': '12345', 'marketing_event_id': 'event_67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/cancel_marketing_event_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/cancel_marketing_event_example_call_tool.js new file mode 100644 index 000000000..000c1441b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/cancel_marketing_event_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.CancelMarketingEvent"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "external_account_id": "12345", + "external_event_id": "event_67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/cancel_marketing_event_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/cancel_marketing_event_example_call_tool.py new file mode 100644 index 000000000..67aa11c79 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/cancel_marketing_event_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.CancelMarketingEvent" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'external_account_id': '12345', 'external_event_id': 'event_67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/clone_hubspot_email_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/clone_hubspot_email_example_call_tool.js new file mode 100644 index 000000000..f12387d15 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/clone_hubspot_email_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.CloneHubspotEmail"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "original_email_id": "12345", + "cloned_email_name": "Spring Sale Announcement", + "email_language": "en" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/clone_hubspot_email_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/clone_hubspot_email_example_call_tool.py new file mode 100644 index 000000000..1216539e4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/clone_hubspot_email_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.CloneHubspotEmail" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'original_email_id': '12345', + 'cloned_email_name': 'Spring Sale Announcement', + 'email_language': 'en' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_ab_test_email_variation_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_ab_test_email_variation_example_call_tool.js new file mode 100644 index 000000000..216589898 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_ab_test_email_variation_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.CreateAbTestEmailVariation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_content_id": "12345", + "variation_name": "Subject Line Test" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_ab_test_email_variation_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_ab_test_email_variation_example_call_tool.py new file mode 100644 index 000000000..cd8e518b3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_ab_test_email_variation_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.CreateAbTestEmailVariation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_content_id': '12345', 'variation_name': 'Subject Line Test' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_campaign_spend_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_campaign_spend_example_call_tool.js new file mode 100644 index 000000000..1f6293202 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_campaign_spend_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.CreateCampaignSpend"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_id": "12345", + "spend_amount": 1500, + "spend_item_name": "Social Media Ads", + "spend_item_order": 1, + "spend_description": "Advertising on social media platforms" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_campaign_spend_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_campaign_spend_example_call_tool.py new file mode 100644 index 000000000..e7b36e2a9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_campaign_spend_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.CreateCampaignSpend" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_id': '12345', + 'spend_amount': 1500, + 'spend_item_name': 'Social Media Ads', + 'spend_item_order': 1, + 'spend_description': 'Advertising on social media platforms' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_campaign_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_campaign_batch_example_call_tool.js new file mode 100644 index 000000000..375a93984 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_campaign_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.CreateMarketingCampaignBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"campaigns\":[{\"name\":\"Campaign 1\",\"description\":\"Description for campaign 1\"},{\"name\":\"Campaign 2\",\"description\":\"Description for campaign 2\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_campaign_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_campaign_batch_example_call_tool.py new file mode 100644 index 000000000..ccafdd545 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_campaign_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.CreateMarketingCampaignBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"campaigns":[{"name":"Campaign 1","description":"Description for campaign ' + '1"},{"name":"Campaign 2","description":"Description for campaign 2"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_campaign_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_campaign_example_call_tool.js new file mode 100644 index 000000000..80b488fef --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_campaign_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.CreateMarketingCampaign"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"campaignName\":\"Summer Sale\",\"budget\":1000,\"targetAudience\":\"young adults\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_campaign_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_campaign_example_call_tool.py new file mode 100644 index 000000000..7c44a662e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_campaign_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.CreateMarketingCampaign" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"campaignName":"Summer Sale","budget":1000,"targetAudience":"young adults"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_email_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_email_example_call_tool.js new file mode 100644 index 000000000..d6e016938 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_email_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.CreateMarketingEmail"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"subject\":\"Spring Sale\",\"body\":\"Join us for our Spring Sale!\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_email_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_email_example_call_tool.py new file mode 100644 index 000000000..e159fd644 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_email_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.CreateMarketingEmail" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"subject":"Spring Sale","body":"Join us for our Spring Sale!"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_event_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_event_example_call_tool.js new file mode 100644 index 000000000..427c56277 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_event_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.CreateMarketingEvent"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"eventName\":\"Product Launch\",\"eventDate\":\"2023-11-01\",\"location\":\"Online\",\"description\":\"Launch of the new product line.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_event_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_event_example_call_tool.py new file mode 100644 index 000000000..53be45a37 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_event_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.CreateMarketingEvent" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"eventName":"Product ' + 'Launch","eventDate":"2023-11-01","location":"Online","description":"Launch of ' + 'the new product line."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_form_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_form_example_call_tool.js new file mode 100644 index 000000000..f44ee174d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_form_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.CreateMarketingForm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"formName\":\"Contact Us\",\"fields\":[{\"label\":\"Name\",\"type\":\"text\"},{\"label\":\"Email\",\"type\":\"email\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_form_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_form_example_call_tool.py new file mode 100644 index 000000000..f8046ecd4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_marketing_form_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.CreateMarketingForm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"formName":"Contact ' + 'Us","fields":[{"label":"Name","type":"text"},{"label":"Email","type":"email"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_smtp_api_token_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_smtp_api_token_example_call_tool.js new file mode 100644 index 000000000..c310d9221 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_smtp_api_token_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.CreateSmtpApiToken"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_name": "Holiday Sale", + "create_contact_for_recipients": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_smtp_api_token_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_smtp_api_token_example_call_tool.py new file mode 100644 index 000000000..6413a5878 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/create_smtp_api_token_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.CreateSmtpApiToken" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_name': 'Holiday Sale', 'create_contact_for_recipients': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_campaign_budget_item_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_campaign_budget_item_example_call_tool.js new file mode 100644 index 000000000..adec18d4c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_campaign_budget_item_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.DeleteCampaignBudgetItem"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "budget_item_id": 12345, + "campaign_guid": "abc-123-def-456" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_campaign_budget_item_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_campaign_budget_item_example_call_tool.py new file mode 100644 index 000000000..1a3106dd5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_campaign_budget_item_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.DeleteCampaignBudgetItem" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'budget_item_id': 12345, 'campaign_guid': 'abc-123-def-456' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_campaign_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_campaign_example_call_tool.js new file mode 100644 index 000000000..2914076dd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_campaign_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.DeleteMarketingCampaign"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_guid": "123e4567-e89b-12d3-a456-426614174000" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_campaign_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_campaign_example_call_tool.py new file mode 100644 index 000000000..5024e235e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_campaign_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.DeleteMarketingCampaign" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_guid': '123e4567-e89b-12d3-a456-426614174000' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_email_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_email_example_call_tool.js new file mode 100644 index 000000000..f2817e641 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_email_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.DeleteMarketingEmail"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_email_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_email_example_call_tool.py new file mode 100644 index 000000000..97bd70736 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_email_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.DeleteMarketingEmail" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_event_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_event_example_call_tool.js new file mode 100644 index 000000000..98b644c13 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_event_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.DeleteMarketingEvent"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "external_account_id": "12345", + "marketing_event_id": "event_67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_event_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_event_example_call_tool.py new file mode 100644 index 000000000..1c1b7f8e1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_event_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.DeleteMarketingEvent" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'external_account_id': '12345', 'marketing_event_id': 'event_67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_events_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_events_example_call_tool.js new file mode 100644 index 000000000..76a29fd11 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_events_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.DeleteMarketingEvents"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"object_ids\":[\"event1\",\"event2\",\"event3\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_events_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_events_example_call_tool.py new file mode 100644 index 000000000..9498c9c44 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_marketing_events_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.DeleteMarketingEvents" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', 'request_body': '{"object_ids":["event1","event2","event3"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_smtp_token_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_smtp_token_example_call_tool.js new file mode 100644 index 000000000..a2d878f3b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_smtp_token_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.DeleteSmtpToken"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "smtp_token_id": "abc123xyz" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_smtp_token_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_smtp_token_example_call_tool.py new file mode 100644 index 000000000..f2d88bd78 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/delete_smtp_token_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.DeleteSmtpToken" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'smtp_token_id': 'abc123xyz' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_campaign_asset_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_campaign_asset_example_call_tool.js new file mode 100644 index 000000000..b1c9ba9bd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_campaign_asset_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.DisassociateCampaignAsset"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "asset_id": "12345", + "asset_type": "FORM", + "campaign_unique_identifier": "550e8400-e29b-41d4-a716-446655440000" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_campaign_asset_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_campaign_asset_example_call_tool.py new file mode 100644 index 000000000..2f205305f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_campaign_asset_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.DisassociateCampaignAsset" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'asset_id': '12345', + 'asset_type': 'FORM', + 'campaign_unique_identifier': '550e8400-e29b-41d4-a716-446655440000' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_list_from_marketing_event_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_list_from_marketing_event_example_call_tool.js new file mode 100644 index 000000000..fa78b0f86 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_list_from_marketing_event_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.DisassociateListFromMarketingEvent"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "list_identifier": "list_12345", + "marketing_event_id": "event_67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_list_from_marketing_event_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_list_from_marketing_event_example_call_tool.py new file mode 100644 index 000000000..4a5e41c1a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_list_from_marketing_event_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.DisassociateListFromMarketingEvent" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'list_identifier': 'list_12345', 'marketing_event_id': 'event_67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_marketing_event_list_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_marketing_event_list_example_call_tool.js new file mode 100644 index 000000000..6ab6543d9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_marketing_event_list_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.DisassociateMarketingEventList"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "external_account_id": "12345", + "list_id": "67890", + "marketing_event_id": "abcde" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_marketing_event_list_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_marketing_event_list_example_call_tool.py new file mode 100644 index 000000000..4c891c2ba --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/disassociate_marketing_event_list_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.DisassociateMarketingEventList" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'external_account_id': '12345', 'list_id': '67890', 'marketing_event_id': 'abcde' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_campaign_contact_ids_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_campaign_contact_ids_example_call_tool.js new file mode 100644 index 000000000..b6d7d71bd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_campaign_contact_ids_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.FetchCampaignContactIds"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_identifier": "123e4567-e89b-12d3-a456-426614174000", + "contact_type_filter": "contactFirstTouch", + "contact_fetch_limit": 50 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_campaign_contact_ids_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_campaign_contact_ids_example_call_tool.py new file mode 100644 index 000000000..91aa42bbd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_campaign_contact_ids_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.FetchCampaignContactIds" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_identifier': '123e4567-e89b-12d3-a456-426614174000', + 'contact_type_filter': 'contactFirstTouch', + 'contact_fetch_limit': 50 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_email_statistics_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_email_statistics_example_call_tool.js new file mode 100644 index 000000000..d1ceed39f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_email_statistics_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.FetchEmailStatistics"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_email_statistics_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_email_statistics_example_call_tool.py new file mode 100644 index 000000000..cc4637c92 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_email_statistics_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.FetchEmailStatistics" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_event_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_event_details_example_call_tool.js new file mode 100644 index 000000000..686041d58 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_event_details_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.FetchEventDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "marketing_event_object_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_event_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_event_details_example_call_tool.py new file mode 100644 index 000000000..7bd97a397 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_event_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.FetchEventDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'marketing_event_object_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_marketing_campaign_batches_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_marketing_campaign_batches_example_call_tool.js new file mode 100644 index 000000000..8e9ff8fae --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_marketing_campaign_batches_example_call_tool.js @@ -0,0 +1,39 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.FetchMarketingCampaignBatches"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "fetch_start_date": "2023-01-01", + "end_date_for_asset_metrics": "2023-01-31", + "requested_properties": [ + "name", + "id", + "status" + ], + "request_body": "{\"campaigns\":[{\"id\":\"123\",\"name\":\"New Year Campaign\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_marketing_campaign_batches_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_marketing_campaign_batches_example_call_tool.py new file mode 100644 index 000000000..6fb2e82f7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/fetch_marketing_campaign_batches_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.FetchMarketingCampaignBatches" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'fetch_start_date': '2023-01-01', + 'end_date_for_asset_metrics': '2023-01-31', + 'requested_properties': ['name', 'id', 'status'], + 'request_body': '{"campaigns":[{"id":"123","name":"New Year Campaign"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/find_hubspot_marketing_events_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/find_hubspot_marketing_events_example_call_tool.js new file mode 100644 index 000000000..59435a729 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/find_hubspot_marketing_events_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.FindHubspotMarketingEvents"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "external_event_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/find_hubspot_marketing_events_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/find_hubspot_marketing_events_example_call_tool.py new file mode 100644 index 000000000..c77ea53b6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/find_hubspot_marketing_events_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.FindHubspotMarketingEvents" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'external_event_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_all_marketing_events_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_all_marketing_events_example_call_tool.js new file mode 100644 index 000000000..ef4119614 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_all_marketing_events_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetAllMarketingEvents"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "cursor_position_after": "abc123", + "response_limit": 50 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_all_marketing_events_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_all_marketing_events_example_call_tool.py new file mode 100644 index 000000000..7ae61ca04 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_all_marketing_events_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetAllMarketingEvents" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'cursor_position_after': 'abc123', 'response_limit': 50 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_attribution_metrics_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_attribution_metrics_example_call_tool.js new file mode 100644 index 000000000..e8822aa82 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_attribution_metrics_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetCampaignAttributionMetrics"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_unique_identifier": "123e4567-e89b-12d3-a456-426614174000", + "report_end_date": "2023-10-31" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_attribution_metrics_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_attribution_metrics_example_call_tool.py new file mode 100644 index 000000000..668f54252 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_attribution_metrics_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetCampaignAttributionMetrics" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_unique_identifier': '123e4567-e89b-12d3-a456-426614174000', + 'report_end_date': '2023-10-31' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_budget_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_budget_details_example_call_tool.js new file mode 100644 index 000000000..5702d52ad --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_budget_details_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetCampaignBudgetDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_unique_identifier": "123e4567-e89b-12d3-a456-426614174000" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_budget_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_budget_details_example_call_tool.py new file mode 100644 index 000000000..fd87135e5 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_budget_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetCampaignBudgetDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_unique_identifier': '123e4567-e89b-12d3-a456-426614174000' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_budget_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_budget_example_call_tool.js new file mode 100644 index 000000000..0b15cd6b0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_budget_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetCampaignBudget"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "budget_item_id": 12345, + "campaign_guid": "abc-def-ghi-123" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_budget_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_budget_example_call_tool.py new file mode 100644 index 000000000..ce96d9e23 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_budget_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetCampaignBudget" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'budget_item_id': 12345, 'campaign_guid': 'abc-def-ghi-123' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_details_example_call_tool.js new file mode 100644 index 000000000..cd200f358 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_details_example_call_tool.js @@ -0,0 +1,38 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetCampaignDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_guid": "123e4567-e89b-12d3-a456-426614174000", + "end_date_for_asset_metrics": "2023-12-31", + "metrics_start_date": "2023-01-01", + "properties_list": [ + "name", + "status", + "budget" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_details_example_call_tool.py new file mode 100644 index 000000000..66f40c501 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_details_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetCampaignDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_guid': '123e4567-e89b-12d3-a456-426614174000', + 'end_date_for_asset_metrics': '2023-12-31', + 'metrics_start_date': '2023-01-01', + 'properties_list': ['name', 'status', 'budget'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_revenue_report_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_revenue_report_example_call_tool.js new file mode 100644 index 000000000..0b0ff7d1f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_revenue_report_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetCampaignRevenueReport"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_unique_identifier": "123e4567-e89b-12d3-a456-426614174000", + "attribution_model": "FIRST_INTERACTION", + "report_start_date": "2023-01-01" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_revenue_report_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_revenue_report_example_call_tool.py new file mode 100644 index 000000000..6971b02f8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_revenue_report_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetCampaignRevenueReport" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_unique_identifier': '123e4567-e89b-12d3-a456-426614174000', + 'attribution_model': 'FIRST_INTERACTION', + 'report_start_date': '2023-01-01' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_spend_item_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_spend_item_example_call_tool.js new file mode 100644 index 000000000..3bf85f969 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_spend_item_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetCampaignSpendItem"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_guid": "abc-123-def-456", + "spend_item_identifier": 789 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_spend_item_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_spend_item_example_call_tool.py new file mode 100644 index 000000000..fff3bc427 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_campaign_spend_item_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetCampaignSpendItem" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_guid': 'abc-123-def-456', 'spend_item_identifier': 789 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_contact_participations_breakdown_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_contact_participations_breakdown_example_call_tool.js new file mode 100644 index 000000000..31e5b9996 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_contact_participations_breakdown_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetContactParticipationsBreakdown"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "contact_identifier": "john.doe@example.com", + "pagination_cursor": "abc123", + "participation_state": "ATTENDED", + "response_size_limit": 20 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_contact_participations_breakdown_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_contact_participations_breakdown_example_call_tool.py new file mode 100644 index 000000000..bc2dc6051 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_contact_participations_breakdown_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetContactParticipationsBreakdown" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'contact_identifier': 'john.doe@example.com', + 'pagination_cursor': 'abc123', + 'participation_state': 'ATTENDED', + 'response_size_limit': 20 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_ab_test_variation_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_ab_test_variation_example_call_tool.js new file mode 100644 index 000000000..b392701f2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_ab_test_variation_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetEmailAbTestVariation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_identifier": "email_12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_ab_test_variation_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_ab_test_variation_example_call_tool.py new file mode 100644 index 000000000..f571d6047 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_ab_test_variation_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetEmailAbTestVariation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_identifier': 'email_12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_revisions_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_revisions_example_call_tool.js new file mode 100644 index 000000000..b8a98d5b9 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_revisions_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetEmailRevisions"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_revisions_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_revisions_example_call_tool.py new file mode 100644 index 000000000..344f59fe1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_revisions_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetEmailRevisions" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_statistics_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_statistics_example_call_tool.js new file mode 100644 index 000000000..83c19c5b4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_statistics_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetEmailStatistics"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_statistics_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_statistics_example_call_tool.py new file mode 100644 index 000000000..5ab17460f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_email_statistics_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetEmailStatistics" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_event_participation_counters_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_event_participation_counters_example_call_tool.js new file mode 100644 index 000000000..e9590cbdf --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_event_participation_counters_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetEventParticipationCounters"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "event_id": "event123", + "external_account_id": "account456" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_event_participation_counters_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_event_participation_counters_example_call_tool.py new file mode 100644 index 000000000..f3423df9b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_event_participation_counters_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetEventParticipationCounters" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'event_id': 'event123', 'external_account_id': 'account456' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_form_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_form_by_id_example_call_tool.js new file mode 100644 index 000000000..727121a11 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_form_by_id_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetFormById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "form_id": "12345", + "return_archived_only": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_form_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_form_by_id_example_call_tool.py new file mode 100644 index 000000000..5922b3a76 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_form_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetFormById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'form_id': '12345', 'return_archived_only': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_campaigns_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_campaigns_example_call_tool.js new file mode 100644 index 000000000..72bdbf322 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_campaigns_example_call_tool.js @@ -0,0 +1,37 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetMarketingCampaigns"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_name_filter": "summer", + "max_results_limit": 20, + "sort_by": "-createdAt", + "requested_properties": [ + "name", + "status" + ] +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_campaigns_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_campaigns_example_call_tool.py new file mode 100644 index 000000000..6d07f4cf8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_campaigns_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetMarketingCampaigns" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_name_filter': 'summer', + 'max_results_limit': 20, + 'sort_by': '-createdAt', + 'requested_properties': ['name', 'status'] +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_email_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_email_details_example_call_tool.js new file mode 100644 index 000000000..0662b6704 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_email_details_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetMarketingEmailDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_email_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_email_details_example_call_tool.py new file mode 100644 index 000000000..6e81e5019 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_email_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetMarketingEmailDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_email_revision_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_email_revision_example_call_tool.js new file mode 100644 index 000000000..79ae5c14a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_email_revision_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetMarketingEmailRevision"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_id": "email_12345", + "email_revision_id": "rev_67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_email_revision_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_email_revision_example_call_tool.py new file mode 100644 index 000000000..abf65db39 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_email_revision_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetMarketingEmailRevision" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_id': 'email_12345', 'email_revision_id': 'rev_67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_associated_lists_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_associated_lists_example_call_tool.js new file mode 100644 index 000000000..d2a2db1fa --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_associated_lists_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetMarketingEventAssociatedLists"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "external_account_id": "12345", + "external_event_id": "event_67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_associated_lists_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_associated_lists_example_call_tool.py new file mode 100644 index 000000000..367d73f2d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_associated_lists_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetMarketingEventAssociatedLists" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'external_account_id': '12345', 'external_event_id': 'event_67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_details_example_call_tool.js new file mode 100644 index 000000000..bb1ef69b2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_details_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetMarketingEventDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "external_account_id": "12345", + "marketing_event_id": "event_67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_details_example_call_tool.py new file mode 100644 index 000000000..4ac77277d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetMarketingEventDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'external_account_id': '12345', 'marketing_event_id': 'event_67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_lists_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_lists_example_call_tool.js new file mode 100644 index 000000000..5725107f1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_lists_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetMarketingEventLists"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "marketing_event_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_lists_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_lists_example_call_tool.py new file mode 100644 index 000000000..16b43ba98 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_lists_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetMarketingEventLists" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'marketing_event_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participation_breakdown_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participation_breakdown_example_call_tool.js new file mode 100644 index 000000000..afd63ec44 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participation_breakdown_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetMarketingEventParticipationBreakdown"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "external_account_id": "acc_12345", + "external_event_id": "event_67890", + "contact_identifier": "user@example.com", + "participation_state_filter": "ATTENDED", + "response_size_limit": 20 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participation_breakdown_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participation_breakdown_example_call_tool.py new file mode 100644 index 000000000..8fc367309 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participation_breakdown_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetMarketingEventParticipationBreakdown" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'external_account_id': 'acc_12345', + 'external_event_id': 'event_67890', + 'contact_identifier': 'user@example.com', + 'participation_state_filter': 'ATTENDED', + 'response_size_limit': 20 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participation_counters_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participation_counters_example_call_tool.js new file mode 100644 index 000000000..fb389d71c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participation_counters_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetMarketingEventParticipationCounters"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "marketing_event_id": 12345 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participation_counters_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participation_counters_example_call_tool.py new file mode 100644 index 000000000..169f70f81 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participation_counters_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetMarketingEventParticipationCounters" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'marketing_event_id': 12345 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participations_breakdown_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participations_breakdown_example_call_tool.js new file mode 100644 index 000000000..ef359327d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participations_breakdown_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetMarketingEventParticipationsBreakdown"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "marketing_event_id": 12345, + "contact_identifier": "example@example.com", + "participation_state": "ATTENDED", + "response_size_limit": 20 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participations_breakdown_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participations_breakdown_example_call_tool.py new file mode 100644 index 000000000..e3b32e9c6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_marketing_event_participations_breakdown_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetMarketingEventParticipationsBreakdown" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'marketing_event_id': 12345, + 'contact_identifier': 'example@example.com', + 'participation_state': 'ATTENDED', + 'response_size_limit': 20 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_smtp_token_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_smtp_token_by_id_example_call_tool.js new file mode 100644 index 000000000..231eb9bd8 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_smtp_token_by_id_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.GetSmtpTokenById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "smtp_token_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_smtp_token_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_smtp_token_by_id_example_call_tool.py new file mode 100644 index 000000000..d05eb4e35 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/get_smtp_token_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.GetSmtpTokenById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'smtp_token_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/hubspot_marketing_email_filter_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/hubspot_marketing_email_filter_example_call_tool.js new file mode 100644 index 000000000..7c9bdf35f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/hubspot_marketing_email_filter_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.HubspotMarketingEmailFilter"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/hubspot_marketing_email_filter_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/hubspot_marketing_email_filter_example_call_tool.py new file mode 100644 index 000000000..9972a0dbc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/hubspot_marketing_email_filter_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.HubspotMarketingEmailFilter" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/link_list_to_event_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/link_list_to_event_example_call_tool.js new file mode 100644 index 000000000..81f3344c6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/link_list_to_event_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.LinkListToEvent"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "external_account_id": "12345", + "external_event_id": "event_67890", + "ils_list_id": "list_abcde" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/link_list_to_event_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/link_list_to_event_example_call_tool.py new file mode 100644 index 000000000..7413a0b09 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/link_list_to_event_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.LinkListToEvent" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'external_account_id': '12345', 'external_event_id': 'event_67890', 'ils_list_id': 'list_abcde' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/list_campaign_assets_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/list_campaign_assets_example_call_tool.js new file mode 100644 index 000000000..b43a367d0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/list_campaign_assets_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.ListCampaignAssets"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "asset_type": "email", + "campaign_identifier": "123e4567-e89b-12d3-a456-426614174000", + "metrics_start_date": "2023-01-01", + "end_date_for_asset_metrics": "2023-01-31", + "maximum_results_limit": "5" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/list_campaign_assets_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/list_campaign_assets_example_call_tool.py new file mode 100644 index 000000000..c96a85f23 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/list_campaign_assets_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.ListCampaignAssets" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'asset_type': 'email', + 'campaign_identifier': '123e4567-e89b-12d3-a456-426614174000', + 'metrics_start_date': '2023-01-01', + 'end_date_for_asset_metrics': '2023-01-31', + 'maximum_results_limit': '5' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/list_hubspot_forms_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/list_hubspot_forms_example_call_tool.js new file mode 100644 index 000000000..205371ee6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/list_hubspot_forms_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.ListHubspotForms"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "included_form_types": [ + "hubspot", + "workflow" + ], + "results_per_page": 10, + "return_only_archived_forms": false +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/list_hubspot_forms_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/list_hubspot_forms_example_call_tool.py new file mode 100644 index 000000000..cb52ac75d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/list_hubspot_forms_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.ListHubspotForms" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'included_form_types': ['hubspot', 'workflow'], + 'results_per_page': 10, + 'return_only_archived_forms': False +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/mark_marketing_event_completed_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/mark_marketing_event_completed_example_call_tool.js new file mode 100644 index 000000000..487d4707b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/mark_marketing_event_completed_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.MarkMarketingEventCompleted"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "event_end_datetime": "2023-10-01T15:00:00Z", + "event_start_date_time": "2023-10-01T14:00:00Z", + "external_account_id": "123456", + "marketing_event_id": "event_789" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/mark_marketing_event_completed_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/mark_marketing_event_completed_example_call_tool.py new file mode 100644 index 000000000..72d35c672 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/mark_marketing_event_completed_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.MarkMarketingEventCompleted" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'event_end_datetime': '2023-10-01T15:00:00Z', + 'event_start_date_time': '2023-10-01T14:00:00Z', + 'external_account_id': '123456', + 'marketing_event_id': 'event_789' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/modify_event_information_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/modify_event_information_example_call_tool.js new file mode 100644 index 000000000..9f2dffbc3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/modify_event_information_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.ModifyEventInformation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "event_internal_id": "12345", + "request_body": "{\"title\":\"Updated Event Title\",\"date\":\"2023-10-01\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/modify_event_information_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/modify_event_information_example_call_tool.py new file mode 100644 index 000000000..986d36a8e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/modify_event_information_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.ModifyEventInformation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'event_internal_id': '12345', + 'request_body': '{"title":"Updated Event Title","date":"2023-10-01"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/publish_hubspot_email_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/publish_hubspot_email_example_call_tool.js new file mode 100644 index 000000000..6c4b4869b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/publish_hubspot_email_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.PublishHubspotEmail"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "hubspot_email_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/publish_hubspot_email_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/publish_hubspot_email_example_call_tool.py new file mode 100644 index 000000000..0761d8c87 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/publish_hubspot_email_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.PublishHubspotEmail" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'hubspot_email_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/query_smtp_tokens_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/query_smtp_tokens_example_call_tool.js new file mode 100644 index 000000000..fc0545ef2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/query_smtp_tokens_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.QuerySmtpTokens"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_name": "Spring Sale", + "email_campaign_id": "12345", + "maximum_tokens_to_return": 5 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/query_smtp_tokens_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/query_smtp_tokens_example_call_tool.py new file mode 100644 index 000000000..1320fe016 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/query_smtp_tokens_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.QuerySmtpTokens" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_name': 'Spring Sale', 'email_campaign_id': '12345', 'maximum_tokens_to_return': 5 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_event_attendance_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_event_attendance_example_call_tool.js new file mode 100644 index 000000000..76cde191a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_event_attendance_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.RecordEventAttendance"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "marketing_event_id": "12345", + "attendance_state": "attend", + "request_body": "{\"contactIds\":[\"1\",\"2\",\"3\"],\"joinedAt\":\"2023-10-01T10:00:00Z\",\"leftAt\":\"2023-10-01T12:00:00Z\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_event_attendance_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_event_attendance_example_call_tool.py new file mode 100644 index 000000000..c13f0ca3f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_event_attendance_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.RecordEventAttendance" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'marketing_event_id': '12345', + 'attendance_state': 'attend', + 'request_body': '{"contactIds":["1","2","3"],"joinedAt":"2023-10-01T10:00:00Z","leftAt":"2023-10-01T12:00:00Z"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_event_participation_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_event_participation_hubspot_example_call_tool.js new file mode 100644 index 000000000..645d7aaf3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_event_participation_hubspot_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.RecordEventParticipationHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "external_event_id": "event123", + "subscriber_state": "attend", + "external_account_id": "account456", + "request_body": "{\"email\":\"test@example.com\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_event_participation_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_event_participation_hubspot_example_call_tool.py new file mode 100644 index 000000000..fdc227fe3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_event_participation_hubspot_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.RecordEventParticipationHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'external_event_id': 'event123', + 'subscriber_state': 'attend', + 'external_account_id': 'account456', + 'request_body': '{"email":"test@example.com"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_hubspot_subscriber_state_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_hubspot_subscriber_state_example_call_tool.js new file mode 100644 index 000000000..0c5d52534 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_hubspot_subscriber_state_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.RecordHubspotSubscriberState"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "external_account_id": "12345", + "event_id_in_external_app": "event_67890", + "subscriber_state": "register", + "request_body": "{\"contacts\":[\"contact_1\",\"contact_2\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_hubspot_subscriber_state_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_hubspot_subscriber_state_example_call_tool.py new file mode 100644 index 000000000..6f576f8ef --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_hubspot_subscriber_state_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.RecordHubspotSubscriberState" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'external_account_id': '12345', + 'event_id_in_external_app': 'event_67890', + 'subscriber_state': 'register', + 'request_body': '{"contacts":["contact_1","contact_2"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_marketing_event_attendance_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_marketing_event_attendance_example_call_tool.js new file mode 100644 index 000000000..7c06d9470 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_marketing_event_attendance_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.RecordMarketingEventAttendance"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "external_event_id": "event_123", + "new_subscriber_state": "attend", + "external_account_id": "account_456", + "request_body": "{\"contacts\":[{\"id\":\"contact_1\"},{\"id\":\"contact_2\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_marketing_event_attendance_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_marketing_event_attendance_example_call_tool.py new file mode 100644 index 000000000..24cfb3ddd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_marketing_event_attendance_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.RecordMarketingEventAttendance" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'external_event_id': 'event_123', + 'new_subscriber_state': 'attend', + 'external_account_id': 'account_456', + 'request_body': '{"contacts":[{"id":"contact_1"},{"id":"contact_2"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_subscriber_state_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_subscriber_state_example_call_tool.js new file mode 100644 index 000000000..90aaa1694 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_subscriber_state_example_call_tool.js @@ -0,0 +1,35 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.RecordSubscriberState"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "external_account_id": "12345", + "marketing_event_id": "event_001", + "subscriber_state": "register", + "request_body": "{\"email\":\"example@example.com\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_subscriber_state_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_subscriber_state_example_call_tool.py new file mode 100644 index 000000000..45326413b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/record_subscriber_state_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.RecordSubscriberState" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'external_account_id': '12345', + 'marketing_event_id': 'event_001', + 'subscriber_state': 'register', + 'request_body': '{"email":"example@example.com"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/register_event_participation_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/register_event_participation_example_call_tool.js new file mode 100644 index 000000000..4882fb903 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/register_event_participation_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.RegisterEventParticipation"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "marketing_event_id": "12345", + "attendance_state": "attend", + "request_body": "{\"email\":\"example@example.com\",\"joinedAt\":\"2023-10-01T10:00:00Z\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/register_event_participation_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/register_event_participation_example_call_tool.py new file mode 100644 index 000000000..3df2a1fdd --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/register_event_participation_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.RegisterEventParticipation" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'marketing_event_id': '12345', + 'attendance_state': 'attend', + 'request_body': '{"email":"example@example.com","joinedAt":"2023-10-01T10:00:00Z"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_campaign_spend_item_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_campaign_spend_item_example_call_tool.js new file mode 100644 index 000000000..697c9c125 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_campaign_spend_item_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.RemoveCampaignSpendItem"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_identifier": "campaign_12345", + "spend_item_id": 6789 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_campaign_spend_item_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_campaign_spend_item_example_call_tool.py new file mode 100644 index 000000000..cb80affac --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_campaign_spend_item_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.RemoveCampaignSpendItem" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_identifier': 'campaign_12345', 'spend_item_id': 6789 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_marketing_event_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_marketing_event_example_call_tool.js new file mode 100644 index 000000000..416447cb6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_marketing_event_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.RemoveMarketingEvent"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "marketing_event_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_marketing_event_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_marketing_event_example_call_tool.py new file mode 100644 index 000000000..3de419447 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_marketing_event_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.RemoveMarketingEvent" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'marketing_event_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_marketing_events_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_marketing_events_example_call_tool.js new file mode 100644 index 000000000..dd121da0c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_marketing_events_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.RemoveMarketingEvents"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"external_account_id\":\"12345\",\"event_ids\":[\"event1\",\"event2\"],\"app_id\":\"app123\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_marketing_events_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_marketing_events_example_call_tool.py new file mode 100644 index 000000000..dd9333a07 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/remove_marketing_events_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.RemoveMarketingEvents" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"external_account_id":"12345","event_ids":["event1","event2"],"app_id":"app123"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/reset_email_draft_to_live_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/reset_email_draft_to_live_example_call_tool.js new file mode 100644 index 000000000..62c4f37a7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/reset_email_draft_to_live_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.ResetEmailDraftToLive"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/reset_email_draft_to_live_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/reset_email_draft_to_live_example_call_tool.py new file mode 100644 index 000000000..fd5f0fcbc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/reset_email_draft_to_live_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.ResetEmailDraftToLive" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/reset_password_for_token_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/reset_password_for_token_example_call_tool.js new file mode 100644 index 000000000..f15897838 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/reset_password_for_token_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.ResetPasswordForToken"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "token_identifier": "abc123xyz" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/reset_password_for_token_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/reset_password_for_token_example_call_tool.py new file mode 100644 index 000000000..ce50c1606 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/reset_password_for_token_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.ResetPasswordForToken" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'token_identifier': 'abc123xyz' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/restore_email_revision_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/restore_email_revision_example_call_tool.js new file mode 100644 index 000000000..bf176b459 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/restore_email_revision_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.RestoreEmailRevision"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_id": "email_12345", + "revision_id": "rev_67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/restore_email_revision_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/restore_email_revision_example_call_tool.py new file mode 100644 index 000000000..8e566bf72 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/restore_email_revision_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.RestoreEmailRevision" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_id': 'email_12345', 'revision_id': 'rev_67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/restore_email_revision_to_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/restore_email_revision_to_draft_example_call_tool.js new file mode 100644 index 000000000..6b6b3e275 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/restore_email_revision_to_draft_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.RestoreEmailRevisionToDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_identifier": "12345-abcde", + "revision_id": "rev-67890" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/restore_email_revision_to_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/restore_email_revision_to_draft_example_call_tool.py new file mode 100644 index 000000000..4c24a3189 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/restore_email_revision_to_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.RestoreEmailRevisionToDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_identifier': '12345-abcde', 'revision_id': 'rev-67890' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/retrieve_email_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/retrieve_email_draft_example_call_tool.js new file mode 100644 index 000000000..71a72dd0b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/retrieve_email_draft_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.RetrieveEmailDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_id": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/retrieve_email_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/retrieve_email_draft_example_call_tool.py new file mode 100644 index 000000000..d249e4401 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/retrieve_email_draft_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.RetrieveEmailDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_id': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/search_marketing_events_by_external_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/search_marketing_events_by_external_id_example_call_tool.js new file mode 100644 index 000000000..8e5125511 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/search_marketing_events_by_external_id_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.SearchMarketingEventsByExternalId"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "external_event_id": "evt_12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/search_marketing_events_by_external_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/search_marketing_events_by_external_id_example_call_tool.py new file mode 100644 index 000000000..1487c6047 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/search_marketing_events_by_external_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.SearchMarketingEventsByExternalId" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'external_event_id': 'evt_12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/send_marketing_email_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/send_marketing_email_example_call_tool.js new file mode 100644 index 000000000..6a431312b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/send_marketing_email_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.SendMarketingEmail"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"recipient_email\":\"example@example.com\",\"template_id\":\"12345\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/send_marketing_email_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/send_marketing_email_example_call_tool.py new file mode 100644 index 000000000..4e10df328 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/send_marketing_email_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.SendMarketingEmail" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"recipient_email":"example@example.com","template_id":"12345"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/send_transactional_email_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/send_transactional_email_example_call_tool.js new file mode 100644 index 000000000..0770ef6da --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/send_transactional_email_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.SendTransactionalEmail"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"to\":\"user@example.com\",\"subject\":\"Welcome!\",\"body\":\"Thank you for joining us!\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/send_transactional_email_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/send_transactional_email_example_call_tool.py new file mode 100644 index 000000000..b96dd4adc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/send_transactional_email_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.SendTransactionalEmail" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"to":"user@example.com","subject":"Welcome!","body":"Thank you for joining ' + 'us!"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/unpublish_marketing_email_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/unpublish_marketing_email_example_call_tool.js new file mode 100644 index 000000000..e7811ebd2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/unpublish_marketing_email_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UnpublishMarketingEmail"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "email_identifier": "12345" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/unpublish_marketing_email_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/unpublish_marketing_email_example_call_tool.py new file mode 100644 index 000000000..08973235b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/unpublish_marketing_email_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UnpublishMarketingEmail" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'email_identifier': '12345' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_batch_example_call_tool.js new file mode 100644 index 000000000..9d92936e4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UpdateCampaignBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"campaigns\":[{\"id\":\"1\",\"name\":\"Campaign A\",\"status\":\"active\"},{\"id\":\"2\",\"name\":\"Campaign B\",\"status\":\"paused\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_batch_example_call_tool.py new file mode 100644 index 000000000..6cfac9166 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UpdateCampaignBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"campaigns":[{"id":"1","name":"Campaign ' + 'A","status":"active"},{"id":"2","name":"Campaign B","status":"paused"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_budget_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_budget_example_call_tool.js new file mode 100644 index 000000000..5214b1f56 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_budget_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UpdateCampaignBudget"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "budget_amount": 1500, + "budget_id": 12345, + "budget_item_name": "Social Media Ads", + "campaign_guid": "abc-123-def-456", + "priority_order": 1, + "budget_item_description": "Budget for social media advertising campaigns." +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_budget_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_budget_example_call_tool.py new file mode 100644 index 000000000..6ced51f4b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_budget_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UpdateCampaignBudget" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'budget_amount': 1500, + 'budget_id': 12345, + 'budget_item_name': 'Social Media Ads', + 'campaign_guid': 'abc-123-def-456', + 'priority_order': 1, + 'budget_item_description': 'Budget for social media advertising campaigns.' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_properties_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_properties_example_call_tool.js new file mode 100644 index 000000000..a0b03e43f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_properties_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UpdateCampaignProperties"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "campaign_uuid": "123e4567-e89b-12d3-a456-426614174000", + "request_body": "{\"property\":\"value\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_properties_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_properties_example_call_tool.py new file mode 100644 index 000000000..6a39618e6 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_properties_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UpdateCampaignProperties" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'campaign_uuid': '123e4567-e89b-12d3-a456-426614174000', + 'request_body': '{"property":"value"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_spend_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_spend_example_call_tool.js new file mode 100644 index 000000000..b2f06923c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_spend_example_call_tool.js @@ -0,0 +1,36 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UpdateCampaignSpend"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "campaign_guid": "abc-123-campaign", + "spend_amount": 1500, + "spend_identifier": 1, + "spend_item_name": "Social Media Ads", + "spend_order": 2, + "spend_item_description": "Ads for social media platforms" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_spend_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_spend_example_call_tool.py new file mode 100644 index 000000000..3bf33ffca --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_campaign_spend_example_call_tool.py @@ -0,0 +1,34 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UpdateCampaignSpend" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'campaign_guid': 'abc-123-campaign', + 'spend_amount': 1500, + 'spend_identifier': 1, + 'spend_item_name': 'Social Media Ads', + 'spend_order': 2, + 'spend_item_description': 'Ads for social media platforms' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_email_draft_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_email_draft_example_call_tool.js new file mode 100644 index 000000000..88d79b802 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_email_draft_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UpdateEmailDraft"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "email_id": "12345", + "request_body": "{\"subject\":\"New Marketing Campaign\",\"body\":\"Check out our latest offers!\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_email_draft_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_email_draft_example_call_tool.py new file mode 100644 index 000000000..064ed96f4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_email_draft_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UpdateEmailDraft" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'email_id': '12345', + 'request_body': '{"subject":"New Marketing Campaign","body":"Check out our latest offers!"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_hubspot_form_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_hubspot_form_example_call_tool.js new file mode 100644 index 000000000..e18132d55 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_hubspot_form_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UpdateHubspotForm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "hubspot_form_id": "12345", + "request_body": "{\"fields\":[{\"name\":\"email\",\"label\":\"Email Address\",\"type\":\"text\"},{\"name\":\"first_name\",\"label\":\"First Name\",\"type\":\"text\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_hubspot_form_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_hubspot_form_example_call_tool.py new file mode 100644 index 000000000..b0c05d317 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_hubspot_form_example_call_tool.py @@ -0,0 +1,33 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UpdateHubspotForm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'hubspot_form_id': '12345', + 'request_body': '{"fields":[{"name":"email","label":"Email ' + 'Address","type":"text"},{"name":"first_name","label":"First ' + 'Name","type":"text"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_hubspot_marketing_form_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_hubspot_marketing_form_example_call_tool.js new file mode 100644 index 000000000..ad0c33f17 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_hubspot_marketing_form_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UpdateHubspotMarketingForm"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "form_id": "12345", + "request_body": "{\"title\":\"Updated Form Title\",\"fields\":[{\"name\":\"email\",\"type\":\"email\",\"required\":true}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_hubspot_marketing_form_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_hubspot_marketing_form_example_call_tool.py new file mode 100644 index 000000000..81694c552 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_hubspot_marketing_form_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UpdateHubspotMarketingForm" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'form_id': '12345', + 'request_body': '{"title":"Updated Form ' + 'Title","fields":[{"name":"email","type":"email","required":true}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_email_properties_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_email_properties_example_call_tool.js new file mode 100644 index 000000000..e70f1837e --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_email_properties_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UpdateMarketingEmailProperties"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "email_identifier": "email_12345", + "request_body": "{\"subject\":\"New Subject\",\"content\":\"Updated content for the email.\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_email_properties_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_email_properties_example_call_tool.py new file mode 100644 index 000000000..11188f075 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_email_properties_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UpdateMarketingEmailProperties" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'email_identifier': 'email_12345', + 'request_body': '{"subject":"New Subject","content":"Updated content for the email."}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_event_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_event_details_example_call_tool.js new file mode 100644 index 000000000..378cf212f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_event_details_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UpdateMarketingEventDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "external_account_id": "12345", + "external_event_id": "event_67890", + "request_body": "{\"title\":\"Updated Event Title\",\"date\":\"2023-10-01\",\"location\":\"New Location\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_event_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_event_details_example_call_tool.py new file mode 100644 index 000000000..42f6cd99f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_event_details_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UpdateMarketingEventDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'external_account_id': '12345', + 'external_event_id': 'event_67890', + 'request_body': '{"title":"Updated Event Title","date":"2023-10-01","location":"New Location"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_events_batch_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_events_batch_example_call_tool.js new file mode 100644 index 000000000..14fe2001d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_events_batch_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UpdateMarketingEventsBatch"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"objectId\": [\"12345\", \"67890\"], \"eventDetails\": {\"name\": \"New Event Name\", \"date\": \"2023-10-01\"}}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_events_batch_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_events_batch_example_call_tool.py new file mode 100644 index 000000000..dc778f55d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/update_marketing_events_batch_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UpdateMarketingEventsBatch" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"objectId": ["12345", "67890"], "eventDetails": {"name": "New Event Name", ' + '"date": "2023-10-01"}}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/upsert_marketing_event_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/upsert_marketing_event_example_call_tool.js new file mode 100644 index 000000000..4ecc0077f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/upsert_marketing_event_example_call_tool.js @@ -0,0 +1,33 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UpsertMarketingEvent"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "external_event_id": "event123", + "request_body": "{\"name\":\"Launch Event\",\"date\":\"2023-10-01\",\"location\":\"Online\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/upsert_marketing_event_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/upsert_marketing_event_example_call_tool.py new file mode 100644 index 000000000..9de94d9fc --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/upsert_marketing_event_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UpsertMarketingEvent" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'external_event_id': 'event123', + 'request_body': '{"name":"Launch Event","date":"2023-10-01","location":"Online"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/upsert_marketing_events_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_marketing_api/upsert_marketing_events_example_call_tool.js new file mode 100644 index 000000000..9c203b5c4 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/upsert_marketing_events_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMarketingApi.UpsertMarketingEvents"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"events\":[{\"id\":\"1\",\"name\":\"Event 1\",\"date\":\"2023-10-01\"},{\"id\":\"2\",\"name\":\"Event 2\",\"date\":\"2023-10-02\"}]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_marketing_api/upsert_marketing_events_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_marketing_api/upsert_marketing_events_example_call_tool.py new file mode 100644 index 000000000..a77a07eb0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_marketing_api/upsert_marketing_events_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMarketingApi.UpsertMarketingEvents" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"events":[{"id":"1","name":"Event ' + '1","date":"2023-10-01"},{"id":"2","name":"Event 2","date":"2023-10-02"}]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_meetings_api/book_hubspot_meeting_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_meetings_api/book_hubspot_meeting_example_call_tool.js new file mode 100644 index 000000000..83a8037c7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_meetings_api/book_hubspot_meeting_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMeetingsApi.BookHubspotMeeting"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"meetingPageId\":\"12345\",\"attendees\":[{\"email\":\"example@example.com\"}],\"date\":\"2023-10-15T10:00:00Z\"}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_meetings_api/book_hubspot_meeting_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_meetings_api/book_hubspot_meeting_example_call_tool.py new file mode 100644 index 000000000..54698c7f3 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_meetings_api/book_hubspot_meeting_example_call_tool.py @@ -0,0 +1,30 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMeetingsApi.BookHubspotMeeting" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"meetingPageId":"12345","attendees":[{"email":"example@example.com"}],"date":"2023-10-15T10:00:00Z"}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_meetings_api/get_meeting_scheduler_details_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_meetings_api/get_meeting_scheduler_details_example_call_tool.js new file mode 100644 index 000000000..38c32e08f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_meetings_api/get_meeting_scheduler_details_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMeetingsApi.GetMeetingSchedulerDetails"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "meeting_slug": "weekly_team_sync" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_meetings_api/get_meeting_scheduler_details_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_meetings_api/get_meeting_scheduler_details_example_call_tool.py new file mode 100644 index 000000000..6f2d25ee0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_meetings_api/get_meeting_scheduler_details_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMeetingsApi.GetMeetingSchedulerDetails" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'meeting_slug': 'weekly_team_sync' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_meetings_api/get_next_meeting_availability_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_meetings_api/get_next_meeting_availability_example_call_tool.js new file mode 100644 index 000000000..953be5c57 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_meetings_api/get_next_meeting_availability_example_call_tool.js @@ -0,0 +1,31 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMeetingsApi.GetNextMeetingAvailability"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "availability_page_slug": "team-meeting-2023" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_meetings_api/get_next_meeting_availability_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_meetings_api/get_next_meeting_availability_example_call_tool.py new file mode 100644 index 000000000..17da01094 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_meetings_api/get_next_meeting_availability_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMeetingsApi.GetNextMeetingAvailability" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'availability_page_slug': 'team-meeting-2023' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_meetings_api/list_meeting_scheduling_pages_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_meetings_api/list_meeting_scheduling_pages_example_call_tool.js new file mode 100644 index 000000000..877f77f27 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_meetings_api/list_meeting_scheduling_pages_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMeetingsApi.ListMeetingSchedulingPages"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_meetings_api/list_meeting_scheduling_pages_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_meetings_api/list_meeting_scheduling_pages_example_call_tool.py new file mode 100644 index 000000000..1b30341c7 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_meetings_api/list_meeting_scheduling_pages_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMeetingsApi.ListMeetingSchedulingPages" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_meetings_api/schedule_meeting_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_meetings_api/schedule_meeting_hubspot_example_call_tool.js new file mode 100644 index 000000000..4192319a1 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_meetings_api/schedule_meeting_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotMeetingsApi.ScheduleMeetingHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "mode": "execute", + "request_body": "{\"meeting_title\":\"Project Update\",\"date\":\"2023-10-15\",\"time\":\"10:00\",\"duration\":30,\"participants\":[\"alice@example.com\",\"bob@example.com\"]}" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_meetings_api/schedule_meeting_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_meetings_api/schedule_meeting_hubspot_example_call_tool.py new file mode 100644 index 000000000..be6bf7053 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_meetings_api/schedule_meeting_hubspot_example_call_tool.py @@ -0,0 +1,31 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotMeetingsApi.ScheduleMeetingHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'mode': 'execute', + 'request_body': '{"meeting_title":"Project ' + 'Update","date":"2023-10-15","time":"10:00","duration":30,"participants":["alice@example.com","bob@example.com"]}' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/create_hubspot_user_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_users_api/create_hubspot_user_example_call_tool.js new file mode 100644 index 000000000..0900ce358 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/create_hubspot_user_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotUsersApi.CreateHubspotUser"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "user_email": "john.doe@example.com", + "user_first_name": "John", + "last_name": "Doe", + "send_welcome_email": true +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/create_hubspot_user_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_users_api/create_hubspot_user_example_call_tool.py new file mode 100644 index 000000000..455599c12 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/create_hubspot_user_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotUsersApi.CreateHubspotUser" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'user_email': 'john.doe@example.com', + 'user_first_name': 'John', + 'last_name': 'Doe', + 'send_welcome_email': True +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/fetch_hubspot_users_list_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_users_api/fetch_hubspot_users_list_example_call_tool.js new file mode 100644 index 000000000..79cde3254 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/fetch_hubspot_users_list_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotUsersApi.FetchHubspotUsersList"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "page_cursor_after": "abc123", + "user_retrieval_limit": 50 +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/fetch_hubspot_users_list_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_users_api/fetch_hubspot_users_list_example_call_tool.py new file mode 100644 index 000000000..e516fcb0c --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/fetch_hubspot_users_list_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotUsersApi.FetchHubspotUsersList" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'page_cursor_after': 'abc123', 'user_retrieval_limit': 50 +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/get_account_roles_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_users_api/get_account_roles_example_call_tool.js new file mode 100644 index 000000000..b2feab28b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/get_account_roles_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotUsersApi.GetAccountRoles"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/get_account_roles_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_users_api/get_account_roles_example_call_tool.py new file mode 100644 index 000000000..12b3d5dc2 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/get_account_roles_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotUsersApi.GetAccountRoles" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/remove_user_hubspot_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_users_api/remove_user_hubspot_example_call_tool.js new file mode 100644 index 000000000..cb6c28804 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/remove_user_hubspot_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotUsersApi.RemoveUserHubspot"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "user_identifier": "user@example.com", + "user_identifier_property": "EMAIL" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/remove_user_hubspot_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_users_api/remove_user_hubspot_example_call_tool.py new file mode 100644 index 000000000..81d826cca --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/remove_user_hubspot_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotUsersApi.RemoveUserHubspot" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'user_identifier': 'user@example.com', 'user_identifier_property': 'EMAIL' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/retrieve_hubspot_user_by_id_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_users_api/retrieve_hubspot_user_by_id_example_call_tool.js new file mode 100644 index 000000000..a73e5c2c0 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/retrieve_hubspot_user_by_id_example_call_tool.js @@ -0,0 +1,32 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotUsersApi.RetrieveHubspotUserById"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "user_identifier": "12345", + "user_identifier_property": "USER_ID" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/retrieve_hubspot_user_by_id_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_users_api/retrieve_hubspot_user_by_id_example_call_tool.py new file mode 100644 index 000000000..2c296257f --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/retrieve_hubspot_user_by_id_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotUsersApi.RetrieveHubspotUserById" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'user_identifier': '12345', 'user_identifier_property': 'USER_ID' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/update_hubspot_user_info_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_users_api/update_hubspot_user_info_example_call_tool.js new file mode 100644 index 000000000..d2d6f4e6a --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/update_hubspot_user_info_example_call_tool.js @@ -0,0 +1,34 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotUsersApi.UpdateHubspotUserInfo"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = { + "user_identifier": "user@example.com", + "first_name": "John", + "last_name": "Doe", + "user_primary_team_id": "team123" +}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/update_hubspot_user_info_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_users_api/update_hubspot_user_info_example_call_tool.py new file mode 100644 index 000000000..5b6bab936 --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/update_hubspot_user_info_example_call_tool.py @@ -0,0 +1,32 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotUsersApi.UpdateHubspotUserInfo" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + 'user_identifier': 'user@example.com', + 'first_name': 'John', + 'last_name': 'Doe', + 'user_primary_team_id': 'team123' +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2)) diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/view_account_teams_example_call_tool.js b/public/examples/integrations/mcp-servers/hubspot_users_api/view_account_teams_example_call_tool.js new file mode 100644 index 000000000..907cf1b7b --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/view_account_teams_example_call_tool.js @@ -0,0 +1,29 @@ +import { Arcade } from "@arcadeai/arcadejs"; + +const client = new Arcade(); // Automatically finds the `ARCADE_API_KEY` env variable + +const USER_ID = "{arcade_user_id}"; +const TOOL_NAME = "HubspotUsersApi.ViewAccountTeams"; + +// Start the authorization process +const authResponse = await client.tools.authorize({ + tool_name: TOOL_NAME, + user_id: USER_ID, +}); + +if (authResponse.status !== "completed") { + console.log(`Click this link to authorize: ${authResponse.url}`); +} + +// Wait for the authorization to complete +await client.auth.waitForCompletion(authResponse); + +const toolInput = {}; + +const response = await client.tools.execute({ + tool_name: TOOL_NAME, + input: toolInput, + user_id: USER_ID, +}); + +console.log(JSON.stringify(response.output.value, null, 2)); diff --git a/public/examples/integrations/mcp-servers/hubspot_users_api/view_account_teams_example_call_tool.py b/public/examples/integrations/mcp-servers/hubspot_users_api/view_account_teams_example_call_tool.py new file mode 100644 index 000000000..e9115791d --- /dev/null +++ b/public/examples/integrations/mcp-servers/hubspot_users_api/view_account_teams_example_call_tool.py @@ -0,0 +1,29 @@ +import json +from arcadepy import Arcade + +client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable + +USER_ID = "{arcade_user_id}" +TOOL_NAME = "HubspotUsersApi.ViewAccountTeams" + +auth_response = client.tools.authorize( + tool_name=TOOL_NAME, + user_id=USER_ID, +) + +if auth_response.status != "completed": + print(f"Click this link to authorize: {auth_response.url}") + +# Wait for the authorization to complete +client.auth.wait_for_completion(auth_response) + +tool_input = { + +} + +response = client.tools.execute( + tool_name=TOOL_NAME, + input=tool_input, + user_id=USER_ID, +) +print(json.dumps(response.output.value, indent=2))