Mautic 凭证#
¥Mautic credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
支持的身份验证方法#
¥Supported authentication methods
- 基本身份验证
¥Basic auth
- OAuth2
相关资源#
¥Related resources
有关服务的更多信息,请参阅 Mautic API 文档。
¥Refer to Mautic's API documentation for more information about the service.
使用基本身份验证#
¥Using basic auth
API enabled
要设置此凭据,你的 Mautic 实例必须启用 API。请参阅 启用 API 获取说明。
¥To set up this credential, your Mautic instance must have the API enabled. Refer to Enable the API for instructions.
要配置此凭据,你需要一个 Mautic 实例上的账户以及:
¥To configure this credential, you'll need an account on a Mautic instance and:
- 你的 URL
¥Your URL
- 用户名
¥A Username
- 密码:
¥A Password
设置:
¥To set it up:
- 在 Mautic 中,转到“配置”>“API 设置”。
¥In Mautic, go to Configuration > API Settings. 2. 是否启用 HTTP 基本身份验证?如果设置为“否”,请将其更改为“是”并保存。更多信息,请参阅 API 设置文档。
¥If Enable HTTP basic auth? is set to No, change it to Yes and save. Refer to the API Settings documentation for more information. 3. 在 n8n 中,输入你的 Mautic 实例的基本 URL。
¥In n8n, enter the Base URL of your Mautic instance. 4. 请输入你的 Mautic 用户名。
¥Enter your Mautic Username. 5. 请输入你的 Mautic 密码。
¥Enter your Mautic Password.
使用 OAuth2#
¥Using OAuth2
API enabled
要设置此凭据,你的 Mautic 实例必须启用 API。请参阅 启用 API 获取说明。
¥To set up this credential, your Mautic instance must have the API enabled. Refer to Enable the API for instructions.
要配置此凭据,你需要一个 Mautic 实例上的账户以及:
¥To configure this credential, you'll need an account on a Mautic instance and:
- 客户端 ID:创建新 API 凭证时生成。
¥A Client ID: Generated when you create new API credentials.
- 客户端密钥:创建新 API 凭证时生成。
¥A Client Secret: Generated when you create new API credentials.
- 你的 URL
¥Your URL
设置:
¥To set it up:
- 在 Mautic 中,转到“配置”>“设置”。
¥In Mautic, go to Configuration > Settings.
- 选择 API 凭据。
¥Select API Credentials.
No API Credentials menu
1 | |
- 选择“创建新客户端”选项。
¥Select the option to Create new client. 3. 选择“OAuth 2”作为授权协议。
¥Select OAuth 2 as the Authorization Protocol.
4. 请输入凭证名称,例如 n8n integration。
¥Enter a Name for your credential, like n8n integration.
5. 在 n8n 中,复制 OAuth 回调 URL 并将其作为重定向 URI 输入到 Mautic 中。
¥In n8n, copy the OAuth Callback URL and enter it as the Redirect URI in Mautic. 6. 选择“应用”。
¥Select Apply. 7. 从 Mautic 复制客户端 ID 并将其输入到你的 n8n 凭据中。
¥Copy the Client ID from Mautic and enter it in your n8n credential. 8. 从 Mautic 复制客户端密钥并将其输入到你的 n8n 凭据中。
¥Copy the Client Secret from Mautic and enter it in your n8n credential. 9. 输入你的 Mautic 实例的基本 URL。
¥Enter the Base URL of your Mautic instance.
有关更多信息,请参阅 什么是 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:
- 前往“设置”>“配置”。
¥Go to Settings > Configuration. 2. 选择 API 设置。
¥Select API Settings. 3. 是否启用 API?选择“是”。
¥Set API enabled? to Yes. 4. 保存更改。
¥Save your changes.
有关更多信息,请参阅 如何使用 Mautic API。
¥Refer to How to use the Mautic API for more information.