Spotify API 网络:没有 Node.js 的 OAuth

Spotify API Web : OAuth without Node.js

我使用网络 API Spotify。我按照教程 ( https://developer.spotify.com/web-api/tutorial/ ) 创建身份验证。 但是,它使用 Node.js,我想知道我们是否可以不用它? (我的其余代码在 javascript 中,不需要 Node.js)

提前致谢。

文森特·莱维克

您可以仅使用前端代码来使用 Spotify 的 Web API。

您可能想查看 JavaScript wrapper as it offers language bindings for all API endpoints so it should save you a lot of time. If you're working without a backend, the only way to retrieve access tokens is through the Implicit Grant flow, see documentation or demo application 以获得更详细的信息。