Twilio 凭证(Twilio credentials)#
你可以使用以下凭据验证以下节点:
🌐 You can use these credentials to authenticate the following nodes:
支持的身份验证方法(Supported authentication methods)#
- 认证令牌:Twilio 建议此方法仅用于本地测试。
- API 密钥:Twilio 建议在生产环境中使用此方法。
相关资源(Related resources)#
有关该服务的更多信息,请参阅 Twilio 的 API 文档。
🌐 Refer to Twilio's API documentation for more information about the service.
使用身份验证令牌(Using Auth Token)#
要配置此凭据,你需要一个 Twilio 账户以及:
🌐 To configure this credential, you'll need a Twilio account and:
- 您的 Twilio 账户 SID
- 你的 Twilio 认证令牌
要设置凭据:
🌐 To set up the credential:
- 在 n8n 中,选择 Auth Token 作为 Auth Type。
- 在 Twilio 中,转到 控制台仪表板 > 账户信息。
- 复制你的 账户 SID 并在你的 n8n 凭证中输入。这将作为用户名使用。
- 获取你的 Auth Token 并在你的 n8n 凭证中输入。这就相当于一个密码。
有关更多信息,请参阅 身份验证令牌及其更改方法。
🌐 Refer to Auth Tokens and How to Change Them for more information.
使用 API 密钥(Using API key)#
要配置此凭据,你需要一个 Twilio 账户以及:
🌐 To configure this credential, you'll need a Twilio account and:
- 您的 Twilio 账户 SID
- 一个 API 密钥 SID:在创建 API 密钥时生成。
- 一个 API 密钥秘密:在创建 API 密钥时生成。
要设置凭据:
🌐 To set up the credential:
- 在 n8n 中,选择 API Key 作为 认证类型。
- 在 Twilio 中,转到 控制台仪表板 > 账户信息。
- 复制你的 账户 SID 并将其输入到你的 n8n 凭证中。
- 在 Twilio 中,进入你账户的 API 密钥和令牌 页面。
- 选择 创建 API 密钥。
- 为你的 API 密钥输入一个友好名称,例如
n8n integration。 - 选择你的密钥类型。n8n 可使用主密钥或标准密钥。有关更多信息,请参阅 选择 API 密钥类型。
- 选择 创建 API 密钥 来完成密钥的创建。
- 在 复制密钥 页面,复制与密钥一起显示的 SID,并将其输入到你的 n8n 凭据 API Key SID 中。
- 在 复制密钥 页面,复制显示的 密钥 的 Secret 并将其输入到你的 n8n 凭证 API Key Secret 中。
请参阅 创建 API 密钥 以获取更详细的说明。
🌐 Refer to Create an API key for more detailed instructions.
选择 API 密钥类型(Selecting an API key type)#
当你创建 Twilio API 密钥时,必须选择密钥类型。n8n 凭证适用于 Main 和 Standard 密钥类型。
🌐 When you create a Twilio API key, you must select a key type. The n8n credential works with Main and Standard key types.
以下是关于不同 API 密钥类型的更多详细信息:
🌐 Here are more details on the different API key types:
- 主要:这种密钥类型为你提供与在 API 请求中使用账户 SID 和身份验证令牌相同的访问级别。
- 标准:这种密钥类型使你能够访问 Twilio 的所有 API 功能,但不包括 API 密钥资源和账户资源。
- 受限:此密钥类型处于测试阶段。n8n 尚未针对该密钥类型测试过凭据;如果你尝试使用,请告知我们是否遇到任何问题。
有关密钥类型的更多信息,请参阅 API 密钥类型 。
🌐 Refer to Types of API keys for more information on the key types.