Bubble 凭证#
¥Bubble credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
API access
要访问 Bubble API,你需要付费套餐。
¥You need a paid plan to access the Bubble APIs.
支持的身份验证方法#
¥Supported authentication methods
- API 密钥
¥API key
相关资源#
¥Related resources
有关服务的更多信息,请参阅 Bubble API 文档。
¥Refer to Bubble's API documentation for more information about the service.
使用 API 密钥#
¥Using API key
要配置此凭据,你需要一个付费的 Bubble 账户以及:
¥To configure this credential, you'll need a paid Bubble account and:
- API 令牌
¥An API Token
- 应用名称
¥An App Name
- 如果你使用的是自定义域名,请填写你的域名。
¥Your Domain, if you're using a custom domain
要进行设置,你需要创建一个应用:
¥To set it up, you'll need to create an app:
- 前往 Bubble 中的 应用 页面。
¥Go to the Apps page in Bubble. 2. 选择“创建应用”。
¥Select Create an app.
3. 输入应用名称,例如 n8n-integration。
¥Enter a Name for your app, like n8n-integration.
4. 选择“开始使用”。打开应用详情。
¥Select Get started. The app's details open. 5. 在左侧导航栏中,选择“设置”(齿轮图标)。
¥In the left navigation, select Settings (the gear cog icon). 6. 选择“API”选项卡。
¥Select the API tab. 7. 在“公共 API 端点”部分,选中“启用数据 API”复选框。
¥In the Public API Endpoints section, check the box to Enable Data API.
8. 页面显示数据 API 根 URL,例如:https://n8n-integration.bubbleapps.io/version-test/api/1.1/obj。
¥The page displays the Data API root URL, for example: https://n8n-integration.bubbleapps.io/version-test/api/1.1/obj.
9. 复制 URL 中 https:// 之后、.bubbleapps.io 之前的部分,并将其作为应用名称输入到 n8n 中。在上面的示例中,你需要输入 n8n-integration。
¥Copy the part of the URL after https:// and before .bubbleapps.io and enter it in n8n as the App Name. In the above example, you'd enter n8n-integration.
10. 选择“生成新的 API 令牌”。
1 | |
-
输入一个 API 令牌标签,例如
n8n integration。¥Enter an API Token Label, like
n8n integration. 12. 复制私钥,并将其作为 API 令牌输入到你的 n8n 凭据中。¥Copy the Private key and enter it as the API Token in your n8n credential.
- 有关生成 API 令牌的更多信息,请参阅 数据 API | 身份验证。
¥Refer to Data API | Authentication for more information on generating API tokens. 13. 在 n8n 中,选择与你的应用最匹配的环境:
¥In n8n, select the Environment that best matches your app:
- 对于尚未部署、未在
https://appname.bubbleapps.io/version-test或https://www.mydomain.com/version-test访问的应用,请选择“开发”。
¥Select Development for an app that you haven't deployed, accessed at
https://appname.bubbleapps.io/version-testorhttps://www.mydomain.com/version-test.- 选择“实时”,表示你已通过 deployed、
https://appname.bubbleapps.io或https://www.mydomain.com访问的应用。
¥Select Live for an app that you've deployed, accessed at
https://appname.bubbleapps.ioorhttps://www.mydomain.com. 14. 在 n8n 中,选择你的托管方式:¥In n8n, select your Hosting:
- 如果你尚未设置自定义域名,请选择 Bubble Hosting。
¥If you haven't set up a custom domain, select Bubble Hosting.
- 如果你已设置 自定义域,请选择“自托管”并输入你的自定义域名。
¥If you've set up a custom domain, select Self Hosted and enter your custom Domain.
有关更多信息,请参阅 Bubble 的 创建和管理应用 文档。
¥Refer to Bubble's Creating and managing apps documentation for more information.