Mautic 凭证(Mautic credentials)#
你可以使用以下凭据验证以下节点:
🌐 You can use these credentials to authenticate the following nodes:
支持的身份验证方法(Supported authentication methods)#
- 基本身份验证
- OAuth2
相关资源(Related resources)#
有关该服务的更多信息,请参阅 Mautic 的 API 文档。
🌐 Refer to Mautic's API documentation for more information about the service.
使用基本身份验证(Using basic auth)#
已启用 API
要设置此凭证,你的 Mautic 实例必须启用 API。有关说明,请参阅 启用 API。
要配置此凭据,你需要在 Mautic 实例上拥有一个账户,并且:
🌐 To configure this credential, you'll need an account on a Mautic instance and:
- 你的 URL
- 用户名
- 密码
设置:
🌐 To set it up:
- 在 Mautic 中,转到 配置 > API 设置。
- 如果 启用 HTTP 基本认证? 设置为 否,请将其改为 是 并保存。有关更多信息,请参阅API 设置文档。
- 在 n8n 中,输入你的 Mautic 实例的基础 URL。
- 请输入你的 Mautic 用户名。
- 请输入你的 Mautic 密码。
使用 OAuth2(Using OAuth2)#
已启用 API
要设置此凭证,你的 Mautic 实例必须启用 API。有关说明,请参阅 启用 API。
要配置此凭据,你需要在 Mautic 实例上拥有一个账户,并且:
🌐 To configure this credential, you'll need an account on a Mautic instance and:
- A 客户端 ID:在你创建新的 API 凭证时生成。
- 一个 客户端密钥:在你创建新的 API 凭证时生成。
- 你的 URL
设置:
🌐 To set it up:
- 在 Mautic 中,转到 配置 > 设置。
-
选择 API 凭证。
-
选择选项 创建新客户。
- 选择 OAuth 2 作为 授权协议。
- 为你的凭证输入一个名称,例如
n8n integration。 - 在 n8n 中,复制 OAuth 回调 URL 并将其作为 重定向 URI 输入到 Mautic 中。
- 选择 应用。
- 从 Mautic 复制 客户端 ID 并将其输入到你的 n8n 凭证中。
- 从 Mautic 复制 客户端密钥 并将其输入到你的 n8n 凭证中。
- 输入你的 Mautic 实例的基础 URL。
有关更多信息,请参阅 Mautic 的 API 是什么?
🌐 Refer to What is Mautic's API? for more information.
启用 API(Enable the API)#
要在你的 Mautic 实例中启用 API:
🌐 To enable the API in your Mautic instance:
- 进入 设置 > 配置。
- 选择 API 设置。
- 将 API 启用? 设置为 是。
- 保存你的更改。
有关更多信息,请参阅 如何使用 Mautic API。
🌐 Refer to How to use the Mautic API for more information.