Spotify API Web:没有 Node.js 的 OAuth [英] Spotify API Web : OAuth without Node.js

查看:19
本文介绍了Spotify API Web:没有 Node.js 的 OAuth的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I used the Web API Spotify. I followed the tutorial ( https://developer.spotify.com/web-api/tutorial/ ) to create authentication. However, it using Node.js and I wonder if we can do without it? (the rest of my code is in javascript and does not require Node.js)

提前致谢.

文森特·莱韦克

推荐答案

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

You can work with Spotify's Web API using only frontend code.

您可能想看看 JavaScript 包装器,因为它提供所有 API 端点的语言绑定,因此它应该为您节省大量时间.如果您在没有后端的情况下工作,检索访问令牌的唯一方法是通过隐式授予流程,请参阅 文档演示应用程序 了解更多详细信息.

You might want to have a look at the 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 for more detailed information.

这篇关于Spotify API Web:没有 Node.js 的 OAuth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆