Airtable 凭据#
¥Airtable credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
先决条件#
¥Prerequisites
创建 Airtable 账户
¥Create an Airtable account.
支持的身份验证方法#
¥Supported authentication methods
- 个人访问令牌 (PAT)
¥Personal Access Token (PAT)
- OAuth2
API Key deprecation
n8n 过去提供与 Airtable 的 API 密钥身份验证方法。Airtable 这些键已完全弃用 版本截至 2024 年 2 月。如果你之前使用的是 Airtable API 凭据,请将其替换为 Airtable 个人访问令牌或 Airtable OAuth2 凭据。n8n 建议改用个人访问令牌 (Personal Access Token)。
¥n8n used to offer an API key authentication method with Airtable. Airtable fully deprecated these keys as of February 2024. If you were using an Airtable API credential, replace it with an Airtable Personal Access Token or Airtable OAuth2 credential. n8n recommends using Personal Access Token instead.
相关资源#
¥Related resources
有关服务的更多信息,请参阅 Airtable API 文档。
¥Refer to Airtable's API documentation for more information about the service.
使用个人访问令牌#
¥Using personal access token
要配置此凭据,你需要:
¥To configure this credential, you'll need:
- 个人访问令牌 (PAT)
¥A Personal Access Token (PAT)
创建你的 PAT:
¥To create your PAT:
- 前往 Airtable Builder Hub 个人访问令牌 页面。
¥Go to the Airtable Builder Hub Personal access tokens page. 2. 选择“+ 创建新令牌”。Airtable 打开“创建个人访问令牌”页面。
¥Select + Create new token. Airtable opens the Create personal access token page.
3. 请输入令牌名称,例如 n8n credential。
¥Enter a Name for your token, like n8n credential.
4. 为你的令牌添加范围。有关更多信息,请参阅 Airtable 的 作用域 指南。n8n 建议使用以下作用域:
¥Add Scopes to your token. Refer to Airtable's Scopes guide for more information. n8n recommends using these scopes:
-
data.records:read -
data.records:write -
schema.bases:read5. 选择令牌的访问权限。你可以选择单个数据库、多个数据库(甚至可以是来自不同工作区的数据库)、你拥有的工作区中所有当前和未来的数据库,或者你拥有的任何工作区中的所有数据库(包括将来添加的数据库/工作区)。
¥Select the Access for your token. Choose from a single base, multiple bases (even bases from different workspaces), all of the current and future bases in a workspace you own, or all of the bases from any workspace that you own including bases/workspace added in the future. 6. 选择“创建令牌”。
¥Select Create token. 7. Airtable 打开一个模态框,显示你的令牌。复制此令牌并将其作为访问令牌输入到你的 n8n 凭据中。
¥Airtable opens a modal with your token displayed. Copy this token and enter it in your n8n credential as the Access Token.
有关更多信息,请参阅 Airtable 的 查找/创建 PAT 文档。
¥Refer to Airtable's Find/create PATs documentation for more information.
使用 OAuth2#
¥Using OAuth2
要配置此凭据,你需要:
¥To configure this credential, you'll need:
- OAuth 重定向 URL
¥An OAuth Redirect URL
- 客户端 ID
¥A Client ID
- 客户端密钥:
¥A Client Secret
要生成所有这些信息,请注册一个新的 Airtable 集成:
¥To generate all this information, register a new Airtable integration:
- 打开你的 Airtable Builder Hub OAuth 集成 页面。
¥Open your Airtable Builder Hub OAuth integrations page. 2. 选择“注册新的 OAuth 集成”按钮。
¥Select the Register new OAuth integration button. 3. 输入 OAuth 集成的名称。
¥Enter a name for your OAuth integration. 4. 从你的 n8n 凭据中复制 OAuth 重定向 URL。
¥Copy the OAuth Redirect URL from your n8n credential. 5. 将该重定向 URL 作为 OAuth 重定向 URL 粘贴到 Airtable 中。
¥Paste that redirect URL in Airtable as the OAuth redirect URL. 6. 选择“注册集成”。
¥Select Register integration. 7. 在下一页中,从 Airtable 复制客户端 ID,并将其粘贴到 n8n 凭据中的客户端 ID 中。
¥On the following page, copy the Client ID from Airtable and paste it into the Client ID in your n8n credential. 8. 在 Airtable 中,选择“生成客户端密钥”。
¥In Airtable, select Generate client secret. 9. 复制客户端密钥,并将其粘贴到 n8n 凭据中的客户端密钥字段。
¥Copy the client secret and paste it into the Client Secret in your n8n credential. 10. 在 Airtable 中选择以下范围:
1 2 3 4 5 6 7 | |
-
选择“在 Airtable 中保存更改”。
¥Select Save changes in Airtable. 12. 在你的 n8n 凭证中,选择“连接我的账户”。打开一个“授予访问权限”对话框。
¥In your n8n credential, select the Connect my account. A Grant access modal opens. 13. 请按照说明选择你要处理的数据库(或所有数据库)。
¥Follow the instructions and select the base you want to work on (or all bases). 14. 选择“授予访问权限”以完成连接。
¥Select Grant access to complete the connection.
有关注册新的 OAuth 集成的步骤,请参阅 Airtable 注册新集成文档。
¥Refer to the Airtable Register a new integration documentation for steps on registering a new Oauth integration.