Xero 凭证(Xero credentials)#
你可以使用以下凭据验证以下节点:
🌐 You can use these credentials to authenticate the following nodes:
先决条件(Prerequisites)#
创建一个Xero账户。
🌐 Create a Xero account.
支持的身份验证方法(Supported authentication methods)#
- OAuth2
相关资源(Related resources)#
有关该服务的更多信息,请参考 Zero 的 API 文档。
🌐 Refer to Zero's API documentation for more information about the service.
使用 OAuth2(Using OAuth2)#
要配置此凭据,你需要:
🌐 To configure this credential, you'll need:
- A 客户端 ID:在为自定义连接创建新应用时生成。
- 客户端密钥:在为自定义连接创建新应用时生成。
要生成你的客户端 ID 和客户端密钥,请在你的 Xero 开发者门户的 我的应用 中创建一个 OAuth2 自定义连接应用。
🌐 To generate your Client ID and Client Secret, create an OAuth2 custom connection app in your Xero developer portal My Apps.
使用以下设置配置你的应用:
🌐 Use these settings for your app:
Xero 应用名称
Xero 不支持在 Xero 开发者中心中名称包含 n8n 的应用实例。
- 选择 Web 应用 作为 集成类型。
- 对于公司或应用 URL,请输入你的 n8n 服务器或反向代理的地址。对于云用户,例如,这里是:
https://your-username.app.n8n.cloud/。 - 从 n8n 复制 OAuth 重定向 URL,并将其作为应用中的 OAuth 2.0 重定向 URI 添加。
- 为你的应用选择适当的范围。有关更多信息,请参阅 OAuth2 范围。
- 要使用 Xero 节点中的所有功能,请添加
accounting.contacts和accounting.transactions范围。
- 要使用 Xero 节点中的所有功能,请添加
有关更多信息,请参阅 Xero 的 OAuth 自定义连接 文档。
🌐 Refer to Xero's OAuth Custom Connections documentation for more information.