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:
- 客户端 ID:为自定义连接创建新应用时生成。
¥A Client ID: Generated when you create a new app for a custom connection.
- 客户端密钥:为自定义连接创建新应用时生成。
¥A Client Secret: Generated when you create a new app for a custom connection.
生成客户端 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 App Name
Xero 不支持名称中包含 n8n 的 Xero 开发者中心中的应用实例。
¥Xero doesn't support app instances within the Xero Developer Centre that contain n8n in their name.
- 选择“Web 应用”作为集成类型。
¥Select Web app as the Integration Type.
- 对于“公司或应用 URL”,请输入你的 n8n 服务器或反向代理地址的 URL。例如,对于云用户,此值为:
https://your-username.app.n8n.cloud/。
¥For the Company or Application URL, enter the URL of your n8n server or reverse proxy address. For cloud users, for example, this is: https://your-username.app.n8n.cloud/.
- 从 n8n 复制 OAuth 重定向 URL,并将其添加到你的应用中作为 OAuth 2.0 重定向 URI。
¥Copy the OAuth Redirect URL from n8n and add it as an OAuth 2.0 redirect URI in your app.
- 为你的应用选择合适的作用域。有关更多信息,请参阅 OAuth2 范围。
¥Select appropriate scopes for your app. Refer to OAuth2 Scopes for more information.
-
要使用 Xero 节点中的所有功能,请添加
accounting.contacts和accounting.transactions范围。¥To use all functionality in the Xero node, add the
accounting.contactsandaccounting.transactionsscopes.
请参阅 Xero 的 OAuth 自定义连接 文档了解更多信息。
¥Refer to Xero's OAuth Custom Connections documentation for more information.