Skip to content

Spotify 凭据#

¥Spotify credentials

你可以使用以下凭据验证以下节点:

¥You can use these credentials to authenticate the following nodes:

支持的身份验证方法#

¥Supported authentication methods

  • OAuth2

相关资源#

¥Related resources

有关服务的更多信息,请参阅 Spotify Web API 文档

¥Refer to Spotify's Web API documentation for more information about the service.

使用 OAuth2#

¥Using OAuth2

Note for n8n Cloud users

Cloud users don't need to provide connection details. Select Connect my account to connect through your browser.

如果你是 self-hosting n8n,你需要一个 Spotify 开发者 账户才能创建 Spotify 应用:

¥If you're self-hosting n8n, you'll need a Spotify Developer account so you can create a Spotify app:

  1. 打开 Spotify 开发者控制面板

¥Open the Spotify developer dashboard. 2. 选择“创建应用”。

¥Select Create an app. 3. 输入应用名称,例如 n8n integration

¥Enter an App name, like n8n integration. 4. 输入应用描述。

¥Enter an App description. 5. 从 n8n 复制 OAuth 重定向 URL,并将其作为重定向 URI 输入到 Spotify 应用中。

¥Copy the OAuth Redirect URL from n8n and enter it as the Redirect URI in your Spotify app. 6. 选中复选框以同意 Spotify 服务条款和品牌指南。

¥Check the box to agree to the Spotify Terms of Service and Branding Guidelines. 7. 选择“创建”。打开“应用概览”页面。

¥Select Create. The App overview page opens. 8. 复制客户端 ID,并将其作为你的 n8n 客户端 ID 输入。

¥Copy the Client ID and enter it in your n8n credential. 9. 复制客户端密钥并将其输入到你的 n8n 凭据中。

¥Copy the Client Secret and enter it in your n8n credential. 10. 选择“连接我的账户”,然后按照屏幕提示完成凭据授权。

1
¥Select **Connect my account** and follow the on-screen prompts to finish authorizing the credential.

有关更多信息,请参阅 Spotify 应用

¥Refer to Spotify Apps for more information.